/* =========================================================
   ソラ皮ふ科クリニック（架空サンプル）— style.css
   テイスト：清潔・安心・やわらか。オフホワイト＋セージグリーン
   ========================================================= */

:root {
  --bg:      #FAFBF8;   /* オフホワイト（やや緑みのある白） */
  --bg-2:    #F2F5EE;   /* 淡いグリーンの面 */
  --bg-3:    #E7EEE2;
  --card:    #FFFFFF;
  --ink:     #2C332E;   /* 深いグレイッシュグリーン */
  --ink-2:   #46504A;
  --muted:   #66716A;   /* 白・淡緑の地で4.5:1以上 */
  --line:    #E2E8DD;
  --accent:  #5F9E80;   /* セージグリーン */
  --accent-d:#3D7058;   /* 白文字を載せる地・小さい文字用（白に対して約5:1） */
  --accent-dd:#335F49;  /* accent-d のホバー用（さらに濃い） */
  --accent-soft: #E4F0E9;
  --coral:   #EC8A7C;   /* 補助のやわらかコーラル（アクセントの差し） */
  --warn:    #D9695C;   /* エラー用 */

  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 20px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22,1,.36,1);
  --shadow: 0 12px 40px -22px rgba(60, 90, 70, .35);
  --shadow-sm: 0 6px 20px -14px rgba(60, 90, 70, .45);
  --header-h: 76px;

  --head: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --sans: "Plus Jakarta Sans", "Noto Sans JP", system-ui, sans-serif;
  --jp:   "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
figure, figcaption, blockquote, dl, dt, dd, fieldset, legend, menu { margin: 0; }
fieldset { padding: 0; border: 0; min-inline-size: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--jp); font-weight: 400; line-height: 1.85; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1,h2,h3,h4 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.35; letter-spacing: .01em; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

.skip-link { position: absolute; left: 8px; top: -80px; background: var(--accent-d); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 2000; transition: top .2s; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 6vw, 92px); }

.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-d); }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); border-radius: 2px; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-top: 14px; }
.section-lead { margin-top: 16px; max-width: 56ch; color: var(--muted); font-size: 1rem; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }
.center .eyebrow::before { display: none; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em; padding: 14px 28px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent-d); background: transparent; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .25s var(--ease), box-shadow .35s; white-space: nowrap; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-fill { background: var(--accent-d); border-color: var(--accent-d); color: #fff; box-shadow: var(--shadow-sm); }
.btn-fill:hover { background: var(--accent-dd); border-color: var(--accent-dd); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-d); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--accent-d); transition: color .3s var(--ease); }
.link-arrow > span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover > span { transform: translateX(.35em); }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: rgba(250,251,248,.82); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .4s, background .4s, box-shadow .4s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -22px rgba(60,90,70,.5); }
.header-inner { max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; }
.brand__mark { color: var(--accent); font-size: 1.05rem; }
.brand__name { font-family: var(--head); font-weight: 700; font-size: 1.32rem; letter-spacing: .02em; color: var(--ink); }
.global-nav { display: flex; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-link { font-family: var(--sans); font-size: .92rem; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .3s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-link:hover { color: var(--accent-d); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--accent-d); }
.header-cta { display: inline-flex; align-items: center; font-family: var(--sans); font-weight: 600; font-size: .9rem; padding: 11px 22px; border-radius: 999px; background: var(--accent-d); color: #fff; box-shadow: var(--shadow-sm); transition: background .35s, transform .25s var(--ease); }
.header-cta:hover { background: var(--accent-dd); transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニュー */
.mobile-menu { position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h)); background: var(--bg); z-index: 150; transform: translateY(-100%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; display: flex; flex-direction: column; justify-content: center; padding: 24px var(--gutter) 40px; overflow-y: auto; }
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu ul { width: 100%; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 4px; }
.mobile-menu a span { font-family: var(--head); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.mobile-menu a em { font-style: normal; font-family: var(--sans); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mobile-menu a.is-active span { color: var(--accent-d); }
.mobile-menu__cta { margin-top: 30px; }
.mobile-menu a.mobile-menu__cta { display: flex; justify-content: center; align-items: center; padding: 16px 34px; } /* メニュー内リンク共通の左右振り分けを打ち消し、ボタン文字を中央に */
.mobile-menu__tel { margin-top: 18px; text-align: center; color: var(--muted); font-size: .92rem; }
.mobile-menu__tel a { display: inline; padding: 0; color: var(--accent-d); font-weight: 600; }

/* ---------- ヒーロー（明るい非対称スプリット＋情報カード） ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(30px, 5vw, 72px)); padding-bottom: clamp(40px, 6vw, 84px);
  background: linear-gradient(168deg, var(--accent-soft) 0%, var(--bg) 46%, var(--bg) 100%); }
.hero__glow { position: absolute; z-index: -1; top: -14%; right: -10%; width: min(620px, 62vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(95,158,128,.18), rgba(95,158,128,0) 70%); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(30px, 5vw, 74px); align-items: center; }
.hero__season { margin-bottom: 20px; }
.hero__title { font-size: clamp(2rem, 5.1vw, 3.5rem); line-height: 1.32; letter-spacing: .005em; }
.hero__title .hl { position: relative; color: var(--accent-d); white-space: nowrap; }
.hero__title .hl::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .34em; z-index: -1;
  background: var(--accent-soft); border-radius: 4px; }
.hero__lead { margin-top: 22px; max-width: 44ch; color: var(--ink-2); font-size: 1.04rem; }
.hero__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__tags li { font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--accent-d); background: rgba(255,255,255,.7); border: 1px solid var(--line); padding: 7px 15px; border-radius: 999px; }

.hero__media { position: relative; }
.hero__photo { position: relative; border-radius: calc(var(--radius) + 10px); overflow: hidden; box-shadow: var(--shadow);
  transform: rotate(1.4deg); }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(190deg, rgba(95,158,128,0) 58%, rgba(44,51,46,.16)); }
.hero__photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; display: block; }
.hero__badge { position: absolute; left: -22px; bottom: 30px; background: var(--card); border-radius: var(--radius-sm); padding: 15px 19px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; max-width: 256px; }
.hero__badge-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-d); display: grid; place-items: center; font-size: 1.15rem; }
.hero__badge b { display: block; white-space: nowrap; font-family: var(--head); font-size: .92rem; color: var(--ink); }
.hero__badge span { font-size: .77rem; color: var(--muted); line-height: 1.5; }
.hero__chip { position: absolute; right: -16px; top: 26px; background: var(--accent-d); color: #fff; border-radius: var(--radius-sm); padding: 13px 18px; box-shadow: var(--shadow); text-align: center; line-height: 1.2; }
.hero__chip-no { display: block; white-space: nowrap; font-family: var(--head); font-weight: 700; font-size: 1.5rem; }
.hero__chip-no small { font-size: .9rem; }
.hero__chip-tx { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .03em; opacity: .92; margin-top: 2px; }

/* 実用情報カード（予約導線） */
.hero-cards { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card--accent { border-color: var(--accent); background: linear-gradient(160deg, var(--accent-soft), var(--card) 70%); }
.info-card__ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.3rem; }
.info-card--accent .info-card__ic { background: var(--card); }
.info-card__label { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-d); }
.info-card__main { margin-top: 5px; font-family: var(--head); font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.5; }
.info-card__sub { margin-top: 6px; font-size: .82rem; color: var(--muted); line-height: 1.6; }
.info-card__sub a { color: var(--accent-d); font-weight: 600; }
.info-card__link { display: inline-flex; align-items: center; gap: .35em; margin-top: 10px; font-family: var(--sans); font-weight: 600; font-size: .85rem; color: var(--accent-d); transition: color .3s var(--ease); }
.info-card__link > span { display: inline-block; transition: transform .3s var(--ease); }
.info-card__link:hover > span { transform: translateX(.3em); }

/* ---------- お知らせバー ---------- */
.news { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-sm); }
.news__head { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: .9rem; color: var(--accent-d); margin-bottom: 6px; }
.news ul { display: grid; gap: 2px; }
.news li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.news li:last-child { border-bottom: 0; }
.news__date { font-family: var(--sans); font-size: .84rem; color: var(--muted); min-width: 92px; }
.news__tag { font-size: .74rem; font-weight: 600; color: var(--accent-d); background: var(--accent-soft); padding: 3px 11px; border-radius: 999px; }
.news__text { flex: 1 1 240px; font-size: .95rem; color: var(--ink-2); }

/* ---------- 安心ポイント ---------- */
.points-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.point-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.point-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.point-card__no { font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .1em; color: var(--accent-d); }
.point-card h3 { font-size: 1.18rem; margin-top: 10px; }
.point-card .jp { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.point-card p { margin-top: 10px; font-size: .92rem; color: var(--ink-2); line-height: 1.75; }

/* ---------- セクション見出し（左右） ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- 診療メニュー一覧 ---------- */
.service-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card.is-hidden { display: none; }
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card__cat { font-family: var(--sans); font-size: .74rem; font-weight: 600; color: var(--accent-d); background: var(--accent-soft); align-self: flex-start; padding: 4px 12px; border-radius: 999px; }
.service-card h3 { font-size: 1.24rem; margin-top: 14px; }
.service-card__lead { margin-top: 12px; font-size: .92rem; color: var(--ink-2); flex: 1; }
.service-card__price { margin-top: 18px; font-family: var(--sans); font-size: .84rem; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.service-card__price b { color: var(--ink); font-weight: 600; }

/* フィルタ */
.filters { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-chip { font-family: var(--sans); font-weight: 600; font-size: .88rem; color: var(--ink-2); background: var(--card); border: 1.5px solid var(--line); padding: 9px 20px; border-radius: 999px; transition: all .3s var(--ease); }
.filter-chip:hover { border-color: var(--accent); color: var(--accent-d); }
.filter-chip.is-active { background: var(--accent-d); border-color: var(--accent-d); color: #fff; }
.filter-count { font-family: var(--sans); font-size: .84rem; color: var(--muted); margin-left: auto; }

/* ---------- 診療メニュー詳細（services 拡張） ---------- */
.service-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 34px; display: grid; grid-template-columns: .9fr 1.1fr; }
.service-detail:nth-child(even) { grid-template-columns: 1.1fr .9fr; }
.service-detail:nth-child(even) .service-detail__media { order: 2; }
.service-detail__media { min-height: 260px; }
.service-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail__body { padding: clamp(28px, 4vw, 46px); }
.service-detail__cat { font-family: var(--sans); font-size: .74rem; font-weight: 600; color: var(--accent-d); background: var(--accent-soft); display: inline-block; padding: 4px 12px; border-radius: 999px; }
.service-detail h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 14px; }
.service-detail__lead { margin-top: 12px; color: var(--ink-2); font-weight: 500; }
.service-detail__desc { margin-top: 14px; font-size: .95rem; color: var(--ink-2); }
.service-detail__cols { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-detail__cols h4 { font-size: .92rem; color: var(--accent-d); margin-bottom: 10px; }
.service-detail__cols ul { display: grid; gap: 7px; }
.service-detail__cols li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--ink-2); }
.service-detail__cols li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.service-detail .flow-list { counter-reset: flow; }
.service-detail .flow-list li { padding-left: 30px; }
.service-detail .flow-list li::before { counter-increment: flow; content: counter(flow); width: 19px; height: 19px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-d); top: .3em; display: grid; place-items: center; font-size: .68rem; font-weight: 700; font-family: var(--sans); }
.service-detail__price { margin-top: 24px; padding: 14px 18px; background: var(--bg-2); border-radius: var(--radius-sm); font-size: .9rem; color: var(--ink-2); }
.service-detail__price b { color: var(--ink); }
.service-detail__note { margin-top: 16px; font-size: .8rem; color: var(--muted); }

/* ---------- ドクター・スタッフ ---------- */
.staff-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.staff-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: .8fr 1.2fr; transition: transform .4s var(--ease), box-shadow .4s; }
.staff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.staff-card__media { min-height: 220px; }
.staff-card__media img { width: 100%; height: 100%; object-fit: cover; }
.staff-card__body { padding: 24px 24px; }
.staff-card__role { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--accent-d); background: var(--accent-soft); display: inline-block; padding: 4px 12px; border-radius: 999px; }
.staff-card h3 { font-size: 1.3rem; margin-top: 11px; }
.staff-card .kana { display: block; font-family: var(--sans); font-size: .78rem; color: var(--muted); margin-top: 3px; }
.staff-card__msg { margin-top: 11px; font-size: .9rem; color: var(--ink-2); line-height: 1.78; }
.staff-card__profile { margin-top: 14px; display: grid; gap: 5px; }
.staff-card__profile li { position: relative; padding-left: 18px; font-size: .82rem; color: var(--muted); }
.staff-card__profile li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-size: .8rem; }

/* ---------- 設備ギャラリー ---------- */
.facility-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facility-card { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.facility-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.facility-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.facility-card:hover .facility-card__media img { transform: scale(1.06); }
.facility-card__body { padding: 18px 20px 22px; }
.facility-card h3 { font-size: 1.05rem; }
.facility-card p { margin-top: 8px; font-size: .85rem; color: var(--muted); }

/* ---------- About：理念ブロック ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-split__body p { margin-top: 18px; color: var(--ink-2); font-size: 1rem; }
.about-philosophy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.philo-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.philo-item__ic { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-d); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px; }
.philo-item h3 { font-size: 1.12rem; }
.philo-item p { margin-top: 10px; font-size: .9rem; color: var(--ink-2); }

/* ---------- 診療時間テーブル ---------- */
.hours-wrap { margin-top: 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hours-table th, .hours-table td { padding: 14px 8px; text-align: center; font-size: .9rem; border-bottom: 1px solid var(--line); }
.hours-table thead th { background: var(--accent-d); color: #fff; font-family: var(--sans); font-weight: 600; }
.hours-table thead th:first-child { background: var(--accent-dd); }
.hours-table tbody th { text-align: left; padding-left: 16px; font-family: var(--sans); font-weight: 600; color: var(--ink-2); white-space: nowrap; font-size: .82rem; }
.hours-table .mark-o { color: var(--accent-d); font-weight: 700; }
.hours-table .mark-x { color: var(--muted); }
.hours-table .mark-d { color: var(--warn); font-weight: 700; }
.hours-note { margin-top: 16px; font-size: .82rem; color: var(--muted); }
.access-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-sm); }
.access-box dl { display: grid; gap: 4px; }
.access-box dt { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-d); margin-top: 16px; }
.access-box dt:first-child { margin-top: 0; }
.access-box dd { margin: 0; font-size: .95rem; color: var(--ink-2); }
.access-box dd a { color: var(--accent-d); font-weight: 600; }
.map-placeholder { margin-top: 22px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--bg-3) repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(95,158,128,.07) 14px, rgba(95,158,128,.07) 28px); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .85rem; padding: 20px; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 40px; max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 24px; text-align: left; font-family: var(--head); font-weight: 700; font-size: 1rem; color: var(--ink); }
.faq-q::before { content: "Q"; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-d); display: grid; place-items: center; font-family: var(--sans); font-size: .85rem; }
.faq-q::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--accent); transition: transform .35s var(--ease); font-weight: 400; }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item.is-open .faq-a { max-height: 360px; }
.faq-a__inner { padding: 0 24px 22px 66px; font-size: .92rem; color: var(--ink-2); }

/* ---------- ページヒーロー（下層） ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(28px, 4vw, 52px); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.breadcrumb { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { transition: color .3s; }
.breadcrumb a:hover { color: var(--accent-d); }
.breadcrumb span { margin-inline: 8px; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.page-hero .lead { margin-top: 16px; max-width: 56ch; color: var(--ink-2); }

/* ---------- フォーム ---------- */
.form-wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(34px, 5vw, 64px); align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-field { margin-bottom: 24px; }
.form-field label { display: block; font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 9px; }
.form-field .req { color: var(--ink); background: var(--coral); font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.form-field .opt { color: var(--muted); font-size: .72rem; font-weight: 500; margin-left: 8px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 13px 16px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s, background .3s, box-shadow .3s; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235F9E80' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select { border-color: var(--warn); background: #FCF3F2; }
.field-error { color: var(--warn); font-size: .82rem; margin-top: 7px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); line-height: 1.7; margin-top: 6px; }
.alert { border: 1.5px solid var(--warn); background: #FCF3F2; border-radius: var(--radius-sm); padding: 15px 18px; margin-bottom: 26px; font-size: .92rem; color: var(--warn); font-weight: 500; }
.form-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.form-aside__card { background: var(--accent-soft); border-radius: var(--radius); padding: 30px 28px; }
.form-aside__big { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--ink); line-height: 1.5; }
.form-aside dl { margin-top: 20px; display: grid; gap: 3px; }
.form-aside dt { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-d); margin-top: 16px; }
.form-aside dt:first-of-type { margin-top: 0; }
.form-aside dd { margin: 0; font-size: .95rem; color: var(--ink-2); }
.form-aside dd a { color: var(--accent-d); font-weight: 600; }

/* ---------- Thanks ---------- */
.thanks { text-align: center; max-width: 620px; margin-inline: auto; }
.thanks__ic { width: 76px; height: 76px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-d); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 24px; }
.thanks h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.thanks p { color: var(--ink-2); margin: 16px auto 0; max-width: 48ch; }

/* ---------- CTA band（footer 上） ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(51,95,73,.95), rgba(67,122,95,.95)); } /* 白文字が4.5:1以上になる濃さ */
.cta-band__inner { padding-block: clamp(56px, 8vw, 100px); color: #fff; text-align: center; }
.cta-band__eyebrow { font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; opacity: .92; }
.cta-band__title { font-size: clamp(1.7rem, 4.5vw, 2.8rem); margin-top: 12px; line-height: 1.35; }
.cta-band__lead { margin-top: 16px; max-width: 44ch; margin-inline: auto; font-size: 1rem; }
.cta-band__actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-fill { background: #fff; border-color: #fff; color: var(--accent-d); }
.cta-band .btn-fill:hover { background: var(--bg); }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #D7DED9; padding-top: clamp(50px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-logo { font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: #fff; }
.footer-tag { margin-top: 10px; font-size: .9rem; color: #A7B2AB; }
.footer-addr { margin-top: 16px; font-size: .82rem; color: #97A39B; line-height: 1.8; }
.footer-h { display: block; font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; font-size: .9rem; color: #B8C2BB; padding: 5px 0; transition: color .3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 26px; display: grid; gap: 8px; }
.sample-note { font-size: .78rem; color: #97A39B; line-height: 1.7; }
.copyright { font-size: .8rem; color: #A7B2AB; font-family: var(--sans); }

/* ---------- to-top / トースト ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-d); color: #fff; box-shadow: var(--shadow); z-index: 120; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s, transform .35s var(--ease), visibility .35s, background .3s; font-size: 1.1rem; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-dd); }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 24px); background: var(--ink); color: #fff; padding: 13px 24px; border-radius: 999px; font-size: .88rem; box-shadow: var(--shadow); z-index: 300; opacity: 0; visibility: hidden; transition: opacity .35s, transform .35s var(--ease), visibility .35s; max-width: 90vw; text-align: center; }
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- reveal + フェイルセーフ ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay:.08s; } .reveal[data-delay="2"]{ transition-delay:.16s; } .reveal[data-delay="3"]{ transition-delay:.24s; } .reveal[data-delay="4"]{ transition-delay:.32s; }
.reveal-all .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1040px) {
  .points-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: 1fr; }
  .hero-cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .global-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 480px; }
  .hero__photo { transform: none; }
  .hero__badge { left: -10px; right: auto; }
  .hero__chip { right: -10px; }
  .about-split { grid-template-columns: 1fr; }
  .about-philosophy { grid-template-columns: 1fr; }
  .hours-wrap { grid-template-columns: 1fr; }
  .service-detail, .service-detail:nth-child(even) { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail__media { order: 0; }
  .service-detail__media { min-height: 220px; }
  .form-wrap { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}
@media (max-width: 620px) {
  :root { --header-h: 64px; }
  .points-grid, .service-grid, .facility-grid { grid-template-columns: 1fr; }
  .staff-card { grid-template-columns: 1fr; }
  .staff-card__media { aspect-ratio: 16 / 11; min-height: 0; }
  .service-detail__cols, .form-row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
  .news li { gap: 8px; }
  .hero__badge { left: 8px; bottom: 14px; max-width: calc(100% - 16px); padding: 12px 14px; gap: 10px; }
  .hero__chip { right: 8px; top: 14px; padding: 10px 14px; }
  .hero__chip-no { font-size: 1.25rem; }
  .info-card { padding: 20px 20px; }
}

/* 診療時間表：8列がスマホ幅に収まるようセル余白を詰める */
@media (max-width: 560px) {
  .hours-table th, .hours-table td { padding: 10px 2px; font-size: .78rem; }
  .hours-table tbody th { padding-left: 8px; font-size: .72rem; }
}

/* ---------- QA調整（2026-10-27） ---------- */
/* フッター：4列のままスマホ幅で潰れていたため、段階的に列を減らす */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* タブレット幅（2列）でトップの診療カード3枚目だけが左に1枚残るため、全幅の横長カードにする */
@media (min-width: 621px) and (max-width: 1040px) {
  .service-grid > .service-card:nth-child(3):last-child { grid-column: 1 / -1; flex-direction: row; }
  .service-grid > .service-card:nth-child(3):last-child .service-card__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 220px; }
}

/* 見出しの改行を整える（1文字だけの行・文節の途中での改行を防ぐ。対応ブラウザのみ） */
h1, h2, h3, [class*="__title"] { text-wrap: balance; word-break: auto-phrase; overflow-wrap: break-word; }
p, li, dd, .faq-q { text-wrap: pretty; }
.footer-col a { word-break: auto-phrase; }
