@charset "UTF-8";
/* ===================================================================
   ぜんなみ歯科クリニック  https://zennami-shika.com/
   style.css  —  新規実装 2026-09-03
   モバイルファースト / ブレークポイントは 769px の1本のみ
   Webフォント読み込み 0 / 画像以外の外部アセット 0
   =================================================================== */


/* ===================================================================
   1. トークン
   =================================================================== */
:root{
  /* --- 面 --- */
  --c-bg:          #FFFFFF;
  --c-band:        #F4F3F1;
  --c-band-2:      #E8E5E0;
  --c-band-dark:   #6B6B6B;
  --c-ribbon:      #5E5E5E;
  --c-footer:      #4A4A4A;
  --c-cta:         #3F3F3F;

  /* --- 文字 --- */
  --c-ink:         #2B2B2B;
  --c-ink-2:       #3F3F3F;
  --c-muted:       #5A5A5A;
  --c-heading-soft:#6B6B6B;
  --c-on-dark:     #FFFFFF;

  /* --- 線・装飾 --- */
  --c-line:        #DCDAD6;
  --c-line-2:      #C9C4BC;
  --c-ornament:    #C9C4BC;

  /* --- 状態 --- */
  --c-focus:       #0F5FA6;
  --c-focus-dark:  #FFFFFF;

  /* --- 書体 --- */
  --font-mincho: "Hiragino Mincho ProN","Hiragino Mincho Pro","Yu Mincho","YuMincho",
                 "BIZ UDPMincho","Noto Serif JP","Noto Serif CJK JP",serif;
  --font-gothic: system-ui,-apple-system,"Hiragino Sans","Hiragino Kaku Gothic ProN",
                 "Yu Gothic Medium","YuGothic","Yu Gothic","BIZ UDPGothic","Noto Sans JP",
                 "Meiryo",sans-serif;

  /* --- タイポ（SP基準） --- */
  --fs-logo:   1.125rem;   /* 18px */
  --fs-tel:    1.25rem;    /* 20px */
  --fs-h2:     1.375rem;   /* 22px */
  --fs-h3:     1.125rem;   /* 18px */
  --fs-lead:   1rem;       /* 16px */
  --fs-body:   1rem;       /* 16px */
  --fs-body-g: 0.90625rem; /* 14.5px */
  --fs-sub:    0.8125rem;  /* 13px */
  --fs-note:   0.78125rem; /* 12.5px */
  --fs-nav:    1.0625rem;  /* 17px（ドロワー） */
  --fs-footer: 0.75rem;    /* 12px */

  /* --- 余白 --- */
  --s-1:4px;  --s-2:8px;  --s-3:12px; --s-4:16px; --s-5:20px;
  --s-6:24px; --s-7:32px; --s-8:40px; --s-9:48px; --s-10:56px;
  --s-11:72px;--s-12:96px;--s-13:120px;

  --pad-section: 56px;
  --gutter: 20px;
  --gap-title: 36px;
  --gap-doc: 56px;
  --gap-treat: 48px;

  /* --- レイアウト --- */
  --w-content: 940px;
  --w-hero:   1124px;
  --w-prose:    36em;
  --h-nav:      56px;
  --h-header-sp:56px;
  --h-cta:      60px;
  --scroll-offset: 64px;

  /* --- z-index --- */
  --z-nav:50; --z-pagetop:60; --z-cta:70; --z-drawer:90; --z-skip:999;

  /* --- モーション --- */
  --dur-fast:160ms; --dur:220ms; --dur-slow:260ms;
  --ease: cubic-bezier(.22,.61,.36,1);
}


/* ===================================================================
   2. リセット / ベース
   =================================================================== */
*,*::before,*::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body{
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-gothic);
  font-size: var(--fs-body-g);
  line-height: 1.95;
  font-synthesis: none;
  /* 日本語の禁則・折り返し。overflow-wrap:anywhere は使わない */
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
}

h1,h2,h3,p,dl,dd,figure,blockquote{ margin: 0; }
dt{ margin: 0; }
ul,ol{ margin: 0; padding: 0; list-style: none; }

img,picture,svg,iframe{ display: block; max-width: 100%; }
img{ height: auto; }

a{ color: inherit; }

button{
  font: inherit; color: inherit;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}

table{ border-collapse: collapse; }
caption{ text-align: left; }

/* 数字の桁揃え */
.c-tel__num,.c-cta__num,.c-drawer__tel,
.p-hours__table th[scope="row"],
.p-fee__price,
.l-footer__nap{
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 固定ヘッダ／固定ナビの下にアンカー先が潜り込まないようにする */
section[id],
[id="top"]{ scroll-margin-top: var(--scroll-offset); }


/* ===================================================================
   3. ユーティリティ / アクセシビリティ
   =================================================================== */
.u-sr{
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.u-skip{
  position: absolute;
  left: -9999px;
  top: 0;
}
.u-skip:focus{
  left: var(--gutter);
  top: 8px;
  z-index: var(--z-skip);
  background: var(--c-bg);
  color: var(--c-ink);
  padding: 12px 20px;
  font-size: var(--fs-body-g);
  text-decoration: none;
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}

/* フォーカスリング。outline:none の単独指定は禁止 */
:focus-visible{
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 2px;
}
.u-on-dark :focus-visible,
.u-on-dark:focus-visible{
  outline-color: var(--c-focus-dark);
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ===================================================================
   4. ヘッダー
   =================================================================== */
.l-header{
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}

.l-header__inner{
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--h-header-sp);
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: var(--s-3);
}

.l-header__name{
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: var(--fs-logo);
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--c-ink);
  white-space: nowrap;
}

.l-header__tagline,
.l-header__contact{ display: none; }


/* --- ハンバーガー --- */
.c-burger{
  width: 44px; height: 44px;
  justify-self: end;
  display: grid;
  place-content: center;
  gap: 6px;
}
.c-burger__bar{
  display: block;
  width: 20px; height: 2px;
  background: var(--c-ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.c-burger[aria-expanded="true"] .c-burger__bar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.c-burger[aria-expanded="true"] .c-burger__bar:nth-child(2){ opacity: 0; }
.c-burger[aria-expanded="true"] .c-burger__bar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }


/* --- 電話（ヘッダー・PCのみ表示） --- */
.c-tel{
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--c-ink-2);
  text-decoration: none;
}
.c-tel:hover .c-tel__num,
.c-tel:focus-visible .c-tel__num{
  text-decoration: underline;
  text-underline-offset: 5px;
}
.c-tel__icon{ flex: none; }
.c-tel__num{
  font-size: var(--fs-tel);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .02em;
}


/* ===================================================================
   5. グローバルナビ（PCのみ）
   =================================================================== */
.l-nav{ display: none; }


/* ===================================================================
   6. ドロワー（SP）
   =================================================================== */
.c-drawer{
  /* position:fixed で右端に固定する。absolute だと、閉じるトランジション中や
     万一表示が残った場合に画面外へ逃がした 320px がページの横スクロールを生む。
     fixed の要素はスクロール領域を広げないので、その事故が起き得なくなる */
  position: fixed;
  inset: 0 0 auto auto;
  width: min(84vw, 320px);
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  overflow-y: auto;
  transform: translateX(100%);
  transition:
    transform var(--dur-slow) var(--ease),
    overlay var(--dur-slow) allow-discrete,
    display var(--dur-slow) allow-discrete;
}
/* 開いた状態の「静的な」値が translateX(0)。スライドインは keyframes に任せる。
   @starting-style + transition だけで位置を決めると、トランジションが走らない
   状況（描画スロットリング等）でパネルが画面外に居座り、暗幕だけ出た壊れた
   メニューになる。アニメが動かなくても正しく表示される形にしておく */
.c-drawer[open]{
  transform: translateX(0);
  animation: drawer-in var(--dur-slow) var(--ease);
}
@keyframes drawer-in{
  from{ transform: translateX(100%); }
}
.c-drawer::backdrop{ background: rgba(43,43,43,.45); }

.c-drawer__close{
  width: 44px; height: 44px;
  margin-left: auto;
  position: relative;
}
/* 絶対配置の子はグリッドの place-content を受け取らないので、
   top/left 50% + ネガティブマージンで自前で中央に置く */
.c-drawer__close span{
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 2px;
  margin: -1px 0 0 -10px;
  background: var(--c-ink);
}
.c-drawer__close span:nth-child(1){ transform: rotate(45deg); }
.c-drawer__close span:nth-child(2){ transform: rotate(-45deg); }

.c-drawer__list{ border-top: 1px solid var(--c-line); }
.c-drawer__link{
  display: block;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: var(--fs-nav);
  line-height: 1;
  letter-spacing: .10em;
  text-decoration: none;
}

.c-drawer__contact{
  padding: 28px 24px 40px;
  text-align: center;
}
.c-drawer__label{
  font-size: var(--fs-footer);
  color: var(--c-muted);
  letter-spacing: .04em;
}
.c-drawer__tel{
  display: inline-block;
  margin-top: var(--s-2);
  padding: 8px 4px;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--c-ink-2);
  letter-spacing: .02em;
  text-decoration: none;
}
.c-drawer__tel:hover,
.c-drawer__tel:focus-visible{
  text-decoration: underline;
  text-underline-offset: 5px;
}
.c-drawer__addr{
  margin-top: var(--s-3);
  font-size: var(--fs-footer);
  line-height: 1.8;
  color: var(--c-muted);
}


/* ===================================================================
   7. メインビジュアル
   =================================================================== */
.p-hero__img{
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 55%;
}


/* ===================================================================
   8. セクション共通
   =================================================================== */
.c-sec{ padding-block: var(--pad-section); }
.c-sec--band{ background: var(--c-band); }
.c-sec--flush{ padding-bottom: 0; }

.c-sec__inner{
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.c-sec__head{ margin-bottom: var(--gap-title); }

.c-sec__title{
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.5;
  letter-spacing: .14em;
  text-align: center;
  color: var(--c-ink);
}

.c-sec__sub{
  margin-top: var(--s-3);
  text-align: center;
  font-size: var(--fs-note);
  letter-spacing: .12em;
  color: var(--c-muted);
}

.c-orn{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.c-orn i{
  width: 8px; height: 8px;
  background: var(--c-ornament);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}


/* ===================================================================
   9. お知らせ
   =================================================================== */
.p-news__empty{
  text-align: center;
  font-size: 0.9375rem;
  color: var(--c-muted);
  padding-block: 28px;
}


/* ===================================================================
   10. ごあいさつ（医師）
   =================================================================== */
.p-doc + .p-doc{ margin-top: var(--gap-doc); }

.p-doc__photo img{
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.p-doc__name{
  margin-top: var(--s-6);
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--c-ink);
}
.p-doc__role{
  display: block;
  margin-bottom: var(--s-2);
  font-family: var(--font-gothic);
  font-weight: 400;
  font-size: var(--fs-sub);
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--c-muted);
}

.p-doc__article{ margin-top: var(--s-5); }

.p-doc__lead{
  background: var(--c-band-dark);
  color: var(--c-on-dark);
  padding: 16px 20px;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: var(--fs-lead);
  line-height: 1.75;
  letter-spacing: .06em;
}

/* 背面オフセット矩形。z-index を使わず、
   絶対配置の ::before → position:relative の本体、の描画順で重ねる */
.p-doc__bodywrap{
  position: relative;
  margin-top: var(--s-5);
}
.p-doc__bodywrap::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-band);
  transform: translate(8px, 8px);
}
.p-doc__body{
  position: relative;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  padding: 24px 20px;
}
.p-doc__body p{
  font-family: var(--font-mincho);
  font-size: var(--fs-body);
  line-height: 2.0;
  letter-spacing: .04em;
  color: var(--c-ink);
}
.p-doc__body p + p{ margin-top: 1.6em; }

.p-doc__bio{
  margin-top: 28px;
  font-size: var(--fs-sub);
  line-height: 1.9;
  color: var(--c-muted);
}
.p-doc__biolabel{
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-2);
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-footer);
  letter-spacing: .12em;
  line-height: 1.4;
}


/* ===================================================================
   11. 当院の特徴
   =================================================================== */
.p-feat{
  display: grid;
  gap: var(--s-5);
}

.p-feat__card{
  position: relative;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
}

.p-feat__top{
  background: var(--c-band-2);
  padding: 36px 20px 22px;
  text-align: center;
}

.p-feat__tag{
  position: absolute;
  top: 0; left: 0;
  background: var(--c-ribbon);
  color: var(--c-on-dark);
  font-size: var(--fs-footer);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.2;
  padding: 6px 20px 6px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.p-feat__title{
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.75;
  letter-spacing: .06em;
  color: var(--c-ink);
}

.p-feat__text{
  flex: 1;
  padding: 22px 20px 26px;
  font-size: var(--fs-body-g);
  line-height: 1.95;
  color: var(--c-ink);
}


/* ===================================================================
   12. 診療内容
   =================================================================== */
.p-treat + .p-treat{ margin-top: var(--gap-treat); }

.p-treat__photo img{
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.p-treat__article{ margin-top: var(--s-5); }

.p-treat__title{
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.6;
  letter-spacing: .10em;
  color: var(--c-heading-soft);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 18px;
}

/* clip-path は border を切り落とすので、このボックスは塗りのみで成立させる */
.p-treat__box{
  background: var(--c-band);
  padding: 22px 20px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.p-treat__box p{
  font-family: var(--font-mincho);
  font-size: var(--fs-body);
  line-height: 2.0;
  letter-spacing: .04em;
  color: var(--c-ink);
}

.p-treat__note{
  margin-top: var(--gap-treat);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-note);
  line-height: 1.9;
  color: var(--c-muted);
}
.p-treat__note a{ color: var(--c-ink-2); text-underline-offset: 3px; }


/* ===================================================================
   13. 費用の目安（自由診療）
   =================================================================== */
.p-fee__lead{
  font-size: var(--fs-body-g);
  line-height: 1.95;
  color: var(--c-ink);
}

.p-fee__item{
  margin-top: var(--s-8);
  border-top: 1px solid var(--c-line-2);
  padding-top: var(--s-6);
}
.p-fee__item--notice{ background: var(--c-band); padding: var(--s-6) var(--s-5); border-top-color: var(--c-line); }

.p-fee__name{
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--c-ink);
  margin-bottom: var(--s-5);
}

.p-fee__detail dt{
  margin-top: var(--s-5);
  padding-left: 14px;
  position: relative;
  font-size: var(--fs-sub);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--c-muted);
}
.p-fee__detail dt::before{
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  background: var(--c-line-2);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.p-fee__detail dt:first-child{ margin-top: 0; }

.p-fee__detail dd{
  margin-top: var(--s-2);
  font-size: var(--fs-body-g);
  line-height: 1.95;
  color: var(--c-ink);
}

.p-fee__price{
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--c-ink-2);
}

/* 公開前に必ず実数値へ置換する箇所。見落とさないよう強く目立たせる */
.p-fee__todo{
  background: #FFF3B0;
  color: #6B4A00;
  padding: 0 .25em;
  font-weight: 500;
  outline: 1px dashed #A6822E;
}

.p-fee__note{
  max-width: var(--w-prose);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-note);
  line-height: 1.9;
  color: var(--c-muted);
}
.p-fee__note a{ color: var(--c-ink-2); text-underline-offset: 3px; }


/* ===================================================================
   14. 診療時間
   =================================================================== */
.p-hours__scrollhint{
  margin-bottom: var(--s-2);
  text-align: center;
  font-size: var(--fs-footer);
  color: var(--c-muted);
}

.p-hours__wrap{
  /* .u-sr は position:absolute。ここを包含ブロックにしておかないと
     表外へ抜け出して overflow-x のクリップを受けず、ページ全体が横スクロールする */
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.p-hours__table{
  width: 100%;
  min-width: 560px;
}

.p-hours__table thead th{
  background: var(--c-band-2);
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: .04em;
  color: var(--c-ink);
  padding: 12px 8px;
  text-align: center;
}
.p-hours__table thead th:first-child{
  width: 132px;
  text-align: left;
  padding-left: 12px;
}

.p-hours__table tbody th[scope="row"]{
  background: var(--c-band);
  font-family: var(--font-gothic);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: .02em;
  color: var(--c-ink);
  text-align: left;
  padding: 14px 8px 14px 12px;
  border-top: 1px solid var(--c-line);
  white-space: nowrap;
}

/* 横スクロール時に時間帯を見失わないよう1列目を固定 */
.p-hours__table thead th:first-child,
.p-hours__table tbody th[scope="row"]{
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid var(--c-line-2);
}

.p-hours__table td{
  text-align: center;
  vertical-align: middle;
  padding: 14px 8px;
  height: 48px;
  border-top: 1px solid var(--c-line);
}

/* ●／— はフォント差を避けてCSS図形で描く（代替テキストは .u-sr で併記済み） */
.p-hours__mk{
  display: inline-block;
  vertical-align: middle;
}
.p-hours__mk--open{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-ink);
}
.p-hours__mk--closed{
  width: 14px; height: 1.5px;
  background: var(--c-muted);
}

.p-hours__side{
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line-2);
}
.p-hours__legend{
  font-size: var(--fs-sub);
  color: var(--c-ink);
  margin-bottom: var(--s-3);
}
.p-hours__legend .p-hours__mk{ margin-inline: 10px 2px; }
.p-hours__legend .p-hours__mk:first-child{ margin-left: 0; }

.p-hours__note{
  font-size: var(--fs-sub);
  line-height: 1.8;
  color: var(--c-muted);
}
.p-hours__note strong{ color: var(--c-ink); font-weight: 500; }
.p-hours__note + .p-hours__note{ margin-top: var(--s-2); }


/* ===================================================================
   15. 当院について（アクセス・医院情報）
   =================================================================== */
.p-access{ margin-top: var(--s-2); }

.p-access__map iframe{
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}

.p-access__maplink{
  padding: var(--s-4) var(--gutter);
  text-align: center;
  font-size: var(--fs-body-g);
}
.p-access__maplink a{
  color: var(--c-ink-2);
  text-underline-offset: 4px;
  display: inline-block;
  padding: 6px 4px;
}

.p-access__panel{
  background: var(--c-band-dark);
  color: var(--c-on-dark);
  padding: 40px var(--gutter);
}
.p-access__name{
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: .10em;
  line-height: 1.6;
  margin-bottom: var(--s-6);
}
.p-access__dl dt{
  position: relative;
  padding-left: 14px;
  font-size: var(--fs-sub);
  letter-spacing: .06em;
  line-height: 1.6;
}
.p-access__dl dt::before{
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 6px; height: 6px;
  background: rgba(255,255,255,.75);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.p-access__dl dd{
  margin: 6px 0 20px;
  font-size: 0.9375rem;
  line-height: 1.9;
}
.p-access__dl dd:last-child{ margin-bottom: 0; }
.p-access__dl a{
  color: var(--c-on-dark);
  text-underline-offset: 4px;
  display: inline-block;
  padding: 2px 0;
}


/* ===================================================================
   16. フッター
   =================================================================== */
.l-footer{
  background: var(--c-footer);
  color: var(--c-on-dark);
  text-align: center;
  padding: var(--s-7) var(--gutter);
  /* SP固定CTAバーの高さぶんを footer 自身で確保する */
  padding-bottom: calc(var(--s-7) + var(--h-cta) + env(safe-area-inset-bottom));
}
.l-footer__name{
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: .12em;
  line-height: 1.6;
}
.l-footer__nap{
  margin-top: var(--s-3);
  font-size: var(--fs-footer);
  line-height: 1.9;
}
.l-footer__nap a{ color: var(--c-on-dark); text-underline-offset: 3px; }
.l-footer__copy{
  margin-top: var(--s-5);
  font-size: var(--fs-footer);
  line-height: 1.8;
}
.l-footer__copy small{ font-size: inherit; }


/* ===================================================================
   17. ページトップ
   =================================================================== */
.c-pagetop{
  position: fixed;
  right: 20px;
  bottom: calc(var(--h-cta) + env(safe-area-inset-bottom) + 12px);
  z-index: var(--z-pagetop);
  width: 48px; height: 48px;
  display: grid;
  place-content: center;
  background: var(--c-footer);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.c-pagetop.is-shown{ opacity: 1; visibility: visible; }
.c-pagetop__arw{
  width: 10px; height: 8px;
  background: var(--c-on-dark);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}


/* ===================================================================
   18. SP固定CTA（電話）
   =================================================================== */
.c-cta{
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-cta);
  height: calc(var(--h-cta) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--c-cta);
  color: var(--c-on-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
}
.c-cta__icon{ flex: none; }
.c-cta__label{
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .06em;
}
.c-cta__num{
  font-size: 0.8125rem;
  letter-spacing: .02em;
  opacity: .9;
}


/* ===================================================================
   19. PC（769px 以上）
   =================================================================== */
@media (min-width: 769px){

  :root{
    --fs-logo:   clamp(1.125rem, .55rem + 2.4vw, 1.75rem);
    --fs-tel:    1.875rem;   /* 30px */
    --fs-h2:     clamp(1.375rem, 1rem + 1.6vw, 1.875rem);
    --fs-h3:     clamp(1.125rem, .85rem + 1.2vw, 1.375rem);
    /* 20pxだと院長キャッチ1行目（20字）が article列416pxを7px超えて3行になる。
       Windows の Yu Mincho は更に字幅が変わるため、余裕をみて19px+字間.04emに落とす */
    --fs-lead:   1.1875rem;  /* 19px */
    --fs-body:   1.03125rem; /* 16.5px */
    --fs-body-g: 0.9375rem;  /* 15px */
    --fs-sub:    0.84375rem; /* 13.5px */
    --fs-note:   0.8125rem;  /* 13px */

    --pad-section: 96px;
    --gutter: 24px;
    --gap-title: 56px;
    --gap-doc: 96px;
    --gap-treat: 80px;
  }

  body{ font-size: var(--fs-body-g); }

  /* --- ヘッダー --- */
  .l-header{ position: static; }
  .l-header__inner{
    grid-template-columns: 1fr auto;
    align-items: end;
    padding-block: 20px;
    min-height: 0;
  }
  .l-header__name{ letter-spacing: .18em; }
  .l-header__tagline{
    display: block;
    margin-top: 6px;
    font-size: var(--fs-footer);
    line-height: 1.6;
    color: var(--c-muted);
  }
  .l-header__contact{
    display: block;
    text-align: right;
  }
  .l-header__addr{
    margin-top: 6px;
    font-size: var(--fs-footer);
    line-height: 1.6;
    color: var(--c-muted);
  }
  .c-burger{ display: none; }
  .c-drawer{ display: none; }

  /* --- グローバルナビ --- */
  .l-nav{
    display: block;
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    background: var(--c-bg);
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
  }
  .l-nav__list{
    max-width: var(--w-content);
    margin-inline: auto;
    height: var(--h-nav);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .l-nav__item{ display: flex; align-items: center; }
  .l-nav__item + .l-nav__item::before{
    content: "";
    width: 1px; height: 16px;
    background: var(--c-line-2);
    transform: rotate(20deg);
  }
  .l-nav__link{
    display: block;
    /* 769px 付近で 6項目 × 左右26px が画面幅を超えるため可変にする */
    padding: 0 clamp(14px, 2.2vw, 26px);
    font-family: var(--font-mincho);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1;
    letter-spacing: .10em;
    color: var(--c-ink);
    text-decoration: none;
    white-space: nowrap;
  }
  .l-nav__link:hover,
  .l-nav__link:focus-visible,
  .l-nav__link[aria-current="true"]{
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 1px;
  }

  /* --- メインビジュアル（拡大させない） --- */
  .p-hero picture{
    display: block;
    max-width: var(--w-hero);
    margin-inline: auto;
  }
  .p-hero__img{
    aspect-ratio: 1124 / 500;
    object-position: center;
  }

  /* --- ごあいさつ --- */
  .p-doc{
    display: grid;
    column-gap: 48px;
    align-items: start;
    align-content: start;
  }
  /* 4行目の 1fr が余白を吸う。これが無いと、背の高い article 列の余りが
     photo / name / bio の3行に均等配分され、氏名と経歴が間延びする */
  .p-doc--odd{
    grid-template-columns: 380px 1fr;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "photo   article"
      "name    article"
      "bio     article"
      ".       article";
  }
  .p-doc--even{
    grid-template-columns: 1fr 380px;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "article photo"
      "article name"
      "article bio"
      "article .";
  }
  .p-doc__photo{ grid-area: photo; }
  .p-doc__name{ grid-area: name; margin-top: 20px; }
  .p-doc__article{ grid-area: article; margin-top: 0; }
  .p-doc__bio{ grid-area: bio; margin-top: 14px; }

  .p-doc__lead{ padding: 18px 20px; letter-spacing: .04em; }
  .p-doc__bodywrap{ margin-top: 28px; }
  .p-doc__body{ padding: 32px; }
  .p-doc--odd .p-doc__bodywrap::before{ transform: translate(10px, 10px); }
  .p-doc--even .p-doc__bodywrap::before{ transform: translate(-10px, 10px); }

  /* --- 当院の特徴 --- */
  .p-feat{
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-7);
  }
  .p-feat__top{ padding: 40px 20px 24px; }
  .p-feat__text{ padding: 24px 24px 28px; }

  /* --- 診療内容 --- */
  .p-treat{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s-10);
    align-items: center;
  }
  .p-treat__article{ margin-top: 0; }
  .p-treat--even .p-treat__photo{ grid-column: 2; grid-row: 1; }
  .p-treat--even .p-treat__article{ grid-column: 1; grid-row: 1; }
  .p-treat__title{ padding-bottom: 14px; margin-bottom: 22px; }
  .p-treat__box{
    padding: 28px;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  }

  /* --- 費用の目安 --- */
  .p-fee__item--notice{ padding: var(--s-7); }

  /* --- 診療時間 --- */
  .p-hours{
    display: grid;
    /* 560(表) + 48(gap) + 284(側)= 892 = .c-sec__inner の内容幅ちょうど */
    grid-template-columns: minmax(0, 1fr) 284px;
    column-gap: 48px;
    align-items: start;
  }
  /* min-width:auto のままだと 1fr が表の min-width(560px) に張り付いて縮まない */
  .p-hours__main{ min-width: 0; }
  .p-hours__scrollhint{ display: none; }
  .p-hours__side{
    margin-top: 0;
    padding-top: 16px;
  }

  /* --- 当院について --- */
  .p-access{
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 460px;
    margin-top: var(--s-2);
  }
  .p-access__map{ display: flex; flex-direction: column; }
  .p-access__map iframe{
    flex: 1;
    aspect-ratio: auto;
    min-height: 400px;
  }
  .p-access__maplink{ padding: var(--s-4); }
  .p-access__panel{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
  }
  .p-access__panel > *{ max-width: 420px; }
  .p-access__name{ font-size: 1.5rem; margin-bottom: 28px; }

  /* --- フッター --- */
  .l-footer{ padding-bottom: var(--s-7); }

  /* --- ページトップ / CTA --- */
  .c-pagetop{ bottom: 24px; }
  .c-cta{ display: none; }
}


/* ===================================================================
   18. 中間幅（タブレット横〜小型ノート）の診療時間
   2カラム（表560 + gap48 + 側284 = 892px）を確保できない幅では
   縦積みに戻す。ここを2カラムのままにすると右カラムが画面外へ出る。
   =================================================================== */
@media (min-width: 769px) and (max-width: 1023px){
  .p-hours{ display: block; }
  .p-hours__side{
    margin-top: var(--s-6);
    padding-top: var(--s-4);
    border-top: 1px solid var(--c-line);
  }
}
