/*
 * 保育士ドットコム — 画面スタイル
 *
 * claude_design の「完成版 デスクトップ / モバイル」を実装したもの。
 * 色・字送り・余白はデザイン側の値を変えずにトークン化している。
 * 信号色（赤/黄/緑）は使わない。位置は同系色の濃淡だけで示す（SPEC §7）。
 */

:root {
  /* 面 */
  --page: #f3f0ea;
  --card: #fff;
  --soft: #fcfaf6;
  --soft-2: #f5f1e8;
  --field: #f5f1e9;

  /* 文字 */
  --ink: #26211a;
  --text: #2b2620;
  --headline: #3b332a;
  --muted: #6b6459;
  --dim: #877e70;
  --faint: #a69c8d;
  --ghost: #9e9585;
  --pale: #d6ccba;
  --chevron: #a8b6c4;

  /* 罫 */
  --line: #f3f0ea;
  --line-warm: #f0ece3;
  --border: #e1dacb;
  --border-2: #e5decf;
  --border-3: #ebe5d8;
  --shell-border: #e8e2d6;

  /* 青（ブランド） */
  --brand: #3d6b8f;
  --brand-deep: #2f567a;
  --brand-mid: #6e94b5;
  --brand-light: #a3c1da;
  --brand-tint: #ebf2f7;
  --brand-border: #c9dae8;
  --brand-edge: #c6d8e7;

  /* 図の下地 */
  --track: #f0ece3;
  --track-blue: #d3e0ea;
  --track-blue-2: #e3edf4;
  --seg-off: #e0eaf2;

  --ring: linear-gradient(135deg, #a3c1da, #6e94b5 45%, #3d6b8f);
  --hatch: repeating-linear-gradient(115deg, #f5f1e8 0 6px, #fcfaf6 6px 12px);
  --hatch-fine: repeating-linear-gradient(115deg, #eae4d8 0 3px, #f7f4ec 3px 6px);
  --hatch-avatar: repeating-linear-gradient(115deg, #f5f1e8 0 5px, #fcfaf6 5px 10px);

  --font: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font-h: 'Kiwi Maru', serif;
  --shell-radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }

h1, h2, h3 { margin: 0; font-weight: inherit; }
p { margin: 0; }
img { max-width: 100%; }

/* ---------- レイアウト ---------- */

.page { padding: 0; }
.shell {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.spacer { flex: 1; }

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; flex: 1; }
.brand img { height: 28px; width: auto; display: block; }
.searchbox {
  display: none;
  align-items: center;
  gap: 8px;
  width: 420px;
  background: var(--field);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--faint);
}
.searchbox b { font-size: 13px; font-weight: 700; color: var(--text); }
.searchbox__icon { flex: none; font-size: 12px; color: var(--faint); }
form.searchbox { padding: 0 14px; }
form.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  padding: 10px 0;
}
form.searchbox input::placeholder { color: var(--faint); }
form.searchbox input:focus { outline: none; }

/* 本文に置く検索欄。ヘッダーの searchbox を出さないモバイル用の入口 */
.searchfield {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--field);
  border-radius: 10px;
  padding: 4px 6px 4px 14px;
}
.searchfield input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  padding: 10px 0;
}
.searchfield input::placeholder { color: var(--faint); }
.searchfield input:focus { outline: none; }
.searchfield .chip { flex: none; }
.topnav { display: none; gap: 22px; }
.topnav a { font-size: 13px; color: var(--muted); padding-bottom: 3px; border-bottom: 2px solid transparent; }
.topnav a.is-on { color: var(--text); font-weight: 700; border-bottom-color: var(--text); }
.topbar__me {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
}

.columns { display: flex; flex-direction: column; }
.col { padding: 14px 16px 18px; }
.col--side { border-top: 1px solid var(--line); }

.breadcrumb { font-size: 11px; color: var(--faint); }
.stamp { font-size: 11.5px; color: var(--faint); flex: none; }

/* ---------- 見出し・注記 ---------- */

.block-title { font-family: var(--font-h); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.section-title { font-family: var(--font-h); font-size: 14px; font-weight: 500; color: var(--ink); }
.field-label { font-size: 11px; color: var(--faint); }
.note { font-size: 10px; color: var(--dim); line-height: 1.7; }
.note--quiet { color: var(--faint); }
.lead { font-size: 12px; line-height: 1.85; color: var(--text); text-wrap: pretty; }
.figure { font-size: 16px; font-weight: 800; color: var(--ink); }
.figure--sm { font-size: 14px; }
.headline { font-size: 12px; font-weight: 700; color: var(--headline); line-height: 1.5; }
.tags { font-size: 11px; color: var(--brand); line-height: 1.7; }

/* ---------- 部品 ---------- */

.avatar {
  flex: none;
  border-radius: 50%;
  padding: 2px;
  background: var(--ring);
  display: flex;
}
.avatar--flat { background: var(--border); }
.avatar__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--brand-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand);
  border: 1.5px solid #fff;
}
.avatar--muted .avatar__inner { background: var(--hatch-avatar); color: var(--ghost); }
.avatar-sm { width: 32px; height: 32px; padding: 0; background: var(--brand-tint); border: 1px solid var(--brand-border); }
.avatar-sm .avatar__inner { font-size: 12px; border: 0; }
.avatar-md { width: 40px; height: 40px; }
.avatar-md .avatar__inner { font-size: 14px; }
.avatar-lg { width: 48px; height: 48px; }
.avatar-lg .avatar__inner { font-size: 15px; }
.avatar-xl {
  width: 64px;
  height: 64px;
  padding: 2.5px;
  background: var(--brand-edge);
}
.avatar-xl .avatar__inner { font-size: 24px; border: 0; }

.btn {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  background: var(--card);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}
.btn:hover { background: var(--field); color: var(--text); }
.btn--primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn--primary:hover { color: #fff; background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--sm { font-size: 11.5px; border-radius: 9px; padding: 11px 13px; }
.btn.is-saved { background: var(--brand-tint); border-color: var(--brand-border); color: var(--brand-deep); }

.chip {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 11px;
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
}
.chip.is-on { font-weight: 700; color: #fff; background: var(--text); border-color: var(--text); }
.chip--soft.is-on { font-weight: 700; color: var(--brand-deep); background: var(--brand-tint); border-color: var(--brand-border); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* 都道府県の切り替え。chip と高さを揃える。 */
.select {
  font-size: 11.5px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 11px;
  max-width: 100%;
  font-family: inherit;
}
.select:focus-visible { outline: 2px solid var(--brand-border); outline-offset: 1px; }
[hidden] { display: none !important; }

/* 5分割の帯。塗られた数＝地域のなかでの位置（多い側）。 */
.segs { flex: 1; display: flex; gap: 4px; align-items: center; }
.segs span { flex: 1; height: 10px; border-radius: 3px; background: var(--seg-off); }
.segs span.is-on { background: var(--brand-mid); }
.segs--none span { background: var(--hatch-fine); }

.metric { display: flex; align-items: center; gap: 8px; }
.metric__label { flex: none; width: 66px; font-size: 10px; color: var(--faint); }
.metric__word {
  flex: none;
  width: 52px;
  text-align: right;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brand);
}
.metric__word--none { font-weight: 400; color: var(--ghost); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 8px; }

.bar { height: 11px; border-radius: 3px; background: var(--track); display: flex; overflow: hidden; }
.bar__fill { background: var(--brand); border-radius: 3px; }
.bar__fill--soft { background: var(--track-blue); }
.bar--thin { height: 6px; border-radius: 2px; }
.bar--pill { height: 8px; border-radius: 99px; }
.bar--pill .bar__fill { background: var(--brand-mid); border-radius: 99px; }

.hatch {
  border-radius: 12px;
  padding: 10px 11px;
  background: var(--hatch);
  border: 1px solid var(--border-3);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hatch__topic { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.hatch__status { font-size: 9px; color: var(--dim); }

.divide { border-top: 1px solid var(--line); }
.rule-list > * { padding: 11px 0; border-bottom: 1px solid var(--line-warm); }
.rule-list > a:hover { background: var(--soft); }

/* ---------- フィード ---------- */

.post { border-bottom: 1px solid var(--line); }
.post__head { display: flex; align-items: center; gap: 10px; padding: 11px 0 10px; }
.post__name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.post__meta { font-size: 10px; color: var(--faint); line-height: 1.5; }
.post__body { padding: 0 0 10px; }
.post__foot { padding: 0 0 12px; display: flex; align-items: center; gap: 10px; }

.facility-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--soft-2);
  flex-wrap: wrap;
}
.facility-row:hover { background: var(--soft); }
.facility-row__name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.facility-row__meta { font-size: 10px; color: var(--faint); line-height: 1.5; }
.facility-row__main { flex: 1; display: flex; align-items: center; gap: 11px; }
.facility-row .metric-grid { flex: 1 0 100%; }
.facility-row__cells { display: none; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.tile {
  aspect-ratio: 1;
  background: var(--brand-tint);
  border: 1px solid #eaf1f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  text-align: center;
}
.tile.is-faint { background: var(--soft); border-color: var(--line-warm); }
.tile__v { font-size: 15px; font-weight: 800; color: var(--brand-deep); line-height: 1; }
.tile.is-faint .tile__v { color: var(--chevron); }
.tile.is-on { outline: 2px solid var(--brand); outline-offset: -2px; }
.tile__label { font-size: 9px; color: #a0978a; line-height: 1.35; white-space: pre-line; }
.tile.is-faint .tile__label { color: var(--pale); }

.checkbox { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-warm); cursor: pointer; }
.checkbox__box {
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 5px;
  border: 1.5px solid #e0d9ca;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox input:checked + .checkbox__box { background: var(--brand); border-color: var(--brand); }
.checkbox input:checked + .checkbox__box::after { content: '✓'; }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--brand-border); outline-offset: 1px; }
.checkbox__label { flex: 1; font-size: 12.5px; color: var(--text); }
.checkbox input:checked ~ .checkbox__label { font-weight: 700; }
.checkbox__count { flex: none; font-size: 10.5px; color: var(--dim); }

.filter-group__title { font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: 0.04em; }

/* トグル（お知らせ・公表が少ない園を隠す） */
.switch {
  width: 38px;
  height: 22px;
  flex: none;
  border-radius: 99px;
  background: var(--track);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  padding: 2px;
  justify-content: flex-start;
}
.switch.is-on { background: var(--brand); border-color: var(--brand); justify-content: flex-end; }
.switch i { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid #e0d9ca; }

.badge {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  border-radius: 99px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* ---------- 施設ページ ---------- */

.hero { padding: 16px 16px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
/* 園名の行はアバターの横、説明文はその下に回り込ませる（モバイル） */
.hero__top { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
.hero__ident { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero__say { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.hero__name { font-family: var(--font-h); font-size: 17px; font-weight: 500; color: var(--ink); }
.hero__stats { display: flex; justify-content: space-between; gap: 6px; padding: 2px 2px 0; }
.hero__stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero__stat b { font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.hero__stat span { font-size: 9.5px; color: var(--faint); }
.hero__side { display: flex; flex-direction: column; gap: 10px; }
.hero__actions { display: flex; gap: 8px; }
.hero__actions .btn { flex: 1; padding: 11px 0; }
.hero__actions .btn--keep { flex: none; padding: 11px 16px; }

/* 公表項目の14分割メータ */
.pub { display: flex; gap: 2px; flex: 1; }
.pub span { flex: 1; height: 6px; border-radius: 2px; background: var(--track); }
.pub span.is-on { background: var(--brand); }

.section { border-top: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 11px; }
.section__grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }

.donut { width: 64px; height: 64px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.donut__hole {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut__hole b { font-size: 12.5px; font-weight: 800; color: var(--ink); line-height: 1; }
.donut__hole b span { font-size: 8px; }
.donut__hole > span { font-size: 8px; color: var(--dim); margin-top: 1px; }

.waffle { display: flex; flex-wrap: wrap; gap: 4px; max-width: 170px; }
.waffle span { width: 13px; height: 18px; border-radius: 2px; background: #fff; border: 1px solid var(--brand-edge); }
.waffle span.is-on { background: var(--brand); border-color: var(--brand); }

.kids { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.kids__unit { width: 16px; height: 22px; border-radius: 3px; background: var(--brand-mid); border: 1px solid var(--brand-edge); }
.kids__unit--avg { background: var(--track); border-color: var(--border-2); }
.kids__group { display: flex; flex-direction: column; gap: 5px; }
.kids__row { display: flex; gap: 5px; flex-wrap: wrap; max-width: 220px; }
.kids__caption { font-size: 9.5px; color: var(--dim); }
.kids__staff { width: 22px; height: 32px; border-radius: 4px 4px 2px 2px; background: var(--brand); }
.kids__arrow { font-size: 14px; color: var(--brand-mid); padding-bottom: 15px; }

.exp { display: flex; gap: 2px; }
.exp span { width: 9px; height: 20px; border-radius: 2px; background: var(--brand); }
.exp--avg span { height: 13px; background: var(--track-blue); }

.timeline {
  position: relative;
  display: block;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(90deg, #efeae0 0%, #f8f5ee 30%, #f8f5ee 62%, #e6dfd0 100%);
}
.timeline__open {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.timeline__mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--headline); }
.timeline__scale { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--dim); }

.week { display: flex; gap: 4px; }
.week span {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: #fff;
  color: var(--pale);
}
.week span.is-on { background: var(--brand-tint); color: var(--brand-deep); }

.scope { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.scope__item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scope__box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #f9f7f2;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--pale);
  line-height: 1;
}
.scope__box.is-on { background: var(--brand-tint); border-color: var(--brand-border); color: var(--brand); }
.scope__label { font-size: 9.5px; color: var(--muted); text-align: center; line-height: 1.35; white-space: pre-line; }

.classes { display: flex; gap: 4px; }
.classes span {
  flex: 1;
  height: 24px;
  border-radius: 4px;
  background: var(--track);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
}

.bands { display: flex; gap: 4px; align-items: flex-end; }
.bands__item { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bands__bar { border-radius: 3px; background: var(--soft-2); border: 1px solid var(--border-2); }
.bands__item.is-on .bands__bar { background: var(--brand); border-color: var(--brand); }
.bands__label { font-size: 8.5px; text-align: center; color: var(--ghost); }
.bands__item.is-on .bands__label { color: var(--brand-deep); font-weight: 700; }
.bands--steps .bands__bar { border: 0; background: var(--track-blue-2); }
.bands--steps .bands__item.is-on .bands__bar { background: var(--brand); }

.ict { display: flex; flex-wrap: wrap; gap: 5px; }
.ict span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #a0978a;
  background: var(--soft);
  border: 1px solid var(--border-3);
  border-radius: 99px;
  padding: 4px 10px 4px 7px;
}
.ict span::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); flex: none; }
.ict span.is-on { font-weight: 700; color: var(--brand-deep); background: var(--brand-tint); border-color: var(--brand-border); }
.ict span.is-on::before { background: var(--brand); }

.footnote { font-size: 9.5px; color: var(--faint); line-height: 1.8; }

/* このサイトについて の導入 */
.intro { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 8px 0 4px; }
.intro__mark { width: 92px; height: auto; }
.intro .lead { max-width: 340px; }

/* エリアの「ふつう」のカード（モバイル） */
.medians { display: flex; gap: 8px; }
.median-card {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--soft);
}
.median-card__label { font-size: 9.5px; color: var(--faint); line-height: 1.4; }
.median-card__value { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1; }
.median-card__sample { font-size: 9px; color: var(--dim); }

/* 分布のヒストグラム */
.dist { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.dist__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.dist__bar { border-radius: 4px 4px 2px 2px; background: var(--track-blue); }
.dist__col.is-on .dist__bar { background: var(--brand); }
.dist__labels { display: flex; gap: 6px; }
.dist__label { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.dist__label b { font-size: 8.5px; font-weight: 400; color: var(--faint); }
.dist__col.is-on + .dist__label b,
.dist__label.is-on b { font-weight: 700; color: var(--brand-deep); }
.dist__label span { font-size: 8.5px; color: var(--chevron); }

/* 比較表 */
.cmp { display: flex; flex-direction: column; }
.cmp__head,
.cmp__row { display: grid; grid-template-columns: 82px repeat(3, 1fr); column-gap: 8px; align-items: center; }
.cmp__head { padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.cmp__row { padding: 10px 0; border-bottom: 1px solid var(--line-warm); }
.cmp__label { font-size: 10px; color: var(--faint); line-height: 1.4; }
.cmp__cell {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border-radius: 6px;
  padding: 6px 2px;
  white-space: nowrap;
}
.cmp__cell--none { font-weight: 400; color: var(--ghost); background: var(--hatch-avatar); }

/* ---------- ページャ・下部ナビ ---------- */

.pager { display: flex; gap: 8px; justify-content: center; padding: 16px 0; }
.pager a, .pager span { font-size: 12px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); }
.pager .is-current { background: var(--brand-tint); border-color: var(--brand-border); color: var(--brand-deep); font-weight: 700; }

.bottomnav {
  position: sticky;
  bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 10px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9px; color: var(--ghost); }
.bottomnav a.is-on { color: var(--text); font-weight: 700; }
.bottomnav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottomnav a.is-on svg path { fill: var(--brand-tint); }

.site-footer { padding: 14px 16px 20px; border-top: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 8px; }

/* HTMX の読み込み中だけ薄くする */
.htmx-request.hx-fade,
.hx-fade.htmx-request { opacity: 0.55; transition: opacity 0.12s linear; }

/* ---------- デスクトップ ---------- */

@media (min-width: 1080px) {
  :root { --shell-radius: 14px; }

  .page { padding: 32px 24px 64px; }
  .shell {
    border-radius: var(--shell-radius);
    border-color: var(--shell-border);
    box-shadow: 0 20px 48px -30px rgba(70, 60, 40, 0.22);
  }

  .topbar { padding: 0 32px; height: 64px; gap: 24px; }
  .brand { flex: none; }
  .brand img { height: 32px; }
  .searchbox { display: flex; }
  .topnav { display: flex; }
  .topbar__me { width: 32px; height: 32px; }
  .stamp { font-size: 12.5px; color: var(--muted); }
  .breadcrumb { font-size: 12.5px; }

  .col { padding: 24px 28px 36px; }
  .col--side { border-top: 0; padding: 24px 22px 32px; }
  .columns--home { display: grid; grid-template-columns: 296px 1fr 300px; align-items: start; }
  .columns--search { display: grid; grid-template-columns: 272px 1fr 380px; align-items: start; }
  .columns--facility { display: grid; grid-template-columns: 1fr 328px; align-items: start; }
  .columns--home > .col:first-child,
  .columns--search > .col:first-child { border-right: 1px solid var(--line); }
  .columns--home > .col:last-child,
  .columns--search > .col:last-child,
  .columns--facility > .col:last-child { border-left: 1px solid var(--line); }

  .block-title { font-size: 14px; }
  .section-title { font-size: 15px; }
  .field-label { font-size: 11.5px; }
  .note { font-size: 10.5px; line-height: 1.8; }
  .lead { font-size: 13.5px; line-height: 1.9; }
  .figure { font-size: 19px; }
  .figure--sm { font-size: 16px; }
  .headline { font-size: 13.5px; line-height: 1.6; }
  .tags { font-size: 12px; }
  .footnote { font-size: 10.5px; line-height: 1.9; }

  .metric__label { width: 84px; font-size: 11px; }
  .metric__word { width: 56px; font-size: 11.5px; }
  .metric-grid { column-gap: 28px; row-gap: 9px; }

  .avatar-sm { width: 34px; height: 34px; }
  .avatar-sm .avatar__inner { font-size: 13px; }
  .avatar-md { width: 44px; height: 44px; }
  .avatar-md .avatar__inner { font-size: 15px; }
  .avatar-lg { width: 48px; height: 48px; }
  .avatar-lg .avatar__inner { font-size: 16px; }
  .avatar-xl { width: 96px; height: 96px; padding: 3px; }
  .avatar-xl .avatar__inner { font-size: 34px; }

  .post { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .post + .post { margin-top: 16px; }
  .post__head { padding: 14px 18px 12px; }
  .post__name { font-size: 14px; }
  .post__meta { font-size: 11px; }
  .post__body { padding: 0 18px 12px; }
  .post__foot { padding: 0 18px 14px; gap: 12px; }
  .post__foot .note { font-size: 10.5px; }

  .facility-row { padding: 13px 4px; border-top-color: var(--line-warm); flex-wrap: nowrap; }
  .facility-row__main { flex: none; width: 210px; }
  .facility-row .metric-grid { display: none; }
  .facility-row__cells { display: flex; flex: 1; gap: 10px; }
  .facility-row__cell { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .facility-row__cell .segs { flex: none; width: 100%; }
  .list-head .facility-row__cell { white-space: nowrap; }

  .hero { padding: 28px 32px 24px; flex-direction: row; align-items: flex-start; gap: 26px; }
  /* デスクトップは説明文もアバターの右に積む（デザインの施設ページ） */
  .hero__top { flex: 1; align-items: start; column-gap: 26px; }
  .hero__ident { gap: 9px; }
  .hero__say { grid-column: 2; gap: 9px; padding-top: 9px; }
  .hero__say .lead { max-width: 720px; }
  .hero__name { font-size: 22px; }
  .hero__side { width: 250px; flex: none; gap: 12px; }
  .hero__stats { gap: 8px; padding: 0; }
  .hero__stat b { font-size: 18px; }
  .hero__stat span { font-size: 10.5px; }
  .hero__actions { gap: 9px; }
  .hero__actions .btn { font-size: 13px; padding: 12px 0; }
  .hero__actions .btn--keep { padding: 11px 18px; }

  .section { padding: 22px 32px; gap: 14px; }
  .section__grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .section__grid--2 { grid-template-columns: 1fr 1fr; }

  .donut { width: 84px; height: 84px; }
  .donut__hole { width: 60px; height: 60px; }
  .donut__hole b { font-size: 16px; }
  .donut__hole b span { font-size: 10px; }
  .donut__hole > span { font-size: 9px; margin-top: 2px; }

  .timeline { height: 28px; }
  .timeline__open { font-size: 10px; }
  .bands__label { font-size: 9px; }
  .hatch { padding: 11px 12px; gap: 4px; }
  .hatch__topic { font-size: 11.5px; }
  .hatch__status { font-size: 10px; }

  .dist { height: 88px; gap: 10px; max-width: 640px; }
  .dist__bar { border-radius: 5px 5px 2px 2px; }
  .dist__labels { gap: 10px; max-width: 640px; }
  .dist__label b, .dist__label span { font-size: 10px; }

  .cmp__head, .cmp__row { grid-template-columns: 200px repeat(3, 1fr); column-gap: 14px; }
  .cmp__head { padding-bottom: 14px; }
  .cmp__row { padding: 11px 0; }
  .cmp__label { font-size: 11.5px; }
  .cmp__cell { font-size: 13px; border-radius: 7px; padding: 8px 2px; }

  /* デスクトップの「◯◯のふつう」は罫線で区切った3行（デザインの areaRows） */
  .medians { flex-direction: column; gap: 0; margin-top: 2px; }
  .median-card {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line-warm);
    border-radius: 0;
    padding: 11px 0;
  }
  .median-card__label { flex: 1; font-size: 12px; color: var(--muted); }
  .median-card__value { flex: none; font-size: 15px; }
  .median-card__sample { flex: none; font-size: 10.5px; color: var(--faint); }

  .site-footer { padding: 20px 32px 32px; }
  .bottomnav { display: none; }

  /* 条件タイルはモバイル専用。デスクトップは左の絞り込みが同じ役割を持つ */
  .tiles-block { display: none; }
}

@media (max-width: 1079px) {
  .col--filters, .list-head { display: none; }
  /* パンくずと取得日は横幅を食うので隠す。取得日は施設ページの脚注に残す */
  .topbar .breadcrumb, .topbar .stamp--date { display: none; }
}

/* 本文内の広告枠。図と地続きに見えないよう、下地と枠線で本文から分ける */
.promo {
  border: 1px solid var(--border-3);
  border-radius: 12px;
  background: var(--soft);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.promo__tag {
  flex: none;
  font-size: 9px;
  font-weight: 700;
  color: var(--faint);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1.5;
}
.promo__head { font-size: 12.5px; font-weight: 700; color: var(--headline); }
.promo__pixel { position: absolute; left: -9999px; width: 1px; height: 1px; }
