@charset "UTF-8";
/*
Theme Name: Hosokawa Clinic
Theme URI: https://www.hosokawa-clinic-funabashi.com/
Author: 医療法人社団 慈進会 ほそかわクリニック
Description: 医療法人社団 慈進会 ほそかわクリニックのオリジナルテーマ。外来と訪問診療の2導線を軸にした情報設計、ブランドカラー #E1948B、Zen Maru Gothic を採用。
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hosokawa
Tags: healthcare, clinic, one-column, custom-menu, translation-ready
*/

/* ============================================================
   ほそかわクリニック — リニューアル・プロトタイプ
   Design tokens
   ============================================================ */
:root{
  /* ---------- ブランドカラー（ご指定） ----------
     メイン    #E1948B  rgb(225,148,139)
     薄い色    #F8E0DD
     強い色    #FF8979
     文字用    #AF5347  ← メインカラーと同系の暗色。#E1948B は白地でのコントラスト比が
                          2.4:1 しかなく本文・リンクには使えないため、可読性が要る箇所は
                          この色を使い、#E1948B は面・罫・アイコンに使います（5.1:1）
  ------------------------------------------------ */
  --brand:        #E1948B;
  --brand-strong: #FF8979;
  --brand-pale:   #F8E0DD;

  /* --- ground / surface --- */
  --ground:      #FFFDFC;
  --surface:     #FCF0ED;
  --surface-2:   #F8E0DD;
  --line:        #EBCEC8;
  --line-strong: #DBAFA7;

  /* --- ink (warm neutrals, biased toward the brand hue) --- */
  --ink:         #2A211F;
  --ink-2:       #63514D;
  --ink-3:       #7E6862;

  /* --- accent A : 外来 lane --- */
  --rose:        #AF5347;
  --rose-hover:  #993F35;
  --rose-soft:   #E1948B;
  --rose-wash:   #F8E0DD;

  /* --- accent B : 在宅・訪問診療 lane（同系のより深い色で色相を統一） --- */
  --deep:        #6E4038;
  --deep-soft:   #C9A79F;
  --deep-wash:   #F5EDEA;

  /* --- semantic --- */
  --notice:      #8A6A1F;
  --notice-wash: #FBF3E0;

  --shadow-sm: 0 1px 2px rgba(110,64,56,.06), 0 4px 14px rgba(110,64,56,.06);
  --shadow-md: 0 2px 6px rgba(110,64,56,.08), 0 18px 44px rgba(110,64,56,.10);

  --radius:   14px;
  --radius-lg: 22px;

  /* HG丸ゴシックM-PRO は Web フォントとして配信できないため、
     同系の丸ゴシック Zen Maru Gothic（Google Fonts）で全端末の表示を揃えます */
  --serif: "Zen Maru Gothic", "HG丸ｺﾞｼｯｸM-PRO", "Hiragino Maru Gothic ProN", "Meiryo", sans-serif;
  --sans:  "Zen Maru Gothic", "HG丸ｺﾞｼｯｸM-PRO", "Hiragino Maru Gothic ProN", "Meiryo", sans-serif;

  --wrap: 1120px;
}


@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ground:      #1B1513;
    --surface:     #241C19;
    --surface-2:   #2E2320;
    --line:        #3D2E2A;
    --line-strong: #503C36;

    --ink:         #F5ECE9;
    --ink-2:       #C0ACA6;
    --ink-3:       #A48F88;

    /* 暗地ではメインカラー #E1948B がそのまま文字色として使えます（7.5:1） */
    --rose:        #E1948B;
    --rose-hover:  #FF8979;
    --rose-soft:   #7E4A42;
    --rose-wash:   #2C1F1C;

    --deep:        #D9B4AA;
    --deep-soft:   #5A423C;
    --deep-wash:   #221A17;

    --notice:      #D9B872;
    --notice-wash: #2A2318;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.24);
    --shadow-md: 0 2px 6px rgba(0,0,0,.34), 0 18px 44px rgba(0,0,0,.38);
  }
}
:root[data-theme="dark"]{
  --ground:      #1B1513;
  --surface:     #241C19;
  --surface-2:   #2E2320;
  --line:        #3D2E2A;
  --line-strong: #503C36;
  --ink:         #F5ECE9;
  --ink-2:       #C0ACA6;
  --ink-3:       #A48F88;
  --rose:        #E1948B;
  --rose-hover:  #FF8979;
  --rose-soft:   #7E4A42;
  --rose-wash:   #2C1F1C;
  --deep:        #D9B4AA;
  --deep-soft:   #5A423C;
  --deep-wash:   #221A17;
  --notice:      #D9B872;
  --notice-wash: #2A2318;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.24);
  --shadow-md: 0 2px 6px rgba(0,0,0,.34), 0 18px 44px rgba(0,0,0,.38);
}

/* ============================================================
   Base
   ============================================================ */
*{ box-sizing: border-box; }

/* 文字サイズの基準。rem 指定が一斉に効くので、ここだけで全体を調整できる。
   109% = 1rem 17.44px。本文は 1.0625rem（18.5px）。
   読み手にご高齢の患者さんとご家族が多いため、一般的な16〜17pxより一段大きく取っている */
html{ font-size: 109%; }

body{
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-spacing-trim: trim-start;

  /* 日本語の折り返し。ブラウザの既定は文字単位で折るため、
     「受けられ／る」「対し／て診るか」のように語の途中で切れる。
     auto-phrase は文節の切れ目で折る。word-break と line-break は
     継承するので、ここに書けば投稿本文にも効く。
     未対応のブラウザ（Safari・Firefox）では既定の動作に戻るだけで害はない */
  word-break: auto-phrase;
  line-break: strict;
}

/* 最終行に1〜2文字だけ残る「です。」のような行を防ぐ */
p, li, dd, dt, blockquote, figcaption, .lede{
  text-wrap: pretty;
}

p{ margin: 0 0 1.1em; }
p:last-child{ margin-bottom: 0; }

a{ color: var(--rose); text-underline-offset: .25em; }
a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow{
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 .5em;
}
.eyebrow.is-deep{ color: var(--deep); }

.sec-title{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.05rem);
  line-height: 1.5;
  letter-spacing: .04em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

.lede{
  color: var(--ink-2);
  max-width: 62ch;
}

section{ padding-block: clamp(56px, 6vw, 96px); }

/* ============================================================
   Header
   ============================================================ */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.brand__logo{ height: 44px; width: auto; flex: none; display: block; }
/* 現行サイトと同じ、アイコン → 法人名 → クリニック名 の横一列。
   3つとも上下中央でそろえる。ロゴ・法人名・クリニック名の各PNGは
   キャンバスの中央に字面が入っているので、align-items:center が
   そのまま光学的な中央になる（下端そろえだと法人名が沈んで見える）。
   flex の中で画像が引き伸ばされないよう flex:none を明示する */
.brand__type{ display: flex; align-items: center; gap: 13px; }
.brand__corp-img{ height: 15px; width: auto; flex: none; object-fit: contain; display: block; }
.brand__name-img{ height: 27px; width: auto; flex: none; object-fit: contain; display: block; }
.brand__corp{
  display: block;
  font-size: .66rem;
  letter-spacing: .14em;
  color: var(--ink-3);
  line-height: 1.4;
}
.brand__name{
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: .07em;
  line-height: 1.3;
}
@media (max-width: 1180px){
  .brand__logo{ height: 40px; }
  .brand__type{ gap: 11px; }
  .brand__corp-img{ height: 13px; }
  .brand__name-img{ height: 25px; }
}
@media (max-width: 620px){
  .brand__logo{ height: 34px; }
  .brand__type{ gap: 9px; }
  .topbar .brand__corp-img{ display: none; }   /* ヘッダーが狭いときだけ法人名を落とす（フッターは残す） */
  .brand__name-img{ height: 21px; }
}

.nav{
  display: flex;
  gap: 22px;
  font-size: .92rem;
}
.nav a{
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav a:hover{ color: var(--ink); border-bottom-color: var(--rose-soft); }
.nav a[aria-current="page"],
.nav .current-menu-item > a{ color: var(--ink); border-bottom-color: var(--rose); }

/* ハンバーガー（狭い画面用） */
.nav-toggle{
  display: none;
  flex: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after{
  display: block;
  width: 19px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle__bars{ position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after{ content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before{ top: -6px; }
.nav-toggle__bars::after{ top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars{ background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after{ transform: translateY(-6px) rotate(-45deg); }

.tel-btn{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 15px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--ground);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background .18s, transform .18s;
}

.tel-btn__label{ white-space: nowrap; }
.tel-btn__num{ white-space: nowrap; }
.tel-btn:hover{ background: var(--rose-hover); transform: translateY(-1px); }
.tel-btn__label{ font-size: max(.62rem, 11px); letter-spacing: .14em; opacity: .85; display: block; line-height: 1.2; }
.tel-btn__num{
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  display: block;
}

@media (max-width: 1180px){
  .nav-toggle{ display: inline-flex; }
  .nav{
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 24px 18px;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    font-size: 1rem;
  }
  .nav.is-open{ display: flex; }
  .nav a{
    padding: 15px 2px;
    border-bottom: 1px solid var(--line);
  }
  .nav a:hover{ border-bottom-color: var(--line); }
  .nav a[aria-current="page"],
  .nav .current-menu-item > a{ color: var(--rose); border-bottom-color: var(--line); }
}
@media (max-width: 620px){
  /* ロゴを潰さないよう2段に折り返し、電話ボタンは全幅のバーにする */
  .topbar__inner{
    flex-wrap: wrap;
    row-gap: 10px;
    padding-block: 10px;
    min-height: 0;
  }
  .brand{ margin-right: auto; }
  .topbar .brand__name-img{ height: 24px; max-width: none; }
  .nav-toggle{ order: 2; }
  .tel-btn{
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    padding: 11px 18px;
  }
  .tel-btn__label{ display: none; }
  .tel-btn__num{ font-size: 1.06rem; }
  .nav{ top: 100%; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 5.5vw, 84px) clamp(56px, 6vw, 92px);
  background:
    radial-gradient(120% 90% at 92% 4%,  var(--rose-wash) 0%, transparent 58%),
    radial-gradient(100% 80% at -6% 88%, var(--deep-wash) 0%, transparent 55%),
    var(--ground);
}
/* --- 桜レイヤー：写真ではなく描き起こしのモチーフ。
       花びらを大きく少なく置き、余白で品を出します --- */
.sakura{
  position: absolute;
  inset: -40px 0 auto;
  height: 118%;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}
/* SVG の <use> で複製された図形には、外側の CSS セレクタ（.sakura .petal など）が
   届かない。fill は継承されるプロパティなので、親の <svg> に指定して流し込む */
.sakura{ fill: var(--brand); }
.sakura .petal{ fill: var(--brand); }
.sakura .core{ fill: var(--brand-strong); }
.hero .wrap{ position: relative; z-index: 1; }

.hero__grid{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: center;
}

.hero__eyebrow{
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink-3);
  margin: 0 0 18px;
}

.hero h1{
  font-family: var(--serif);
  font-weight: 600;
  /* 上限は px。rem にすると基準サイズを上げたときに
     「船橋・本町のかかりつけ医。」の13文字が1行に収まらなくなる */
  font-size: clamp(1.9rem, calc(4.15vw - 2.2px), 44px);
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
.hero h1 .accent{ color: var(--rose); }
/* 見出しは「通う医療も、訪ねる医療も。／船橋・本町のかかりつけ医。」の2行組み。
   どちらもちょうど13文字なので、そろえると角のそろった塊になる。
   狭い画面では収まらないので、語の途中で折れないよう
   自前の改行位置（.br-sp）に切り替える */
.hero h1 .br-sp{ display: none; }
@media (max-width: 520px){
  .hero h1 .br-sp{ display: inline; }
}
.hero__lede{
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 30px;
}

.hero__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
}
.chip{
  font-size: .82rem;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
}

/* --- hero visual : photo slot + vertical-writing tagline --- */
.hero__visual{ position: relative; }
/* キービジュアル：有機的なアーチ形にマスクする */
.photo{
  position: relative;
  border-radius: 44% 44% 8%;
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--rose-wash) 0%, var(--surface-2) 60%, var(--brand-pale) 100%);
  box-shadow: 0 24px 60px rgba(175,83,71,.16);
  aspect-ratio: 4 / 3;
}
.photo__img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* アーチの縁を地の色に溶かす、ごく薄いフェード */
.photo::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(96% 90% at 50% 46%, transparent 62%, rgba(255,252,251,.55) 100%);
  pointer-events: none;
}

/* 在宅療養支援診療所のフローティングカード */
.kv-badge{
  position: absolute;
  left: -10px;
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 350px;
  padding: 15px 24px 15px 17px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(110,64,56,.08), 0 20px 44px rgba(110,64,56,.14);
}
.kv-badge__icon{
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-pale);
  color: var(--rose);
}
.kv-badge__title{
  display: block;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  line-height: 1.5;
}
.kv-badge__sub{
  display: block;
  font-size: .76rem;
  color: var(--ink-3);
  letter-spacing: .02em;
  line-height: 1.6;
}
@media (max-width: 880px){
  .kv-badge{ left: 8px; bottom: -18px; }
}
@media (max-width: 480px){
  .kv-badge{ left: 0; right: 0; bottom: -26px; max-width: none; }
}
.photo__note{
  text-align: center;
  color: var(--ink-3);
  font-size: .8rem;
  line-height: 1.8;
  letter-spacing: .04em;
  padding: 20px;
}
.photo__note strong{
  display: block;
  font-weight: 500;
  color: var(--ink-2);
  font-size: .92rem;
  margin-bottom: 4px;
}
.photo__frame-icon{ display: block; margin: 0 auto 12px; opacity: .5; }

.tagline{
  position: absolute;
  left: -16px;
  bottom: 24px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(.95rem, .86rem + .4vw, 1.16rem);
  letter-spacing: .16em;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--brand-strong);
  border-radius: 3px;
  padding: 13px 22px 13px 20px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

@media (max-width: 880px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__visual{ order: -1; margin-bottom: 46px; }
}

/* ============================================================
   Two doors — 外来 / 訪問診療
   ============================================================ */
.doors{
  padding-top: 0;
  margin-top: clamp(-30px, -2vw, -10px);
}
.doors__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.door{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 30px 30px;
  border-radius: var(--radius-lg);
  background: var(--rose-wash);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.door::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand-strong);
}
.door.is-home::before{ background: var(--deep); }
.door.is-home{ background: var(--ground); border-color: var(--line-strong); }
.door:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.door__label{
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
}
.door.is-home .door__label{ color: var(--deep); }
.door__title{
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.5;
  margin: 0;
}
.door__body{
  color: var(--ink-2);
  font-size: .95rem;
  margin: 0;
}
.door__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .92rem;
  color: var(--ink-2);
}
.door__list li{ padding-left: 20px; position: relative; }
.door__list li::before{
  content: "";
  position: absolute;
  left: 2px; top: .82em;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--rose-soft);
}
.door.is-home .door__list li::before{ border-color: var(--deep-soft); }
.door__go{
  margin-top: auto;
  padding-top: 6px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.door.is-home .door__go{ color: var(--deep); }
.door:hover .door__go .arrow{ transform: translateX(4px); }
.arrow{ transition: transform .2s ease; }

/* ============================================================
   Hours
   ============================================================ */
.hours{ background: var(--surface); border-block: 1px solid var(--line); }
.hours__grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
/* 左の表カードと右の2枚のカードで、下端をそろえる。
   グリッドの行の高さは背の高いほうの列で決まるので、余った分を
   「左＝表の行」「右＝下のカード」に吸わせる。文言を書き換えて
   どちらが背高になっても、この2本だけで成り立つ */
.hours__grid > *{ display: flex; flex-direction: column; }
.hours__grid .sched{ display: flex; flex-direction: column; flex: 1 1 auto; }
/* 端数が出たら表の行に吸わせる。凡例の上に白い帯が出るのを防ぐ。
   注意の帯を袖から外したので、ここで吸う量は十数pxに収まる */
.hours__grid .sched__title,
.hours__grid .sched__legend{ flex: none; }
.hours__grid .sched .table-scroll{ flex: 1 1 auto; min-height: 0; }
.hours__grid .sched .sched__table{ height: 100%; }
.hours__grid .side-card:last-child{ flex: 1 1 auto; }

/* 発熱・風邪症状の注意は、狭い袖ではなく表の下に横いっぱいで置く。
   袖に2枚積むと右列だけが背高になり、下端がそろわなくなる */
.hours__notice{ margin-top: clamp(20px, 2.4vw, 28px); }

/* 窓口カードのFAX。紹介元がまず探す情報なので電話のすぐ下に置く */
.side-card__fax{
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.side-card__fax span{
  display: block;
  margin-top: 2px;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
}
/* グリッドの子は min-width:auto が既定のため、中身（診療時間の表）に
   押し広げられてページ全体が横スクロールしてしまう。明示的に 0 を入れて塞ぐ */
.hours__grid > *,
.access__grid > *,
.director__grid > *,
.area > *,
.doors__grid > *,
.compare > *,
.dept-grid > *{ min-width: 0; }

/* --- 診療時間カード --- */
.sched{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ground);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sched__title{
  padding: 20px 26px 18px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--deep);
}
.table-scroll{ overflow-x: auto; }
table.sched__table{
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.sched__table th,
.sched__table td{
  border: 1px solid var(--line);
  padding: 16px 8px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}
.sched__table thead th{
  background: var(--deep);
  color: #FFFDFC;
  font-weight: 700;
  letter-spacing: .08em;
  border-color: var(--deep);
}
:root[data-theme="dark"] .sched__table thead th,
:root:not([data-theme="light"]) .sched__table thead th{ color: #191412; }
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]) .sched__table thead th{ color: #FFFDFC; }
}
.sched__table thead th:first-child{ width: 30%; }
.sched__table tbody th{
  text-align: left;
  padding-left: 24px;
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.sched__table td.off{
  background: var(--surface-2);
  color: var(--ink-3);
  font-weight: 500;
}
.sched__legend{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding: 16px 26px 18px;
  background: var(--rose-wash);
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink-2);
}

.side-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ground);
  padding: 24px 24px 26px;
  box-shadow: var(--shadow-sm);
}
.side-card + .side-card{ margin-top: 16px; }
.side-card h3{
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin: 0 0 12px;
}
.side-card p{ font-size: .9rem; color: var(--ink-2); }
.side-card .big-tel{
  display: block;
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--rose);
  text-decoration: none;
  margin-bottom: 4px;
}
.notice-card{
  border-left: 3px solid var(--notice);
  background: var(--notice-wash);
}
.notice-card h3{ color: var(--notice); }

@media (max-width: 860px){
  .hours__grid{ grid-template-columns: minmax(0, 1fr); }
}
/* 狭い画面では表を詰めて、横スクロール量を減らす */
@media (max-width: 600px){
  .sched__title{ padding: 17px 20px 15px; font-size: 1.04rem; }
  .sched__table{ min-width: 520px; }
  .sched__table th,
  .sched__table td{ padding: 13px 4px; font-size: .95rem; }
  .sched__table tbody th{ padding-left: 15px; font-size: .96rem; }
  .sched__legend{ padding: 14px 20px 16px; gap: 4px 18px; font-size: .84rem; }
  /* 8列の表は狭い画面で見切れるので、スクロールできることを伝える */
  .sched__legend::before{
    content: "← 表は横にスクロールできます →";
    display: block;
    flex: 1 0 100%;
    margin-bottom: 4px;
    color: var(--rose);
    font-size: .8rem;
    letter-spacing: .02em;
  }
}

/* ============================================================
   Departments
   ============================================================ */
.dept-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
  margin-top: 34px;
}
.dept{
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ground);
}
.dept__num{
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--rose);
  display: block;
  margin-bottom: 10px;
}
.dept h3{
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: .08em;
  margin: 0 0 10px;
}
.dept p{ font-size: .92rem; color: var(--ink-2); margin: 0; }

/* ============================================================
   Home care (在宅) — dark-ish band
   ============================================================ */
.homecare{ background: var(--deep-wash); border-block: 1px solid var(--line); }
.homecare__head{ max-width: 62ch; margin-bottom: 40px; }
.compare{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.compare__item{
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
}
.compare__item h3{
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: .07em;
  margin: 0 0 6px;
  color: var(--deep);
}
.compare__kicker{
  font-size: .8rem;
  color: var(--ink-3);
  letter-spacing: .06em;
  margin: 0 0 14px;
}
.compare__item p{ font-size: .93rem; color: var(--ink-2); }

.req{
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px clamp(22px, 3vw, 34px);
}
.req h3{
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin: 0 0 6px;
}
.req__sub{ font-size: .88rem; color: var(--ink-3); margin: 0 0 22px; }
.req__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 14px 30px;
}
.req__list li{
  display: flex;
  gap: 12px;
  font-size: .92rem;
  color: var(--ink-2);
  line-height: 1.75;
}
.req__list .tick{
  flex: none;
  margin-top: .42em;
  color: var(--deep);
}

.partners{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin-top: 22px;
}
.partner{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--ground);
}
.partner__role{
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--deep);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.partner__name{ font-weight: 500; margin: 0 0 4px; }
.partner__meta{ font-size: .86rem; color: var(--ink-3); margin: 0; }

/* ============================================================
   Director
   ============================================================ */
.director__grid{
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}
.portrait{
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--surface-2), var(--rose-wash));
  aspect-ratio: 6 / 5;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.portrait img{
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 32%;
  display: block;
}

/* 訪問診療セクション：写真＋テキストの帯 */
.area{
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin: 0 0 40px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.area__img{ margin: 0; height: 100%; min-height: 240px; }
.area__img img{
  width: 100%; height: 100%; min-height: 240px;
  object-fit: cover; object-position: center 45%;
  display: block;
}
.area__body{ padding: 28px 34px 28px 0; }
.area__body h3{
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: .06em; margin: 0 0 10px; color: var(--deep);
}
.area__body p{ font-size: .95rem; color: var(--ink-2); }
@media (max-width: 760px){
  .area{ grid-template-columns: 1fr; gap: 0; }
  .area__body{ padding: 26px 26px 28px; }
}
.director__name{
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: .1em;
  margin: 0 0 4px;
}
.director__role{ font-size: .84rem; color: var(--ink-3); letter-spacing: .1em; margin: 0 0 22px; }
.director blockquote{
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 2.05;
  letter-spacing: .04em;
  color: var(--ink);
  border-left: 3px solid var(--brand-strong);
  padding-left: 22px;
}

.timeline{
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line-strong);
}
.timeline li{
  position: relative;
  padding: 0 0 18px 30px;
  font-size: .93rem;
  color: var(--ink-2);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.timeline li:last-child{ padding-bottom: 0; }
/* 線は border-left:2px なので中心は x=1px。
   擬似要素は * セレクタの box-sizing が効かないため個別に border-box を指定し、
   総幅10px・left:-6px で 中心 (2-6)+5 = 1px＝線の中心にぴたり合わせる */
.timeline li::before{
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: -6px; top: .72em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ground);
  border: 2px solid var(--rose-soft);
}
.timeline li:last-child::before{ background: var(--rose); border-color: var(--rose); }
.timeline time{
  flex: none;
  width: 8.4em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.timeline span{ flex: 1 1 12em; color: var(--ink); }

@media (max-width: 760px){
  .director__grid{ grid-template-columns: 1fr; }
  .portrait{ max-width: 260px; }
}

/* ============================================================
   News
   ============================================================ */
.news{ background: var(--surface); border-block: 1px solid var(--line); }
.news__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.news__list{
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.news__list li{ border-bottom: 1px solid var(--line); }
.news__list a{
  display: grid;
  grid-template-columns: 7.5em 6.2em minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 20px 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background .18s;
}
.news__list a:hover{ background: var(--surface-2); }
.news__date{
  color: var(--ink-3);
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}
.news__tag{
  font-size: .72rem;
  letter-spacing: .08em;
  text-align: center;
  padding: 3px 0;
  border-radius: 999px;
  border: 1px solid var(--rose-soft);
  color: var(--rose);
  background: var(--rose-wash);
}
.news__tag.is-info{ border-color: var(--deep-soft); color: var(--deep); background: var(--deep-wash); }
.news__title{ font-size: .98rem; }

@media (max-width: 620px){
  .news__list a{ grid-template-columns: 7.5em 6.2em; }
  .news__title{ grid-column: 1 / -1; }
}
/* 320px 前後では固定em幅だと日付とタグが収まらないので内容幅で左寄せ */
@media (max-width: 400px){
  .news__list a{ grid-template-columns: auto auto; justify-content: start; column-gap: 10px; }
}

/* ============================================================
   Access
   ============================================================ */
.access__grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.map-slot{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg,  transparent 0 27px, var(--line) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--line) 27px 28px),
    var(--surface);
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.map-slot__pin{
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: .85rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.routes{
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.routes li{
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.routes li:last-child{ border-bottom: none; }
/* 「路線名／駅名／所要時間」の3列。狭い画面では路線名を1行落として折り返す */
@media (max-width: 480px){
  .routes li{ flex-wrap: wrap; row-gap: 4px; }
  .routes .line{ width: 100%; }
}
.routes .line{
  flex: none;
  width: 9.6em;
  color: var(--ink-3);
  font-size: .86rem;
}
.routes .station{ flex: 1; }
.routes .walk{
  flex: none;
  font-weight: 700;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}
.addr{
  font-size: .96rem;
  line-height: 2;
}
.addr dt{
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 14px;
}
.addr dd{ margin: 0; }
.addr dl{ margin: 0; }

@media (max-width: 860px){
  .access__grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   CTA band + footer
   ============================================================ */
.cta{
  background: var(--rose-wash);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta h2{
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: .06em;
  margin: 0 0 12px;
}
.cta p{ color: var(--ink-2); max-width: 46ch; margin-inline: auto; }
.cta__actions{
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .18s, background .18s, border-color .18s;
}
.btn:hover{ transform: translateY(-1px); }
.btn--primary{ background: var(--rose); color: var(--ground); }
.btn--primary:hover{ background: var(--rose-hover); }
.btn--ghost{ border-color: var(--line-strong); color: var(--ink); background: var(--ground); }
.btn--ghost:hover{ border-color: var(--rose-soft); }
.btn__num{ font-variant-numeric: tabular-nums; letter-spacing: .04em; font-weight: 700; }

/* フッターのロゴロックアップ（縦積み） */
.foot__logo{ height: 56px; width: auto; display: block; margin-bottom: 14px; }
.foot__corp{ height: 13px; width: auto; display: block; margin-bottom: 8px; }
.foot__name{ height: 27px; width: auto; display: block; margin-bottom: 16px; }
@media (max-width: 380px){
  .foot__logo{ height: 48px; }
  .foot__name{ height: 22px; }
}

footer{
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding-block: 44px 30px;
  font-size: .88rem;
  color: var(--ink-2);
}
.foot__grid{
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 32px;
  /* 狭い画面では1カラム（下の @media で上書き） */
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.foot h4{
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-weight: 700;
}
.foot ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a{ color: var(--ink-2); text-decoration: none; }
.foot a:hover{ color: var(--rose); }
.foot__brand-name{
  font-family: var(--serif);
  font-size: 1.16rem;
  color: var(--ink);
  letter-spacing: .07em;
  margin: 0 0 8px;
}
.foot__legal{
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--ink-3);
}


/* ============================================================
   下層ページ共通
   ============================================================ */
.page-head{
  position: relative;
  overflow: hidden;
  padding-block: clamp(38px, 4vw, 62px) clamp(34px, 3.6vw, 54px);
  background:
    radial-gradient(120% 130% at 88% -10%, var(--rose-wash) 0%, transparent 62%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.crumb{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--ink-3);
  margin: 0 0 20px;
}
.crumb a{ color: var(--ink-3); text-decoration: none; }
.crumb a:hover{ color: var(--rose); }
.crumb span[aria-hidden]{ opacity: .5; }
.page-head h1{
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem);
  letter-spacing: .06em;
  line-height: 1.5;
  margin: 0 0 14px;
  text-wrap: balance;
}
.page-head .lede{ margin: 0; }


/* 手順ステップ */
.steps{
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: step;
}
.steps li{
  counter-increment: step;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 24px 22px 20px;
  background: var(--ground);
  border: 1px solid var(--line);
  margin: 0;
}
.steps li:first-child{ border-radius: var(--radius) var(--radius) 0 0; }
.steps li:last-child{ border-radius: 0 0 var(--radius) var(--radius); }
.steps li + li{ border-top: none; }
.steps li::before{
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.steps h3{ margin: 0 0 6px; font-size: 1.05rem; letter-spacing: .03em; }
.steps p{ margin: 0; font-size: .93rem; color: var(--ink-2); }
@media (max-width: 560px){
  .steps li{ grid-template-columns: 34px minmax(0,1fr); gap: 14px; padding: 20px 18px; }
}

/* 定義リスト（持ち物・費用など） */
.deflist{
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}
.deflist > div{
  display: grid;
  grid-template-columns: minmax(160px, 250px) minmax(0, 1fr);
  gap: 8px 28px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.deflist dt{ font-weight: 700; font-size: .96rem; letter-spacing: .02em; }
.deflist dd{ margin: 0; font-size: .94rem; color: var(--ink-2); }
@media (max-width: 620px){
  .deflist > div{ grid-template-columns: 1fr; gap: 4px; }
}

/* よくあるご質問 */
.faq{ margin-top: 26px; border-top: 1px solid var(--line); }
.faq details{ border-bottom: 1px solid var(--line); }
.faq summary{
  cursor: pointer;
  list-style: none;
  padding: 18px 44px 18px 4px;
  position: relative;
  font-weight: 500;
  font-size: .98rem;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--rose);
  border-bottom: 2px solid var(--rose);
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after{ transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover{ color: var(--rose); }
.faq .faq__a{
  padding: 0 4px 22px;
  font-size: .94rem;
  color: var(--ink-2);
  max-width: 68ch;
}

/* 連携機関向けの依頼ボックス */
.referral{
  background: var(--deep-wash);
  border: 1px solid var(--line);
  border-left: 3px solid var(--deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 30px clamp(22px, 3vw, 34px);
  margin-top: 34px;
}
.referral h3{
  font-family: var(--serif);
  font-size: 1.16rem; font-weight: 700;
  letter-spacing: .05em; margin: 0 0 8px; color: var(--deep);
}


/* 小さい画面ではフッターを1カラムに（この位置＝ベース定義より後ろでないと効かない） */
@media (max-width: 560px){
  .foot__grid{ grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ============================================================
   WordPress 固有のスタイル
   ============================================================ */

/* スキップリンク・スクリーンリーダー用 */
.screen-reader-text{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus{
  position: fixed !important;
  top: 10px; left: 10px;
  z-index: 100;
  width: auto; height: auto;
  clip: auto;
  padding: 12px 20px;
  background: var(--ground);
  color: var(--rose);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* 地図の埋め込み */
.map-embed{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 11;
}
.map-embed iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 投稿・固定ページの本文 */
.entry{
  max-width: 68ch;
  font-size: 1rem;
}
.entry > * + *{ margin-top: 1.2em; }
.entry h2{
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.6;
  margin-top: 2.2em;
  padding-bottom: .4em;
  border-bottom: 1px solid var(--line);
}
.entry h3{
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-top: 1.9em;
}
.entry h4{ font-size: 1rem; font-weight: 700; margin-top: 1.6em; }
.entry ul, .entry ol{ padding-left: 1.4em; }
.entry li{ margin-bottom: .45em; }
.entry li::marker{ color: var(--rose-soft); }
.entry blockquote{
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brand-strong);
  color: var(--ink-2);
}
.entry img{ height: auto; border-radius: var(--radius); }
.entry figure{ margin: 1.6em 0; }
.entry figcaption{ font-size: .84rem; color: var(--ink-3); margin-top: 8px; }
.entry table{
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}
.entry th, .entry td{ border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry th{ background: var(--surface-2); font-weight: 700; }
.entry__thumb{ margin: 0 0 1.8em; }

/* 記事下のナビゲーション */
.entry__nav{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}

/* ページ送り */
.pager{ margin-top: 40px; }
.pager .nav-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pager .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ground);
  color: var(--ink-2);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color .18s, color .18s;
}
.pager .page-numbers:hover{ border-color: var(--rose-soft); color: var(--rose); }
.pager .page-numbers.current{
  background: var(--rose);
  border-color: var(--rose);
  color: var(--ground);
  font-weight: 700;
}
.pager .page-numbers.dots{ border-color: transparent; }

/* 管理バー表示時にヘッダーが隠れないように */
body.admin-bar .topbar{ top: 32px; }
@media (max-width: 782px){
  body.admin-bar .topbar{ top: 46px; }
}
