/*
 * 症状別詳細ページ用レイアウト CSS（第1段階）
 * 2026-12-03：腰痛ページVer.5の確定済みルールをそのまま移設。
 * 詳細ページ以外のCSS・HTMLには変更を加えない。
 * 他症状へ適用する前に、個別ページで表示を確認すること。
 */

    .ayata-low-back-hero {
      position: relative;
      isolation: isolate;
      min-height: 60vh;
      display: flex;
      align-items: center;
      overflow: hidden;
      background-color: #827c91;
    }
    .ayata-low-back-hero .ayata-low-back-hero-image {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      min-height: 100%;
      max-width: none;
      margin: 0;
      padding: 0;
      border-radius: 0;
      transform: none;
      opacity: 1;
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      pointer-events: none;
    }
    .ayata-low-back-hero .overlay-2 { z-index: 1; }
    .ayata-low-back-hero > .container { position: relative; z-index: 2; width: 100%; }

    .ayata-low-back-intro { background: #f7f8fa; padding-top: 48px; padding-bottom: 30px; }
    .ayata-low-back-intro p { line-height: 1.9; }

    .ayata-detail-section { padding-top: 46px; padding-bottom: 44px; }
    .ayata-detail-section--white { background: #ffffff; }
    .ayata-detail-section--gray { background: #f3f4f6; }
    .ayata-detail-section--reference { background: #e6f3f8; }
    .ayata-detail-section p,
    .ayata-detail-section li { line-height: 1.9; }
    .ayata-detail-section img {
      width: 100%;
      max-width: 100%;
      height: auto;
      display: block;
      box-shadow: 0 10px 24px rgba(0,0,0,0.08);
      border-radius: 2px;
    }
    .ayata-detail-section .room-mi { margin-bottom: 18px; }

    /* PC: 左画像を広げ、本文の右端は施術段落と同じ見出し罫線に合わせる。 */
    @media (min-width: 1200px) {
      .ayata-detail-image-left > .ayata-detail-image { width: 33.33333333%; }
      .ayata-detail-image-left > .ayata-detail-copy { width: 41.66666667%; }
    }
    /* ハンバーガーメニューへの切替に合わせて縦並び。
       画像・本文は見出し列と同じ左右位置・幅に統一する。 */
    @media (max-width: 1199px) {
      .ayata-detail-row { flex-direction: column; align-items: stretch; }
      .ayata-detail-row > .ayata-detail-image,
      .ayata-detail-row > .ayata-detail-copy {
        float: none;
        max-width: none;
        padding-left: 15px;
        padding-right: 15px;
      }
      .ayata-detail-row > .ayata-detail-image { order: -1; margin-bottom: 18px; }
      .ayata-detail-row > .ayata-detail-image img {
        width: 100%;
        max-width: 399px;
        height: auto;
        margin: 0 auto;
      }
    }
    /* 992-1199px: 見出し col-md-offset-2 col-md-9 と一致 */
    @media (min-width: 992px) and (max-width: 1199px) {
      .ayata-detail-row > .ayata-detail-image,
      .ayata-detail-row > .ayata-detail-copy {
        width: 75%; margin-left: 16.66666667%;
      }
    }
    /* 768-991px: col-xs-offset-1 がこの幅でも有効なので見出しと同じ位置に。 */
    @media (min-width: 768px) and (max-width: 991px) {
      .ayata-detail-row > .ayata-detail-image,
      .ayata-detail-row > .ayata-detail-copy {
        width: 75%; margin-left: 8.33333333%;
      }
    }
    /* 767px以下は旧CSSの row-eq-height { margin:0 } を打ち消し、
       見出し側 .row と同じ横幅に戻す。 */
    @media (max-width: 767px) {
      .ayata-detail-row { margin-left: -15px; margin-right: -15px; }
    }
    /* 577-767px: 見出し col-xs-offset-1 col-xs-10 と一致 */
    @media (min-width: 577px) and (max-width: 767px) {
      .ayata-detail-row > .ayata-detail-image,
      .ayata-detail-row > .ayata-detail-copy {
        width: 83.33333333%; margin-left: 8.33333333%;
      }
    }
    /* 576px以下: 見出し col-xxs-offset-0 col-xxs-12 と一致 */
    @media (max-width: 576px) {
      .ayata-detail-row > .ayata-detail-image,
      .ayata-detail-row > .ayata-detail-copy {
        width: 100%; margin-left: 0;
      }
    }
    .ayata-reference-title {
      text-align: center;
      font-size: 1.7em;
      letter-spacing: 0.04em;
      color: #222222;
      margin: 0 0 28px;
      font-family: 'Baloo Paaji 2', cursive;
    }
    .ayata-reference-intro {
      text-align: center;
      margin-bottom: 28px;
    }
    .ayata-reference-links {
      padding-left: 1.3em;
      margin-bottom: 0;
    }
    .ayata-reference-links li { margin-bottom: 10px; }
    .ayata-reference-links a { word-break: break-word; }

    .ayata-warning-box {
      margin-top: 22px;
      padding: 18px 20px;
      border: 2px solid #d8d1c9;
      border-radius: 18px;
      background: rgba(255,255,255,0.72);
    }
    .ayata-warning-heading {
      font-size: 1em;
      font-weight: 700;
      color: #9a8574;
      margin: 0 0 10px;
      line-height: 1.8;
    }

    /* 本文の末尾に置く関連記事は、予約CTAより控えめな小型リンク */
    .ayata-article-related { margin: 18px 0 8px; }
    .ayata-article-related a {
      display: inline-block;
      max-width: 100%;
      padding: 8px 15px;
      margin: 0 8px 10px 0;
      border: 1px solid #b6c9d2;
      border-radius: 12px;
      background: #f8fbfd;
      color: #49616d;
      text-decoration: none;
      font-size: .92em;
      line-height: 1.65;
    }
    .ayata-article-related a:hover,
    .ayata-article-related a:focus {
      border-color: #879eaa;
      background: #eef6fa;
      color: #344f5d;
      text-decoration: none;
    }
    .ayata-reference-buttons {
      margin-top: 6px;
    }
    .ayata-reference-button {
      display: block;
      padding: 12px 16px;
      margin: 0 0 12px;
      border: 1px solid #9bb2bf;
      border-radius: 14px;
      background: rgba(255,255,255,0.7);
      color: #49616d;
      text-decoration: none !important;
      line-height: 1.7;
      transition: background-color 0.2s ease, border-color 0.2s ease;
    }
    .ayata-reference-button:hover,
    .ayata-reference-button:focus {
      background: rgba(255,255,255,0.95);
      border-color: #7f9ca9;
      color: #3f5560;
      text-decoration: none;
    }
    .ayata-consult-buttons { margin-top: 26px; }
    .ayata-consult-button { margin: 0 12px 12px 0; display: inline-block; }

    @media (max-width: 767px) {
      .ayata-detail-section { padding-top: 36px; padding-bottom: 34px; }
      .ayata-reference-title { font-size: 1.45em; margin-bottom: 20px; }
      .ayata-consult-button { display: block; margin-right: 0; }
    }

    /* 腰痛詳細ページのトップのみ：他ページと同じ高さ・白文字に統一 */
    #home.ayata-low-back-hero { min-height: 60vh; }
    #home.ayata-low-back-hero .sub-home h1 { color: #fff !important; }
    @media (max-width: 767px) {
      /* 横長バナーを中央で切ると人物が見えなくなるため、左端基準に変更 */
      #home.ayata-low-back-hero .ayata-low-back-hero-image {
        background-position: left center !important;
      }
    }
  

/* 腰痛ページh1：元HTMLのstyle属性から移動。 */
#home.ayata-low-back-hero .sub-home h1 {
  letter-spacing: 2pt;
  text-shadow: 0 0 10px #fcfcfc;
  margin: 20px 0;
}

/* 肩こりのタイトル画像：人物は画像右側。ナビが折りたたまれる幅から右寄せ表示。 */
@media (max-width: 1199px) {
  #home.ayata-low-back-hero .ayata-low-back-hero-image.ayata-card-visual--shoulder {
    background-image: url('../image/shoulder-banner.webp');
    background-size: cover;
    background-position: right center !important;
  }
}

/* 肩こりページのみ：タイトル画像の青緑色オーバーレイを薄い赤系グラデーションに変更。元画像は変更しない。 */
#home.ayata-shoulder-hero .overlay-2 {
  background: linear-gradient(120deg, #e2a3ba 0%, #e783a1 48%, #d9a0ba 100%);
  opacity: 0.20;
}

/* 症状別ページ共通：参考情報の下に表示する他の対応症状へのナビゲーション。 */
.ayata-other-symptoms { background-color: #f6f8fb; }
.ayata-other-symptoms .ayata-consult-buttons { margin-top: 24px; }
