@charset "UTF-8";
/* =========================================================
   はるやま眼科 - 子テーマ統合スタイル v3.1

   構成:
     1. 受付ステータスバー + 院情報テーブル
     2. ライトボックス（地図拡大）
     3. フッター前: 地図 + バナー
     4. フッター内テキストナビ
     5. サイトマップページ
     6. モバイル下部固定アクションバー
     7. ヒーロースライダー
     8. レスポンシブ（768 → 480 → 599 の順で適用）

   v3.1 変更点（2026/09/23）:
     - 重複定義を統合（#hrs-bar / #hrs-bar-top / .hrs-msg /
       .hrs-dot / #hd_slider、および同一ブレークポイントの @media）
     - セクション順を整理。適用結果は v3.0 と同一
   ========================================================= */


/* ==========================================================
   1. 受付ステータスバー + 院情報テーブル
   ========================================================== */

/* ★ 統一フォントサイズ（高齢者の視認性配慮／全画面幅で共通、モバイルで縮小させない）
   ここだけ変更すれば全体に反映 */
#hrs{
    --hrs-fs-tel:22px;      /* 電話番号 */
    --hrs-fs-label:18px;    /* 午前／午後 ラベル */
    --hrs-fs-val:24px;      /* 受付時間の数字（9:30〜12:30 等） */
    --hrs-fs-th:16px;       /* 情報テーブルの項目名（電話番号／受付時間 等の見出し） */
    --hrs-fs-td:17px;       /* 情報テーブルの本文 */
    --hrs-fs-closed:16px;   /* 休診日 */
    --hrs-fs-tag:16px;      /* お悩み・症状タグ／診療タグ */
    --hrs-fs-btn:16px;      /* 予約が必要な検査 等のボタン文字 */
    --hrs-fs-note:15px;     /* ※ 注釈 */
    margin:0 auto 0!important;padding:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;position:relative!important;z-index:10!important;background:#fff!important
}
#hrs *{box-sizing:border-box}

/* hrs直後のコンテンツエリアの余白を詰める */
#hrs + .content-wrap,
#hrs ~ .content-wrap,
.dp-container > .content-wrap:first-of-type{margin-top:0!important;padding-top:0!important}
.widget-container.top:has(#hrs-marker),.widget-container.top:empty{display:none!important}
.widget-container.top{min-height:0!important;height:auto!important;padding:0!important;margin:0!important}

/* --- ステータスバー --- */
#hrs-bar{
    background:linear-gradient(135deg,#eaf7f9 0%,#d6f1f5 100%);
    padding:32px 40px 24px;
    text-align:center;
    margin-bottom:0;
    white-space:normal!important;
}
#hrs-bar-top{
    display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
    align-items:center!important;justify-content:center!important;width:100%!important;
    font-size:17px;color:#444;letter-spacing:.02em;
}

/* --- 状態メッセージ --- */
.hrs-msg{display:none!important;align-items:center;gap:8px}
.hrs-msg.active{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex-wrap:wrap!important;text-align:center!important;
    flex-shrink:1;min-width:0;line-height:1.4!important;
}
.hrs-msg.active .hrs-dot{display:inline-block!important;flex-shrink:0!important;margin-right:4px!important}
.hrs-st{font-size:32px;margin:0 3px;color:#1b7a3a}
.hrs-c-gray{color:#7f8c8d}
.hrs-c-blue{color:#397595}
.hrs-c-red{color:#e74c3c}

/* --- ドット（色は下の「状態別カラー」で上書き） --- */
.hrs-dot{
    display:inline-block;width:10px;height:10px;border-radius:50%;
    vertical-align:middle;margin-right:6px;flex-shrink:0;
}
.hrs-green{background:#1b7a3a;box-shadow:0 0 10px rgba(27,122,58,.5)}
.hrs-yellow{background:#f1c40f}
.hrs-gray{background:#95a5a6}
.hrs-blue{background:#3498db}
.hrs-red{background:#e74c3c;box-shadow:0 0 8px rgba(231,76,60,.35)}

/* --- 波紋アニメーション --- */
@keyframes ripple-green{
    0%{box-shadow:0 0 0 0 rgba(27,122,58,.55)}
    14%{box-shadow:0 0 0 5px rgba(27,122,58,.25)}
    28%{box-shadow:0 0 0 8px rgba(27,122,58,0)}
    40%{box-shadow:0 0 0 0 rgba(27,122,58,.35)}
    54%{box-shadow:0 0 0 4px rgba(27,122,58,.12)}
    68%{box-shadow:0 0 0 6px rgba(27,122,58,0)}
    100%{box-shadow:0 0 0 0 rgba(27,122,58,0)}
}
@keyframes ripple-orange{
    0%{box-shadow:0 0 0 0 rgba(255,152,0,.55)}
    14%{box-shadow:0 0 0 5px rgba(255,152,0,.25)}
    28%{box-shadow:0 0 0 8px rgba(255,152,0,0)}
    40%{box-shadow:0 0 0 0 rgba(255,152,0,.35)}
    54%{box-shadow:0 0 0 4px rgba(255,152,0,.12)}
    68%{box-shadow:0 0 0 6px rgba(255,152,0,0)}
    100%{box-shadow:0 0 0 0 rgba(255,152,0,0)}
}
@keyframes ripple-blue{
    0%{box-shadow:0 0 0 0 rgba(66,165,245,.55)}
    14%{box-shadow:0 0 0 5px rgba(66,165,245,.25)}
    28%{box-shadow:0 0 0 8px rgba(66,165,245,0)}
    40%{box-shadow:0 0 0 0 rgba(66,165,245,.35)}
    54%{box-shadow:0 0 0 4px rgba(66,165,245,.12)}
    68%{box-shadow:0 0 0 6px rgba(66,165,245,0)}
    100%{box-shadow:0 0 0 0 rgba(66,165,245,0)}
}
@keyframes ripple-gray{
    0%{box-shadow:0 0 0 0 rgba(158,158,158,.4)}
    18%{box-shadow:0 0 0 4px rgba(158,158,158,.15)}
    36%{box-shadow:0 0 0 6px rgba(158,158,158,0)}
    100%{box-shadow:0 0 0 0 rgba(158,158,158,0)}
}

/* --- 状態別カラー＋アニメーション --- */
#hrs-open-am.active .hrs-dot{background-color:#1b7a3a!important;animation:ripple-green 2s ease-out infinite}
#hrs-open-pm.active .hrs-dot{background-color:#1b7a3a!important;animation:ripple-green 2s ease-out infinite}
#hrs-break.active .hrs-dot{background-color:#ff9800!important;animation:ripple-orange 2.2s ease-out infinite}
#hrs-before.active .hrs-dot{background-color:#42a5f5!important;animation:ripple-blue 2.2s ease-out infinite}
#hrs-closed.active .hrs-dot{background-color:#9e9e9e!important;animation:ripple-gray 3.2s ease-out infinite}
#hrs-holiday.active .hrs-dot{background-color:#9e9e9e!important;animation:ripple-gray 3.6s ease-out infinite}
#hrs-tue-pm.active .hrs-dot{background-color:#9e9e9e!important;animation:ripple-gray 3.2s ease-out infinite}
.hrs-msg:not(.active) .hrs-dot{animation:none!important;box-shadow:none!important}

/* ★ サブテキスト（復活時はコメント解除） */
/* #hrs-sub{margin:8px 0 0;font-size:15px;color:#e67e22;line-height:1.6;letter-spacing:.03em} */
#hrs-sub{display:none}

/* ★ ?アイコン + ツールチップ（復活時は下の display:none を削除し、コメントブロックを解除） */
html body #hrs #hrs-q{display:none!important;width:0!important;height:0!important;overflow:hidden!important;margin:0!important;padding:0!important}
html body #hrs #hrs-tip{display:none!important}
/*
#hrs-q{
    display:inline-flex;align-items:center;justify-content:center;
    width:34px;height:34px;background:#397595;color:#fff;border-radius:50%;
    font-size:17px;font-weight:bold;cursor:pointer;margin-left:12px;
    box-shadow:0 2px 8px rgba(57,117,149,.3);user-select:none;flex-shrink:0;
    transition:all .25s;vertical-align:middle;border:2px solid #fff;
}
#hrs-q:hover{background:#2a5d73;transform:scale(1.08)}
#hrs-tip{display:none;background:#fff;border:1px solid #e0e0e0;border-radius:12px;padding:18px 44px 18px 20px;margin:14px auto 0;max-width:640px;text-align:left;box-shadow:0 6px 24px rgba(0,0,0,.07);position:relative;line-height:1.9}
#hrs-tip.show{display:block}
#hrs-tip-msg{margin:0;font-size:14px;color:#444}
#hrs-tip-x{position:absolute;top:8px;right:14px;font-size:24px;color:#bbb;cursor:pointer;line-height:1;transition:color .2s}
#hrs-tip-x:hover{color:#333}
*/

/* --- 2カラム --- */
#hrs-cols{
    display:flex!important;flex-direction:row!important;
    gap:40px!important;align-items:flex-start!important;
    max-width:1200px!important;margin:0 auto!important;
    padding:48px 40px 56px!important;
}

/* 左: 地図 */
#hrs-left{width:40%!important;max-width:40%!important;flex-shrink:0!important}
#hrs-map-a{
    display:block;position:relative;border-radius:12px;overflow:hidden;
    border:3px solid #c5dfe5;
    box-shadow:0 6px 24px rgba(0,0,0,.07);
    cursor:pointer;text-decoration:none;transition:box-shadow .3s;
}
#hrs-map-a:hover{box-shadow:0 8px 32px rgba(0,0,0,.12)}
#hrs-map-img{width:100%!important;height:auto!important;display:block!important;transition:transform .4s}
#hrs-map-a:hover #hrs-map-img{transform:scale(1.02)}
#hrs-map-cap{text-align:center;font-size:12px;color:#aaa;margin:10px 0 0;line-height:1.4;letter-spacing:.04em}

/* 右: テーブル */
#hrs-right{flex:1!important;min-width:0!important}
#hrs-tbl{width:100%!important;border-collapse:collapse;font-size:15px!important;line-height:1.9}
#hrs-tbl tr{border-bottom:1px solid #eee}
#hrs-tbl tr:last-child{border-bottom:none}
#hrs-tbl tr:has(+ .hrs-sch-row){border-bottom:none}
#hrs-tbl th{
    width:120px;min-width:120px;max-width:120px;padding:20px 16px 20px 0;vertical-align:top;
    font-size:var(--hrs-fs-th)!important;font-weight:700;color:#397595!important;
    letter-spacing:.06em;
    border:none!important;background:transparent!important;
}
#hrs-tbl td{
    padding:20px 0;vertical-align:top;
    color:#333!important;border:none!important;background:transparent!important;
    font-size:var(--hrs-fs-td)!important;
}
#hrs-tbl td strong{color:#222!important}
#hrs-tbl td a{color:#397595!important}

/* 診療時間フル幅行 */
.hrs-sch-row td{padding:0 0 20px!important;overflow:visible!important}
.hrs-sch-btn-wrap{margin-top:12px;text-align:right}

/* 院名 */
.hrs-clinic-name{font-size:22px!important;letter-spacing:.04em}
/* アクセス */
.hrs-access-main{font-size:16px!important;color:#222!important;letter-spacing:.02em}
.hrs-access-sub{font-size:14px!important;color:#555!important;display:inline-block;margin-top:3px}
.hrs-access-note{font-size:12px!important;color:#999!important;display:inline-block;margin-top:2px}

/* 電話番号 */
.hrs-tel{font-size:var(--hrs-fs-tel)!important;font-weight:bold!important;text-decoration:none!important;color:#397595!important;letter-spacing:.03em}

/* 受付時間 */
.hrs-time-pair{display:inline-block;white-space:nowrap;margin-right:12px}
.hrs-time-label{font-size:var(--hrs-fs-label);color:#e67e22;font-weight:bold;margin-right:3px}
.hrs-time-val{font-size:var(--hrs-fs-val);color:#222!important;font-weight:700;letter-spacing:.02em}

/* 休診日 */
.hrs-closed-days{font-size:var(--hrs-fs-closed)!important}

/* 行内フレックス（テキスト + ボタン） */
.hrs-flex-row{display:flex;align-items:flex-start;gap:20px;justify-content:space-between}
.hrs-flex-row > div{flex:1;min-width:0}

/* ★ 統一ボタン（角丸ピル型） */
.hrs-btn,
.hrs-btn-outline{
    display:inline-flex!important;align-items:center;justify-content:center;
    flex-shrink:0;
    padding:10px 22px!important;
    background:#fff!important;
    border:2px solid #397595!important;
    border-radius:30px!important;
    color:#397595!important;
    font-size:var(--hrs-fs-btn)!important;font-weight:700!important;
    text-decoration:none!important;text-align:center;
    white-space:nowrap;line-height:1.5!important;
    transition:all .25s!important;
    box-shadow:0 2px 8px rgba(57,117,149,.08)!important;
    align-self:center;letter-spacing:.02em;
}
.hrs-btn:hover,
.hrs-btn-outline:hover,
#hrs .hrs-btn:hover,
#hrs .hrs-btn-outline:hover{background:#397595!important;color:#fff!important;box-shadow:0 4px 16px rgba(57,117,149,.2)!important}
.hrs-btn:visited,
#hrs .hrs-btn-outline:visited{color:#397595!important}
.hrs-btn:hover:visited,
#hrs .hrs-btn:hover:visited,
#hrs .hrs-btn-outline:hover:visited{color:#fff!important}

/* 診療タグ - 視認性重視（墨文字＋ボーダー） */
#hrs .hrs-tags{display:flex;flex-wrap:wrap;gap:10px}
#hrs .hrs-tags a,
#hrs .hrs-tags a:link,
#hrs .hrs-tags a:visited,
#hrs .hrs-tags a:active{
    display:inline-block;
    background:#f5f9fb!important;
    color:#333!important;text-decoration:none!important;
    padding:12px 20px;border-radius:24px;
    border:1.5px solid #b0cdd8!important;
    font-size:var(--hrs-fs-tag)!important;font-weight:600;
    transition:all .25s;line-height:1.4;letter-spacing:.03em;
}
#hrs .hrs-tags a:hover{
    background:#eaf3f7!important;color:#333!important;
    border-color:#397595!important;
    box-shadow:0 2px 8px rgba(57,117,149,.15);
}

/* お悩み・症状タグ（緑系） */
#hrs .hrs-tags-symptom a,
#hrs .hrs-tags-symptom a:link,
#hrs .hrs-tags-symptom a:visited,
#hrs .hrs-tags-symptom a:active{
    background:#f3faf6!important;color:#333!important;
    border-color:#a8d4b8!important;
}
#hrs .hrs-tags-symptom a:hover{
    background:#e6f5ec!important;color:#333!important;
    border-color:#6bb585!important;
    box-shadow:0 2px 8px rgba(107,181,133,.15);
}

/* 検診・ご相談タグ（暖色系） */
#hrs .hrs-tags-warm a,
#hrs .hrs-tags-warm a:link,
#hrs .hrs-tags-warm a:visited,
#hrs .hrs-tags-warm a:active{
    background:#fdf8f3!important;color:#333!important;
    border-color:#dfc9a8!important;
}
#hrs .hrs-tags-warm a:hover{
    background:#f9f0e4!important;color:#333!important;
    border-color:#c4a06a!important;
    box-shadow:0 2px 8px rgba(196,160,106,.15);
}

/* 診療時間画像 */
.hrs-sch-img{width:100%;height:auto;display:block;border-radius:4px}
#hrs .hrs-sch-notes{margin:12px 0 0;padding:0;list-style:none}
#hrs .hrs-sch-notes li{font-size:var(--hrs-fs-note)!important;color:#555!important;line-height:2;margin-bottom:0}
#hrs .hrs-sch-notes li::before{content:"※ ";color:#999}


/* ==========================================================
   2. ライトボックス（地図拡大表示）
   ========================================================== */
#hrs-lb{display:none;position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:99999;cursor:pointer;align-items:center;justify-content:center}
#hrs-lb.show{display:flex}
#hrs-lb-img{max-width:92vw;max-height:90vh;border-radius:10px;box-shadow:0 0 60px rgba(0,0,0,.4)}
#hrs-lb-x{position:absolute;top:20px;right:28px;color:#fff;font-size:42px;font-weight:bold;cursor:pointer;line-height:1}


/* ==========================================================
   3. フッター前: 地図 + バナー
   ========================================================== */
#hfh-wrap{margin:0;padding:0;line-height:0;width:100%;overflow:hidden}
#hfh-map{position:relative;width:100%;height:400px;overflow:hidden}
#hfh-map iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;filter:grayscale(100%) contrast(1.05)}
#hfh-mk{position:absolute;top:50%;left:50%;transform:translate(-50%,-100%);z-index:10;pointer-events:none}
#hfh-pin{width:48px;height:48px;background:#397595;border-radius:50% 50% 50% 0;transform:rotate(-45deg);display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(0,0,0,.3)}
#hfh-pin img{transform:rotate(45deg);border-radius:50%}
#hfh-btn{text-align:center;padding:16px 20px;background:#f5f5f5;line-height:1.5}
#hfh-btn a{display:inline-block;background:#397595;color:#fff;text-decoration:none;padding:13px 32px;border-radius:30px;font-size:15px;font-weight:bold;letter-spacing:.04em}
#hfh-btn a:hover{background:#2a5d73;color:#fff}
#hfh-bns{display:grid;grid-template-columns:repeat(4,1fr);width:100%;gap:0;line-height:0}
.hfh-bn{position:relative;display:block;overflow:hidden;height:220px;text-decoration:none}
.hfh-bn img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.hfh-bn:hover img{transform:scale(1.05)}
.hfh-ov{position:absolute;inset:0;background:linear-gradient(180deg,rgba(42,93,115,.35) 0%,rgba(42,93,115,.72) 100%);transition:background .3s}
.hfh-bn:hover .hfh-ov{background:linear-gradient(180deg,rgba(42,93,115,.2) 0%,rgba(42,93,115,.55) 100%)}
.hfh-lb{position:absolute;bottom:0;left:0;right:0;z-index:1;padding:18px 16px;color:#fff;font-size:20px;font-weight:bold;letter-spacing:.08em;text-shadow:0 2px 8px rgba(0,0,0,.6),0 0 2px rgba(0,0,0,.3);line-height:1.4}


/* ==========================================================
   4. フッター内テキストナビ
   ========================================================== */
#hfh-nav{position:relative;z-index:2;width:100%;box-sizing:border-box;text-align:center;padding:20px 20px 16px;line-height:1.5}
#hfh-nav a{color:rgba(255,255,255,0.85);text-decoration:none;font-size:13px}
#hfh-nav a:hover{color:#fff}
#hfh-nav .hfh-nav-sep{color:rgba(255,255,255,0.3);margin:0 10px;font-size:8px}


/* ==========================================================
   5. サイトマップページ（[my_sitemap] ショートコード）
   ========================================================== */
.custom-sitemap{max-width:1000px;margin:2em auto;padding:0 20px}

/* カテゴリー見出し */
.custom-sitemap h3{
    border-left:4px solid #397595;
    padding-left:12px;
    margin:2em 0 1em;
    font-size:1.15em;
    color:#2a5d73;
    font-weight:700;
    letter-spacing:.04em;
    line-height:1.4;
}
.custom-sitemap h3:first-child{margin-top:0}

/* リスト：デスクトップは2カラム、モバイルは1カラム（下の @media 600px） */
.custom-sitemap ul{list-style:none;padding:0;margin:0;column-count:2;column-gap:30px}
.custom-sitemap ul li{margin-bottom:10px;break-inside:avoid;font-size:14px;line-height:1.6}
.custom-sitemap ul li::before{content:"・";color:#397595;margin-right:4px}
.custom-sitemap ul li a{color:#444;text-decoration:none;transition:color .2s}
.custom-sitemap ul li a:hover{color:#397595;text-decoration:underline}

/* 「すべて見る」リンク */
.custom-sitemap-more{margin:8px 0 0;padding:0;font-size:13px;text-align:right}
.custom-sitemap-more a{color:#397595;text-decoration:none;font-weight:600;display:inline-block;padding:4px 0;transition:opacity .2s}
.custom-sitemap-more a:hover{opacity:.7;text-decoration:underline}

/* wp_list_pages のネストされた子ページ対応 */
.custom-sitemap ul ul{column-count:1;margin-left:1em;margin-top:6px;margin-bottom:6px}
.custom-sitemap ul ul li{margin-bottom:4px;font-size:13px}
.custom-sitemap ul ul li::before{content:"└ ";color:#999}

@media(max-width:600px){
    .custom-sitemap ul{column-count:1}
}


/* ==========================================================
   6. モバイル下部固定アクションバー
   HTML出力: inc/footer-sticky-bar.php
   ========================================================== */
body div.hg-sticky-footer{
    background-color:#0062a8!important;
    border-top:none!important;
}
body div.hg-sticky-footer a.hg-sticky-item{
    background-color:#0062a8!important;
    color:#ffffff!important;
    border-right:1px solid rgba(255,255,255,.2)!important;
}
body div.hg-sticky-footer a.hg-sticky-item:last-child{border-right:none!important}
body div.hg-sticky-footer a.hg-sticky-item .hg-sticky-text{color:#ffffff!important}
body div.hg-sticky-footer a.hg-sticky-item .hg-sticky-svg{stroke:#ffffff!important}
body div.hg-sticky-footer a.hg-sticky-item:hover,
body div.hg-sticky-footer a.hg-sticky-item:active{background-color:#00508c!important}


/* ==========================================================
   7. ヒーロースライダー
   Swiperの初期化が600ms遅延するため、高さを先に確保しないと
   本文全体が後から押し下げられる（CLS悪化）
   ========================================================== */
#hd_slider{
    min-height:calc(100vh - 125px);
    background-color:#e8f0f6;   /* 読み込み中の下地 */
}


/* ==========================================================
   8. レスポンシブ
   適用順: 768px → 480px → 599px
   （599pxが最後なので、幅599px以下では599pxの指定が優先される）
   ========================================================== */

@media(max-width:768px){
    /* --- ステータスバー --- */
    #hrs-bar{
        padding:24px 20px 18px;
        margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;
        width:100vw!important;max-width:100vw!important;
    }
    #hrs-bar-top{font-size:15px}
    .hrs-msg.active{font-size:15px!important;letter-spacing:-.02em!important}
    .hrs-st{font-size:26px}

    /* --- 2カラム → 1カラム --- */
    #hrs-cols{flex-direction:column!important;gap:28px!important;padding:32px 20px 40px!important}
    #hrs-left{width:100%!important;max-width:100%!important}
    #hrs-map-a{max-width:460px;margin:0 auto}
    #hrs-map-cap{text-align:center}

    /* --- テーブルを縦積みに（見出しを内容の上へ） --- */
    #hrs-tbl,
    #hrs-tbl tbody,
    #hrs-tbl tr,
    #hrs-tbl th,
    #hrs-tbl td{
        display:block!important;
        width:100%!important;
        box-sizing:border-box!important;
    }
    #hrs-tbl th{
        padding:18px 0 8px 0!important;
        border:none!important;
        text-align:left;
    }
    #hrs-tbl td{
        padding:0 0 12px 0!important;
        border-bottom:1px solid #eee;   /* 行の区切り線 */
    }
    #hrs-tbl tr:last-child td{border-bottom:none}
    .hrs-sch-row td{padding-top:10px!important}

    /* --- テキスト --- */
    .hrs-clinic-name{font-size:19px!important}
    .hrs-access-main{font-size:15px!important}

    /* --- タグを2列グリッドにして高さを抑える --- */
    #hrs .hrs-tags{
        display:grid!important;
        grid-template-columns:repeat(2,1fr);
        gap:6px;
        margin-top:4px;
    }
    #hrs .hrs-tags a{
        display:flex!important;
        align-items:center;
        justify-content:center;
        padding:10px 8px!important;
        margin:0!important;
        min-height:44px;   /* タップしやすい高さを確保 */
        text-align:center;
        line-height:1.3;
    }

    /* --- ボタンを幅いっぱいに --- */
    .hrs-flex-row{flex-direction:column;gap:12px}
    .hrs-btn,.hrs-btn-outline{
        display:flex!important;
        width:100%;
        margin-top:10px;
        align-self:flex-start;
    }

    /* --- フッター前: 地図 + バナー --- */
    #hfh-map{height:280px}
    #hfh-bns{grid-template-columns:repeat(2,1fr)}
    .hfh-bn{height:180px}
    .hfh-lb{font-size:16px;padding:14px 12px}
}

@media(max-width:480px){
    #hrs-bar{padding:20px 16px 14px}
    #hrs-bar-top{flex-direction:column;gap:3px;font-size:14px}
    .hrs-st{font-size:24px}
    #hrs-cols{padding:24px 16px 32px!important;gap:24px!important}
    #hrs-tbl th{padding:15px 0 6px 0!important}
    #hrs-tbl td{padding:14px 0}
    .hrs-clinic-name{font-size:17px!important}
    .hrs-access-main{font-size:14px!important}
    #hrs .hrs-tags{gap:5px}
    #hrs .hrs-tags a{padding:9px 14px}
    #hfh-map{height:220px}
    .hfh-bn{height:150px}
    .hfh-lb{font-size:15px}
}

@media(max-width:599px){
    #hrs-bar{font-size:.9em;padding-left:10px;padding-right:10px}
    #hrs-bar-top{gap:0!important}
    .hrs-dot{width:9px;height:9px;margin-right:5px}
}
/* ==========================================================
   9. ヘッダーロゴ（読み込み前のレイアウト崩れ防止）
   img に width/height 属性がないため、比率を先に指定して
   場所を確保する（451x90 = 5.0111）
   ========================================================== */
.hd-title.img a img,
h1.hd-title img{
    aspect-ratio:451 / 90;
    height:40px;
    width:auto;
    display:block;
}
/* ==========================================================
   13. 院情報エリア：ビル外観写真（地図の下）
   ========================================================== */
#hrs-bldg{
    margin:18px 0 0;
    text-align:center;
}
#hrs-bldg img{
    max-width:260px;          /* 元画像が小さいため拡大しない */
    width:100%;
    height:auto;
    border-radius:8px;
    border:3px solid #c5dfe5;
    box-shadow:0 4px 16px rgba(0,0,0,.07);
}
#hrs-bldg figcaption{
    font-size:12px;
    color:#888;
    margin-top:8px;
    letter-spacing:.04em;
}
@media(max-width:768px){
    #hrs-bldg img{max-width:220px}
}