/* あんどう接骨院について */
.service-block {
  padding: 40px 20px;
  background-color: #ffffff;
}

.service-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* ABOUTページ専用の見出し */
.page-about .page-section-title {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  background-image: url("../img/top_img_02.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin: 0;
}

.page-about .page-section-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.page-about .page-section-title > * {
  position: relative;
  z-index: 2;
}

.service-text {
  flex: 1;
  min-width: 320px;
}

.service-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.service-number {
  font-size: 48px;
  font-weight: bold;
  color: #80bc00;
  line-height: 1;
}

.service-title small {
  font-size: 14px;
  color: #80bc00;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-title h3 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: #000;
}

.service-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.service-image {
  flex: 1;
  min-width: 300px;
  margin: 0;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .service-block {
    padding: 40px 16px;
  }

  .service-inner {
    flex-direction: column;
    gap: 24px;
  }

  .service-text,
  .service-image {
    width: 100%;
    min-width: unset;
  }

  .service-number {
    font-size: 36px;
  }

  .service-title h3 {
    font-size: 20px;
  }

  .service-title small {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .service-text p {
    font-size: 15px;
    line-height: 1.6;
  }

  .service-image img {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
  }

  .service-block .service-text {
    order: 1;
  }

  .service-block .service-image {
    order: 2;
  }

  .service-block--reverse .service-text {
    order: 1;
  }

  .service-block--reverse .service-image {
    order: 2;
  }
}

@media (max-width: 391px) {
  .service-title h3 {
    font-size: 22px;
  }

  .service-text p {
    font-size: 19px;
  }

  .sp-off {
    display: none;
  }
}

/* staff紹介 */
:root {
  --ink: #222;
  --line: #e6eaf2;
  --band: #f6f7f9;
  --name: #0f2856;
}

.instructors .service-section-title {
  background: transparent !important;
}

.instructors {
  width: 100%;
  background: #fffcf2;
  color: var(--ink);
}

.inst-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
}

.inst-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 22px 20px;
  border-top: 1px solid #ffffff;
}

.inst-item:last-child {
  border-bottom: 1px solid var(--line);
}

/* 画像（丸型） */
.inst-avatar {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  margin: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #ddd;
}

.inst-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキスト部分 */
.inst-body {
  flex: 1;
  min-width: 0;
}

.inst-name {
  font-size: 18px;
  letter-spacing: 0.02em;
  margin: 6px 0 10px;
  color: var(--name);
  font-weight: 600;
}

.inst-sep {
  display: block;
  width: 40px;
  height: 1px;
  background: #c8ced8;
  margin: 8px 0 12px;
}

.inst-meta {
  font-size: 14px;
  line-height: 1.9;
  color: #2b2f36;
}

.inst-meta p {
  margin: 0.1em 0;
}

/* スマホ対応 */
@media (max-width: 640px) {
  .inst-item {
    flex-direction: column;
    gap: 12px;
    padding: 18px 16px;
    align-items: center;
    text-align: center;
  }

  .inst-avatar {
    width: 100px;
    height: 100px;
    flex: 0 0 auto;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
  }

  .inst-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .inst-name {
    font-size: 16px;
  }

  .inst-meta {
    font-size: 13px;
    line-height: 1.8;
  }

  .inst-sep {
    margin: 6px auto 10px;
  }
}

/* スタッフ紹介タイトル専用（背景なしに戻す） */
.service-section-title.title-bg-cream {
  position: relative;
  padding: 40px 20px;
  background: transparent !important;
  text-align: center;
  color: var(--ink);
  overflow: visible; /* ← これ大事、page-section-title の overflow: hidden を殺す */
}

/* 必要なら白オーバーレイを消す（ここで確実に無効化） */
.service-section-title.title-bg-cream::before {
  content: none !important;
}

/* タイトルの文字は普通に前面へ */
.service-section-title.title-bg-cream > * {
  position: relative;
  z-index: 2;
}
