@charset "utf-8";

  .main_img{
    display: none;
  }

  @media screen and (min-width:600px) {
  
  .image_wrap:hover {
    transition: .4s ease-in-out;
  }
  .animate_item:hover .main_img{
    display: none;
  }
.main_img{
  display: block;
  width: 100%;
  margin: 0 auto;
}
}
.cb_free_space.num4 {
  margin-top: 350px!important;
}

/* 管理者向け機能 */
.administrators_content {
  /* display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  */
}
.administrators_box {
  /* padding: 10px; */
  padding: 10px 10px 30px;
  color: #232323;
  background: #fff;
  box-shadow: 0 2px 4px rgba(230, 230, 230, 1); 
   /* max-width: 200px; */
   /* width: 200px; */
   width: 230px;
  margin: 20px;
}
.administrators_main {
  text-align: center;
}
.administrators_h {
  font-size: 20px !important;
  font-weight: 800;
  margin: 0 !important;
  line-height: 1.5em!important ;
}
.administrators_t {
  margin:20px!important;
  line-height: 1.5em!important;
}

/* ポップアップ調整 */
@media (min-width: 1024px) {
  .fancybox__slide {
      max-width: 1500px!important;
  }
}
@media (max-width: 1025px) {
.fancybox__content {
  background: none!important;
  padding: 0!important;
}
.fancybox__content>.carousel__button.is-close {
  top: 110px!important;
}
}

.card_employee {
  /* width: 190px; */
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  /* background-color: #e5f4d1; /* 淡い黄緑背景 */ 
  text-align: center;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card_employee:hover {
  transform: translateY(-5px);
}

.card_employee img {
  /* width: 100%; */
  /* max-width: 190px; */
  /* height: 150px; /* お好みで調整 */
  object-fit: cover; /* はみ出さずにトリミング */
  display: block;
}

.card_employee_text {
  background-color: white;
  padding: 10px 0;
  font-size: 18px;
  color: #223a7b; /* 濃い青色 */
  font-weight: bold;
  /* line-height: normal; */
  line-height: 2em;
  transition: transform 0.2s ease-in-out;
}

/* 250520 追加 */
.copilot-container {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 50px; 
  max-width: 1200px; 
  /* max-width: 80%; */
  margin: 0 auto;
  place-content: center;
}
@media (max-width: 1199px) {
  .copilot-container {
    grid-template-columns: repeat(2, 1fr);
     max-width: 90%; 
  }
  .br_pc {
    display: none;
  }
}

.copilot-card {
  background-color: #ffffff;
  /* width: 220px; */
  /* width: 180px; */
  border-radius: 12px;
  padding: 10px 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.copilot-card:hover {
  transform: translateY(-5px);
}

.copilot-icon {
  /* width: 48px; */
  width: 50%;
  /* height: 48px; */
  /* margin-bottom: 12px; */
}

/* タイトル用のpタグ */
.copilot-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0px;
  line-height: 1.5!important;
  margin: 10px 0 !important;
}

/* 説明テキスト用のpタグ */
.copilot-text {
  font-size: 1em;
  color: #333;
  margin-bottom: 15px!important;
  line-height: 2 !important;
}

.copilot-link {
  color: #0067c5;
  /* font-weight: bold; */
  text-decoration: none;
  /* font-size: 1.2em; */
  display: block;
  /* line-height: normal!important; */
  margin-bottom: 20px !important;
}

.copilot-link:hover {
  text-decoration: none;
}

/* レスポンシブ対応：タブレット（2列） */
@media screen and (max-width: 768px) {
  .copilot-card {
    /* width: 45%; */
  }
}

/* レスポンシブ対応：スマホ（1列） */
@media screen and (max-width: 480px) {
  .copilot-card {
    /* width: 100%; */
  }
}


/* グレー */
.card_gray {
  background-color: rgba(128, 128, 128, 0.3); /* 半透明グレー */
  display: inline-block; /* 必要に応じて、背景サイズ調整 */
  /*padding: 4px 8px;       /* 少し余白を入れると読みやすく */
  /* padding: 15px; */
  border-radius: 6px;     /* 角を丸めると見やすい */
}

/* 従業員向け */
.content_employee {
  display: flex; 
  /* max-width: 1200px; */ 
  max-width: 80%; 
  margin: 0 auto; 
  justify-content: center;
}
.employee_type {
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
  gap: 30px 10px; 
  padding-left: 50px; 
  box-sizing: content-box; /* これが重要 */
  max-width: 60%; margin: 0 auto;
}
.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.large-img {
  flex: 1 1 60%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-width: 100%;
}

.small-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex: 1 1 35%;
  min-width: 300px;
}
.large-img .gray_img {
  width: 100%;
  max-width: 50%;
} 

.small-imgs .gray_img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.img_e_b {
  width: 50%;
  height: 100%!important;
}
/* グレーの半透明オーバーレイ */
.gray_overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(128, 128, 128, 0.3);
  z-index: 1;
}

.card_employee img,
.card_employee_text {
  /* position: relative; */
  z-index: 2;
}

/* レスポンシブ対応 */
@media (max-width: 1025px) {
  .content_employee {
    display: block; 
  }
    .img_e_b {
      height: auto!important;
      width: 100%;
}
.employee_type {
  max-width: 100%;
  padding-left: 0;
  margin-top: 35px;
}
}

@media (max-width: 768px) {
  .copilot-container {
    /* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
    gap: 10px;
    max-width: 100%; 
  }
  .image-grid {
    flex-direction: column;
  }
  .large-img,
  .small-imgs {
    width: 100%;
  }
  .small-imgs {
    grid-template-columns: repeat(3, 1fr);
  }
  .employee_type {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

.single-medical_c #blog_header {
  display: none !important;
}

.vlp-layout-c {
    /* 既存のプロパティに加えて以下を追加 */
    height: 100%;
}

.vlp-container-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.vlp-layout-c {
    flex: 1 1 300px; /* 横並びで均等になるよう調整（幅はお好みで） */
    height: auto;
    display: flex;
    flex-direction: column;
}

.vlp-layout-c > * {
    flex-grow: 1;
}

/* カードの基本スタイル（枠・余白） */
.vlp-layout-c {
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  height: 100% !important;
}

/* カード内の画像を中央＆サイズ統一 */
.vlp-layout-c .vlp-thumbnail img {
  height: 150px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

/* サムネイル全体を中央寄せに */
.vlp-layout-c .vlp-thumbnail {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 150px !important;
}

/* カード群の高さ揃えるための対策（親がflexなら有効） */
.vlp-layout-c {
  flex: 1 1 0% !important;
}


