/* Modernist — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-2: #e15b47;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --color-accent-2-100: #fff2ef;
  --color-accent-2-200: #ffe0da;
  --color-accent-2-300: #ffc4b9;
  --color-accent-2-400: #ff9784;
  --color-accent-2-500: #ef6853;
  --color-accent-2-600: #c94b39;
  --color-accent-2-700: #9e3526;
  --color-accent-2-800: #71261b;
  --color-accent-2-900: #471d16;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4.0px;
  --space-2: 8.0px;
  --space-3: 12.0px;
  --space-4: 16.0px;
  --space-6: 24.0px;
  --space-8: 32.0px;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.grayscale{filter:grayscale(1) contrast(1.08)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 2px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 2px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }


/* ITS保養所ノート — サイト固有のスタイル（トークンは modernist.css） */

:root {
  --font: "Archivo", "Noto Sans JP", system-ui, sans-serif;
  --gutter: 48px;
  --header-h: 64px;
  --rule: 2px solid var(--color-text);
  --rule-soft: 2px solid var(--color-divider);
  --hair: 1px solid var(--color-divider);
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --header-h: 52px; }
}

body, h1, h2, h3, h4, h5, h6 { font-family: var(--font); }
body { -webkit-text-size-adjust: 100%; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.page { max-width: 1440px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.sp, .sp-only { display: none !important; }
@media (max-width: 900px) {
  .pc { display: none !important; }
  .sp { display: inline !important; }
  .sp-only { display: inline-flex !important; }
}

/* ---------------------------------------------------------------- badges */
.badge {
  width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; line-height: 1;
}
.badge-great { background: var(--color-accent); color: var(--color-bg); }
.badge-good { color: var(--color-text); box-shadow: inset 0 0 0 2px var(--color-text); }
.badge-fair { background: var(--color-neutral-300); color: var(--color-text); }
.badge-poor { color: var(--color-neutral-600); box-shadow: inset 0 0 0 1px var(--color-neutral-500); }
.badge-none { color: var(--color-neutral-500); }
.badge-blank { box-shadow: inset 0 0 0 1px var(--color-divider); }
.badge-unknown { color: var(--color-neutral-600); outline: 1px dashed var(--color-neutral-500); outline-offset: -1px; }
.badge-xs { width: 22px; height: 22px; font-size: 12px; }
.badge-lg { width: 48px; height: 48px; font-size: 26px; }
.badge-fluid { width: 100%; height: auto; max-width: 40px; aspect-ratio: 1 / 1; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--color-neutral-800); }
.legend > span { display: flex; gap: 6px; align-items: center; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: relative; display: flex; justify-content: space-between; align-items: stretch;
  height: var(--header-h); border-bottom: var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; padding-left: var(--gutter); color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark { background: var(--color-accent); color: var(--color-bg); font-weight: 800; font-size: 12px; padding: 5px 6px; letter-spacing: .04em; line-height: 1; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.site-nav { display: flex; font-size: 14px; font-weight: 600; }
.site-nav a {
  display: flex; align-items: center; gap: 8px; padding: 0 24px;
  border-left: var(--rule-soft); color: inherit; text-decoration: none;
}
.site-nav a:hover { background: var(--color-neutral-200); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--color-accent); }
.site-nav .nav-cta { background: var(--color-accent); color: var(--color-bg); border-left: 0; padding-right: var(--gutter); }
.site-nav .nav-cta:hover { background: var(--color-accent-600); color: var(--color-bg); }
.site-nav .nav-cta[aria-current="page"] { background: var(--color-accent-700); box-shadow: none; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .brand { gap: 10px; }
  .brand-mark { font-size: 11px; padding: 4px 5px; }
  .brand-name { font-size: 16px; }
  .menu-btn { display: flex; width: 52px; align-items: center; justify-content: center; border-left: var(--rule); }
  .site-nav {
    display: none; position: absolute; z-index: 50; top: 100%; left: 0; right: 0; margin-top: 2px;
    flex-direction: column; background: var(--color-bg); border-bottom: var(--rule); box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 16px var(--gutter); border-left: 0; border-top: var(--hair); font-size: 15px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--color-accent); }
  .site-nav .nav-cta { justify-content: space-between; padding-right: var(--gutter); }
}

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 72px; border-top: var(--rule); padding: 20px var(--gutter); font-size: 12px; color: var(--color-neutral-700); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-note { margin-top: 12px; font-size: 11px; line-height: 1.7; color: var(--color-neutral-600); }
.footer-note ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 900px) { .site-footer { margin-top: 48px; padding: 16px var(--gutter); font-size: 11px; } }

/* ---------------------------------------------------------------- top: hero */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); height: 420px; border-bottom: var(--rule); }
.hero-title { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: var(--gutter); border-right: var(--rule); }
.hero-title h1 { font-size: clamp(52px, 7.5vw, 96px); line-height: .98; margin: 0; letter-spacing: -.045em; }
.hero-title p { margin: 0; font-size: 13px; color: var(--color-neutral-700); }
.hero-profile img { width: 260px; height: 260px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--color-text); transition: box-shadow .15s; }
.hero-profile a { display: inline-block; border-radius: 50%; }
.hero-profile a:hover img { box-shadow: 0 0 0 4px var(--color-accent); }
.hero-author { font-weight: 600; margin-left: 8px; }
.hero-pick { position: relative; display: block; overflow: hidden; color: inherit; text-decoration: none; }
.hero-pick:hover { color: inherit; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-pick:hover .hero-img img { transform: scale(1.03); }
.pick-label {
  position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px;
  background: var(--color-bg); padding: 14px 20px 14px 16px; border-top: var(--rule); border-right: var(--rule);
}
.pick-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--color-accent-700); }
.pick-name { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.pick-tags { display: flex; gap: 6px; }
.pick-tags .tag { font-size: 10px; }
@media (max-width: 900px) {
  .hero { display: block; height: auto; border-bottom: 0; }
  .hero-title { padding: 32px var(--gutter) 22px; border-right: 0; gap: 12px; }
  .hero-title p { font-size: 12px; }
  .hero-profile img { width: 160px; height: 160px; }
  .hero-pick { height: 230px; border-top: var(--rule); border-bottom: var(--rule); }
  .pick-label { padding: 10px 14px 10px var(--gutter); gap: 3px; }
  .pick-kicker { font-size: 10px; }
  .pick-name { font-size: 14px; }
  .pick-tags { display: none; }
}

/* ---------------------------------------------------------------- top: 240px + 1fr の段 */
.split { display: grid; grid-template-columns: 240px minmax(0, 1fr); padding: 48px var(--gutter) 0; }
.split-head { border-top: var(--rule); padding-top: 14px; }
.split-head h2 { font-size: 24px; margin: 0; }
.split-sub { font-size: 12px; line-height: 1.6; color: var(--color-neutral-700); margin-top: 6px; }
@media (max-width: 900px) {
  .split { display: block; padding-top: 32px; }
  .split-head { border-top: 0; padding: 0 0 10px; }
  .split-head h2 { font-size: 20px; }
  .split-sub { font-size: 11.5px; margin-top: 4px; }
  .split-sub br { display: none; }
}

.guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule); border-bottom: var(--rule); }
.guide-cell {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto; gap: 10px;
  padding: 16px 20px 20px; min-height: 190px; border-left: var(--rule-soft);
  color: inherit; text-decoration: none; transition: background .15s, color .15s;
}
.guide-cell:hover { background: var(--color-accent); color: var(--color-bg); }
.guide-no { font-size: 56px; font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.guide-arrow { display: none; }
.guide-title { grid-column: 1 / -1; grid-row: 3; font-size: 19px; font-weight: 800; }
.guide-desc { grid-column: 1 / -1; grid-row: 4; font-size: 12.5px; line-height: 1.6; opacity: .8; }
@media (max-width: 900px) {
  .guide { display: block; border-bottom: 0; }
  .guide-cell {
    grid-template-columns: 52px minmax(0, 1fr) 18px; grid-template-rows: auto auto; gap: 2px 8px; align-items: center;
    min-height: 0; padding: 14px 0; border-left: 0; border-bottom: var(--hair);
  }
  .guide-cell:hover { background: var(--color-neutral-200); color: inherit; }
  .guide-no { grid-row: 1 / 3; font-size: 30px; line-height: 1; color: var(--color-accent); }
  .guide-icon { display: none; }
  .guide-arrow { display: block; grid-column: 3; grid-row: 1 / 3; }
  .guide-title { grid-column: 2; grid-row: 1; font-size: 15px; }
  .guide-desc { grid-column: 2; grid-row: 2; font-size: 11.5px; line-height: 1.5; opacity: 1; color: var(--color-neutral-700); }
}

.recent { border-top: var(--rule); }
.recent-row {
  display: grid; grid-template-columns: 120px 84px minmax(0, 1fr) 24px; align-items: center; gap: 16px;
  padding: 13px 0 13px 20px; border-bottom: var(--hair); color: inherit; text-decoration: none;
}
.recent-row:hover { background: var(--color-neutral-200); color: inherit; }
.recent-date { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--color-neutral-700); }
.recent-kind .tag { font-size: 10.5px; }
.recent-title { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.recent-title b { font-size: 15px; font-weight: 800; flex: none; }
.recent-title span { font-size: 12px; color: var(--color-neutral-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .recent-row { grid-template-columns: auto 1fr; gap: 4px 8px; padding: 11px 0; }
  .recent-date { font-size: 11px; }
  .recent-kind .tag { font-size: 9.5px; }
  .recent-title { grid-column: 1 / -1; }
  .recent-title b { font-size: 14px; flex: 1; }
  .recent-title span, .recent-arrow { display: none; }
}

/* ---------------------------------------------------------------- top: 保養施設一覧 */
.hotels { padding: 64px var(--gutter) 0; }
.hotels-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 14px; }
.hotels-head h2 { font-size: 40px; margin: 0; letter-spacing: -.02em; }
.hotel-cards { display: none; }

.table-head, .table-row { display: grid; grid-template-columns: 260px repeat(7, minmax(0, 1fr)); }
.table-head {
  position: sticky; top: 0; z-index: 5;
  font-size: 11.5px; font-weight: 800; background: var(--color-text); color: var(--color-bg);
}
.table-head > div { padding: 10px; }
.table-head > div:first-child { padding-left: 12px; }
.table-head > div + div { border-left: 1px solid var(--color-neutral-700); }
.group-head {
  display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; align-items: end;
  padding: 36px 0 12px; border-bottom: var(--rule); scroll-margin-top: 40px;
}
.group-title { display: flex; align-items: baseline; gap: 12px; }
.group-no { font-size: 15px; font-weight: 800; color: var(--color-accent); }
.group-name { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.group-desc { font-size: 12.5px; color: var(--color-neutral-700); padding-bottom: 4px; }
.group-total { font-size: 12.5px; font-weight: 600; padding-bottom: 4px; }

.table-row { border-bottom: var(--hair); color: inherit; text-decoration: none; transition: background .12s; }
.table-row:hover { background: var(--color-accent-100); color: inherit; }
.row-name { padding: 14px 12px 14px 0; display: flex; flex-direction: column; gap: 6px; }
.row-name > span:first-child { font-size: 15px; font-weight: 800; line-height: 1.35; }
.row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.row-tags .tag { font-size: 10.5px; }
.row-cell { padding: 14px 10px; border-left: var(--hair); display: flex; flex-direction: column; gap: 6px; }
.cell-note { font-size: 11.5px; line-height: 1.45; color: var(--color-neutral-800); }

.extra-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); padding: 14px 0; border-bottom: var(--hair); font-size: 13px; }
.extra-label { font-size: 12px; font-weight: 800; color: var(--color-neutral-700); }
.extra-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.extra-item { display: flex; gap: 6px; align-items: center; }
.extra-item .tag { font-size: 10px; }
.extra-name { font-weight: 600; color: inherit; text-decoration: none; }
a.extra-name:hover { color: var(--color-accent-700); }

@media (max-width: 1100px) and (min-width: 901px) {
  .table-head, .table-row { grid-template-columns: 200px repeat(7, minmax(0, 1fr)); }
  .group-head, .extra-row { grid-template-columns: 200px minmax(0, 1fr) auto; }
}
@media (max-width: 900px) {
  .hotels { padding-top: 40px; }
  .hotels-head { display: block; padding-bottom: 0; }
  .hotels-head h2 { font-size: 26px; margin-bottom: 10px; }
  .legend { font-size: 11px; gap: 6px 12px; }
  .legend .badge-xs { width: 18px; height: 18px; font-size: 10px; }
  .hotel-table { display: none; }
  /* スマホでは分類の見出しを出さず、施設をフラットに並べる */
  .hotel-cards { display: block; margin-top: 14px; border-top: var(--rule); }
  .hotel-cards .group-head { display: none; }
  .card-row { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-bottom: var(--hair); color: inherit; text-decoration: none; }
  .card-row:hover { color: inherit; background: var(--color-accent-100); }
  .card-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; line-height: 1.35; }
  .card-name .icon { flex: none; }
  .row-tags .tag { font-size: 10px; }
  .mini-badges { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .mini-badges > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
  .mini-label { font-size: 9.5px; color: var(--color-neutral-700); white-space: nowrap; }
  .card-notes { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; line-height: 1.5; color: var(--color-neutral-800); }
  .card-notes > span { display: grid; grid-template-columns: 40px minmax(0, 1fr); }
  .card-notes b { font-weight: 600; color: var(--color-neutral-700); }
  .extra-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; }
  .extra-label { font-size: 11px; }
  .extra-list { gap: 4px 14px; font-size: 12.5px; }
}

/* ---------------------------------------------------------------- 施設詳細 */
.detail-top {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "title actions" "mosaic mosaic";
  column-gap: 32px; padding: 36px var(--gutter) 0;
}
.detail-title { grid-area: title; padding-bottom: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--color-neutral-700); margin-bottom: 24px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--color-accent-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--color-text); font-weight: 600; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail h1 { font-size: clamp(32px, 4.7vw, 60px); margin: 0; letter-spacing: -.03em; line-height: 1.05; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; font-size: 12.5px; color: var(--color-neutral-700); }
.detail-meta b { color: var(--color-text); }
.detail-actions { grid-area: actions; align-self: end; display: flex; flex-direction: column; gap: 6px; padding-bottom: 24px; }
.btn-official { justify-content: space-between; padding: 13px 16px; font-size: 15px; }
.btn-official:hover { color: var(--color-bg); }
.map-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.map-links .btn { justify-content: flex-start; padding: 11px 12px; }
.map-links .btn:hover { color: var(--color-text); }
.prose .map-links { max-width: 360px; margin: 8px 0 16px; }

.mosaic { grid-area: mosaic; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 200px 200px; gap: 4px; }
.mosaic-tile { position: relative; overflow: hidden; cursor: zoom-in; background: var(--color-neutral-300); display: block; width: 100%; height: 100%; }
.mosaic-tile:first-child { grid-row: span 2; }
.tile-img { position: absolute; inset: 0; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic-tile:hover img { transform: scale(1.04); }
.mosaic-count { position: absolute; right: 0; bottom: 0; background: var(--color-text); color: var(--color-bg); font-size: 12px; font-weight: 800; padding: 8px 12px; }
.mosaic-1 { grid-template-columns: 1fr; grid-template-rows: 400px; }
.mosaic-2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mosaic-3, .mosaic-4 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mosaic-4 .mosaic-tile:nth-child(4) { display: none; }
.mosaic-4 .mosaic-tile:nth-child(3) .mosaic-count { display: none; }

.detail-summary { padding: 32px var(--gutter) 0; }
.summary { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: var(--rule); border-bottom: var(--rule); }
.summary-cell { padding: 16px 14px 20px; border-left: var(--hair); display: flex; flex-direction: column; gap: 10px; }
.summary-cell:first-child { border-left: 0; padding-left: 0; }
.summary-label { font-size: 12px; font-weight: 600; color: var(--color-neutral-700); }
.summary-note { font-size: 12.5px; line-height: 1.5; }
.summary-caution { font-size: 11.5px; color: var(--color-neutral-700); padding-top: 8px; margin: 0; }
.summary-inline { margin: 8px 0 20px; }
.prose .summary-inline .summary { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }

.sections { padding: 48px var(--gutter) 64px; }
.section { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.section-head { border-top: var(--rule); padding: 14px 16px 36px 0; display: flex; flex-direction: column; gap: 4px; }
.section-no { font-size: 13px; font-weight: 800; color: var(--color-accent); }
.section-head h2 { font-size: 20px; margin: 0; letter-spacing: 0; }
.section-body { border-top: var(--rule-soft); padding: 14px 0 36px; }
.section-body > .prose { max-width: 720px; }
.is-shared .section-body > .prose { background: var(--color-surface); padding: 20px 24px; }
.gallery-count { font-size: 12px; color: var(--color-neutral-700); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery-img { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-neutral-300); cursor: zoom-in; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-img:hover img { transform: scale(1.04); }
.gallery figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-top: 8px; color: var(--color-text); font-weight: 600; }
.fig-num { color: var(--color-neutral-600); font-weight: 400; flex: none; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--rule); }
.pager > a, .pager > span { padding: 24px var(--gutter); display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.pager > :first-child { border-right: var(--rule); }
.pager > a:hover { background: var(--color-neutral-200); color: inherit; }
.pager-dir { font-size: 11.5px; color: var(--color-neutral-700); }
.pager-name { font-size: 18px; font-weight: 800; }
.detail + .site-footer, .page:has(.pager) .site-footer { margin-top: 0; }

@media (max-width: 900px) {
  .detail-top { display: flex; flex-direction: column; padding: 20px 0 0; }
  .detail-title { padding: 0 var(--gutter) 18px; }
  .crumbs { display: none; }
  .detail-tags { gap: 6px; margin-bottom: 12px; }
  .detail h1 { font-size: 32px; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; }
  .detail-meta { margin-top: 0; font-size: 11.5px; gap: 4px 12px; }
  .mosaic { order: 2; display: block; height: 230px; border-top: var(--rule); border-bottom: var(--rule); }
  .mosaic-tile:not(:first-child) { display: none; }
  .mosaic-tile .mosaic-count { display: none; }
  .mosaic-tile .mosaic-count.sp-only { display: block !important; font-size: 11px; padding: 7px 10px; }
  .detail-actions { order: 3; align-self: stretch; padding: 16px var(--gutter) 0; }
  .btn-official { min-height: 48px; padding: 0 16px; }
  .map-links .btn { min-height: 44px; }
  .detail-summary { padding: 24px var(--gutter) 0; }
  .summary { display: block; border-bottom: 0; }
  .summary-cell {
    display: grid; grid-template-columns: 34px 80px minmax(0, 1fr); gap: 10px; align-items: center;
    padding: 10px 0; border-left: 0; border-bottom: var(--hair);
  }
  .summary-cell .badge-lg { grid-column: 1; grid-row: 1; width: 34px; height: 34px; font-size: 18px; }
  .summary-label { grid-column: 2; grid-row: 1; font-size: 12.5px; color: var(--color-text); }
  .summary-note { grid-column: 3; grid-row: 1; font-size: 12px; color: var(--color-neutral-800); }
  .sections { padding: 8px var(--gutter) 0; }
  .section { display: block; padding: 26px 0 20px; border-bottom: var(--rule-soft); }
  .gallery-section { border-bottom: 0; padding-bottom: 0; }
  .section-head { flex-direction: row; align-items: baseline; gap: 10px; border-top: 0; padding: 0 0 10px; }
  .section-no { font-size: 12px; }
  .section-head .tag { font-size: 9.5px; align-self: center; }
  .gallery-count { margin-left: auto; font-size: 11px; }
  .section-body { border-top: 0; padding: 0; }
  .is-shared .section-body > .prose { padding: 14px 16px; }
  .gallery { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .gallery figure { flex: none; width: 260px; scroll-snap-align: start; }
  .gallery figcaption { font-size: 12px; margin-top: 6px; }
  .fig-num { display: none; }
  .pager { margin-top: 36px; }
  .pager > a, .pager > span { padding: 16px var(--gutter); gap: 2px; min-height: 44px; }
  .pager-dir { font-size: 10.5px; }
  .pager-name { font-size: 13px; }
}

/* ---------------------------------------------------------------- 本文（Markdown） */
.prose { font-size: 15.5px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 12px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; padding-bottom: 10px; border-bottom: var(--rule); scroll-margin-top: 16px; }
.prose h3 { font-size: 17px; margin: 20px 0 8px; letter-spacing: 0; }
.prose h4 { font-size: 15px; margin: 16px 0 6px; letter-spacing: 0; }
.prose ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prose ul ul { margin: 8px 0 0; }
.prose ul > li { position: relative; padding-left: 18px; }
.prose ul > li::before { content: "—"; position: absolute; left: 0; color: var(--color-accent); font-weight: 800; }
.prose ul ul > li::before { color: var(--color-neutral-500); }
.prose ol { list-style: none; counter-reset: step; margin: 0 0 12px; padding: 0; }
.prose ol > li { counter-increment: step; position: relative; padding: 14px 0 14px 48px; border-bottom: var(--hair); }
.prose ol > li:first-child { border-top: var(--hair); }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 12px; font-size: 20px; font-weight: 800; color: var(--color-accent); line-height: 1.4; }
.prose a { font-weight: 600; }
.prose strong { font-weight: 800; }
.prose img { display: block; max-width: 100%; height: auto; margin: 12px 0; border: var(--hair); cursor: zoom-in; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 16px; }
.prose th { text-align: left; font-size: 11.5px; font-weight: 800; background: var(--color-text); color: var(--color-bg); padding: 10px 12px; }
.prose td { padding: 12px; border-bottom: var(--hair); vertical-align: top; }
.prose tbody tr:hover { background: var(--color-accent-100); }
.prose blockquote { margin: 0 0 12px; padding: 12px 16px; background: var(--color-surface); }
.prose code { font-size: .9em; background: var(--color-surface); padding: 1px 4px; }
.table-scroll { overflow-x: auto; }

.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: var(--rule-soft); margin-bottom: 16px; }
.price-item { padding: 8px 16px 16px; }
.price-item:first-child { padding-left: 0; border-right: var(--hair); }
.price-label { font-size: 12px; color: var(--color-neutral-700); }
.price-value { font-size: 36px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.price-value small { font-size: 15px; }

/* ---------------------------------------------------------------- 読み物ページ */
.doc-head { padding: 40px var(--gutter) 24px; border-bottom: var(--rule); }
.doc-kicker { font-size: 12px; font-weight: 800; color: var(--color-accent); margin-bottom: 10px; }
.doc-head h1 { font-size: clamp(32px, 4.5vw, 52px); margin: 0; letter-spacing: -.02em; }
.doc-meta { margin-top: 12px; font-size: 12.5px; color: var(--color-neutral-700); }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 0 var(--gutter) 56px; }
.doc-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 0; align-self: start; padding-top: 24px; display: flex; flex-direction: column; font-size: 13px; max-height: 100vh; overflow-y: auto; }
.toc a { display: grid; grid-template-columns: 24px minmax(0, 1fr); padding: 8px 0; border-bottom: var(--hair); color: inherit; text-decoration: none; }
.toc a:hover { color: var(--color-accent-700); background: var(--color-neutral-200); }
.toc a.is-active { font-weight: 800; }
.toc a span:first-child { color: var(--color-neutral-600); }
.doc-body { max-width: 760px; padding-top: 24px; }
.doc-body > h2:first-child, .doc-body > :first-child + h2 { margin-top: 0; }
@media (max-width: 900px) {
  .doc-head { padding: 28px var(--gutter) 18px; }
  .doc-grid { display: block; padding-bottom: 32px; }
  .toc { position: static; max-height: none; padding-top: 16px; }
  .prose { font-size: 14.5px; line-height: 1.7; }
  .prose h2 { font-size: 20px; }
  .prose table { font-size: 12.5px; }
  .prose th, .prose td { padding: 8px; }
  .price-value { font-size: 28px; }
  .price-value small { font-size: 12px; }
}

/* ---------------------------------------------------------------- ライトボックス */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px;
  background: color-mix(in srgb, var(--color-text) 88%, transparent);
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: min(1100px, 90vw); }
.lb-img img { max-height: 78vh; width: auto; max-width: 100%; display: block; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: min(1100px, 90vw); color: var(--color-bg); }
.lb-info { display: flex; gap: 14px; align-items: baseline; min-width: 0; }
.lb-caption { font-weight: 800; font-size: 15px; }
.lb-pos { font-size: 12px; color: var(--color-neutral-400); font-variant-numeric: tabular-nums; }
.lb-buttons { display: flex; gap: 6px; flex: none; }
.lb-buttons .btn-secondary { color: var(--color-bg); border-color: var(--color-neutral-600); }
.lb-buttons .btn-secondary:hover { background: color-mix(in srgb, var(--color-bg) 12%, transparent); }
@media (max-width: 900px) {
  .lightbox { padding: 16px; }
  .lb-img, .lb-bar { max-width: 100%; width: 100%; }
  .lb-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .lb-buttons .btn { flex: 1; min-height: 44px; }
}
body.lb-lock { overflow: hidden; }
