/* ==========================================================
   さとう鍼灸院 — 共通スタイルシート
   ========================================================== */

/* ----------------------------------------------------------
   0. ユーティリティ
   ---------------------------------------------------------- */
.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }
.sp-br { display: block; }
@media (min-width: 768px) { .sp-br { display: none; } }

/* ----------------------------------------------------------
   1. CSS変数
   ---------------------------------------------------------- */
:root {
    /* ── メインカラー（緑・G2）── */
    /* 開発用スイッチャーで上書きされます */
    --primary-color: #00B900;

    /* ── アクセント（赤・R4）── */
    --accent-color: #8B4E3A;

    /* ── 共通 ── */
    --secondary-color: #C9A96E;
    --base-bg:         #FAF6F1;
    --white:           #FFFFFF;
    --border-color:    #EAD8C3;
    --text-main:       #333333;
    --text-sub:        #666666;

    /* ── フォント ── */
    --font-heading: 'Noto Serif JP', serif;
    --font-body:    'Noto Sans JP', sans-serif;
    --font-en:      'Lato', sans-serif;
}

/* ----------------------------------------------------------
   2. 緑カラー候補（スイッチャー用プリセット）
      JSで --accent-color を上書きする
      A: #6B8C6B  くすみグリーン（仕様書準拠・デフォルト）
      B: #5A7A5A  少し深め
      C: #7DA07D  明るめセージ
      D: #4E7C6E  青みがかったセージ
      E: #8FAF8F  ライトセージ
      F: #A0B89A  ペールグリーン
   ---------------------------------------------------------- */

/* ----------------------------------------------------------
   3. リセット & ベース
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--base-bg);
    line-height: 1.8;
    font-size: 15px;
    padding-bottom: 70px; /* 固定CTAバー分 */
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #111;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
ul, ol { list-style: none; }

/* ----------------------------------------------------------
   4. セクション共通
   ---------------------------------------------------------- */
section {
    padding: 28px 20px;
}

.section-bg-white { background-color: var(--white); }

/* セクション見出し */
.section-title {
    text-align: center;
    color: #111;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.section-title span {
    display: block;
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 3px;
    font-weight: normal;
}

/* ページタイトル（サブページ用）*/
.page-title {
    text-align: center;
    background: var(--white);
    padding: 20px 20px;
    border-bottom: 3px solid var(--accent-color);
    font-size: 1.6rem;
    color: #111;
}

/* ----------------------------------------------------------
   4-b. ヒーロースライダー
   ---------------------------------------------------------- */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

/* position: absolute + inset: 0 でグローバルの img { height: auto } を無効化 */
.hero-slide__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ドットインジケーター */
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.4s, transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.dot.is-active {
    background: var(--white);
    transform: scale(1.25);
}

/* ----------------------------------------------------------
   5. 画像プレースホルダー（開発用）
   ---------------------------------------------------------- */
.img-placeholder {
    background-color: #D6D1C7;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 15px;
    padding: 10px;
}

/* ----------------------------------------------------------
   6. ボタン
   ---------------------------------------------------------- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    min-height: 44px;
}

.btn:hover { opacity: 0.85; }

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-area {
    text-align: center;
    margin-top: 30px;
}

/* ----------------------------------------------------------
   7. ヘッダー
   ---------------------------------------------------------- */
header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    z-index: 200;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* ハンバーガー（SP用） */
.hamburger {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ナビゲーションバー */
.site-nav {
    background-color: var(--primary-color);
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.8rem;
    -webkit-overflow-scrolling: touch;
    font-weight: bold;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.site-nav::-webkit-scrollbar { display: none; }

/* PC：あふれた時だけ細いスクロールバーを表示 */
@media (min-width: 768px) {
    .site-nav { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.4) transparent; }
    .site-nav::-webkit-scrollbar { display: block; height: 3px; }
    .site-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.4); border-radius: 2px; }
    .site-nav::-webkit-scrollbar-track { background: transparent; }
}

.site-nav a {
    color: var(--white);
    padding: 10px 15px;
    display: inline-block;
    border-right: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.site-nav a:hover,
.site-nav a.active {
    background-color: rgba(0,0,0,0.15);
}

/* ドロワー（SP用）*/
.drawer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 190;
}

.drawer.is-open { display: block; }

.drawer__inner {
    position: absolute;
    right: 0;
    top: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    overflow-y: auto;
    padding-top: var(--header-h, 70px);
    padding-bottom: 40px;
}

.drawer__item > a {
    display: block;
    padding: 13px 24px;
    font-size: 0.95rem;
    font-weight: bold;
    border-bottom: 1px solid var(--base-bg);
    color: var(--text-main);
}

.drawer__item > a:hover { background: var(--base-bg); }

.drawer__search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--base-bg);
}

.drawer__sub a {
    display: block;
    padding: 9px 24px 9px 38px;
    font-size: 0.85rem;
    color: var(--text-sub);
    border-bottom: 1px solid var(--border-color);
    background: #F7F3EE;
}

/* PC: ナビ（768px以上） */
@media (min-width: 768px) {
    .hamburger { display: none; }
    .drawer:not(.is-open) { display: none; }

    .site-nav {
        font-size: 0.85rem;
    }

    .site-nav a { padding: 12px 18px; }
}

/* 十分な幅がある時だけ中央揃え */
@media (min-width: 1100px) {
    .site-nav { justify-content: center; }
}

/* ----------------------------------------------------------
   8. フッター
   ---------------------------------------------------------- */
.site-footer {
    background: #2A2420;
    color: #B0A898;
    padding: 45px 20px 30px;
    font-size: 0.85rem;
}

.footer-navs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px 20px;
    max-width: 960px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-address { line-height: 2.2; }
.footer-address a { color: inherit; text-decoration: underline; }

.footer-nav-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: var(--font-en);
}

.footer-nav-list li { margin-bottom: 6px; }
.footer-nav-list a { color: #B0A898; transition: color 0.2s; }
.footer-nav-list a:hover { color: var(--white); }

.footer-copy {
    text-align: center;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid #3D3530;
    font-size: 0.75rem;
    color: #7A7067;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 2fr; }
    .footer-navs { grid-template-columns: 1fr 1fr; gap: 0 32px; }
}

/* ----------------------------------------------------------
   9. 固定CTAバー（SP下部）
   ---------------------------------------------------------- */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 180;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.12);
}

.cta-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--white);
    border-right: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-height: 56px;
    justify-content: center;
    transition: opacity 0.2s;
}

.cta-btn:hover { opacity: 0.85; }
.cta-btn:last-child { border-right: none; }
.cta-tel  { background-color: var(--primary-color); }
.cta-web  { background-color: var(--accent-color); }
.cta-line { background-color: #06C755; }

.cta-icon { font-size: 1.1rem; line-height: 1; }

@media (min-width: 768px) {
    .fixed-cta { display: none; }
}

/* ----------------------------------------------------------
   10. 共通カード・パーツ
   ---------------------------------------------------------- */

/* 特徴カード：スマホ横スクロール */
.features-pc {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.features-pc::-webkit-scrollbar { display: none; }
.features-pc .feature-card {
    flex: 0 0 78vw;
    max-width: 300px;
    margin-bottom: 0;
}

/* 特徴カード */
.feature-card {
    background: var(--white);
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    border-top: 4px solid var(--accent-color);
    overflow: hidden;
}

.feature-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.feature-card__body {
    padding: 16px 20px 20px;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p  { font-size: 0.9rem; color: var(--text-main); }

/* お悩みリスト */
.worry-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.worry-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.worry-item::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    flex-shrink: 0;
}

/* STEPフロー */
.flow-step {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 8px 15px;
    margin-bottom: 20px;
    align-items: start;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.step-num  { grid-column: 1; grid-row: 1; }
.step-content { grid-column: 2; grid-row: 1; }

.step-num {
    background-color: var(--accent-color);
    color: var(--white);
    font-family: var(--font-en);
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.step-content h3 { font-size: 1.05rem; margin-bottom: 5px; color: var(--text-main); }
.step-content p  { font-size: 0.9rem; }

/* 患者様の声：スマホ横スクロール */
.voices-pc {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.voices-pc::-webkit-scrollbar { display: none; }
.voices-pc .voice-card {
    flex: 0 0 78vw;
    max-width: 300px;
    margin-bottom: 0;
}

/* 患者様の声カード */
.voice-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.voice-card p { font-size: 0.9rem; margin-bottom: 12px; }

.voice-card__body {
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.8;
}
.voice-card__body p { margin-bottom: 8px; }
.voice-card__body strong {
    color: var(--accent-color);
    font-weight: bold;
}

.voice-card__meta {
    font-size: 0.78rem;
    color: var(--text-sub);
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.voice-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.voice-profile {
    font-size: 0.75rem;
    color: var(--text-sub);
    margin-left: auto;
}

/* 料金テーブル */
table.fee-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.85rem;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

table.fee-table th {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: left;
    padding: 10px;
    font-family: var(--font-heading);
}

table.fee-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

table.fee-table tr:last-child td { border-bottom: none; }
/* プロフィール */
.profile-header-pc { text-align: center; }
.profile-left-col { display: flex; flex-direction: column; align-items: center; }

/* スマホ：サムネスライダー非表示（顔写真タップでポップアップ） */
.staff-slider { display: none; }

.profile-img-main {
    width: 160px;
    height: 200px;
    border-radius: 6px;
    margin: 0 auto 15px;
    overflow: hidden;
    object-fit: cover;
    object-position: center 10%;
    border: 4px solid var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-list {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-top: 4px solid var(--accent-color);
}

.info-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--base-bg);
    padding-bottom: 10px;
}

.info-list li:last-child { margin-bottom: 0; border-bottom: none; }

.info-ttl {
    font-weight: bold;
    color: var(--accent-color);
    flex-shrink: 0;
    width: 60px;
    padding-top: 1px;
}

/* CMSカード（症状一覧・ブログ）*/
.cms-card {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
}

/* 固定メニューボタン */
#menuFab {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 1100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: background 0.2s;
}
#menuFab:hover {
    background: color-mix(in srgb, var(--primary-color) 85%, black);
}
.menu-fab__line {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* 院長ダイジェスト スマホ */
.staff-digest-pc__img {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    margin: 0 auto 16px;
}

/* 症状カテゴリー一覧 */
.symptom-categories {
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.symptom-category__name {
    font-size: 1.05rem;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    margin-bottom: 14px;
}
.symptom-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.symptom-list__item {
    font-size: 0.88rem;
}
.symptom-list__item span {
    display: inline-block;
    padding: 5px 12px;
    background: #F5F0EA;
    border-radius: 20px;
    color: var(--text-main);
}
.symptom-link {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.symptom-link:hover {
    opacity: 0.8;
}

/* microCMS リッチエディタ本文 */
.cms-body p {
    margin-bottom: 1.6em;
}
.cms-body h2 {
    font-size: 1.5rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.cms-body h3 {
    font-size: 1.25rem;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}
.cms-body ul,
.cms-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.6em;
}
.cms-body li {
    margin-bottom: 0.4em;
}
.cms-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.2em 0;
}

.cms-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.cms-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.cms-excerpt {
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----------------------------------------------------------
   11-a. 料金カード
   ---------------------------------------------------------- */
.fee-card {
    background: var(--white);
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
}

.fee-card--funin { border-left-color: var(--accent-color); }

.fee-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.fee-badge {
    font-size: 0.68rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--white);
}

.fee-badge--pickup { background: var(--secondary-color); }
.fee-badge--funin  { background: var(--accent-color); }

.fee-tag {
    font-size: 0.75rem;
    color: var(--text-sub);
    background: var(--base-bg);
    padding: 2px 8px;
    border-radius: 4px;
}

.fee-time-tag {
    font-size: 0.75rem;
    font-family: var(--font-en);
    color: var(--text-sub);
    margin-left: auto;
}

.fee-card__title {
    font-size: 1rem;
    color: #111;
    margin-bottom: 6px;
}

.fee-card--funin .fee-card__title { color: #111; }

.fee-card__desc {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.75;
    margin-bottom: 12px;
}

.fee-card__price {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: bold;
    color: #111;
    text-align: right;
}

.fee-card--funin .fee-card__price { color: #111; }

.fee-card__note {
    font-size: 0.75rem;
    color: var(--text-sub);
    text-align: right;
    margin-bottom: 2px;
}

.fee-card__price span {
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: normal;
    margin-left: 2px;
}

@media (min-width: 768px) {
    .section-inner > .fee-cards-pc {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .fee-card { margin-bottom: 0; }
}

/* ----------------------------------------------------------
   11. 施術メニューカード（トップ専用）
   ---------------------------------------------------------- */
.menu-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.menu-grid::-webkit-scrollbar { display: none; }
.menu-grid .menu-card {
    flex: 0 0 72vw;
    max-width: 280px;
}

.menu-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s;
}

.menu-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.menu-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.menu-card .img-placeholder {
    margin-bottom: 0;
    border-radius: 0;
    aspect-ratio: 4 / 3;
}

.menu-card__body {
    padding: 14px;
}

.menu-card__title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.menu-card__text {
    font-size: 0.8rem;
    color: var(--text-sub);
}

@media (min-width: 768px) {
    .menu-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
    }
    .menu-grid .menu-card { flex: none; max-width: none; }
    .worry-list { grid-template-columns: repeat(3, 1fr); }
}

/* ----------------------------------------------------------
   11b. 院内ギャラリー
   ---------------------------------------------------------- */
.clinic-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.clinic-gallery::-webkit-scrollbar { display: none; }
.clinic-gallery__img {
    flex-shrink: 0;
    width: 75vw;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .clinic-gallery {
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow-x: visible;
        scroll-snap-type: none;
    }
    .clinic-gallery__img {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   12. 診療時間テーブル
   ---------------------------------------------------------- */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.85rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.hours-table th {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 12px;
    text-align: left;
}

.hours-table td { padding: 9px 12px; border-bottom: 1px solid var(--border-color); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .closed { color: var(--text-sub); }

/* ----------------------------------------------------------
   14. 開発用カラースイッチャー
   ---------------------------------------------------------- */
.color-switcher {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background: rgba(30, 25, 20, 0.93);
    color: var(--white);
    border-radius: 0 12px 12px 0;
    padding: 12px 10px;
    font-size: 0.7rem;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    width: 120px;
}

.color-switcher.is-collapsed {
    transform: translateY(-50%) translateX(calc(-100% + 28px));
}

.color-switcher__toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--secondary-color);
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.color-switcher__dev {
    display: block;
    text-align: center;
    background: #E63946;
    color: var(--white);
    font-size: 0.55rem;
    padding: 1px 6px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

.color-switcher__label {
    font-size: 0.6rem;
    color: #AAA;
    text-align: center;
    margin-bottom: 6px;
}

/* パターン切り替えボタン（赤 / 緑）*/
.pattern-btns {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.pattern-btn {
    flex: 1;
    padding: 5px 0;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: bold;
    text-align: center;
    transition: border-color 0.15s;
    color: var(--white);
}

.pattern-btn--red   { background: #8B3A3A; }
.pattern-btn--green { background: #6B8C6B; }
.pattern-btn.is-active { border-color: var(--white); }

.color-switcher__shade-label {
    font-size: 0.55rem;
    color: #AAA;
    text-align: center;
    margin-bottom: 4px;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    margin: 2px;
    border: 2px solid transparent;
    transition: transform 0.15s;
    vertical-align: middle;
}

.color-swatch:hover { transform: scale(1.2); }
.color-swatch.is-active { border-color: var(--white); }

.color-swatches-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

/* ==========================================================
   15. PCレイアウト（768px以上）
   ========================================================== */
@media (min-width: 768px) {

    /* ── コンテンツ幅制限 ── */
    body { padding-bottom: 0; }

    .pc-wrap {
        max-width: 960px;
        margin: 0 auto;
        padding: 0 40px;
    }

    section {
        padding: 40px 0;
    }

    /* section直下の要素を最大幅960pxで中央寄せ
       paddingは各要素クラスが個別管理（ここでは付与しない） */
    section > *:not(.pc-full) {
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }

    section { padding-left: 0; padding-right: 0; }

    /* ── ヘッダー：ロゴ左・ナビ中央・電話+予約ボタン右 ── */
    .header-top {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding: 0 24px;
        height: 60px;
    }

    .logo { font-size: 1.25rem; }

    /* PCではハンバーガー非表示・予約ボタン右端に配置 */
    .header-phone {
        display: flex;
        align-items: center;
        gap: 16px;
        grid-column: 3;   /* 3列目（右端）に固定 */
        justify-self: end;
    }

    .header-phone__tel {
        font-family: var(--font-en);
        font-size: 1rem;
        font-weight: bold;
        color: var(--text-main);
        line-height: 1.3;
    }

    .header-phone__tel small {
        display: block;
        font-size: 0.6rem;
        font-weight: normal;
        font-family: var(--font-body);
        color: var(--text-sub);
    }

    .header-phone__btn {
        display: inline-block;
        background: var(--primary-color);
        color: var(--white);
        padding: 8px 18px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: bold;
        white-space: nowrap;
        transition: opacity 0.2s;
    }

    .header-phone__btn:hover { opacity: 0.85; }

    /* ナビバー：文字大きめ */
    .site-nav {
        overflow-x: auto;
    }

    .site-nav a {
        padding: 11px 14px;
        font-size: 0.82rem;
    }

    /* section > * の max-width:960px を上書きするため .hero .hero-copy で指定 */
    .hero .hero-copy {
        max-width: 400px;
        width: auto;
    }
    .hero .hero-copy__slide { padding: 20px 28px; }
    .hero .hero-copy h1 { font-size: 1.3rem; }
    .hero .hero-copy p  { font-size: 0.9rem; }

    /* ── 特徴カード：3列 ── */
    .features-pc {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 40px;
        overflow-x: visible;
    }

    .features-pc .feature-card { flex: none; max-width: none; margin-bottom: 0; }

    /* ── 患者様の声：3列 ── */
    .voices-pc {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 40px;
        overflow-x: visible;
    }

    .voices-pc .voice-card {
        flex: none;
        max-width: none;
        margin-bottom: 0;
    }

    /* ── 院長ダイジェスト：横並び強化 ── */
    .staff-digest-pc__img {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
        object-position: center 25%;
        overflow: hidden;
    }

    .staff-digest-pc {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 20px;
        align-items: start;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 40px;
        background: var(--white);
        border-radius: 8px;
        border-top: 4px solid var(--accent-color);
    }

    /* ── アクセス：2カラム ── */
    .access-grid-pc {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 40px;
    }

    /* ── お悩みリスト：4列 ── */
    .worry-list { grid-template-columns: repeat(4, 1fr); }

    /* ── CMSカード（症状・ブログ）：2列 ── */
    .cms-grid-pc {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .cms-grid-pc .cms-card { margin-bottom: 0; }

    /* ── section内の直接テキスト・要素のセンタリング ── */
    .section-inner {
        max-width: 960px;
        margin: 0 auto;
        padding: 0 40px;
    }

    /* ── section直下のsection-title（h2）にPC横余白
       section-inner内のsection-titleには適用しない ── */
    section > .section-title { padding-left: 40px; padding-right: 40px; }

    /* ── page-title ── */
    .page-title { font-size: 2rem; padding: 50px 40px; }

    /* ── フォーム（お問い合わせ）── */
    .contact-form-pc {
        max-width: 640px;
        margin: 0 auto;
    }

    /* ── プロフィールヘッダー ── */
    .profile-header-pc {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 30px;
        align-items: start;
        max-width: 960px;
        margin: 0 auto 30px;
        padding: 0 40px;
        text-align: left;
    }

    .profile-header-pc .profile-img-main {
        width: 200px;
        height: 260px;
        margin: 0;
        object-position: center 10%;
    }

    /* PC：スライダー（プロフィール下・フル幅） */
    .staff-slider { display: block; position: relative; margin-top: 20px; }
    .staff-slider__track { display: block; overflow: hidden; border-radius: 4px; }
    .staff-slide-img {
        display: none;
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        object-fit: cover;
        border-radius: 4px;
    }
    .staff-slide-img.is-active { display: block; }

    .staff-slider__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-60%);
        background: rgba(0,0,0,0.45);
        color: #fff;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 1.6rem;
        cursor: pointer;
        z-index: 1;
        line-height: 1;
        padding: 0;
    }
    .staff-slider__prev { left: 12px; }
    .staff-slider__next { right: 12px; }
    .staff-slider__btn:hover { background: rgba(0,0,0,0.7); }

    .staff-slider__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }
    .staff-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--border-color);
        cursor: pointer;
    }
    .staff-dot.is-active { background: var(--accent-color); }

    /* ── SNSボタン ── */
    .sns-row { gap: 20px; }

    /* ── ニュース ── */
    .news-inner {
        max-width: 960px;
        margin: 0 auto;
        padding: 14px 40px;
    }

    /* ── section-inner 内のグリッド・専用コンテナは自身のpaddingを無効化
       （section-innerが既にpadding 40pxを持つため二重にならないよう）── */
    .section-inner > .cms-grid-pc,
    .section-inner > .voices-pc,
    .section-inner > .access-grid-pc,
    .section-inner > .worry-list,
    .section-inner > .menu-grid,
    .section-inner > .features-pc,
    .section-inner > .profile-header-pc {
        padding: 0;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    /* ── profile-header-pc: PCでは左揃えグリッド ── */
    .profile-header-pc { text-align: left; }
    .profile-left-col { width: 200px; align-items: flex-start; }

}

/* ==========================================================
   ヒーロー・ページ固有スタイル（旧index.html inline styles）
   ========================================================== */
/* SP */
.hero {
    background-color: #E8E2D9;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* PC: 画面幅に合わせて16:9、最大1080px */
@media (min-width: 768px) {
    .hero {
        height: 75vh;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw) !important;
        margin-right: 0 !important;
        left: 0;
        transform: none;
    }
}
.hero-copy {
    position: relative;
    z-index: 10;
    max-width: 280px;
    width: calc(100% - 60px);
    text-align: center;
    display: grid;
}
.hero-copy h1 { font-size: 1.05rem; margin-bottom: 5px; color: var(--primary-color); }
.hero-copy p  { font-size: 0.85rem; color: var(--text-main); }
.hero-copy__slide {
    grid-area: 1 / 1;
    align-self: start;
    background: rgba(255,255,255,0.85);
    padding: 10px 12px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}
.hero-copy__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; padding: 18px 20px; background: var(--white); flex-wrap: wrap; }
@media (max-width: 767px) {
    .hero-btns { display: grid; grid-template-columns: 1fr 1fr; }
    .hero-btns .btn:first-child { grid-column: 1 / -1; justify-self: center; }
    .hero-btns .btn { padding: 9px 20px; font-size: 0.85rem; }
}
.news-wrap { background: var(--white); border-bottom: 1px solid var(--border-color); }
.news-inner { display: flex; gap: 12px; padding: 14px 20px; align-items: flex-start; max-width: 960px; margin: 0 auto; }
.news-label { background: var(--primary-color); color: var(--white); font-size: 0.7rem; font-weight: bold; padding: 3px 10px; border-radius: 4px; white-space: nowrap; margin-top: 2px; flex-shrink: 0; }
.news-list { flex: 1; }
.news-item { display: flex; gap: 12px; font-size: 0.85rem; padding: 4px 0; border-bottom: 1px dotted var(--border-color); }
.news-item:last-child { border-bottom: none; }
.news-date { font-family: var(--font-en); color: var(--text-sub); font-size: 0.8rem; flex-shrink: 0; }
.news-more { display: block; text-align: right; font-size: 0.8rem; color: var(--primary-color); margin-top: 6px; }
/* スマホ：h3を左、画像を右上、本文は2列フル幅 */
.message-box {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 80px;
    grid-template-rows: auto auto;
    gap: 10px 12px;
    align-items: start;
}
.message-box__img {
    grid-column: 2;
    grid-row: 1;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    object-position: center 25%;
}
.message-box__ttl {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    align-self: center;
}
.message-box__text {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: 0.9rem;
    line-height: 2;
    margin: 0;
}
.message-box strong { color: var(--primary-color); font-weight: 700; }

@media (min-width: 768px) {
    /* PC：画像を左列2行span、h3＋本文を右列に縦並び */
    .message-box {
        grid-template-columns: 160px 1fr;
        grid-template-rows: auto auto;
        gap: 8px 24px;
        padding: 24px;
        align-items: start;
    }
    .message-box__img {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 160px;
        height: 200px;
        align-self: start;
    }
    .message-box__ttl {
        grid-column: 2;
        grid-row: 1;
        font-size: 1.1rem;
    }
    .message-box__text {
        grid-column: 2;
        grid-row: 2;
    }
}
.intro-visuals { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 15px; }
.sns-row { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.sns-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 30px; font-weight: bold; font-size: 0.85rem; transition: opacity 0.2s; }
.sns-btn:hover { opacity: 0.85; }
.sns-btn-instagram { background: #E1306C; color: var(--white); }
.sns-btn-line      { background: #06C755; color: var(--white); }
.profile-name { font-size: 1.4rem; margin-bottom: 4px; color: var(--primary-color); }

@media (min-width: 768px) {
    .intro-visuals { grid-template-columns: repeat(2, 1fr); }
    .hero .hero-copy { max-width: 400px; width: auto; }
    .hero .hero-copy__slide { padding: 20px 28px; }
    .hero .hero-copy h1 { font-size: 1.3rem; }
    .hero .hero-copy p  { font-size: 0.9rem; }
}

.flow-img {
    grid-column: 1 / 3;
    grid-row: 2;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
@media (min-width: 768px) {
    .flow-img { width: 60%; margin: 0 auto; }
}

/* ----------------------------------------------------------
   Pagefind 検索セクション
   ---------------------------------------------------------- */
.search-dev-notice {
    font-size: 0.82rem;
    color: var(--text-sub);
    text-align: center;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* Pagefind UI テーマ上書き */
#site-search {
    --pagefind-ui-scale: 0.9;
    --pagefind-ui-primary: var(--primary-color);
    --pagefind-ui-text: var(--text-main);
    --pagefind-ui-background: var(--white);
    --pagefind-ui-border: var(--border-color);
    --pagefind-ui-tag: var(--base-bg);
    --pagefind-ui-border-width: 1px;
    --pagefind-ui-border-radius: 6px;
    --pagefind-ui-font: var(--font-body);
}

/* ── 声カード：手書き画像サムネイル ── */
.voice-card__img-btn {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 0;
    border: none;
    background: none;
    border-radius: 4px;
    overflow: hidden;
    cursor: zoom-in;
}
.voice-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.2s;
    display: block;
}
.voice-card__img-btn:hover .voice-card__img { opacity: 0.85; }

/* ── 声カード：手書きテキストリンク ── */
.voice-card__img-link {
    display: inline-block;
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.voice-card__img-link:hover { opacity: 0.75; }

/* ── スタッフ写真ポップアップ ── */
.staff-slide-img { cursor: pointer; }

.staff-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 700;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.staff-popup.is-open { display: flex; }

.staff-popup__img-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 60px;
}
.staff-popup__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.staff-popup__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    z-index: 1;
}
.staff-popup__btn:hover { background: rgba(255,255,255,0.35); }
.staff-popup__prev { left: 12px; }
.staff-popup__next { right: 12px; }

.staff-popup__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.85;
}
.staff-popup__close:hover { opacity: 1; }

.staff-popup__caption {
    color: #fff;
    font-size: 0.88rem;
    text-align: center;
    margin-top: 12px;
    line-height: 1.6;
    width: 100%;
}

.staff-popup__dots {
    position: absolute;
    bottom: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.staff-popup__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
}
.staff-popup__dot.is-active { background: #fff; }

/* ── ライトボックス ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 600;
    align-items: center;
    justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.lightbox__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.85;
}
.lightbox__close:hover { opacity: 1; }

/* ── Q&A ── */
.qa-item {
    background: var(--white);
    border-radius: 6px;
    padding: 20px;
    border: 1px solid var(--border-color);
}
.qa-q, .qa-a {
    display: flex;
    gap: 12px;
    font-size: 0.92rem;
    line-height: 1.8;
}
.qa-q { font-weight: bold; margin-bottom: 10px; }
.qa-label {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: 2px;
}
.qa-label--q { background: var(--accent-color); color: #fff; }
.qa-label--a { background: var(--secondary-color); color: #fff; }

/* ── 妊活ページ：コンテンツ中央寄せ（PC） ── */
@media (min-width: 768px) {
    .funin-content-wrap {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── 院長あいさつ ── */
.staff-message {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 20px;
    max-width: 640px;
    margin: 0 auto;
}
.staff-message p {
    font-size: 0.9rem;
    line-height: 2;
    margin-bottom: 1.8em;
}
.staff-message p:last-child { margin-bottom: 0; }
.staff-message strong { color: var(--accent-color); font-weight: 700; }
/* ── スケジュールステップ ── */
.schedule-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 8px;
}
.schedule-step {
    position: relative;
    padding: 14px 16px 14px 20px;
    border-left: 2px solid var(--accent-color);
    margin-left: 8px;
    margin-bottom: 0;
}
.schedule-step::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
}
.schedule-step:last-child {
    border-left: 2px solid transparent;
}
.schedule-step__label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 4px;
}
.schedule-step p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-main);
    margin: 0;
}

/* ── お知らせ：ボタン化 ── */
.news-item--btn {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    padding: 6px 0;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    font-family: inherit;
}
.news-item--btn:hover .news-item__title { text-decoration: underline; color: var(--accent-color); }
.news-item__title { font-size: 0.88rem; color: var(--text-main); flex: 1; }
.news-item__arrow { font-size: 1rem; color: var(--text-sub); flex-shrink: 0; }

/* ── お知らせポップアップ ── */
.news-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 600;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.news-modal.is-open { display: flex; }
.news-modal__box {
    background: var(--white);
    border-radius: 8px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.news-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-sub);
    padding: 0 4px;
}
.news-modal__close:hover { color: var(--text-main); }
.news-modal__tag {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 6px;
}
.news-modal__title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.6;
}

/* ── リッチテキスト共通スタイル ── */
.news-rich-body { font-size: 0.9rem; line-height: 1.9; }
.news-rich-body p { margin-bottom: 10px; }
.news-rich-body strong { color: var(--accent-color); font-weight: bold; }
.news-rich-body ul, .news-rich-body ol { padding-left: 1.4em; margin-bottom: 10px; }
.news-rich-body li { margin-bottom: 4px; }

/* ========================================================
   問診票フォーム
   ======================================================== */
.qform-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.qform-tab {
    flex: 1;
    padding: 10px 8px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--text-sub);
    transition: border-color 0.2s, color 0.2s;
}
.qform-tab.is-active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: bold;
}
.qform-panel { display: none; }
.qform-panel.is-active { display: block; }
.qform-panel .section-inner { padding: 0 16px; }

.qform-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
.qform-section:last-of-type { border-bottom: none; }
.qform-section__title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #111;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #fdf5f5;
    border-left: 3px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
    line-height: 1.5;
}
.qform-row { margin-bottom: 14px; }
.qform-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 6px;
    line-height: 1.5;
}
.qform-sublabel {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-main);
    margin: 16px 0 8px;
}
.qform-input, .qform-textarea, .qform-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    background: var(--white);
    color: var(--text-main);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.qform-input:focus, .qform-textarea:focus, .qform-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(107,140,107,0.15);
}
.qform-textarea { resize: vertical; min-height: 90px; }
.qform-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.qform-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.qform-radio-group, .qform-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.qform-radio-group label, .qform-check-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--text-main);
}
.qform-radio-group input[type="radio"],
.qform-check-group input[type="checkbox"] {
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.qform-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.qform-inline-unit {
    font-size: 0.85rem;
    color: var(--text-sub);
    white-space: nowrap;
}
.qform-note {
    font-size: 0.82rem;
    color: var(--text-sub);
    margin-top: 4px;
}
.qform-notice {
    font-size: 0.85rem;
    color: var(--text-sub);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 14px;
    line-height: 1.9;
    margin-bottom: 20px;
}
.qform-family-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.qform-family-item {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--white);
}
.qform-family-item__name {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-main);
}
.qform-submit-area {
    text-align: center;
    padding: 28px 0 8px;
}
.qform-submit-area .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.qform-preparing {
    font-size: 0.82rem;
    color: var(--text-sub);
    margin-top: 10px;
}
@media (min-width: 768px) {
    .qform-grid-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .qform-grid-3 { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
    .qform-family-grid { grid-template-columns: 1fr 1fr 1fr; }
    .qform-tab { font-size: 0.92rem; padding: 12px; }
}

/* ========================================================
   問診票 印刷スタイル（A4縦）
   ======================================================== */

/* 通常時は印刷用ヘッダーを非表示 */
.qform-print-header { display: none; }

/* ボタン横並び */
.qform-submit-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 14mm 16mm;
    }

    /* ── 非表示：サイト共通UI ── */
    header, footer, nav,
    .fab, .fab-overlay,
    .drawer, .hamburger,
    .qform-tabs,
    .qform-submit-area,
    .qform-notice,
    .page-title { display: none !important; }

    /* 非アクティブパネルを隠し、アクティブだけ表示 */
    .qform-panel { display: none !important; }
    .qform-panel.is-active { display: block !important; }

    /* ── ベース ── */
    *, *::before, *::after { box-sizing: border-box; }
    body {
        font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
        font-size: 9pt;
        color: #000;
        background: #fff;
        padding: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    section { padding: 0 !important; }
    .qform-panel .section-inner { padding: 0 !important; }

    /* ── 印刷ヘッダー ── */
    .qform-print-header {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-end;
        border-bottom: 2pt solid #000;
        padding-bottom: 6pt;
        margin-bottom: 10pt;
    }
    .qform-print-clinic {
        font-size: 9pt;
        color: #333;
    }
    .qform-print-title {
        font-size: 15pt;
        font-weight: bold;
        color: #000;
        text-align: center;
        flex: 1;
    }
    .qform-print-date {
        font-size: 9pt;
        color: #333;
        white-space: nowrap;
    }

    /* ── セクション ── */
    .qform-section {
        margin-bottom: 8pt;
        padding-bottom: 0;
        border-bottom: none;
        break-inside: avoid;
    }
    .qform-section__title {
        font-size: 9pt;
        font-weight: bold;
        color: #000;
        background: #e8e8e8;
        border-left: none;
        padding: 3pt 6pt;
        margin-bottom: 6pt;
        border-radius: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ── 行・ラベル ── */
    .qform-row { margin-bottom: 5pt; }
    .qform-label {
        font-size: 8pt;
        color: #333;
        margin-bottom: 2pt;
        display: block;
    }
    .qform-sublabel {
        font-size: 8.5pt;
        font-weight: bold;
        color: #000;
        margin: 6pt 0 3pt;
        border-bottom: 0.5pt solid #999;
        padding-bottom: 2pt;
    }
    .qform-note { font-size: 7pt; color: #555; }
    .qform-inline-unit { font-size: 8pt; color: #333; }

    /* ── テキスト入力：下線のみ ── */
    .qform-input {
        -webkit-appearance: none;
        appearance: none;
        border: none !important;
        border-bottom: 0.75pt solid #333 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 1pt 2pt !important;
        font-size: 8.5pt;
        color: #000;
        min-height: 14pt;
        height: 14pt;
    }
    .qform-select {
        -webkit-appearance: none;
        appearance: none;
        border: none !important;
        border-bottom: 0.75pt solid #333 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 1pt 2pt !important;
        font-size: 8.5pt;
    }
    .qform-textarea {
        -webkit-appearance: none;
        appearance: none;
        border: 0.75pt solid #555 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 3pt !important;
        font-size: 8.5pt;
        min-height: 36pt;
        resize: none;
        width: 100%;
    }

    /* ── ラジオボタン：空の○ ── */
    .qform input[type="radio"] {
        -webkit-appearance: none;
        appearance: none;
        width: 9pt;
        height: 9pt;
        border: 0.75pt solid #333;
        border-radius: 50%;
        background: #fff;
        flex-shrink: 0;
        margin: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ── チェックボックス：空の□ ── */
    .qform input[type="checkbox"] {
        -webkit-appearance: none;
        appearance: none;
        width: 9pt;
        height: 9pt;
        border: 0.75pt solid #333;
        border-radius: 0;
        background: #fff;
        flex-shrink: 0;
        margin: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ── ラジオ・チェックグループ ── */
    .qform-radio-group, .qform-check-group {
        gap: 2pt 10pt;
        flex-wrap: wrap;
    }
    .qform-radio-group label,
    .qform-check-group label {
        font-size: 8pt;
        gap: 3pt;
        align-items: center;
    }

    /* ── インライン ── */
    .qform-inline {
        gap: 4pt;
        flex-wrap: wrap;
        align-items: center;
    }

    /* ── グリッド：常に複数列 ── */
    .qform-grid-2 { grid-template-columns: 1fr 1fr !important; gap: 6pt !important; }
    .qform-grid-3 { grid-template-columns: 1fr 1fr 1fr !important; gap: 5pt !important; }
    .qform-family-grid { grid-template-columns: 1fr 1fr 1fr !important; gap: 5pt !important; }

    /* ── 家族カード ── */
    .qform-family-item {
        padding: 3pt 5pt;
        border: 0.5pt solid #aaa;
        border-radius: 0;
        break-inside: avoid;
        background: #fff;
    }
    .qform-family-item__name {
        font-size: 7.5pt;
        font-weight: bold;
        margin-bottom: 3pt;
    }
}
