.site-title {
  display: flex;
  align-items: center;
  /* 高さを揃える */
  gap: 12px;
  /* 画像とテキストの間隔 */
}

.site-title img {
  height: 2em;
  max-height: 100%;
  object-fit: contain;
  width: auto;
}

.site-title h1 {
  font-size: 2rem;
  margin: 0;
}


/* コンテナ設定 */
.container_about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5px;
}



/* ヒーローセクション */
.page-hero-clinic, .page-hero-staff {
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
  aspect-ratio: 16 / 4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.page-hero-clinic {
  background-image: url('../img/hero_clinic.jpg');
  /* 適切な画像パスを設定 */
    position: relative;
    background-size: cover;
    background-position: center;
    z-index: 0;

}

.page-hero-clinic.general-dentistry {
  background-image: url('../img/mt001.jpg');
  /* 適切な画像パスを設定 */
}

.page-hero-clinic.aesthetic-dentistry {
  background-image: url('../img/mt003.jpg');
  /* 適切な画像パスを設定 */
}

.page-hero-clinic.page-hero-about {
  background-image: url('../img/mtabout.jpg');
  /* 適切な画像パスを設定 */
}

.page-hero-clinic.dentures-not-covered {
  background-image: url('../img/hoken_top.jpg');
  /* 適切な画像パスを設定 */
}

.page-hero-clinic.maternity {
  background-image: url('../img/mt006.jpg');
  /* 適切な画像パスを設定 */
}

.page-hero-clinic.child {
  background-image: url('../img/mt002-scaled.jpg');
  /* 適切な画像パスを設定 */
}

.page-hero-clinic.implant {
  background-image: url('../img/mt004-scaled.jpg');
  /* 適切な画像パスを設定 */
}

.page-hero-clinic::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* 0.4は暗さの度合い。0.1〜0.6で調整可能 */
    z-index: 1;
}

.page-hero-clinic h1 {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-hero-staff {
  background-image: url('../img/hero_staff.jpg');
  /* 適切な画像パスを設定 */
}

.page-hero-clinic h2, .page-hero-staff h2 {
  font-size: 48px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero-clinic p, .page-hero-staff p {
  font-size: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-hero-clinic .container_about {
    position: relative;
    z-index: 2;
    color: #fff; /* 白文字でコントラストを確保 */
    text-align: center;
    padding: 2em 1em;
}


/* セクション共通スタイル */
.section-padding {
  padding: 60px 0;
}

.section-padding h3, .container_about_h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.section-padding h3::after, .container_about_h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #007bff;
}

.section-description {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
  color: #666;
}

.bg-light-gray {
  background-color: #f0f4f7;
}

/* Flexboxユーティリティ */
.flex-container {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  /* スマホで折り返す */
}

/* 院長挨拶セクション */
#greeting .content-image {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

#greeting .content-image img {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#greeting .content-text {
  flex: 2;
  min-width: 300px;
}

#greeting .content-text h3 {
  text-align: left;
  font-size: 32px;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

#greeting .content-text h3::after {
  left: 0;
  transform: none;
}

#greeting .content-text p {
  margin-bottom: 15px;
  color: #555;
}

#greeting .signature {
  text-align: right;
  font-style: italic;
  font-weight: 600;
  margin-top: 20px;
}

@media (max-width: 767px) {
  #greeting .content-image {
    display: flex;
    justify-content: center;
  }

  #greeting .content-image img {
    width: 50%;
  }
}

/* コンセプトセクション */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.concept-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.concept-item img {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.concept-item h4 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #007bff;
}

.concept-item p {
  color: #666;
}

/* 院内紹介（ギャラリー） */
.gallery-grid {
  column-count: 1;
  column-gap: 16px;
  max-width: 100%;
  margin: 0 auto;
  padding: 1em;
}

@media (min-width: 700px) {
  .gallery-grid {
    column-count: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  padding: 0.5em;
  font-size: 0.9rem;
  font-family: "Yu Gothic", sans-serif;
}

/* 設備紹介 */
.equipment-list .equipment-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  padding: 30px;
  align-items: flex-start;
  /* 上揃え */
  flex-wrap: wrap;
  /* スマホで折り返す */
  gap: 20px 40px;
}

.equipment-list .equipment-image {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  margin-right: 30px;
  /* テキストとの間に余白 */
}

.equipment-list .equipment-item.reverse-on-mobile .equipment-image {
  margin-right: 0;
  margin-left: 30px;
}

.equipment-list .equipment-text {
  flex: 2;
  min-width: 280px;
}

.equipment-text_h4 {
  font-size: 1.4rem;
  color: #007bff;
  margin-bottom: 15px;
}

/* 1. 見出しを横幅100%にして中央寄せ */
.equipment-item.flex-container>.equipment-text_h4 {
  flex: 0 0 100%;
  /* 1行目を横幅100%に */
  text-align: center;
  /* テキストを中央寄せ */
}

.equipment-midashi01 {
  position: relative;
  display: inline-block;
  padding-left: 1.5rem; /* 正方形分の余白を確保 */
  margin: 0;
  vertical-align: middle;
}

.equipment-midashi01::before {
  content: "";
  display: inline-block;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem; /* 正方形の横幅（調整可） */
  height: 1rem; /* 正方形の高さ（調整可） */
  background: #fff; /* 黒で塗りつぶし */
  border:solid 1px #b1abab;
  border-radius: 0; /* 角を丸めたければ値を変更 */
}

.equipment-list .equipment-text p {
  color: #555;
  margin-bottom: 50px;
}

/* アクセス情報 */
.access-info {
  align-items: flex-start;
  /* 上揃え */
  flex-wrap: wrap;
}

.access-map {
  flex: 2;
  min-width: 300px;
}

.access-map iframe {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.access-details {
  flex: 1;
  min-width: 280px;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.access-details h4 {
  font-size: 24px;
  color: #007bff;
  margin-bottom: 15px;
}

.access-details p {
  margin-bottom: 10px;
  color: #555;
}

.access-details ul {
  list-style: disc;
  padding-left: 20px;
  color: #555;
}

.access-details ul li {
  margin-bottom: 5px;
}

/* ドクター紹介 */
.doctor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.doctor-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.doctor-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid #007bff;
}

.doctor-card h4 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.doctor-card h4 span {
  display: block;
  font-size: 16px;
  color: #666;
  margin-top: 5px;
}

.doctor-card dl {
  text-align: left;
  margin-top: 20px;
}

.doctor-card dt {
  font-weight: bold;
  color: #007bff;
  margin-top: 15px;
  margin-bottom: 5px;
}

.doctor-card dd {
  margin-left: 0;
  margin-bottom: 10px;
  color: #555;
}

.doctor-card dd ul {
  list-style: inside disc;
  padding-left: 0;
}

/* スタッフ紹介 */
.staff-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.staff-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.staff-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 2px solid #5cb85c;
  /* 緑系のアクセントカラー */
}

.staff-card h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #333;
}

.staff-card h4 span {
  display: block;
  font-size: 14px;
  color: #666;
  margin-top: 3px;
}

.staff-card p {
  color: #555;
  font-size: 15px;
}



/* レスポンシブデザインの調整 */

/* 小さなデバイス（スマートフォン）向け */
@media (max-width: 767px) {

  .page-hero-clinic h2, .page-hero-staff h2 {
    font-size: 32px;
  }

  .page-hero-clinic p, .page-hero-staff p {
    font-size: 16px;
  }


  .section-padding h3::after {
    width: 40px;
  }

  .section-description {
    font-size: 16px;
  }

  .flex-container {
    flex-direction: column;
    gap: 30px;
  }

  .reverse-on-mobile {
    flex-direction: column-reverse;
  }

  #greeting .content-text h3 {
    text-align: center;
    font-size: 28px;
  }

  #greeting .content-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  #greeting .signature {
    text-align: center;
  }

  .equipment-list .equipment-item {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .equipment-list .equipment-image {
    margin: 0 0 20px 0;
    /* スマホでは下部に余白 */
  }

  .equipment-list .equipment-item.reverse-on-mobile .equipment-image {
    margin: 0 0 20px 0;
  }

  .access-info {
    flex-direction: column;
    gap: 30px;
  }

  .access-map, .access-details {
    width: 100%;
  }
}

/* 中間デバイス（タブレット）向け */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-hero-clinic h2, .page-hero-staff h2 {
    font-size: 40px;
  }

  .concept-grid, .gallery-grid, .doctor-list, .staff-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* デスクトップ向け (追加の調整が必要な場合) */
@media (min-width: 1024px) {


  .equipment-list .equipment-item.reverse-on-mobile .equipment-image {
    order: 2;
    /* 画像を右に配置 */
    margin-left: 0;
    margin-right: 30px;
  }

  .equipment-list .equipment-item.reverse-on-mobile .equipment-text {
    order: 1;
    /* テキストを左に配置 */
  }
}

ul.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #f8fcff;
  border: 1px solid #dbe9f4;
  border-radius: 8px;
}

ul.check-list li {
  position: relative;
  padding: 1em 1.5em 1em 2.5em;
  border-bottom: 1px dashed #c7d9e6;
}

ul.check-list li:last-child {
  border-bottom: none;
}

ul.check-list li::before {
  content: "✔";
  /* ← ここを ✅ や ☑️ に変更可能 */
  position: absolute;
  left: 1em;
  top: 1em;
  font-size: 1.2em;
  color: #2b7bb9;
}

.button-wrapper-blog {
  text-align: center;
  margin-top: 40px;
}

.blog-button {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* アイコンとテキストの間隔 */
  padding: 8px 28px;
  background-color: #337ab7;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  white-space: nowrap;
  font-family: "M PLUS 1", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.button-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
}


.gallery-item.img_long{
    width: 100%;
    aspect-ratio: 2 / 3.08;
    overflow: hidden;
    position: relative;
}

.gallery-item.img_long img{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;

}
.pc_img {
 display:block;
}
.sp_img {
 display:none;
}

@media (max-width: 799px) {
.pc_img {
 display:none;
}
.sp_img {
 display:block;
}
}



@media (max-width: 1080px) {
  .gallery-item.img_long{
    aspect-ratio: 2 / 3.15;
  }
}

@media (max-width: 699px) {
  .gallery-item.img_long {
    aspect-ratio: 2 / 2;
  }
}
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
	#greeting .equipment-image img{
		image-rendering: -webkit-optimize-contrast;
	}
}


      .menu-gallery-slider {
        width: 100%;
        height: 100%;
        position: relative;
        /* Slickの矢印やドットの位置調整に必要 */
      }

      .menu-gallery-slider .slide {
        width: 100%;
        height: 100%;
      }

      .menu-gallery-slider .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* 画像を枠にフィットさせる */
        display: block;
      }

      .menu-gallery-slider .slick-track {
        height: 100%;
      }

      .menu-gallery-slider .slick-slide {
        height: 100%;
      }

      .menu-gallery-slider .slick-prev.slick-arrow,
      .menu-gallery-slider .slick-next.slick-arrow {
        position: absolute;
        top: 40%;
        z-index: 100;
      }

      .menu-gallery-slider .slick-next.slick-arrow {
        right: 10px;
      }

      .menu-gallery-slider .slick-prev.slick-arrow {
        left: 10px;
      }
      
  .menu-filter {
    margin-bottom: 2em;
  }

  .menu-filter .filter-btn {
    display: inline-block;
    padding: .5em 1em;
    margin: 0 .5em .5em 0;
    border: 1px solid #999;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
  }

  .menu-filter .filter-btn.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
  }

  /* グリッドレイアウト：3カラム */
  .treatment-list .treatment-item {
    box-shadow: 0 0 10px #ccc;
    background: #ffffff00;
  }

  .treatment-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    margin: 0;
    padding: 0;
  }

  .treatment-list_title {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 5px 10px;
  }

  .treatment-list .treatment-item .treatment-terms {
    padding-left: 10px;
  }

  /* サムネイルを4:3にトリミング */
  .treatment-thumbnail {
    width: 100%;
    padding-bottom: 75%;
    /* 4:3 → 高さ = 横幅 × 0.75 */
    position: relative;
    overflow: hidden;
  }

  .treatment-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .menu-filter .filter-btn.clear-all {
  background-color: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

  /* 760px以下は2カラムに切り替え */
  @media (max-width: 760px) {
    .treatment-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }