@charset "UTF-8";
/* ==========================================================================
   キッズクリニックまるまる — トップページ
   正典: デザイナーラフ案 0820_web.pdf（1440×11055px）
   配色・フォント・寸法は PDF から抽出した値（docs 参照: sites/marumaru/site/README.md）
   ========================================================================== */

/* ---------- デザイントークン（PDF 抽出値） ---------- */
:root {
  --bg:        #F4F0EE;  /* ベース地 rgb(95.7%,94.1%,93.3%) */
  --bg-warm:   #F2EEE9;  /* サブ地   rgb(94.9%,93.3%,91.4%) */
  --band:      #EAE6E4;  /* 帯・パネル rgb(91.8%,90.2%,89.4%) */
  --ink:       #2B221F;  /* 見出し・本文の黒 rgb(16.9%,13.3%,12.2%) */
  --muted:     #808080;  /* 本文グレー */
  --red:       #C54626;  /* 赤（糸・番号・予約）ロゴ原本 DIC 237。白文字とのコントラスト 4.91:1（AA 達成） */
  --blue:      #195371;  /* 紺（糸・日付見出し） */
  --mustard:   #AA8E32;  /* 辛子（糸・やや混雑） */
  --orange:    #DA6B47;  /* オレンジ（テキストリンク） */
  --line:      #2B221F;  /* 罫線 */

  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDGothic", sans-serif;
  --content-w: 1440px;
  --pad-x: clamp(20px, 4vw, 56px);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 2;
  letter-spacing: .06em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .6em 1.2em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* 装飾の共通ルール（糸・キャラは読み上げ対象外・クリック透過） */
.deco,
[class*="__deco"],
img[aria-hidden="true"] {
  pointer-events: none;
  user-select: none;
}
.deco { position: absolute; z-index: 0; }

/* 装飾（糸）は左右どちらにも画面外へ抜けるのが意匠（左は left:-11.9% 等、右は left+width>100%）。
   その分ドキュメント幅が広がるので、装飾を抱えるセクションで横方向だけ切る。
   body の overflow-x:hidden 一枚に吸わせない: iPhone のブラウザは viewport に伝播した hidden を
   無視して横スクロールしてしまう（2026-08-23 オーナー指摘・column.css の記事ページと同じ対処）。
   hidden ではなく clip なのは、スクロールコンテナを作らず overflow-y: visible を保つため
   （.about__deco-mustard-br の bottom:-470px など、下へ抜ける装飾を切らない）。
   セクション（＝ビューポート幅）で切るので、__inner（max-width 1440px）で切る場合と違い
   広い画面でも見た目は今までと同一。新しい装飾を足すときは、そのセクションにもこの指定を入れる
   （test/overflow.test.mjs が検査する）。#7335 */

/* ---------- セクション見出し ---------- */
.section-title {
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.75;
  text-align: center;
  color: var(--ink);
}
.section-title__en {
  display: block;
  font-size: clamp(11px, .9vw, 13px);
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--ink);
  margin-top: .9em;
}

/* 矢印つきテキストリンク（オレンジ） */
.link-arrow {
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .28em;
}
.link-arrow .arrow { letter-spacing: 0; margin-left: .2em; }
.link-plain {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .24em;
}
.link-plain .arrow { margin-left: .5em; }

/* 準備中（未公開ページへの導線はクリック不可で明示） */
.is-planned { cursor: default; }
.is-planned small {
  font-size: 10px; color: var(--muted); font-weight: 400;
  margin-left: .6em; letter-spacing: .1em;
  border: 1px solid currentColor; border-radius: 999px; padding: .1em .6em;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 40;
  pointer-events: none;
}
.site-logo {
  position: absolute;
  top: clamp(26px, 4vw, 57px);    /* PDF 実測: y=57 @1440 */
  left: clamp(20px, 4.4vw, 63px); /* PDF 実測: x=63 @1440 */
  pointer-events: auto;
}
.site-logo a { display: block; }
.site-logo img {
  width: clamp(140px, 16.7vw, 240px); /* PDF 実測: 240×124 @1440 */
  height: auto;
}

/* 赤丸ハンバーガー */
.menu-button {
  position: fixed;
  top: clamp(18px, 4.4vh, 62px);
  right: clamp(18px, 3.4vw, 49px);
  width: 63px; height: 63px;
  background: var(--red);
  border-radius: 50%;
  z-index: 120;
  display: grid;
  place-content: center;
  gap: 7px;
  transition: transform .35s var(--ease-soft), background .3s;
  pointer-events: auto;
}
.menu-button:hover { transform: scale(1.06) rotate(3deg); }
.menu-button span {
  display: block;
  width: 26px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s var(--ease-soft), opacity .25s;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ドロワー */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 88vw);
  background: var(--bg);
  z-index: 110;
  padding: 130px 48px calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;               /* 項目が増えて画面高さを超えても下が見切れない（2026-08-23: 「採用情報」が切れた） */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateX(105%);
  transition: transform .45s var(--ease-soft);
  box-shadow: -12px 0 40px rgba(43, 34, 31, .12);
}
.drawer.is-open { transform: translateX(0); }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
/* ドロワー内の閉じるボタン（2026-08-23 オーナー要望）。ヘッダー側のハンバーガーはドロワーの下に隠れるので、ドロワー自身に ✕ を持つ */
.drawer__close {
  position: absolute;
  top: clamp(18px, 4.4vh, 62px);
  right: clamp(18px, 3.4vw, 49px);
  width: 54px; height: 54px;
  background: var(--red);
  border: 0;
  border-radius: 50%;
  display: grid;
  place-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(43, 34, 31, .12);
  transition: transform .35s var(--ease-soft);
}
.drawer__close:hover { transform: scale(1.06) rotate(3deg); }
.drawer__close span {
  grid-area: 1 / 1;
  display: block;
  width: 22px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
}
.drawer__close span:nth-child(1) { transform: rotate(45deg); }
.drawer__close span:nth-child(2) { transform: rotate(-45deg); }
.drawer__nav li { margin-bottom: 22px; }
.drawer__nav a, .drawer__nav .is-planned {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .18em;
}
.drawer__nav a { position: relative; }
.drawer__nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-soft);
}
.drawer__nav a:hover::after { transform: scaleX(1); }
.drawer__nav .is-planned { color: #A39C99; }
/* 画面が低い端末（iPhone のブラウザはツールバー分で 650〜750px）では上余白と行間を詰めて 1 画面に収める */
@media (max-height: 880px) {
  .drawer { padding-top: 92px; }
  .drawer__nav li { margin-bottom: 14px; }
  .drawer__nav a, .drawer__nav .is-planned { font-size: 16px; }
  .drawer__reserve { gap: 10px; }
  .drawer__reserve .reserve-link { padding: 11px 0; }
}
@media (max-height: 700px) {
  .drawer { padding-top: 72px; }
  .drawer__nav li { margin-bottom: 9px; }
  .drawer__nav a, .drawer__nav .is-planned { font-size: 15px; }
  .drawer__reserve .reserve-link { padding: 10px 0; font-size: 15px; }
}
.drawer__reserve { display: grid; gap: 14px; }
.drawer__reserve .reserve-link {
  justify-content: center;
  background: #fff;
  border-radius: 999px;
  padding: 14px 0;
  box-shadow: 0 4px 18px rgba(43, 34, 31, .08);
}
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(43, 34, 31, .35);
  z-index: 100;
  opacity: 0;
  transition: opacity .4s;
}
.drawer-backdrop.is-open { opacity: 1; }

/* 予約リンク共通 */
.reserve-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .16em;
  transition: opacity .25s;
}
.reserve-link .arrow { font-weight: 500; display: inline-block; transform: rotate(-45deg); transition: transform .3s var(--ease-soft); }
.reserve-link:hover .arrow { transform: rotate(-45deg) translate(3px, 0); }

/* ==========================================================================
   ヒーロー
   ========================================================================== */
.hero { position: relative; overflow-x: clip; }
.hero__inner {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
  height: 950px;
}
.hero__photo-wrap {
  position: absolute;
  left: 16.4%;
  top: 120px;
  width: 68.6%;
  z-index: 1;
}
.hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 987 / 677;
  clip-path: url(#clip-hero);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* 写真のふちで遊ぶ子（写真基準%＝全幅で追従） */
.hero__swing {
  position: absolute;
  left: 80.5%;
  top: 4.5%;
  width: 13%;
  min-width: 56px;
  z-index: 3;
}
/* からし色の輪っか（写真の少し上・写真基準%） */
.hero__photo-wrap .hero__deco-loop-mustard {
  left: 74.7%;
  top: -33%;
  width: 21.4%;
  min-width: 64px;
}

/* 縦書きキャッチ */
.hero__catch {
  position: absolute;
  left: 8%;
  top: 511px;
  width: 18.35%;
  aspect-ratio: 264 / 419;
  z-index: 4;
}
.hero__catch-bubble { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__copy {
  position: absolute;
  inset: 21% 33% 18% 12%;
  writing-mode: vertical-rl;
  color: var(--red);
  font-size: clamp(13px, 1.42vw, 20.5px);
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 2.1;
}
.hero__copy span { display: block; white-space: nowrap; }
.hero__catch-kid {
  position: absolute;
  left: -1%;
  bottom: 8%;
  width: 33.5%;
}

/* 縦ナビ（デスクトップ） */
.hero__nav {
  position: absolute;
  right: 3.4%;
  top: 150px;
  z-index: 5;
}
.hero__nav ul { display: grid; gap: 26px; justify-items: end; }
.hero__nav a, .hero__nav .is-planned {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .22em;
}
.hero__nav a { position: relative; }
.hero__nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease-soft);
}
.hero__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hero__nav .is-planned { color: #A39C99; }

/* 今日の診療状況バッジ */
.status-badge {
  position: absolute;
  left: 83.5%;
  top: 585px;
  width: 11.5%;
  aspect-ratio: 165 / 141;
  z-index: 5;
  display: block;
  transition: transform .35s var(--ease-soft);
}
.status-badge:hover { transform: scale(1.05) rotate(-2deg); }
.status-badge__blob { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .77; }
.status-badge__text {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  transform: rotate(-23deg);
  color: var(--bg);
  font-size: clamp(11px, 1.05vw, 15px);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.9;
  text-align: center;
}
.status-badge__kid {
  position: absolute;
  left: 36%;
  top: 64%;
  width: 70%;
  pointer-events: none;
}

/* 予約ピル */
.hero__reserve {
  position: absolute;
  left: 72.1%;
  top: 774px;
  width: 24.5%;
  min-width: 300px;
  height: 73px;
  background: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 26px);
  z-index: 6;
  box-shadow: 0 6px 24px rgba(43, 34, 31, .06);
}
.hero__reserve-divider { width: 1px; height: 34px; background: #DCD6D2; }

/* ヒーローの糸 */
.hero__deco-wavy-blue    { left: 29.7%; top: 58px;    width: 22.1%; }
.hero__deco-thread-mustard { left: -11.9%; top: 203px; width: 22.7%; }

/* ==========================================================================
   おしらせ
   ========================================================================== */
.news { position: relative; overflow-x: clip; }
.news__inner {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
  min-height: 500px;
}
.news__title {
  position: absolute;
  left: 12.2%;
  top: 0;
  width: 18.5%;
  aspect-ratio: 267 / 204;
  z-index: 2;
}
.news__bubble { position: absolute; inset: 0; width: 100%; height: 100%; }
.news__title .section-title {
  position: absolute;
  inset: 16% 10% auto;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: .26em;
}
.news__title .section-title__en { margin-top: .4em; }
.news__kid {
  position: absolute;
  left: 8%;
  bottom: -53%;
  width: 24.5%;
}
.news__panel {
  position: relative;
  margin-left: 26%;
  width: 54.3%;
  background: var(--band);
  border-radius: 44px;
  padding: clamp(28px, 3.4vw, 50px) clamp(28px, 4.4vw, 64px) clamp(22px, 2.6vw, 36px);
  margin-top: 90px;
  z-index: 1;
}
.news__item {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 1em;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: opacity .25s;
}
.news__item:hover { opacity: .6; }
.news__item time { font-size: 14px; color: var(--muted); letter-spacing: .12em; }
.news__item-title { font-size: 16px; font-weight: 700; letter-spacing: .12em; }
.news__more { text-align: right; margin-top: 22px; }
.service__more { text-align: right; margin-top: 26px; position: relative; z-index: 1; } /* 診療メニュー → 疾患情報ハブへの導線（2026-08-23） */
.news__deco-loop { left: 46.8%; top: -46px; width: 47.7%; z-index: 0; }
.news__hang-kid {
  position: absolute;
  left: 86.7%;
  top: 330px;
  width: 5.8%;
  z-index: 2;
}
.news__deco-mustard-left { left: -11.5%; top: 406px; width: 27%; }

/* ==========================================================================
   まるまるとは
   ========================================================================== */
.about { position: relative; overflow-x: clip; }
.about__inner {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
  padding-top: 57px;
}
.about__title {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 58px) clamp(50px, 7vw, 100px);
}
.about__oval {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.about__crawl-kid {
  position: absolute;
  right: -17%;
  bottom: 4%;
  width: 30%;
  min-width: 110px;
}
.about__body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(32px, 4vw, 64px);
  padding: 76px 12.5% 0 12.5%;
}
.about__text { flex: 1 1 46%; max-width: 500px; position: relative; z-index: 1; }
.about__text p {
  font-size: 15.5px;
  line-height: 2.3;
  letter-spacing: .1em;
}
.about__text p + p { margin-top: 2.2em; }
.about__photo {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  max-width: 516px;
}
.about__photo > img {
  width: 100%;
  aspect-ratio: 516 / 537;
  object-fit: cover;
  clip-path: url(#clip-about);
}
.about__photo-link {
  position: absolute;
  right: 0;
  bottom: 1.5%;
  text-align: right;
}
.about__deco-circle-blue { left: 11.4%; top: 133px; width: 8.6%; }
.about__deco-wavy-blue   { left: 81.3%; top: 181px; width: 34.5%; }
/* デザイン実測: ループ上端は写真下端の132px下・リンクとは重ならない */
.about__deco-mustard-br  { left: 84.3%; bottom: -470px; width: 27.5%; z-index: 2; }

/* ==========================================================================
   トーン帯（About下端の明→暗アーチ 〜 特徴 〜 院内前の暗→明アーチ）
   ========================================================================== */
.zone-dark { position: relative; background: var(--band); margin-top: 120px; overflow-x: clip; }
.zone-dark__cap-top {
  height: 173px;
  background: var(--bg);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleX(1.5);
}
.zone-dark__cap-bottom {
  height: 160px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.5);
}

/* About と特徴のあいだで遊ぶ子どもたち */
.interlude {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
  height: 150px;
}
.interlude__tumble {
  position: absolute;
  left: 44.9%;
  top: -140px;
  width: 8.2%;
  min-width: 84px;
  z-index: 3;
}
.interlude__thread { left: 11.7%; top: -100px; width: 33.7%; z-index: 2; }
.interlude__climb {
  position: absolute;
  left: 6.9%;
  top: 20px;
  width: 8.6%;
  min-width: 88px;
  z-index: 3;
}

/* ==========================================================================
   特徴
   ========================================================================== */
.features { position: relative; }
.features__inner {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
  padding-bottom: 300px;
}
.features__title {
  position: relative;
  width: min(627px, 78vw);
  margin: 0 auto;
  padding: clamp(36px, 4.6vw, 66px) 20px clamp(40px, 5vw, 72px);
}
.features__blob {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.features__title .section-title { position: relative; }
.features__rest-kid {
  position: absolute;
  left: 70%;
  top: 64%;
  width: 19.5%;
  min-width: 96px;
}
.features__list {
  display: grid;
  gap: 96px;
  padding: 110px 12.9% 0;
}
.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}
.feature--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
.feature--reverse .feature__photo { order: 2; }
.feature--reverse .feature__text { order: 1; }
.feature__photo img {
  width: 100%;
  aspect-ratio: 510 / 359;
  object-fit: cover;
  border-radius: 44px;
}
/* 縦位置の調整（縦長写真を横長枠で使う場合） */
.feature__photo--rest img { object-position: 50% 5%; }
/* 特徴の本文中のテキストリンク（頭の形外来など公開済みページへ） */
.feature__text a { color: var(--orange); border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .25s; }
.feature__text a:hover { opacity: .65; }
.feature__num {
  display: block;
  color: var(--red);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  margin-bottom: .5em;
}
.feature__heading {
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.9;
  margin-bottom: 1em;
}
.feature__text p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 2.15;
  letter-spacing: .08em;
  max-width: 480px;
}
.feature__tummy-kid {
  position: absolute;
  left: 27%;
  top: -78px;
  width: 12.6%;
  min-width: 96px;
  z-index: 2;
}
.features__deco-circle-mustard { left: -6.9%;  top: 178px;  width: 17.4%; }
.features__deco-circle-red     { left: 77.5%;  top: 153px;  width: 11.2%; }
.features__deco-circle-red2    { left: 13.7%;  bottom: 60px; width: 13.7%; }
.features__deco-wavy-blue      { left: 78%;    bottom: -10px; width: 39.9%; }

/* ==========================================================================
   院内のご紹介
   ========================================================================== */
.interior { position: relative; padding-top: 20px; overflow-x: clip; }
.interior__inner {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
}
.interior__title {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(24px, 4vw, 64px);
  padding-top: 60px;
}
.interior__rope {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(632px, 72vw);
  z-index: 0;
}
.interior__kid-left, .interior__kid-right {
  width: clamp(48px, 5.2vw, 75px);
  position: relative;
  z-index: 1;
}
.interior__title .section-title { position: relative; z-index: 1; padding-bottom: 8px; }
.gallery {
  width: 73.6%;
  margin: 72px auto 0;
}
.gallery__main img {
  width: 100%;
  aspect-ratio: 1059 / 539;
  object-fit: cover;
  border-radius: 22px;
}
/* サムネイル帯。デザイン（0820_web.pdf）の実測値:
   1440px 幅の版で 6 枠 × 158.2px、間隔 23.2px、高さ 124.5px（比 1.271）、
   角丸 12px、メインとの間 42px。メインと左右の端を揃える。
   枠は 6 つ想定だが、パースが届いた分だけ並べる（grid の 1fr で幅は一定） */
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 23px;
  margin-top: 42px;
  list-style: none;
  padding: 0;
}
.gallery__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: opacity .25s;
}
.gallery__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 158 / 124;
  object-fit: cover;
}
.gallery__thumb:hover { opacity: .78; }
.gallery__thumb.is-active { outline: 2px solid var(--orange); outline-offset: 2px; }
.gallery__thumb:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .gallery__thumb { transition: none; } }
.interior__more { text-align: center; margin-top: 64px; }
.interior__deco-mustard-bl { left: -9.9%; bottom: -170px; width: 31.2%; }
.interior__deco-blue-br    { left: 84.1%; bottom: -100px; width: 12.5%; }
.interior__deco-circle-blue { left: 7.4%; top: 88px; width: 7%; }

/* ==========================================================================
   診療メニュー
   ========================================================================== */
.service { position: relative; padding-top: 150px; overflow-x: clip; }
.service__inner {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
}
.service__title {
  position: relative;
  width: min(328px, 72vw);
  margin: 0 auto;
  padding: clamp(30px, 3.4vw, 50px) 10px;
}
.service__oval { position: absolute; inset: 0; width: 100%; height: 100%; }
.service__title .section-title { position: relative; }
.service__kid-sit {
  position: absolute;
  top: -36%;
  left: 49%;
  width: 28%;
  min-width: 76px;
}
.service__side { position: absolute; }
.service__side--left  { right: 118%; top: 54%; }
.service__side--right { left: 121%; top: 38%; }
.service__side img { max-width: none; }
.service__circle { width: clamp(90px, 11vw, 159px); }
.service__kid-lie { position: absolute; left: -3%; top: -47%; width: clamp(88px, 10.9vw, 157px); }
.service__circle2 { width: clamp(74px, 9vw, 130px); }
.service__kid-hug { position: absolute; left: 69%; top: 14%; width: clamp(38px, 4.6vw, 66px); }
.service__lead {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: .14em;
  margin-top: 56px;
}
.service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 64px 12.9% 0;
}
.service-card {
  position: relative;
  background: var(--band);
  border-radius: 26px;
  padding: clamp(24px, 2.6vw, 40px) clamp(22px, 2.4vw, 36px);
  min-height: 218px;
  transition: transform .35s var(--ease-soft), box-shadow .35s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(43, 34, 31, .07);
}
.service-card__en {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mustard);
}
.service-card__name {
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: .18em;
  margin: .5em 0 .7em;
}
.service-card__desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.95;
  letter-spacing: .06em;
}
.service-card__soon {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .14em;
  border: 1px solid #CFC8C4;
  border-radius: 999px;
  padding: .15em .8em;
}
/* 公開済みメニューはカード全体をリンクにする（準備中カードは li のまま・#7049） */
a.service-card { display: block; color: inherit; }
.service-card__more {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--orange);
}
.service-card__more .arrow { letter-spacing: 0; margin-left: .3em; }
.service__deco-mustard-right { left: 92.1%; top: 250px; width: 16.4%; }

/* ==========================================================================
   診療時間
   ========================================================================== */
.hours {
  position: relative;
  background: var(--band);
  margin-top: 170px;
  overflow-x: clip;
}
.hours__inner {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 116px var(--pad-x) 170px;
}
.hours__title { position: relative; }
.hours__walk-kid {
  position: absolute;
  left: 17.9%;
  top: -12px;
  width: 6.7%;
  min-width: 64px;
  z-index: 1;
}
.hours__thread {
  position: absolute;
  left: 23.6%;
  top: -42px;
  width: 40.8%;
}
.hours__table-wrap {
  max-width: 780px;
  margin: 88px auto 0;
}
.hours__table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
.hours__table th, .hours__table td {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  letter-spacing: .14em;
  padding: 24px 8px;
}
.hours__table thead th { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.hours__table tbody th, .hours__table tbody td { border-bottom: 1px solid var(--line); }
.hours__table th[scope="row"], .hours__slot-head { text-align: left; font-weight: 500; }
.hours__table thead .hours__slot-head { font-weight: 700; }
.hours__table td, .hours__table thead th:not(:first-child) { width: 16%; }
.mark-open {
  display: inline-block;
  width: 23px; height: 23px;
  border: 1.6px solid var(--ink);
  border-radius: 50%;
  vertical-align: middle;
}
.hours__note {
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: .1em;
  line-height: 2.1;
  margin-top: 14px;
}
.hours__note:first-of-type { margin-top: 40px; }
.hours__note + .hours__note { margin-top: 2px; color: var(--ink); }
.hours__deco-bean-blue   { left: 76.5%; top: 51px;  width: 16.2%; }
.hours__deco-circle-red  { left: 8.9%;  top: -56px; width: 5.5%; }
.hours__deco-circle-red2 { left: 93.4%; top: 330px; width: 20.5%; }
.hours__deco-circle-mustard { left: 8.3%; bottom: -148px; width: 19.2%; }

/* ==========================================================================
   診療状況
   ========================================================================== */
.congestion { position: relative; }
.congestion__inner {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 200px var(--pad-x) 130px;
}
.congestion__lead {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: .12em;
  margin-top: 44px;
}
.congestion__day {
  text-align: center;
  color: var(--blue);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: .18em;
  margin-top: 56px;
}
.congestion__carousel {
  position: relative;
  max-width: 1030px;
  margin: 64px auto 0;
  display: flex;
  align-items: stretch;
}
.congestion__slots {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.congestion__slot {
  border-left: 1px solid var(--line);
  padding: 8px 10px 18px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 20px;
}
.congestion__slot:last-child { border-right: 1px solid var(--line); }
.congestion__time {
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
  letter-spacing: .1em;
}
.congestion__faces { display: flex; gap: 5px; min-height: 44px; align-items: center; }
.congestion__faces img { width: clamp(30px, 2.9vw, 42px); }
.congestion__status { text-align: center; line-height: 1.6; }
.congestion__status-main {
  display: block;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: .2em;
}
.congestion__status-sub {
  display: block;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: .18em;
  margin-top: .3em;
}
.congestion__slot--busy .congestion__status-main,
.congestion__slot--busy .congestion__status-sub { color: var(--red); }
.congestion__slot--semi .congestion__status-main,
.congestion__slot--semi .congestion__status-sub { color: var(--mustard); }
.congestion__slot--closed .congestion__status-main { color: var(--muted); }
.congestion__sample-note {
  text-align: center;
  font-size: 11.5px;
  color: #A8A19D;
  letter-spacing: .1em;
  margin-top: 48px;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
  background: var(--band);
  margin-top: 40px;
}
.site-footer__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 84px var(--pad-x) 110px;
  text-align: center;
}
.site-footer__logo img { width: 200px; height: auto; margin: 0 auto; }
.site-footer__info { margin-top: 36px; }
.site-footer__addr { font-size: 14px; line-height: 2.1; letter-spacing: .1em; }
.site-footer__tel { font-size: 14px; letter-spacing: .12em; margin-top: 12px; }
/* メール（#6936）。電話と同じ体裁だが、英字が伸びて見えないよう字間だけ詰める */
.site-footer__mail { font-size: 14px; letter-spacing: .06em; margin-top: 6px; }
.site-footer__train { font-size: 13.5px; color: var(--muted); letter-spacing: .08em; margin-top: 10px; }
.site-footer__hours { font-size: 13.5px; letter-spacing: .08em; margin-top: 18px; }

/* 地図（アクセス）— #6873。共通フッターなので index / recruit の両方に効く。
   住所テキストは上に残してあり、これは「場所をつかむ」ための補助。 */
.site-footer__map {
  max-width: 620px;
  margin: 28px auto 0;
  aspect-ratio: 16 / 10;
  border-radius: 26px;   /* 写真・パネルと同じ丸み（デザインPDF準拠） */
  overflow: hidden;
  background: var(--bg-warm);
}
.site-footer__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.site-footer__maplink { margin-top: 14px; font-size: 13.5px; letter-spacing: .08em; }
.site-footer__maplink a { color: var(--orange); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  margin-top: 44px;
}
.site-footer__nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  position: relative;
}
.site-footer__nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .3s var(--ease-soft);
}
.site-footer__nav a:hover::after { transform: scaleX(1); }
.site-footer__copy { margin-top: 52px; color: var(--muted); letter-spacing: .14em; }

/* モバイル予約バー */
.mobile-reserve {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  max-width: 100%;
  z-index: 90;
  display: none;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -6px 24px rgba(43, 34, 31, .1);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  gap: 12px;
}
.mobile-reserve .reserve-link {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  border: 1.6px solid var(--red);
  border-radius: 999px;
  padding: 11px 0;
  font-size: 14px;
  letter-spacing: .1em;
}

/* ==========================================================================
   モーション
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.deco-sway { animation: sway 6.5s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(2.2deg); }
}
.hero__catch-kid.deco-sway, .news__hang-kid.deco-sway { animation-delay: 1.4s; }
.interlude__tumble.deco-sway { animation-delay: 2.6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .deco-sway { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
/* PC は追従する浮遊CTA（2026-08-25）。SP と同じ .mobile-reserve を使い回す。
   body 直下にあるのでセクションの overflow-x: clip に切られず、要素も1つで済む。
   見た目と文言はトップのヒーローの CTA に合わせる（同じボタンが追いかけてくるように見せる）:
   白い丸ピル・高さ73px・16px/700・字間.16em、prefix「公式LINEで」は隠す。
   ヒーローの CTA が画面から出たら出す（同時に2つ見せない）＝ main.js が .is-shown を付ける */
@media (min-width: 821px) {
  .mobile-reserve {
    display: flex;
    left: auto;
    right: 32px;
    bottom: 28px;
    width: auto;
    max-width: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .3s var(--ease-soft), transform .3s var(--ease-soft);
  }
  .mobile-reserve.is-shown { opacity: 1; transform: none; pointer-events: auto; }

  /* トップは「ヒーローの CTA そのもの」が留まる。自然位置＝定位置の瞬間に切り替わるので飛ばない。
     right は自然位置と同じ（left 72.1% + width 24.5% ＝ 右端から 3.4%）にして横にも動かさない */
  .hero__reserve.is-stuck {
    position: fixed;
    left: auto;
    right: 3.4%;
    top: auto;
    bottom: 28px;
    z-index: 95;
    box-shadow: 0 8px 28px rgba(43, 34, 31, .12);
  }
  .mobile-reserve .reserve-link {
    flex: 0 0 auto;
    height: 73px;
    padding: 0 40px;
    border-color: transparent;
    background: #fff;
    border-radius: 999px;
    font-size: 16px;
    letter-spacing: .16em;
    gap: 7.2px;
    box-shadow: 0 8px 28px rgba(43, 34, 31, .12);
    transition: box-shadow .3s var(--ease-soft);
  }
  .mobile-reserve .reserve-link:hover { box-shadow: 0 12px 34px rgba(43, 34, 31, .18); }
  /* PC はヒーローと同じ文言に見せる。SP は追従バーが唯一の CTA なので行き先を残す */
  .mobile-reserve .reserve-link__prefix { display: none; }
}

@media (min-width: 821px) and (prefers-reduced-motion: reduce) {
  .mobile-reserve { transition: none; transform: none; }
}

@media (max-width: 1160px) {
  .hero__nav { display: none; }
  .hero__inner { height: auto; padding-bottom: 40px; }
  .hero__photo-wrap { position: relative; left: auto; top: auto; margin: 96px auto 0; width: 86%; }
  .hero__catch { left: 4%; top: 300px; width: min(230px, 30vw); z-index: 6; }
  .status-badge { left: auto; right: 4%; top: 470px; width: min(130px, 15vw); }
  .hero__reserve {
    position: relative;
    left: auto; top: auto;
    margin: 140px auto 0;
    width: min(420px, 86%);
  }
}

@media (max-width: 820px) {
  body { letter-spacing: .04em; }

  /* SPでは浮遊する糸・丸の装飾を隠す（コンテンツとの重なり防止。タイトル一体の装飾とキャラは残す） */
  .news__deco-loop,
  .news__deco-mustard-left,
  .about__deco-circle-blue,
  .about__deco-mustard-br,
  .features__deco-circle-mustard,
  .features__deco-circle-red,
  .features__deco-circle-red2,
  .features__deco-wavy-blue,
  .interior__deco-mustard-bl,
  .interior__deco-blue-br,
  .interior__deco-circle-blue,
  .service__deco-mustard-right,
  .hours__deco-bean-blue,
  .hours__deco-circle-red,
  .hours__deco-circle-red2,
  .hours__deco-circle-mustard { display: none; }
  .site-logo { top: 22px; }
  .menu-button { width: 54px; height: 54px; gap: 6px; }
  .menu-button span { width: 22px; }

  .hero__photo-wrap { margin-top: 165px; width: 88%; }
  .hero__deco-wavy-blue { left: 6%; top: -52px; width: 52%; }
  .hero__photo-wrap .hero__deco-loop-mustard { left: 60%; top: -223px; width: 86px; }
  .hero__catch { left: 6%; top: clamp(190px, 48vw, 300px); }
  .hero__reserve { display: none; }
  .mobile-reserve { display: flex; }
  .status-badge { top: auto; bottom: 12px; right: 7%; width: min(120px, 26vw); }
  .hero__inner { padding-bottom: 165px; }

  /* おしらせ: 吹き出し＋キャラを通常フローの見出しにし、パネルは全幅で下に積む */
  .news__inner { min-height: 0; padding: 44px var(--pad-x) 0; }
  .news__title { position: relative; left: auto; top: auto; width: min(165px, 45vw); margin-left: 2px; }
  .news__title .section-title { font-size: 18px; }
  .news__kid { left: 4%; bottom: -46%; width: 25%; }
  .news__panel { margin-left: 0; width: 100%; margin-top: 40px; border-radius: 26px; padding: 24px 24px 18px; min-height: 0; }
  .news__item { grid-template-columns: 1fr; gap: .1em; padding: 14px 2px; }
  .news__item time { font-size: 12.5px; }
  .news__item-title { font-size: 14px; }
  .news__more { margin-top: 14px; }
  .service__more { margin-top: 16px; }
  .service__more .link-arrow { font-size: 12px; letter-spacing: .12em; }
  .news__more .link-plain { font-size: 12px; letter-spacing: .12em; }
  .news__hang-kid { display: none; }

  .about__inner { padding-top: 80px; }
  .about__crawl-kid { right: -4%; bottom: -10%; width: 27%; }
  .about__body {
    flex-direction: column;
    padding: 60px var(--pad-x) 0;
    gap: 48px;
  }
  .about__text { max-width: none; }
  .about__photo { max-width: 440px; align-self: center; width: 100%; }
  .about__deco-wavy-blue { display: none; }
  .about__deco-mustard-br { bottom: -120px; }

  .zone-dark { margin-top: 90px; }
  .zone-dark__cap-top { height: 100px; }
  .zone-dark__cap-bottom { height: 64px; }
  .interlude { height: 120px; }
  .interlude__tumble { left: 57%; top: -88px; width: 96px; }
  .interlude__thread { left: 19%; top: -44px; width: 39%; }
  .interlude__climb { left: 4%; top: -6px; width: 92px; }

  .features__list { padding: 70px var(--pad-x) 0; gap: 72px; }
  .feature, .feature--reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature--reverse .feature__photo { order: 0; }
  .feature--reverse .feature__text { order: 1; }
  .feature__photo img { border-radius: 28px; }
  .feature__tummy-kid { top: -60px; left: auto; right: 6%; }
  .features__inner { padding-bottom: 80px; } /* 特徴04→院内のご紹介の間延び防止（#6808 第2ラウンド） */
  .features__deco-wavy-blue { bottom: -60px; }

  .interior__title { gap: 12px; }
  .interior__rope { width: 94vw; max-width: none; top: 26px; }
  .gallery { width: 100%; padding: 0 var(--pad-x); }
  .gallery__main img { border-radius: 18px; }
  /* 6 列のままだと 1 枠が 40px 程度になり何が写っているか分からない */
  .gallery__thumbs { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
  .site-footer__map { aspect-ratio: 4 / 3; border-radius: 18px; margin-top: 24px; }
  .interior__more { margin-top: 44px; }

  .service { padding-top: 110px; }
  .service__title { width: min(228px, 58vw); padding: 34px 8px; }
  .service__kid-sit { top: -34%; width: 26%; min-width: 58px; }
  .service__circle { width: 18vw; }
  .service__kid-lie { width: 17.5vw; }
  .service__circle2 { width: 14vw; }
  .service__kid-hug { width: 8vw; min-width: 30px; }
  .service__side--left { right: 100%; top: 55%; }
  .service__side--right { left: 100%; top: 30%; }
  .service__lead { padding: 0 var(--pad-x); margin-top: 70px; }
  .service__grid { grid-template-columns: repeat(2, 1fr); padding: 44px var(--pad-x) 0; gap: 16px; }
  .service-card { min-height: 0; border-radius: 20px; }

  .hours { margin-top: 120px; }
  .hours__inner { padding: 90px var(--pad-x) 110px; }
  .hours__walk-kid { left: 2%; top: -46px; }
  .hours__thread { left: 16.5%; top: -53px; width: 70%; }
  .hours__table-wrap { margin-top: 64px; }
  .hours__table th, .hours__table td { padding: 16px 2px; font-size: 12.5px; letter-spacing: .05em; }
  .mark-open { width: 17px; height: 17px; }

  .congestion__inner { padding: 58px var(--pad-x) 32px; }
  .congestion__lead { margin-top: 22px; font-size: 13px; }
  .congestion__day { margin-top: 20px; font-size: 17px; }
  .congestion__carousel { margin-top: 18px; }
  .congestion__faces { min-height: 26px; }
  .congestion__faces img { width: 24px; }
  .congestion__status-main { font-size: 15px; }
  .congestion__status-sub { font-size: 10.5px; }
  .congestion__time { font-size: 12px; }
  .congestion__sample-note { margin-top: 20px; font-size: 10.5px; }
  .congestion__slots { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .congestion__slot { padding: 8px 2px 10px; gap: 7px; }
  .congestion__time { font-size: 9.5px; letter-spacing: 0; }
  .congestion__faces { min-height: 18px; gap: 2px; }
  .congestion__faces img { width: 15px; }
  .congestion__status-main { font-size: 11px; letter-spacing: .08em; }
  .congestion__status-sub { font-size: 8.5px; letter-spacing: .06em; }

  .site-footer { margin-top: 0; }
  .site-footer__inner { padding: 56px var(--pad-x) 140px; }
}

@media (max-width: 480px) {
  .service__grid { grid-template-columns: 1fr; }
  .hero__catch { width: min(190px, 44vw); }
}

/* 計測に関する記載（GA4 導入・#6921）。フッター最下部に小さく置く */
.site-footer__analytics {
  max-width: 720px;
  margin: 34px auto 0;
  font-size: 11.5px;
  line-height: 1.95;
  color: var(--muted);
  letter-spacing: .04em;
}
.site-footer__analytics a { color: var(--orange); border-bottom: 1px solid currentColor; }
