@charset "UTF-8";
/* =============================================================
   common.css — 全ページ共通（トークン / ベース / ヘッダー / ナビ / フッター / 共通部品）
   TOP専用は front.css、下層専用は under.css / under-post.css。
   色・フォントは :root の変数だけを参照する（値の直書き禁止）。
   値は本番（urakawa-o-dent.com）の実測値：本文16px・行間1.9、ナビ19px/700、フッター13〜16px 等。
   ============================================================= */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* 色 */
  --c-primary:  #64a37b;            /* メイン緑：ナビ現在地・表見出し・ボタン */
  --c-lime:     #70b000;            /* 明るい緑：小見出し・日付アイコン */
  --c-lime-btn: #8cc03c;            /* ボタン用の明るい緑 */
  --c-text:     #000;               /* 本文 */
  --c-muted:    #666;               /* 補足テキスト */
  --c-line:     #e5e5e5;            /* 罫線 */
  --c-bg-gray:  #eaeaea;            /* フッター背景 */
  --c-bg-soft:  #f5f5f5;            /* 淡い灰色の帯 */
  --c-white:    #fff;
  --c-menu-sp:      #6da782;               /* SP メニューの背景（本番の緑） */
  --c-menu-sp-line: rgba(0, 0, 0, .35);    /* SP メニューの区切り線 */

  /* フォント（個別要素で font-family を指定せず、ここから継承する） */
  --f-base: 'Noto Serif JP', 'Noto Serif', serif;
  --f-en:   'Noto Serif', serif;
  --f-point: 'Overpass', sans-serif;   /* 番号・cause1 などの大きな英数字（本番どおり Overpass 700） */

  /* レイアウト */
  --w-wrap:   1170px;               /* コンテンツ最大幅 */
  --w-gutter: 15px;
  --h-gnav:   61px;                 /* ナビ行の高さ */
}

/* ---------- 2. ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-base);
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;                 /* hidden だと sticky が効かなくなるため clip */
}
img, picture, svg, iframe { max-width: 100%; vertical-align: bottom; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, address { margin: 0; font-weight: 400; font-style: normal; }
button { font: inherit; cursor: pointer; }
i[class*="fa-"] { font-style: normal; }    /* FontAwesome の <i> は親の font-family を継承させない */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 3. ヘッダー ---------- */
.l-header { position: relative; z-index: 100; background: var(--c-white); box-shadow: 0 4px 6px -4px rgba(0, 0, 0, .12); }
.l-header__top {
  position: relative;
  display: flex; align-items: flex-start;
  max-width: var(--w-wrap); height: 200px; margin: 0 auto; padding: 0 5px;
  border-bottom: 1px solid #eee;
}
.l-header__brand { flex: 0 0 480px; padding-top: 40px; }
.l-header__catch { font-size: 16px; line-height: 30px; }
.l-header__logo { display: block; width: 346px; margin-top: 8px; }
.l-header__logo img { width: 346px; height: auto; }

.l-header__tel { margin: 66px 0 0 46px; }
.l-header__tel-lead { font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--c-muted); }
.l-header__tel-num { display: block; font-family: var(--f-en); font-size: 26px; font-style: italic; font-weight: 700; line-height: 1.6; color: var(--c-primary); }

.l-header__hours { display: flex; margin: 20px 0 0 auto; padding-right: 35px; }
.l-header__hours-ttl { width: 30px; margin-right: 14px; padding: 0 0 0 8px; font-size: 16px; line-height: 30px; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .1em; }
.l-header__hours-list { width: 283px; padding-left: 15px; border-left: 2px solid var(--c-lime-btn); font-size: 14px; line-height: 26.6px; }
.l-header__hours-list dt { margin-top: 0; }

.l-header__burger { display: none; }
.l-header__bar { display: none; }              /* スクロール後の固定バーは SP のみ */

/* ---------- 4. グローバルナビ（PC：中央寄せ・ドロップダウン3階層） ---------- */
.l-gnav { max-width: var(--w-wrap); margin: 0 auto; }
.l-gnav__list { display: flex; justify-content: center; }
.l-gnav__item { position: relative; }
.l-gnav__item > a { display: block; padding: 0 55px; font-size: 19px; font-weight: 700; line-height: var(--h-gnav); white-space: nowrap; transition: color .2s; }
.l-gnav__item:hover > a, .l-gnav__item.is-current > a { color: var(--c-primary); }
.l-gnav__toggle { display: none; }

.l-gnav__sub { position: absolute; left: 0; top: 100%; z-index: 10; display: none; width: 300px; background: var(--c-primary); }
.l-gnav__sub--2, .l-gnav__sub--3 { top: 0; left: 100%; }
.l-gnav__item:hover > .l-gnav__sub, .l-gnav__item:focus-within > .l-gnav__sub { display: block; }
.l-gnav__sub .l-gnav__item > a { padding: 15px 20px; font-size: 15px; font-weight: 400; line-height: 24px; color: var(--c-white); white-space: normal; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.l-gnav__sub .l-gnav__item:hover > a { background: rgba(255, 255, 255, .18); color: var(--c-white); }
.l-gnav__sub .has-child > a { padding-right: 36px; }
.l-gnav__sub .has-child > a::after { content: "\f105"; position: absolute; right: 16px; font-family: "Font Awesome 5 Free"; font-weight: 900; }

/* ---------- 5. 共通部品 ---------- */
/* ボタン（「VIEW MORE →」型）。色は modifier で切替 */
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 200px; padding: 14px 24px; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; color: var(--c-white); background: var(--c-primary); transition: filter .2s; }
.c-btn::after { content: "\f061"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 12px; }
.c-btn:hover { filter: brightness(1.08); }
.c-btn--lime { background: var(--c-lime-btn); }
.c-btn--outline { color: var(--c-primary); background: transparent; border: 1px solid var(--c-primary); }
.c-btnwrap { margin-top: 30px; text-align: center; }

/* 診療時間表（フッター・TOP 医院情報） */
.c-hours { width: 100%; max-width: 505px; border-collapse: collapse; font-size: 16px; text-align: center; }
.c-hours th, .c-hours td { height: 44px; padding: 0; font-weight: 400; }
.c-hours thead th { color: var(--c-white); background: var(--c-primary); }
.c-hours tbody th { width: 158px; }
.c-hours tbody tr { border-bottom: 1px solid #999; }
.c-hours .is-off { color: var(--c-muted); }
.c-hours--lg { max-width: 466px; }

/* パンくず */
.c-crumb { width: min(var(--w-wrap), calc(100% - 2 * var(--w-gutter))); margin: 0 auto; }
.c-crumb__list { display: flex; flex-wrap: wrap; font-size: 16px; line-height: 1.6; }
.c-crumb__list li + li::before { content: "›"; margin: 0 8px; color: var(--c-muted); }
.c-crumb__list a { color: var(--c-primary); }
.c-crumb__list span { color: var(--c-muted); }

/* 下層ページのタイトル帯（唯一の h1）：緑の楕円 */
.c-title { width: min(var(--w-wrap), calc(100% - 2 * var(--w-gutter))); margin: 90px auto 100px; }
.c-title__text { display: flex; align-items: center; justify-content: center; min-height: 106px; padding: 0 40px; border-radius: 55px; font-size: 40px; line-height: 76px; text-align: center; color: var(--c-text); background: #82b595; }

/* 下層ページのタイトル帯：写真バナー（アクセス・施設案内など6ページ。写真の表示位置だけページごとに違う） */
.c-hero { display: flex; align-items: center; justify-content: center; height: 246px; margin: 15px 0 25px; background: url("../img/common/hero-under.webp") 50% 40% / cover no-repeat; }
.c-hero--access, .c-hero--facility { background-position: 57% 47%; }
.c-hero--clinic { background-position: 45% 36%; }
.c-hero--doctor { background-position: 45% 40%; }
.c-hero--outpatient { background-position: 52% 41%; }
.c-hero--treatment { background-position: 43% 43%; }
.c-hero__text { padding: 0 15px; font-size: 40px; line-height: 76px; text-align: center; }
/* 追従CTA（SP 下部固定）／ページトップ */
.c-fixcta { display: none; }
.c-pagetop { position: fixed; right: 0; bottom: 120px; z-index: 90; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--c-white); background: var(--c-primary); opacity: .85; }
.c-pagetop[hidden] { display: none; }

/* ---------- 6. フッター ---------- */
.l-footer { margin-top: 100px; padding: 70px 0 30px; background: var(--c-bg-gray); }
.l-footer__inner { max-width: var(--w-wrap); margin: 0 auto; padding: 0 25px; }
.l-footer__top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 40px; border-bottom: 1px dashed #999; }
.l-footer__info { flex: 0 1 560px; }
.l-footer__logo { display: block; width: 417px; max-width: 100%; margin-bottom: 20px; }
.l-footer__logo img { width: 100%; }
.l-footer__addr { font-size: 13px; line-height: 24.7px; }
.l-footer__postal { display: block; color: var(--c-muted); }
.l-footer__tel { margin: 12px 0 20px; font-size: 28px; line-height: 1.6; color: #454545; }
.l-footer__tel i { margin-right: 14px; font-size: 20px; }
.l-footer__legend { margin-top: 20px; }
.l-footer__legend li { line-height: 30.4px; }
.l-footer__closed { margin-top: 24px; line-height: 30.4px; }
.l-footer__closed span { display: block; }
.l-footer__side { flex: 0 0 545px; }
.l-footer__map iframe { display: block; width: 100%; height: 388px; border: 0; }
.l-footer__banners { margin-left: 15px; padding-top: 35px; }
.l-footer__banners li + li { margin-top: 30px; }
.l-footer__banners img { width: 283px; border: 1px solid var(--c-line); }

.l-footer__nav { padding: 40px 0 10px; }
.l-footer__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; }
.l-footer__row--4 { grid-template-columns: repeat(4, 1fr); }
.l-footer__group { padding: 0 5px 30px; }
.l-footer__group-ttl { margin-bottom: 14px; font-family: var(--f-en); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--c-primary); }
.l-footer__group li a { display: block; padding: 2px 0; line-height: 30.4px; }
.l-footer__group li a:hover { color: var(--c-primary); }
.l-footer__copy { margin-top: 30px; font-size: 13px; text-align: center; letter-spacing: .06em; }

/* ---------- 7. SP ---------- */
@media (max-width: 1200px) {
  .l-gnav__item > a { padding: 0 30px; }
}

@media (max-width: 960px) {
  body { padding-bottom: 54px; }                 /* 追従CTA分 */
  /* 通常ヘッダー（本番SPと同じ縦長：キャッチ・ロゴ・電話・メニューボタン。高さ約290px） */
  .l-header { box-shadow: 0 4px 6px -4px rgba(0, 0, 0, .18); }
  .l-header__top { display: block; height: auto; padding: 25px 25px 15px; border-bottom: 0; }
  .l-header__brand { padding-top: 10px; }
  .l-header__catch { font-size: 12px; line-height: 23px; }
  .l-header__logo, .l-header__logo img { width: 228px; margin-top: 0; }
  .l-header__logo { margin-top: -5px; }
  .l-header__tel { margin: 14px -10px 0; padding-bottom: 12px; text-align: center; border-bottom: 1px solid #eee; }
  .l-header__tel-lead { font-size: 14px; line-height: 22px; }
  .l-header__tel-num { font-size: 14px; line-height: 22px; }
  .l-header__hours { display: none; }
  .l-header__menu-row { display: flex; justify-content: flex-end; align-items: center; height: 66px; padding-right: 15px; }
  .l-header__burger { display: block; position: relative; z-index: 3; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
  .l-header__burger span { position: absolute; left: 9px; width: 26px; height: 3px; background: var(--c-muted); transition: transform .25s, opacity .25s; }
  .l-header__burger span:nth-child(1) { top: 12px; }
  .l-header__burger span:nth-child(2) { top: 20px; }
  .l-header__burger span:nth-child(3) { top: 28px; }
  .l-header__burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
  .l-header__burger.is-open span:nth-child(2) { opacity: 0; }
  .l-header__burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

  /* スクロール後に出る細い固定バー（ロゴ＋メニューボタン） */
  .l-header__bar { display: flex; align-items: center; justify-content: space-between; position: fixed; top: 0; left: 0; right: 0; z-index: 2; height: 93px; padding: 0 30px 0 5px; background: var(--c-white); box-shadow: 0 3px 8px rgba(0, 0, 0, .12); transform: translateY(-110%); transition: transform .3s; }
  .is-header-scrolled .l-header__bar { transform: none; }
  .l-header__bar-logo img { width: 129px; height: auto; }

  /* SP メニュー：左から出る緑のパネル＋右側を暗くするオーバーレイ（本番と同じ構成） */
  .l-header.is-menu-open::after { content: ""; position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, .4); }
  .l-header.is-menu-open .l-header__bar { z-index: 3; background: transparent; box-shadow: none; }
  .l-header.is-menu-open .l-header__bar-logo { visibility: hidden; }
  .l-gnav { display: none; position: fixed; left: 0; top: 0; bottom: 0; z-index: 4; width: 80%; max-width: 312px; margin: 0; overflow-y: auto; color: var(--c-white); background: var(--c-menu-sp); }
  .l-gnav.is-open { display: block; }
  .l-gnav::before { content: "Menu"; display: block; height: 44px; font-size: 13px; font-weight: 700; line-height: 43px; text-align: center; border-bottom: 1px solid var(--c-menu-sp-line); }
  .l-gnav__list { display: block; }
  .l-gnav__item { border-bottom: 1px solid var(--c-menu-sp-line); }
  .l-gnav__item > a { padding: 0 56px 0 20px; font-size: 14px; font-weight: 700; line-height: 43px; color: var(--c-white); }
  .l-gnav__item:hover > a, .l-gnav__item.is-current > a { color: var(--c-white); }
  .l-gnav__toggle { display: block; position: absolute; right: 0; top: 0; width: 56px; height: 43px; border: 0; background: transparent; }
  .l-gnav__toggle::before { content: "\f054"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 12px; color: var(--c-white); transition: transform .2s; }
  .is-expanded > .l-gnav__toggle::before { transform: rotate(90deg); }
  .l-gnav__sub, .l-gnav__sub--2, .l-gnav__sub--3 { position: static; display: none; width: auto; background: rgba(0, 0, 0, .12); }
  .l-gnav__item:hover > .l-gnav__sub, .l-gnav__item:focus-within > .l-gnav__sub { display: none; }
  .l-gnav__item.is-expanded > .l-gnav__sub { display: block; }
  .l-gnav__sub .l-gnav__item:last-child { border-bottom: 0; }
  .l-gnav__sub .l-gnav__item > a { padding: 11px 56px 11px 32px; font-size: 13px; font-weight: 400; line-height: 1.6; border-bottom: 0; }
  .l-gnav__sub .l-gnav__item:hover > a { background: transparent; }
  .l-gnav__sub .has-child > a::after { display: none; }
  .l-gnav__sub--2 .l-gnav__item > a { padding-left: 46px; }
  .l-gnav__sub--3 .l-gnav__item > a { padding-left: 60px; }
  .l-gnav__toggle { display: flex; align-items: center; justify-content: center; }
  .l-gnav__sub .l-gnav__toggle { height: 43px; }
  .c-title { margin: 45px auto 79px; }
  .c-title__text { min-height: 95px; padding: 0 20px; border-radius: 48px; font-size: 25px; line-height: 47.5px; }
  .c-hero { height: 146px; margin: 0 0 35px; }
  .c-hero__text { font-size: 28px; font-weight: 700; line-height: 1.5; }
  .c-crumb__list { font-size: 15px; line-height: 19.5px; }

  .c-fixcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; }
  .c-fixcta__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; font-size: 16px; font-weight: 700; color: var(--c-white); background: var(--c-primary); }
  .c-pagetop { bottom: 70px; }

  .l-footer { margin-top: 60px; padding: 40px 0 20px; }
  .l-footer__inner { padding: 0 15px; }
  .l-footer__top { flex-direction: column; }
  .l-footer__info, .l-footer__side { flex: 0 0 auto; width: 100%; }
  .l-footer__banners { margin-left: 0; padding-top: 30px; }
  .l-footer__banners { display: flex; flex-wrap: wrap; gap: 14px; }
  .l-footer__banners li + li { margin-top: 0; }
  .l-footer__banners img { width: 100%; max-width: 283px; }
  .l-footer__row, .l-footer__row--4 { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .c-hours { font-size: 14px; }
  .c-hours th, .c-hours td { height: 38px; }
  .c-hours tbody th { width: 28%; }
}

@media (max-width: 560px) {
  .l-footer__row, .l-footer__row--4 { grid-template-columns: 1fr; }
  .c-title__text { font-size: 22px; }
}
