/* ふるさと納税NFT — Project Archive
   Visual direction: quiet editorial archive — warm paper, mincho headlines, the old brand green as a single accent. */

:root {
  --paper: #ffffff;
  --paper-2: #f5f5f2;
  --surface: #ffffff;
  --ink: #222622;
  --ink-2: #444a44;
  --muted: #72776f;
  --line: #e7e7e2;
  --line-strong: #d0d0c9;
  --accent: #5f8f00;
  --accent-ink: #4a7200;
  --accent-soft: #eef4e0;
  --stamp: #b0452f;
  --radius-s: 8px;
  --radius-m: 14px;
  --shadow-raised: 0 1px 2px rgba(30, 34, 30, .05), 0 6px 18px rgba(30, 34, 30, .07);
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-num: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* ---------- Notice bar ---------- */
.notice {
  background: var(--paper-2);
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 0;
}
.notice .wrap { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.notice strong { font-weight: 700; color: var(--stamp); }
.notice a { color: inherit; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 12px; color: var(--ink); text-decoration: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; font-feature-settings: "palt"; }
.brand__sub { font-size: 11px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 8px 10px; font-size: 13px; color: var(--ink-2);
  text-decoration: none; border-radius: var(--radius-s);
}
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a, .brand__name { white-space: nowrap; }
@media (max-width: 1080px) { .brand__sub { display: none; } }
@media (max-width: 900px) { .site-nav { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 88px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-feature-settings: "palt";
  font-size: clamp(36px, 5vw, 60px); line-height: 1.25; letter-spacing: .02em; margin: 0 0 24px;
}
.hero__sub { font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; color: var(--muted); margin: -12px 0 28px; }
.nb { display: inline-block; }
.hero__lead { font-size: 17px; color: var(--ink-2); max-width: 34em; margin: 0 0 36px; }
.hero__period {
  display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px 6px 8px; margin-bottom: 28px;
}
.hero__period span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); }

.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; column-gap: 20px; border-top: 1px solid var(--ink); margin: 0; }
.stats div { padding: 16px 0 0 0; }
.stats dt { font-size: 12px; color: var(--muted); line-height: 1.5; order: 2; }
.stats dd { margin: 0 0 4px; white-space: nowrap; font-family: var(--font-num); font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats dd small { font-size: 14px; font-weight: 500; margin-left: 2px; }
.stats div { display: flex; flex-direction: column; }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; row-gap: 8px; } }

.mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.mosaic li { aspect-ratio: 1; border-radius: var(--radius-m); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-raised); }
.mosaic li:nth-child(3n+2) { transform: translateY(18px); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mosaic { max-width: 520px; margin: 8px auto 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.section--tint { background: var(--paper); }
.section__head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__no { font-family: var(--font-num); font-size: 14px; color: var(--accent-ink); padding-top: 12px; border-top: 2px solid var(--accent); align-self: start; letter-spacing: .08em; }
.section__head h2 {
  font-family: var(--font-display); font-weight: 700; font-feature-settings: "palt";
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.4; margin: 0 0 12px;
}
.section__head p { margin: 0; color: var(--ink-2); max-width: 44em; }
@media (max-width: 640px) { .section__head { grid-template-columns: 1fr; gap: 12px; } .section__no { width: 64px; } }

/* ---------- About / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper-2); }
.steps li { padding: 28px 28px 32px; position: relative; counter-increment: step; }
.steps li + li { border-left: 1px solid var(--line); }
.steps li::before { content: "STEP " counter(step, decimal-leading-zero); font-size: 11px; letter-spacing: .2em; color: var(--accent-ink); }
.steps h3 { font-family: var(--font-display); font-size: 21px; margin: 10px 0 8px; line-height: 1.45; font-feature-settings: "palt"; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li + li { border-left: 0; border-top: 1px solid var(--line); } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; margin: 40px 0 0; }
.facts div { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.facts dt { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.tl-year { font-family: var(--font-num); font-size: 28px; font-weight: 700; margin: 40px 0 12px; padding-left: 0; }
.tl-year:first-child { margin-top: 0; }
.tl-item { display: grid; grid-template-columns: 100px 36px minmax(0, 1fr); align-items: start; padding: 10px 0; }
.tl-item time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; text-align: right; padding-right: 0; }
.tl-item .pin { width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong); margin: 8px 0 0 13px; position: relative; z-index: 1; }
.tl-item--key .pin { background: var(--accent); border-color: var(--accent); }
.tl-item p { margin: 0; font-size: 15px; line-height: 1.7; }
.tl-item p a { font-size: 12px; margin-left: 6px; white-space: nowrap; }
.tl-item--key p { font-weight: 700; }
@media (max-width: 560px) {
  .timeline::before { left: 7px; }
  .tl-year { padding-left: 26px; }
  .tl-item { grid-template-columns: 26px minmax(0, 1fr); }
  .tl-item time { grid-column: 2; grid-row: 1; text-align: left; padding: 0; }
  .tl-item .pin { grid-column: 1; grid-row: 1 / span 2; margin: 6px 0 0 2px; }
  .tl-item p { grid-column: 2; }
}

/* ---------- Collections ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.filter button {
  font: inherit; font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); min-height: 36px;
}
.filter button:hover { border-color: var(--ink-2); color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.year-group + .year-group { margin-top: 56px; }
.year-group h3 { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-num); font-size: 22px; margin: 0 0 18px; }
.year-group h3 span { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, calc(50% - 8px)), 1fr)); gap: 28px 20px; list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; }
.card__media { aspect-ratio: 1; border-radius: var(--radius-m); overflow: hidden; background: var(--paper-2); position: relative; border: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card__media img { transition: none; } .card:hover .card__media img { transform: none; } }
.card__media--wide img { object-position: left center; }
.card__media--type {
  display: grid; place-items: center; text-align: center; padding: 24px;
  --tile-bg: #2a2f45; --tile-fg: #f5f2ea;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.10) 0 18%, transparent 19%),
    radial-gradient(circle at 85% 90%, rgba(255,255,255,.08) 0 24%, transparent 25%),
    var(--tile-bg);
  color: var(--tile-fg); border-color: transparent;
}
.card__media--sports { --tile-bg: #2f5d3a; }
.card__media--whisky { --tile-bg: #7a4a1e; }
.card__media--game { --tile-bg: #2a2f45; }
.card__media--type span { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.card__media--type small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.card__media--type b { font-family: var(--font-display); font-size: 30px; line-height: 1.3; font-feature-settings: "palt"; padding: 10px 0; border-block: 1px solid currentColor; min-width: 60%; }
.card__media--type i { font-style: normal; font-size: 13px; line-height: 1.5; opacity: .9; max-width: 14em; }
.badge {
  position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 3px; background: var(--surface); color: var(--stamp); border: 1px solid currentColor;
}
.badge--live { color: var(--accent-ink); }
.card__muni { font-size: 12px; color: var(--muted); margin: 12px 0 2px; }
.card__title { font-family: var(--font-display); font-size: 17px; line-height: 1.5; margin: 0 0 6px; font-weight: 700; font-feature-settings: "palt"; }
.card__meta { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.65; }
.card__meta a { font-size: 12px; white-space: nowrap; }
.card[hidden] { display: none; }
@media (max-width: 520px) {
  .cards { column-gap: 14px; }
  .card__title { font-size: 15px; }
  .card__meta { font-size: 12px; }
  .card__media--type { padding: 12px; }
  .card__media--type b { font-size: 20px; padding: 6px 0; }
  .card__media--type i { font-size: 11px; }
  .card__media--type small { font-size: 9px; letter-spacing: .12em; }
  .badge { left: 6px; top: 6px; font-size: 10px; padding: 2px 6px; }
}

/* ---------- Features ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 88px); }
.feature--rev .feature__media { order: 2; }
.feature h3 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.45; margin: 0 0 14px; font-feature-settings: "palt"; }
.feature p { margin: 0 0 12px; color: var(--ink-2); }
.feature .kicker { font-size: 12px; letter-spacing: .18em; color: var(--accent-ink); margin: 0 0 8px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.levels figure { margin: 0; }
.levels img { border-radius: var(--radius-s); border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; }
.levels figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.frame { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.frame img { width: 100%; }
.frame figcaption, figure.frame + p.cap { font-size: 12px; color: var(--muted); padding: 8px 12px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair img { border-radius: var(--radius-s); border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature--rev .feature__media { order: 0; } }

/* ---------- Municipalities ---------- */
.muni-layout { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
.muni-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 760px) { .muni-list { grid-template-columns: 1fr; } }
.muni-list { margin: 0; }
.muni-list div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.muni-list div:nth-child(-n+2) { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .muni-list div:nth-child(2) { border-top: 0; } }
.muni-list dt { font-size: 13px; color: var(--muted); padding-top: 2px; }
.muni-list dd { margin: 0; font-size: 15px; line-height: 1.8; }
@media (max-width: 860px) { .muni-layout { grid-template-columns: 1fr; } }

/* ---------- Legacy ---------- */
.legacy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.legacy li { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; display: flex; flex-direction: column; }
.legacy h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; line-height: 1.5; }
.legacy p { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; flex: 1; }
.legacy a { font-size: 13px; font-weight: 700; }
@media (max-width: 860px) { .legacy { grid-template-columns: 1fr; } }

.quote {
  margin: 0 0 48px; padding: 28px 32px; border-left: 3px solid var(--accent); background: var(--paper-2);
  font-family: var(--font-display); font-size: clamp(17px, 2vw, 20px); line-height: 1.9; font-feature-settings: "palt";
}
.quote cite { display: block; font-family: var(--font-body); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- Press ---------- */
.press { list-style: none; margin: 0; padding: 0; columns: 2 420px; column-gap: 40px; }
.press li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.65; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
.press time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.press a { color: var(--ink); text-decoration: none; }
.press a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- Holders / Footer ---------- */
.holders { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.holders h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 8px; }
.holders p { margin: 0; font-size: 14px; color: var(--ink-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.btn:hover { background: var(--accent-ink); text-decoration: none; }
@media (max-width: 640px) { .holders { grid-template-columns: 1fr; } .btn { width: 100%; } }

.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.site-footer dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; }
.site-footer dt { color: var(--muted); }
.site-footer dd { margin: 0; color: var(--ink-2); }
.site-footer .fine { font-size: 12px; margin-top: 20px; max-width: 60em; line-height: 1.7; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }
