/*
Theme Name: すこやか耳鼻咽喉科
Theme URI: https://sukoyaka-ent.or.jp/
Author: 医療法人社団 明和
Description: すこやか耳鼻咽喉科のオリジナルテーマ（リニューアル A案「清潔・信頼」）。白基調＋医療ブルー、モバイルファースト、レンダリングブロッキングJSなし。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sukoyaka
Tags: one-column, custom-menu, custom-logo, translation-ready
*/

/* ============================================================
   1. トークン
   ============================================================ */
:root{
  --blue:#0E6FB8; --blue-d:#084C82; --blue-l:#E8F2FB; --blue-ll:#F4F9FD;
  --ink:#1d2730; --sub:#5a6b78; --line:#dde7ee; --white:#fff;
  --radius:14px; --shadow:0 6px 24px rgba(14,79,130,.08);
  --max:1080px; --bar-h:64px;
}

/* ============================================================
   2. ベース
   ============================================================ */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--bar-h) + 12px)}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",sans-serif;
  color:var(--ink);line-height:1.8;font-size:16px;background:var(--white);
  -webkit-font-smoothing:antialiased;overflow-wrap:break-word;
}
a{color:var(--blue-d);text-decoration:none}
a:hover{text-decoration:underline}
/* display:block にはしない。本文中の PDF アイコン等のインライン画像が改行されてしまうため。 */
img{max-width:100%;height:auto;vertical-align:middle}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
.ic{width:1.25em;height:1.25em;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.screen-reader-text{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:#fff;padding:12px 18px;font-weight:700}
.skip-link:focus{left:8px;top:8px}

/* ============================================================
   3. ボタン / ロゴ
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;
  border-radius:999px;padding:11px 20px;font-size:15px;transition:.15s;white-space:nowrap;
  border:1.5px solid transparent;
}
.btn:hover{text-decoration:none}
.btn .ic{width:18px;height:18px}
.btn-primary{background:var(--blue);color:#fff;box-shadow:var(--shadow)}
.btn-primary:hover{background:var(--blue-d);color:#fff}
.btn-ghost{background:#fff;color:var(--blue);border-color:var(--blue)}
.btn-ghost:hover{background:var(--blue-l);color:var(--blue-d)}
.btn-tel{background:var(--blue-l);color:var(--blue-d)}
.btn-tel:hover{background:#d8e9f8;color:var(--blue-d)}

.logo{display:flex;align-items:center;gap:10px;color:var(--ink)}
.logo:hover{text-decoration:none}
.logo img{max-height:38px;width:auto}
.logo .name{font-weight:700;font-size:18px;letter-spacing:.02em;line-height:1.2}
.logo .name small{display:block;font-weight:500;font-size:11px;color:var(--sub);letter-spacing:.04em}

/* ============================================================
   4. ヘッダー / ナビ
   ============================================================ */
/* z-index は下部固定バー（60）より上。メニューを開いたときに
   パネルの下端がバーに隠れて「切れている」ように見えるのを防ぐ。 */
.site-header{
  position:sticky;top:0;z-index:70;background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);
}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;height:var(--bar-h)}
/* モバイルは下部固定バーに導線があるため、ヘッダーの CTA は出さない */
.head-cta{display:none;gap:10px;align-items:center}
.bar > .logo{min-width:0;flex:1 1 auto}
.bar .name{overflow:hidden}

.nav-toggle{
  display:inline-flex;align-items:center;gap:6px;background:none;border:1.5px solid var(--line);
  border-radius:10px;padding:8px 12px;font:inherit;font-size:13px;font-weight:700;
  color:var(--blue-d);cursor:pointer;
}
.nav-toggle .bars{display:block;width:18px;height:2px;background:currentColor;position:relative}
.nav-toggle .bars::before,.nav-toggle .bars::after{
  content:"";position:absolute;left:0;width:18px;height:2px;background:currentColor;
}
.nav-toggle .bars::before{top:-6px}
.nav-toggle .bars::after{top:6px}

.site-nav ul{list-style:none;margin:0;padding:0}
.site-nav a{display:block;color:var(--ink);font-weight:600}
.site-nav .sub-label{display:block;font-size:11px;color:var(--sub);font-weight:500;letter-spacing:.06em}

/* モバイル: 折りたたみパネル。
   画面に入りきらないときはパネル内でスクロールさせる。100dvh を使うのは
   iOS Safari のアドレスバーぶんを差し引くため（100vh だと足りない）。 */
.site-nav{
  display:none;position:absolute;left:0;right:0;top:var(--bar-h);
  background:#fff;border-bottom:1px solid var(--line);box-shadow:var(--shadow);
  max-height:calc(100vh - var(--bar-h));
  max-height:calc(100dvh - var(--bar-h));
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
}
.site-nav.is-open{display:block}
/* 最後の項目が縁に貼り付かないよう下に余白を取り、終わりが分かるようにする */
.site-nav ul{padding:8px 20px calc(20px + env(safe-area-inset-bottom))}
.site-nav li{border-bottom:1px solid var(--line)}
.site-nav li:last-child{border-bottom:0}
.site-nav a{padding:14px 4px;font-size:15px}
.site-nav .sub-label{display:inline;margin-left:8px}
.site-nav .current-menu-item > a,.site-nav .current_page_item > a{color:var(--blue)}

/* ============================================================
   5. ヒーロー / クイックインフォ
   ============================================================ */
/* ヒーロー。モバイル基準でできるだけ縦を詰め、本文が早く見えるようにする。 */
.hero{background:linear-gradient(160deg,var(--blue-ll) 0%,var(--blue-l) 100%);padding:16px 0 20px;position:relative;overflow:hidden}
.hero .wrap{position:relative;z-index:2;display:grid;grid-template-columns:1fr;gap:14px;align-items:center}
/* グリッドアイテムの既定 min-width:auto だと、写真が元画像の幅まで広がって
   ビューポートからはみ出す。 */
.hero .wrap > *{min-width:0}
.hero h1{font-size:23px;line-height:1.34;letter-spacing:.01em;margin-bottom:8px;font-weight:800}
.hero h1 .accent{color:var(--blue)}
.hero p.lead{color:var(--sub);font-size:14.5px;line-height:1.7;margin-bottom:14px;max-width:560px}
/* 予約・電話はモバイルでは下部固定バーが常時受け持つ。
   同じ画面内に同じ CTA を2つ置かないため、ヒーローの CTA は PC のみ。 */
.hero-cta{display:none;flex-wrap:wrap;gap:12px;margin-bottom:0}

/* 写真を左に寄せ、右にアピールポイントを縦並びで置く。
   写真の下にバッジを敷いていたときより2/3ほど縦が縮む。 */
.hero-side{display:flex;gap:14px;align-items:flex-start}
.hero-photo{
  flex:0 0 148px;border-radius:12px;overflow:hidden;
  box-shadow:0 10px 24px rgba(8,76,130,.16);background:#fff;
}
.hero-photo img{width:100%;height:auto;display:block}

.badges{list-style:none;flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:5px}
.badge{
  display:flex;align-items:baseline;gap:6px;
  font-size:13px;font-weight:600;color:var(--blue-d);line-height:1.45;
}
.badge::before{content:"✓";color:var(--blue);font-weight:800;flex:0 0 auto}

/* ============================================================
   6. セクション共通
   ============================================================ */
section.block{padding:28px 0}
section.block.tinted{background:var(--blue-ll)}
/* ヒーロー直後は、ヒーロー側の下余白と重なって空きすぎるので詰める */
.hero + .block{padding-top:16px}
.sec-head{text-align:center;margin-bottom:18px}
.sec-head .en{display:block;color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;margin-bottom:3px}
.sec-head h2{font-size:20px;font-weight:800}

/* 一覧＋「もっと見る」型のセクション用のコンパクトな見出し。
   飾りの英語ラベルを同じ行に入れ、リンクも同居させて縦を1/3に。 */
.sec-head.is-compact{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  text-align:left;margin-bottom:10px;padding-bottom:7px;border-bottom:2px solid var(--blue);
}
.sec-head.is-compact h2{font-size:19px}
.sec-head.is-compact .en{display:inline;font-size:11px;letter-spacing:.14em;margin:0 8px 0 0}
.sec-more{font-size:13px;font-weight:700;color:var(--blue);white-space:nowrap}
.sec-more:hover{text-decoration:underline}
.more-link{text-align:center;margin-top:26px}

/* 症状 */
.sympt{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.sympt a{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 12px;text-align:center;transition:.15s;color:var(--ink);display:block}
.sympt a:hover{border-color:var(--blue);box-shadow:var(--shadow);transform:translateY(-2px);text-decoration:none}
.kanji{
  width:46px;height:46px;border-radius:50%;border:2px solid var(--blue);color:var(--blue);
  display:grid;place-items:center;font-size:21px;font-weight:800;margin:0 auto 8px;background:var(--blue-ll);
}
.sympt .lb{font-weight:700;font-size:15px;display:block}
.sympt .ex{font-size:12px;color:var(--sub);margin-top:3px;line-height:1.55;display:block}

/* 診療カレンダー（診療時間セクションの中に置く） */
.cal{max-width:760px;margin:26px auto 0}
.cal-title{
  font-size:16px;font-weight:800;text-align:center;margin-bottom:12px;
  display:flex;align-items:center;gap:10px;justify-content:center;color:var(--blue-d);
}
.cal-title::before,.cal-title::after{content:"";height:1px;flex:1 1 auto;background:var(--line)}
.cal-img{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);background:#fff;margin:0 0 12px}
.cal-img img{width:100%;height:auto;display:block}
.cal-note{font-size:12.5px;color:var(--sub);text-align:center;margin-top:10px}

/* はじめて受診される方へ */
.firstvisit{display:grid;grid-template-columns:1fr;gap:14px}
.fv-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:15px 16px;box-shadow:var(--shadow);
}
.fv-card h3{
  font-size:15px;font-weight:800;margin-bottom:7px;padding-bottom:7px;
  border-bottom:2px solid var(--blue-l);color:var(--blue-d);
}
.fv-card p{font-size:13.5px;color:var(--sub);line-height:1.75}
.fv-card p + p{margin-top:7px}
.fv-card ul{padding-left:1.2em;font-size:13.5px;color:var(--sub);line-height:1.75}
.fv-card li + li{margin-top:4px}
.fv-link{margin-top:10px!important}
.fv-link a{color:var(--blue);font-weight:700}
.fv-card p:not(.fv-link) a,.fv-card li a{color:var(--blue);text-decoration:underline}
.fv-card.is-alert{border-left:4px solid #e08a2e;background:#fffdf8}
.fv-card.is-alert h3{border-bottom-color:#f6e2c4;color:#a8641a}

/* 診療時間 */
.hours{background:#fff;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);max-width:760px;margin:0 auto}
.hours-scroll{overflow-x:auto}
/* モバイルでも横スクロールなしで日祝まで見えるように、
   固定レイアウト＋詰めた字送りで 7 曜日分を収める。 */
table.h{
  width:100%;border-collapse:collapse;text-align:center;background:#fff;
  table-layout:fixed;font-size:12px;
}
table.h th,table.h td{padding:9px 1px;border:1px solid var(--line)}
table.h thead th{background:var(--blue);color:#fff;font-weight:700;font-size:11.5px}
table.h tbody th{
  background:var(--blue-l);color:var(--blue-d);width:74px;text-align:left;
  padding-left:7px;font-size:11.5px;line-height:1.35;white-space:normal;
}
table.h .o{color:var(--blue);font-weight:800}
table.h .x{color:#b9c4cd}
/* 受付時間・予約受付開始。診療時間の表と同じカードに入れて、3つの時間の
   違いがひと目で分かるようにする。赤字は使わない（警告に見えるため）。 */
.hours-detail{
  display:grid;grid-template-columns:1fr;gap:1px;
  background:var(--line);border-top:1px solid var(--line);margin:0;
}
.hd-group{background:#fff;padding:14px 16px}
.hd-group dt{
  font-size:13px;font-weight:800;color:var(--blue-d);margin-bottom:8px;
  display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;
}
.hd-group dt small{font-size:11.5px;font-weight:600;color:var(--sub)}
.hd-group dd{
  display:flex;align-items:baseline;gap:9px;margin:0;
  font-size:13.5px;line-height:1.7;color:var(--ink);
}
.hd-group dd + dd{margin-top:4px}
.hd-label{
  flex:0 0 4.6em;text-align:center;
  background:var(--blue-l);color:var(--blue-d);border-radius:5px;
  font-size:11.5px;font-weight:700;padding:2px 0;
}
.hd-label.is-alert{background:#fdf0dd;color:#a8641a}
/* 本文中に単体で置く場合は枠で囲う（トップでは表の下に続けて置いている） */
.entry-content .hours-detail{
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin:1.3em 0;
}

.hours-note{padding:15px 16px;font-size:13.5px;color:var(--sub);line-height:1.75}
.hours-note ul{padding-left:1.3em;margin-bottom:12px}
.hours-note li{margin-bottom:4px}
.hours-links{display:flex;gap:8px 20px;flex-wrap:wrap;font-weight:700}
.hours-links a{color:var(--blue)}

/* CTA バンドはフッターに接しないよう下に余白を取る */
.cta-wrap{padding-top:20px;padding-bottom:54px}

/* 特長 */
.feat{display:grid;grid-template-columns:1fr;gap:14px}
.feat .card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:17px 18px;box-shadow:var(--shadow)}
.feat .card h3{font-size:16px;display:flex;align-items:center;gap:9px;margin-bottom:6px}
.feat .card .dot{width:9px;height:9px;border-radius:50%;background:var(--blue);flex:0 0 auto}
.feat .card p{font-size:14px;color:var(--sub)}

/* お知らせ */
.news{max-width:760px;margin:0 auto}
.news .item{display:flex;gap:8px 12px;padding:12px 2px;border-bottom:1px solid var(--line);align-items:baseline;flex-wrap:wrap}
/* カテゴリータグを出さないぶん、日付に色味を持たせて視線の起点にする */
.news .date{
  flex:0 0 auto;font-size:12px;font-weight:700;
  background:var(--blue-l);color:var(--blue-d);border-radius:6px;padding:3px 9px;
}
.news .tag{display:inline-block;font-size:11px;background:#eef3f7;color:var(--sub);border-radius:6px;padding:2px 8px;margin-right:8px;font-weight:700}
.news .ttl{font-size:14.5px;font-weight:600;color:var(--ink)}
.news a.ttl:hover{color:var(--blue)}
/* 本文までトップで読めるように出す。記事はどれも数行なので省略しない。 */
.news .item > div{flex:1 1 0;min-width:min(100%,280px)}
.news .body{font-size:14px;color:var(--sub);line-height:1.8;margin-top:4px}
.news .body > * + *{margin-top:6px}
.news .body a{color:var(--blue);text-decoration:underline}
.news .body img{max-width:100%;height:auto}
/* お知らせの下に置く GBP の投稿。見出しはお知らせより一段下げる。 */
.gbp{max-width:760px;margin:28px auto 0}
.gbp-title{font-size:15px;font-weight:700;color:var(--sub);margin-bottom:12px}

/* Googleビジネスプロフィールの投稿ウィジェット（GMO TECH 提供）。
   先方のスクリプトが要素に style 属性を直接書き込むため、上書きには
   !important が要る。触っているのは配色と枠まわりだけで、
   カード構造や動作（クリックでモーダル）はそのままにしてある。 */
/* 先方のウィジェットは横スクロールのカルーセル。設計に逆らわず、
   幅だけこちらの段組みに収める（トラックが 1018px 固定で右にはみ出すため）。 */
/* 他のセクションと同じ幅（.wrap いっぱい）に合わせる。
   --gbp-arrow-top は画像枠の中心位置（枠上端からの実測値）。既定の
   「カード全体の中央」だと日付の行に矢印が重なるため、ここへ合わせる。 */
.gbp-feed{margin:0 auto;--gbp-arrow-top:91px}
/* overflow:hidden は付けない。送りボタンが枠の外側（left:-4px / right:-36px）に
   置かれる設計なので、隠すと切れてしまう。はみ出しはトラック側の
   overflow-x:hidden と max-width で抑える。 */
#js-meo-element-template,
.js-meo-template_card_format{max-width:100%!important}
.js-meo-template_card_format{position:relative!important}
/* カードの間隔は先方の送りボタンに合わせて 8px 固定。送り量を「カード幅＋8px」で
   計算しているため、ここを広げると1枚送るごとに少しずつズレていく。 */
.js-meo-column-template-container{max-width:100%!important;gap:8px!important;scroll-snap-type:x mandatory}
/* 先方はカード幅を整数に丸めて送り量を出すので、端数ぶんのズレが枚数分たまる。
   スクロール位置をカードの左端に吸着させて、送った先で必ず揃うようにする。 */
.js-meo-change-column-template{scroll-snap-align:start}

/* スライド。min-width を 0 にすると潰れるので、割合で指定し直す。 */
.js-meo-change-column-template{
  flex-basis:calc(50% - 4px)!important;min-width:calc(50% - 4px)!important;
  background:#fff!important;border:1px solid var(--line)!important;
  border-radius:var(--radius)!important;padding:12px!important;
  box-sizing:border-box!important;
}
.js-meo-change-column-template:hover{border-color:var(--blue)!important}

/* 画像。投稿の画像は正方形・横長（512×255 など）が混じる。先方の指定
   （contain ＋ 上寄せ）のままだと横長の画像が枠の上に貼り付き、下に枠の
   水色が帯になって残る。カレンダーや料金の告知は端まで文字があるので
   切り抜かず、枠の中央に置く。余白は sukoyaka_gbp_feed() のスクリプトが
   画像の端の色で塗る（ここの水色は読み込み前だけ見える）。 */
.js-meo-change-column-template > div:first-child{
  height:130px!important;background:var(--blue-ll);border-radius:10px!important;
  overflow:hidden;margin-bottom:10px!important;
}
.js-meo-change-column-template img{
  border-radius:0!important;
  object-fit:contain!important;object-position:center!important;
}

/* 左右の送りボタン。既定はグレーの角丸四角で、白い山型が小さく埋もれるため、
   テーマの色で丸ボタンにし、山型も大きくする。 */
#js-meo-prev-slide,
#js-meo-next-slide{
  background-color:var(--blue)!important;border-radius:50%!important;
  width:38px!important;height:38px!important;min-width:38px!important;
  box-shadow:0 2px 10px rgba(8,76,130,.28);
  /* 既定は枠外に出る指定なので、枠の内側に寄せる。縦位置は画像枠の中心。 */
  transform:translateY(-50%)!important;
  top:var(--gbp-arrow-top)!important;
}
#js-meo-prev-slide{left:6px!important;right:auto!important}
#js-meo-next-slide{right:6px!important;left:auto!important}
#js-meo-prev-slide:hover,
#js-meo-next-slide:hover{background-color:var(--blue-d)!important}
#js-meo-prev-slide span,
#js-meo-next-slide span{
  width:11px!important;height:11px!important;
  border-top-width:2.5px!important;border-left-width:2.5px!important;
}
/* 山型が中心に見えるよう、向きに応じて少しずらす */
#js-meo-next-slide span{margin-left:-3px}
#js-meo-prev-slide span{margin-left:3px}

/* 日付と分類。既定が水色(#00ffff)でテーマから浮くため置き換える。 */
.js-meo-template-body-text{color:var(--blue)!important;font-weight:700!important;font-size:12px!important}
.js-meo-template-categories{
  background:var(--blue-l)!important;color:var(--blue-d)!important;
  border-radius:6px!important;font-weight:700!important;font-size:11px!important;
  padding:2px 8px!important;
}
/* 本文は先方の CSS が 7 行で切っている。テーマ側では色と字送りだけ合わせる。 */
.js-meo-template-content{
  color:var(--ink)!important;font-size:13.5px!important;line-height:1.7!important;
}

/* 先方は 577px 以上で3枚ずつ送るので、3枚並べる幅もそこに合わせる
   （2枚表示のまま3枚送ると1枚飛ばしてしまう）。 */
@media(min-width:577px){
  .js-meo-change-column-template{
    flex-basis:calc((100% - 16px) / 3)!important;min-width:calc((100% - 16px) / 3)!important;
  }
}
@media(min-width:768px){
  .gbp-feed{--gbp-arrow-top:125px}
  .js-meo-change-column-template{padding:16px!important}
  /* 幅が広くなったぶん画像も大きく見せる（元画像が 200px 角前後なので上限はそこ） */
  .js-meo-change-column-template > div:first-child{height:190px!important}
  .js-meo-template-content{font-size:14px!important}
}

/* 医師 */
.docs{display:grid;grid-template-columns:1fr;gap:16px}
.doc{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);display:flex;gap:18px;align-items:flex-start}
.doc .photo{width:96px;height:99px;border-radius:12px;overflow:hidden;flex:0 0 auto;background:var(--blue-l)}
.doc .photo img{width:100%;height:100%;object-fit:cover}
.doc h3{font-size:19px}
.doc .role{color:var(--blue);font-size:13px;font-weight:700;margin-bottom:6px}
.doc p{font-size:14px;color:var(--sub)}

/* アクセス */
.access{display:grid;grid-template-columns:1fr;gap:20px}
.mapbox{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);min-height:300px}
.mapbox iframe{width:100%;height:100%;min-height:300px;border:0;display:block}
.access .info p{margin-bottom:10px;font-size:15px}
.access .info .lbl{color:var(--sub);font-size:13px;font-weight:700}

/* CTA バンド */
.ctaband{background:linear-gradient(135deg,var(--blue),var(--blue-d));color:#fff;text-align:center;padding:48px 20px}
.ctaband h2{font-size:24px;margin-bottom:8px}
.ctaband p{opacity:.9;margin-bottom:22px}
.ctaband .btn-primary{background:#fff;color:var(--blue-d);border-color:#fff}
.ctaband .btn-primary:hover{background:var(--blue-l);color:var(--blue-d)}
.ctaband .btn-ghost{background:transparent;color:#fff;border-color:#fff}
.ctaband .btn-ghost:hover{background:rgba(255,255,255,.14);color:#fff}
.ctaband .row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
/* 予約（Web・直接来院）と問い合わせ（電話）を左右に分けて案内する */
.cta-split{display:grid;grid-template-columns:1fr;gap:14px;max-width:760px;margin:16px auto 0}
.cta-item{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.35);border-radius:var(--radius);padding:20px 18px;display:flex;flex-direction:column;align-items:center}
.cta-item h3{font-size:18px;margin-bottom:6px}
.ctaband .cta-item p{font-size:13.5px;margin-bottom:14px;flex:1 1 auto}
/* 文節の途中（「ください。」の「い。」だけ等）で折り返さないよう、意味のまとまりごとに改行させる */
.cta-item .nb{display:inline-block}
@media (min-width:640px){.cta-split{grid-template-columns:1fr 1fr}}

/* ============================================================
   7. 下層ページ
   ============================================================ */
.page-head{
  background:linear-gradient(160deg,var(--blue-ll) 0%,var(--blue-l) 100%);
  border-bottom:1px solid var(--line);padding:14px 0 16px;
}
.page-head h1{font-size:20px;font-weight:800;letter-spacing:.01em;line-height:1.4}
/* パンくずは折り返さず横スクロール。深い階層でも1行に収まる。 */
.breadcrumb{
  font-size:11.5px;color:var(--sub);margin-bottom:5px;
  white-space:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.breadcrumb::-webkit-scrollbar{display:none}
.breadcrumb a{color:var(--sub)}
.breadcrumb a:hover{color:var(--blue)}
.breadcrumb span + span::before{content:"›";margin:0 6px;color:#b9c4cd}

/* 下層は薄いブルーの地に白いカードを載せ、トップの各セクションと質感を揃える */
.site-main{padding:18px 0 40px;background:var(--blue-ll)}
.entry{
  max-width:860px;margin:0 auto;background:#fff;border:1px solid var(--line);
  border-radius:12px;box-shadow:var(--shadow);padding:16px 14px;
}
.entry-meta{font-size:13px;color:var(--sub);margin-bottom:10px}
.entry-meta time{
  background:var(--blue-l);color:var(--blue-d);border-radius:6px;padding:3px 9px;font-weight:700;
}
.entry-meta .cat{background:#eef3f7;color:var(--sub);border-radius:6px;padding:3px 9px;font-weight:700;margin-left:8px}
.entry-thumb{border-radius:var(--radius);overflow:hidden;margin-bottom:24px}

.archive-list{max-width:860px;margin:0 auto;display:grid;gap:16px}
.archive-item{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.archive-item h2{font-size:18px;margin-bottom:6px}
.archive-item .excerpt{font-size:14px;color:var(--sub)}
.archive-item .archive-body{font-size:15px;margin-top:8px}
.archive-item .archive-body > :first-child{margin-top:0}
.archive-item .archive-body > :last-child{margin-bottom:0}

/* the_posts_pagination() は nav > .nav-links > a の構造。
   nav を flex にしても子は .nav-links 1つなので、並べるのは .nav-links 側。 */
.pagination{margin-top:32px}
.pagination .nav-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.pagination .page-numbers{
  display:grid;place-items:center;min-width:40px;height:40px;padding:0 12px;border:1px solid var(--line);
  border-radius:10px;background:#fff;font-weight:700;color:var(--blue-d);
}
.pagination .page-numbers.current{background:var(--blue);color:#fff;border-color:var(--blue)}
.pagination a.page-numbers:hover{border-color:var(--blue);text-decoration:none}

/* カテゴリー横断の導線（耳／鼻／のど…の切り替え） */
.term-nav{
  display:flex;flex-wrap:wrap;gap:6px;max-width:860px;margin:0 auto 16px;
}
.term-chip{
  display:inline-block;padding:6px 12px;border:1px solid var(--line);border-radius:999px;
  background:#fff;font-size:12.5px;font-weight:600;color:var(--blue-d);line-height:1.5;
}
.term-chip:hover{border-color:var(--blue);background:var(--blue-ll);text-decoration:none}
.term-chip.is-current{background:var(--blue);border-color:var(--blue);color:#fff}

.term-desc{max-width:820px;margin:0 auto 24px;color:var(--sub);font-size:15px}

/* 上位ページへ戻る導線 */
.back-links{
  display:flex;flex-wrap:wrap;gap:12px;justify-content:center;
  max-width:860px;margin:36px auto 0;padding-top:28px;border-top:1px solid var(--line);
}

.notfound{max-width:640px;margin:0 auto;text-align:center}
.notfound .code{font-size:64px;font-weight:800;color:var(--blue-l);line-height:1}

.searchform{display:flex;gap:8px;max-width:420px;margin:20px auto 0}
.searchform input[type=search]{flex:1;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:15px}
.searchform button{padding:12px 18px;border:0;border-radius:10px;background:var(--blue);color:#fff;font:inherit;font-weight:700;cursor:pointer}

/* ============================================================
   8. 投稿本文（Gutenberg）
   ============================================================ */
.entry-content > * + *{margin-top:1.1em}
.entry-content > *:first-child{margin-top:0}

/* 見出し。トップのセクション見出しと同じ色使いにする。 */
.entry-content h2{
  font-size:19px;font-weight:800;margin-top:1.9em;padding:2px 0 8px 11px;
  border-bottom:2px solid var(--blue);border-left:4px solid var(--blue);
  border-radius:2px;line-height:1.45;
}
.entry-content h3{
  font-size:16.5px;font-weight:700;margin-top:1.6em;color:var(--blue-d);
  display:flex;align-items:center;gap:8px;line-height:1.5;
}
.entry-content h3::before{
  content:"";width:9px;height:9px;border-radius:50%;background:var(--blue);flex:0 0 auto;
}
.entry-content h3 a{color:inherit;text-decoration:none}
.entry-content h3 a:hover{color:var(--blue);text-decoration:underline}
.entry-content h4{font-size:16px;font-weight:700;margin-top:1.5em}
.entry-content a{text-decoration:underline}

/* 全角スペースの手打ち字下げを CSS に移した段落（受付時間など）。
   広い画面では元の字下げを再現し、狭い画面では解除して左揃えにする。 */
.entry-content .aligned-lines span{display:block}
@media(min-width:768px){
  .entry-content .aligned-lines span{padding-left:var(--indent, 0)}
}

/* 「Q. 〜 / A. 〜」形式の Q&A（オンライン診療の FAQ など）。開閉はしない。 */
.entry-content .qa{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 20px;box-shadow:var(--shadow);
}
.entry-content .qa + .qa{margin-top:12px}
.entry-content .qa__q,
.entry-content .qa__a{display:flex;gap:12px;align-items:flex-start;margin:0}
.entry-content .qa__q{font-weight:700;font-size:16px}
.entry-content .qa__a{
  margin-top:12px;padding-top:12px;border-top:1px dashed var(--line);
  color:var(--sub);font-size:15px;
}
.entry-content .qa__mark{
  flex:0 0 26px;height:26px;border-radius:50%;display:grid;place-items:center;
  font-size:13px;font-weight:800;line-height:1;margin-top:3px;
  font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
}
.entry-content .qa__q .qa__mark{background:var(--blue);color:#fff}
.entry-content .qa__a .qa__mark{background:var(--blue-l);color:var(--blue-d)}
.entry-content .qa__text{flex:1 1 auto;min-width:0}

@media(max-width:600px){
  .entry-content .qa{padding:14px}
  .entry-content .qa__q{font-size:15px}
  .entry-content .qa__a{font-size:14px}
  /* 幅が狭いので、Q/A バッジを本文と同じ行に流し込み、2行目以降を左端まで使う。
     フレックスのままだと本文が常にバッジぶん右に寄り、1行あたり2〜3文字損する。
     float ではなく inline-grid にしているのは、float だとバッジの高さが
     1行ぶんとほぼ同じで、下に回り込む行が密着してしまうため。
     インラインなら1行目の行ボックスがバッジぶん高くなり、自然に間隔が空く。 */
  .entry-content .qa__q,
  .entry-content .qa__a{display:block}
  /* バッジは行の高さより小さくする。行と同じ高さだと上下に余裕がなく、
     2行目が詰まって見える。位置合わせは vertical-align:middle に任せる
     （数値でずらすとバッジだけ下がって文字が浮いて見える）。 */
  .entry-content .qa__q{line-height:1.85}
  .entry-content .qa__a{line-height:1.9}
  .entry-content .qa__mark{
    display:inline-grid;width:20px;height:20px;margin:0 8px 0 0;
    font-size:11px;vertical-align:middle;
    /* vertical-align:middle は x-height 基準なので和文だと 2px ほど下がる。
       レイアウトを動かさずに見た目だけ戻す。 */
    position:relative;top:-2px;
  }
  .entry-content .qa__text{display:inline}
}

/* 予約導線（LINE／予約サイト）。
   ボタンには短い太字ラベルだけを置き、細かい説明は白地の本文色で下に出す。
   小さい文字を色面の上に乗せないことで、ブランドカラー（LINE公式は白×緑の指定）
   を保ったまま読みやすさを確保する。
   ホバー／押下の黒オーバーレイは LINE のデザインガイドライン準拠（黒10%／30%）。 */
.entry-content .book-actions{
  display:grid;grid-template-columns:1fr;gap:14px;margin:1.4em 0;
}
/* 2つのカードは同じ大きさ。中の操作要素も同じ幅（232px＝LINE公式ボタンの幅）に
   揃えることで、大きさがばらばらに見えないようにする。 */
.entry-content .book-item{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 16px;box-shadow:var(--shadow);
}
.entry-content .book-item__title{
  font-size:15px;font-weight:800;color:var(--ink);margin:0 0 12px;
}
/* LINE は公式配布のボタン画像をそのまま使う（改変しない） */
.entry-content .book-line{
  display:block;width:232px;max-width:100%;line-height:0;
  border-radius:8px;overflow:hidden;transition:opacity .12s;
}
.entry-content .book-line:hover{opacity:.88}
.entry-content .book-line img{width:100%;height:auto;display:block}

.entry-content .book-btn{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:232px;max-width:100%;min-height:72px;padding:12px 20px;
  border-radius:8px;overflow:hidden;
  font-size:17px;font-weight:800;line-height:1.4;letter-spacing:.02em;
  color:#fff;text-decoration:none;text-align:center;
  background:var(--blue);
  /* 影は付けない。隣の LINE 公式ボタンが平面なので、揃えないと浮いて見える。 */
  transition:transform .1s;
}
/* オーバーレイ。文字より下、色面より上に置く。 */
.entry-content .book-btn::before{
  content:"";position:absolute;inset:0;background:#000;opacity:0;transition:opacity .12s;
}
.entry-content .book-btn:hover::before{opacity:.10}
.entry-content .book-btn:active::before{opacity:.30}
.entry-content .book-btn:hover{color:#fff;text-decoration:none}
.entry-content .book-btn:active{transform:translateY(1px)}
/* テキストは最前面（LINE ガイドラインの「文字は最前面」に合わせる） */
.entry-content .book-btn > span{position:relative;z-index:1}
.entry-content .book-btn > span::after{content:" ›";font-weight:700}

.entry-content .book-note{
  margin-top:11px;font-size:13px;color:var(--sub);line-height:1.7;
  /* 最終行に数文字だけ残るのを避け、行を均等に分ける */
  text-wrap:balance;
}
/* ボタンだけを置く用途（ページ末尾）ではカードの飾りを外す */
.entry-content .book-item:only-child,
.entry-content .book-actions--plain .book-item{
  border:0;box-shadow:none;background:none;padding:0;
}

@media(min-width:768px){
  .entry-content .book-actions{grid-template-columns:1fr 1fr;gap:18px}
  .entry-content .book-item{padding:22px 18px}
  .entry-content .book-item__title{font-size:16px}
}

/* URL がそのまま貼られているリンク */
.entry-content .raw-link{
  display:inline-flex;align-items:baseline;gap:8px;flex-wrap:wrap;
  padding:12px 20px;border:1.5px solid var(--blue);border-radius:999px;
  background:#fff;color:var(--blue);font-weight:700;text-decoration:none;
  max-width:100%;word-break:break-all;
}
.entry-content .raw-link:hover{background:var(--blue);color:#fff}
.entry-content .raw-link__note{font-size:13px;font-weight:600;opacity:.85}

/* 「耳が痛い・耳がつまる・…」のようにリンクだけが並ぶ段落をタグ状に見せる */
/* 見出し（耳の病気など）との間は、チップが視覚的に重いぶん広めに取る。
   font-size:0 を当てているので em 指定は 0 に潰れる。px で書くこと。 */
.entry-content .link-chips{
  display:flex;flex-wrap:wrap;gap:8px;font-size:0;margin-top:20px;
}
.entry-content h3 + .link-chips{margin-top:16px}
.entry-content .link-chips a{
  display:inline-block;padding:7px 14px;border:1px solid var(--line);border-radius:999px;
  background:var(--blue-ll);color:var(--blue-d);font-size:14px;font-weight:600;
  text-decoration:none;line-height:1.5;
}
.entry-content .link-chips a:hover{
  background:var(--blue);border-color:var(--blue);color:#fff;text-decoration:none;
}
/* 区切りの「・」は不要になるので消す */
.entry-content .link-chips br{display:none}
.entry-content ul,.entry-content ol{padding-left:1.5em}
.entry-content li + li{margin-top:.4em}
.entry-content blockquote{
  border-left:4px solid var(--blue-l);padding:4px 0 4px 16px;color:var(--sub);
}
/* 本文中のテーブル。トップの診療時間表と同じ見た目に揃える。
   見出しセルと本文セルの文字位置も揃える（左寄せだと ○ が左に寄って曜日とずれる）。 */
.entry-content .wp-block-table{overflow-x:auto;margin:1.4em 0}
/* モバイルでは横スクロールせずに収まるよう、固定レイアウトで詰める。 */
.entry-content table{
  width:100%;border-collapse:collapse;background:#fff;
  border-radius:var(--radius);overflow:hidden;
  table-layout:fixed;font-size:12px;
}
.entry-content table th,
.entry-content table td{
  border:1px solid var(--line);padding:9px 2px;text-align:center;vertical-align:middle;
  word-break:break-word;
}
.entry-content table thead th{
  background:var(--blue);color:#fff;font-weight:700;border-color:var(--blue);font-size:11.5px;
}
/* 行頭の時間帯セル */
.entry-content table tbody tr > *:first-child{
  background:var(--blue-l);color:var(--blue-d);font-weight:700;text-align:left;
  padding-left:7px;font-size:11.5px;line-height:1.35;
}
/* インラインの背景色指定（旧エディタで付けた水色）はテーマ側の配色を優先する */
.entry-content table.has-background{background:#fff!important}
.entry-content figure{margin:1.6em 0}
.entry-content figcaption{font-size:13px;color:var(--sub);text-align:center;margin-top:8px}
.entry-content .wp-block-image img{border-radius:10px;display:block;margin-left:auto;margin-right:auto}

/* 本文中の単体画像。縦長写真がモバイルで画面を占有しないよう高さを抑える。 */
.entry-content > p > img,
.entry-content > p > a > img{max-height:70vh;width:auto}

/* 医師紹介。［ごあいさつの吹き出し］の下に［写真＋略歴］を並べたカード。 */
.entry-content .doctor-block{
  background:var(--blue-ll);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;margin-top:1em;
}

/* ごあいさつ。下の写真に向かってしっぽが伸びる吹き出し。 */
.entry-content .doctor-voice{
  position:relative;margin:0 0 26px;padding:18px 22px;
  background:#fff;border:1px solid var(--line);border-radius:16px;
  box-shadow:0 4px 16px rgba(8,76,130,.09);
  font-size:16px;line-height:1.9;color:var(--ink);
}
.entry-content .doctor-voice p{margin:0;font-size:inherit}
.entry-content .doctor-voice::before,
.entry-content .doctor-voice::after{
  content:"";position:absolute;width:0;height:0;border-style:solid;
}
.entry-content .doctor-voice::before{
  left:46px;bottom:-13px;border-width:13px 10px 0 10px;
  border-color:var(--line) transparent transparent transparent;
}
.entry-content .doctor-voice::after{
  left:46px;bottom:-11px;border-width:13px 10px 0 10px;
  border-color:#fff transparent transparent transparent;
}

/* 写真は小さめに。略歴はその右。狭い画面でも横並びを保つ（略歴は1行が短いため）。 */
.entry-content .doctor-block .wp-block-media-text,
.entry-content .doctor-block .wp-block-media-text.is-stacked-on-mobile{
  display:grid;grid-template-columns:132px auto!important;gap:20px;
  align-items:start;margin:0;background:none;border:0;padding:0;
}
.entry-content .wp-block-media-text__media{margin:0}
.entry-content .wp-block-media-text__media img{
  width:100%;border-radius:12px;box-shadow:0 6px 18px rgba(8,76,130,.12);
}
.entry-content .wp-block-media-text__content{padding:0}
.entry-content .wp-block-media-text__content > *:first-child{margin-top:0}
/* 略歴（「平成12年　横浜市大卒」の並び）は控えめに */
.entry-content .wp-block-media-text__content p{
  color:var(--sub);font-size:14px;line-height:1.9;
}

@media(max-width:600px){
  .entry-content .doctor-block{padding:16px}
  .entry-content .doctor-block .wp-block-media-text,
  .entry-content .doctor-block .wp-block-media-text.is-stacked-on-mobile{
    grid-template-columns:88px auto!important;gap:12px;
  }
  /* WordPress 本体の is-stacked-on-mobile は 600px 以下で略歴を写真の下（1列目2行目）へ
     回すため、2列にしても略歴が写真の幅（88px）に押し込まれて1行が細切れになる。位置を戻す。 */
  .entry-content .doctor-block .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{
    grid-column:1;grid-row:1;
  }
  .entry-content .doctor-block .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{
    grid-column:2;grid-row:1;
  }
  .entry-content .wp-block-media-text__content p{font-size:13.5px;line-height:1.85}
  .entry-content .doctor-voice{padding:16px 18px;font-size:15px}
  .entry-content .doctor-voice::before{left:30px}
  .entry-content .doctor-voice::after{left:30px}
}
/* 一般的なスマホ幅（〜440px）では横並びだと「平成26年　横須賀市立うわまち病院」が入らない。
   写真を上に小さく置き、略歴はその下に全幅で並べる。 */
@media(max-width:440px){
  .entry-content .doctor-block .wp-block-media-text,
  .entry-content .doctor-block .wp-block-media-text.is-stacked-on-mobile{
    grid-template-columns:1fr!important;gap:14px;
  }
  .entry-content .doctor-block .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{
    grid-column:1;grid-row:2;
  }
  .entry-content .doctor-block .wp-block-media-text__media img{width:104px}
}

/* 院内設備・医院案内のサムネイル一覧（本文の <p class="thumbnail">）。
   元画像は縦横比がばらばらなので、同じ大きさの枠に収めて揃える。 */
/* リンクの間に全角スペース（U+3000）が入っている。これは CSS 的には空白扱いされず
   匿名のフラックス／グリッドアイテムになってしまうので、font-size:0 で潰したうえで
   gap ではなく padding で間隔を作る。 */
.entry-content .thumbnail{
  /* em は font-size:0 のせいで 0 に潰れるため px で指定する */
  display:flex;flex-wrap:wrap;font-size:0;margin:20px -8px 0;
}
.entry-content .thumbnail a{
  flex:0 0 33.3333%;max-width:33.3333%;padding:0 8px 18px;
  text-align:center;font-size:13px;font-weight:600;
  color:var(--ink);text-decoration:none;line-height:1.5;
}
.entry-content .thumbnail a:hover{color:var(--blue)}
/* 画像とキャプションの間、リンクの間、どちらの <br> も不要（img が display:block のため）。
   本番から取り込んだ本文では wpautop がリンク間に <br> を入れてくる。 */
.entry-content .thumbnail br{display:none}
.entry-content .thumbnail img{
  width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center;
  border:1px solid var(--line);border-radius:10px;background:var(--blue-ll);
  margin-bottom:8px;display:block;transition:.15s;
}
.entry-content .thumbnail a:hover img{border-color:var(--blue);box-shadow:var(--shadow)}
@media(max-width:600px){
  .entry-content .thumbnail a{flex-basis:50%;max-width:50%;padding:0 6px 14px}
  .entry-content .thumbnail{margin-left:-6px;margin-right:-6px}
  .entry-content .thumbnail img{aspect-ratio:1/1}
}
.entry-content .aligncenter{margin-left:auto;margin-right:auto}
.entry-content .alignleft{float:left;margin:0 1.2em 1em 0}
.entry-content .alignright{float:right;margin:0 0 1em 1.2em}
.entry-content .wp-block-buttons{display:flex;gap:10px;flex-wrap:wrap}
.entry-content .wp-block-button__link{
  background:var(--blue);color:#fff;border-radius:999px;padding:12px 24px;font-weight:700;text-decoration:none;display:inline-block;
}

/* details（よくあるご質問などのアコーディオン） */
.entry-content .wp-block-details{
  border:1px solid var(--line);border-radius:var(--radius);background:#fff;
  padding:0;box-shadow:var(--shadow);
}
.entry-content .wp-block-details + .wp-block-details{margin-top:10px}
.entry-content .wp-block-details > summary{
  cursor:pointer;font-weight:700;padding:16px 18px;list-style:none;position:relative;padding-right:46px;
}
.entry-content .wp-block-details > summary::-webkit-details-marker{display:none}
.entry-content .wp-block-details > summary::after{
  content:"";position:absolute;right:20px;top:50%;width:9px;height:9px;
  border-right:2px solid var(--blue);border-bottom:2px solid var(--blue);
  transform:translateY(-70%) rotate(45deg);transition:transform .15s;
}
.entry-content .wp-block-details[open] > summary::after{transform:translateY(-30%) rotate(-135deg)}
.entry-content .wp-block-details[open] > summary{border-bottom:1px solid var(--line)}
.entry-content .wp-block-details > *:not(summary){margin:0 18px}
.entry-content .wp-block-details > *:not(summary):first-of-type{margin-top:16px}
.entry-content .wp-block-details > *:not(summary):last-child{margin-bottom:18px}

/* ============================================================
   9. フッター / モバイルバー
   ============================================================ */
.site-footer{background:#0c2230;color:#aebfcb;padding:40px 0 100px;font-size:14px}
.site-footer a{color:#cdd9e2}
.site-footer .ft-name{color:#fff;font-weight:700;font-size:17px;margin-bottom:10px}
.site-footer .ft-grid{display:grid;grid-template-columns:1fr;gap:24px}
.site-footer nav ul{list-style:none;margin:0;padding:0}
.site-footer nav a{display:block;padding:6px 0}
.site-footer .copy{margin-top:26px;font-size:12px;color:#6b818f;border-top:1px solid #1d3949;padding-top:16px}

.mobile-bar{
  position:fixed;bottom:0;left:0;right:0;z-index:60;display:flex;background:#fff;
  border-top:1px solid var(--line);box-shadow:0 -4px 20px rgba(0,0,0,.06);
  padding-bottom:env(safe-area-inset-bottom);
}
.mobile-bar a{
  flex:1;text-align:center;padding:10px 4px;font-size:13px;font-weight:700;color:var(--blue-d);
  display:flex;flex-direction:column;align-items:center;gap:2px;
}
.mobile-bar a:hover{text-decoration:none}
.mobile-bar a.main{background:var(--blue);color:#fff}
.mobile-bar a .ic{width:20px;height:20px}

/* ============================================================
   10. レスポンシブ
   ============================================================ */
@media(min-width:860px){
  .head-cta{display:flex}
  section.block{padding:50px 0}
  .hero + .block{padding-top:32px}
  .sec-head{margin-bottom:32px}
  .sec-head .en{font-size:13px;margin-bottom:6px}
  .sympt a{padding:22px 14px}
  .kanji{width:54px;height:54px;font-size:24px;margin-bottom:10px}
  .sympt .lb{font-size:16px}
  .feat .card{padding:22px}
  .feat .card h3{font-size:17px;margin-bottom:8px}
  .news .item{padding:16px 4px;gap:14px}
  .news .date{font-size:13px;padding:3px 10px}
  .news .ttl{font-size:15px}
  .hours-note{padding:18px;font-size:14px}
  .hours-detail{grid-template-columns:1fr 1fr}
  .hd-group{padding:18px 20px}
  .hd-group dt{font-size:14px}
  .hd-group dd{font-size:14.5px}
  .hd-label{font-size:12px;flex-basis:5em}
  table.h{table-layout:auto;font-size:15px;min-width:520px}
  table.h th,table.h td{padding:13px 4px}
  table.h thead th{font-size:15px}
  table.h tbody th{width:34%;padding-left:14px;font-size:15px;white-space:nowrap}
  .hero{padding:52px 0}
  /* 見出しの2行目「YRP野比駅すぐのすこやかへ。」が折り返さない幅を確保する */
  .hero .wrap{grid-template-columns:1.15fr .85fr;gap:40px}
  /* 2行で収まるように幅に追従させる。固定 40px だと狭い側で
     「へ。」だけが3行目に落ちる。 */
  .hero h1{font-size:clamp(26px, 3vw, 36px);margin-bottom:14px}
  .hero p.lead{font-size:17px;margin-bottom:22px}
  /* PC はヒーロー右カラムに写真、その下にアピールポイントを並べる */
  .hero-side{display:block}
  .hero-photo{aspect-ratio:7/6;border-radius:18px;margin-bottom:16px}
  .hero-photo img{height:100%;object-fit:cover}
  .badges{flex-direction:row;flex-wrap:wrap;gap:8px}
  .badge{
    background:#fff;border:1px solid var(--line);border-radius:999px;
    padding:7px 14px;font-size:13px;
  }
  .badge::before{content:none}

  .hero-cta{display:flex;margin-bottom:0}
  .hero-cta .btn{padding:15px 26px;font-size:16px;flex:0 0 auto}

  .sec-head.is-compact{margin-bottom:16px;padding-bottom:9px}
  .sec-head.is-compact h2{font-size:24px}
  .sec-head.is-compact .en{font-size:12px}
  .sec-more{font-size:14px}

  /* 下層ページ：PC はゆったりした余白・文字サイズに戻す */
  .page-head{padding:30px 0}
  .page-head h1{font-size:30px}
  .breadcrumb{font-size:13px;margin-bottom:8px;white-space:normal;overflow:visible}
  .breadcrumb span + span::before{margin:0 7px}
  .site-main{padding:38px 0 60px}
  .entry{padding:32px 28px;border-radius:var(--radius)}
  .entry-content h2{font-size:22px;margin-top:2.2em;padding:2px 0 10px 14px;border-left-width:5px}
  .entry-content h3{font-size:18px;margin-top:1.8em;gap:9px}
  .entry-content table{table-layout:auto;font-size:15px}
  .entry-content .wp-block-table table{min-width:520px}
  .entry-content table th,
  .entry-content table td{padding:13px 6px}
  .entry-content table thead th{font-size:15px;white-space:nowrap}
  .entry-content table tbody tr > *:first-child{padding-left:14px;font-size:15px;white-space:nowrap}
  .term-nav{gap:8px;margin-bottom:24px}
  .term-chip{padding:8px 16px;font-size:14px}

  .firstvisit{grid-template-columns:repeat(3,1fr)}
  .fv-card{padding:22px}
  .fv-card h3{font-size:16px;margin-bottom:8px;padding-bottom:8px}
  .fv-card p,.fv-card ul{font-size:14px;line-height:1.8}
  .cal{margin-top:34px}
  .cal-title{font-size:18px}
  .quick .cell:last-child{border-right:0}
  .feat{grid-template-columns:repeat(2,1fr)}
  .access{grid-template-columns:1.3fr 1fr}
  .site-footer .ft-grid{grid-template-columns:2fr 1fr 1fr}
  .site-footer{padding-bottom:40px}
  .mobile-bar{display:none}
  .ctaband{border-radius:var(--radius)}
  .sec-head h2{font-size:28px}
  .page-head h1{font-size:30px}
}

/* タブレット幅では写真が小さくなりすぎるので少し大きくする */
@media(min-width:600px) and (max-width:859px){
  .hero-photo{max-width:340px}
}

/* ============================================================
   10-b. グローバルナビ
   項目数が多いので、レイアウトの 860px とは別に専用のしきい値を持たせる。
   860〜1023px は「ロゴ＋電話/予約ボタン＋MENU」で、メニューはパネル表示。
   1024px 以上で横一列に展開する。幅に応じて項目を隠すことはしない。
   ============================================================ */
@media(min-width:1024px){
  .nav-toggle{display:none}
  .site-nav{
    display:block;position:static;background:#fff;box-shadow:none;
    border-top:1px solid var(--line);border-bottom:0;
  }
  .site-nav ul{display:flex;max-width:var(--max);margin:0 auto;padding:0 20px}
  .site-nav li{flex:1 1 0;border-bottom:0;border-right:1px solid var(--line);min-width:0}
  .site-nav li:first-child{border-left:1px solid var(--line)}
  .site-nav a{
    padding:8px 4px;font-size:13px;text-align:center;line-height:1.4;white-space:nowrap;
  }
  .site-nav a:hover{color:var(--blue);text-decoration:none;background:var(--blue-ll)}
  .site-nav .sub-label{display:block;margin-left:0;font-size:10px}
  .site-nav .current-menu-item > a,
  .site-nav .current_page_item > a{background:var(--blue-ll);color:var(--blue)}
}

@media(min-width:1200px){
  .site-nav a{padding:9px 6px;font-size:14px}
  .site-nav .sub-label{font-size:11px}
}

@media(max-width:520px){
  .sympt{grid-template-columns:1fr}
  .doc{flex-direction:column}
  .news .date{flex-basis:100%}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}
