/* エキアソビ (EkiAsobi)
   方向性: 「プロダクトが動いて見せる」— 駅の発車標のように、土日それぞれの行き先を出す。
   色: 白に近い地 / ボトルグリーンの文字 / 黄色はアクションと選択中の1点だけ。
   書体: Clash Grotesk（欧文・数字）+ Zen Kaku Gothic New（和文） */

:root {
  --bg: #f7f7f7;
  --surface: #ebebeb;
  --surface-2: #dfe5e1;
  --ink: #0d2a1c;
  --muted: #55625a;
  --accent: #f6e016;
  --accent-ink: #0d2a1c;
  --board: #0d2a1c;
  --board-ink: #f7f7f7;
  --board-dim: #9fb3a8;

  --font: "Clash Grotesk", "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(2.25rem, 1rem + 3.6vw, 3.75rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --section: clamp(4.5rem, 10vw, 10rem);
  --radius: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.6;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; background: var(--surface); }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); }
.wrap { padding-inline: var(--margin); max-width: 1760px; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header: wordmark, a few links, one action ---------- */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-weight: 700; font-size: var(--step-body); text-decoration: none; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: var(--step-small); }
.nav a { text-decoration: none; }
.nav a:not(.button) { text-decoration: underline 2px transparent; text-underline-offset: 0.35em; transition: text-decoration-color var(--t-hover) ease; }
.nav a:not(.button):hover { text-decoration-color: currentColor; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:hover { background: #ffe93a; }
.button:active { transform: scale(0.97); }
.button--ink { background: var(--ink); color: var(--bg); }
.button--ink:hover { background: #1b4330; }
@media (max-width: 640px) { .nav .only-wide { display: none; } }

/* ---------- station hero: a sentence split by the weekend board ---------- */
.hero { padding-block: clamp(24px, 4vw, 56px) clamp(48px, 7vw, 96px); }
.hero__stage { display: grid; grid-template-columns: 1fr minmax(0, 40vw) 1fr; align-items: center; gap: var(--gutter); }
.hero__half { font-size: var(--step-hero); line-height: 1.12; font-weight: 500; letter-spacing: -0.02em; margin: 0; white-space: nowrap; }
.hero__half--right { justify-self: end; text-align: right; }
.hero__summary { margin-top: clamp(28px, 4vw, 48px); max-width: 44ch; font-size: var(--step-body); }
.hero__place { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.hero__summary strong { font-weight: 500; }
@media (max-width: 1100px) {
  .hero__stage { grid-template-columns: 1fr; gap: 16px; }
  .board { max-width: 640px; }
  .hero__half { font-size: clamp(2rem, 7vw, 3.75rem); white-space: normal; }
  .hero__half--right { justify-self: end; }
}

/* the board: the product's own interface (data-ui) */
.board { background: var(--board); color: var(--board-ink); border-radius: var(--radius); padding: 8px; }
.board__row {
  display: grid; grid-template-columns: 4.5em 1fr; gap: 4px 16px; align-items: baseline;
  width: 100%; text-align: left; padding: 16px 18px; border-radius: 2px;
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease;
}
.board__row + .board__row { margin-top: 4px; }
.board__row:hover { background: #163b29; }
.board__row[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.board__day { font-size: var(--step-head); font-weight: 500; line-height: 1; }
.board__date { display: block; font-size: var(--step-small); margin-top: 6px; opacity: 0.75; }
.board__wx { font-size: var(--step-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.board__wx b { font-weight: 500; font-size: var(--step-lead); margin-right: 10px; }
.board__dest { grid-column: 2; display: flex; justify-content: space-between; gap: 12px; font-size: var(--step-body); font-weight: 500; line-height: 1.4; }
.board__dest span:first-child::before { content: "行先 "; font-weight: 400; font-size: var(--step-small); opacity: 0.75; margin-right: 6px; }
.board__dest span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 400; }
.board__note { padding: 12px 18px 8px; font-size: var(--step-small); color: var(--board-dim); }
@media (max-width: 520px) {
  .board__row { grid-template-columns: 3.4em 1fr; padding: 14px; gap: 4px 12px; }
  .board__dest { flex-direction: column; gap: 0; }
}

/* ---------- spots: two-ended rows in a narrow column + a preview frame ---------- */
.spots { padding-block: var(--section); background: var(--surface); }
.spots__grid { display: grid; grid-template-columns: 22fr 46fr 32fr; gap: var(--gutter); align-items: start; }
.spots__list { grid-column: 2; }
.spots__aside { grid-column: 3; position: sticky; top: 24px; }
.spots h2 { font-size: var(--step-lead); margin-bottom: 32px; }
.group + .group { margin-top: 48px; }
.group__label { font-size: var(--step-body); color: var(--muted); margin-bottom: 8px; }
.spot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 10px 0; text-decoration: none; }
.spot__left { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.spot__dot { flex: none; width: 16px; height: 16px; border-radius: 50%; margin-top: 0.3em; background: var(--muted); overflow: hidden; }
.spot__dot img { width: 100%; height: 100%; object-fit: cover; }
.spot__dot--outdoor { background: #3f7a55; }
.spot__dot--indoor { background: #7d8c84; }
.spot__name { font-size: var(--step-body); font-weight: 500; line-height: 1.4; transition: color var(--t-hover) ease; }
.spot__desc { display: block; font-size: var(--step-small); color: var(--muted); line-height: 1.5; margin-top: 2px; }
.spot__value { flex: none; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 0.25em; text-align: right; }
.spot:hover .spot__name { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.spot.is-current .spot__name { background: var(--accent); }
.preview { margin: 0; }
.preview__frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.preview__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-ui) ease; }
.preview figcaption { margin-top: 10px; font-size: var(--step-small); line-height: 1.5; }
.preview figcaption a { color: var(--muted); }
.spots__empty { font-size: var(--step-lead); max-width: 32ch; }
@media (max-width: 1000px) {
  .spots__grid { grid-template-columns: 1fr; }
  .spots__list, .spots__aside { grid-column: 1; }
  .spots__aside { display: none; }
  .spot { padding: 12px 0; min-height: 44px; }
  .spot__dot { width: 40px; height: 40px; border-radius: var(--radius); margin-top: 0; }
}

/* ---------- photo tiles with label strips ---------- */
.tiles { padding-block: var(--section); }
.tiles h2 { font-size: var(--step-lead); margin-bottom: 40px; }
.tiles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 12px; }
.tile { display: flex; flex-direction: column; text-decoration: none; }
.tile__img { aspect-ratio: 4 / 5; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__strip { min-height: 92px; padding: 12px; font-size: var(--step-small); line-height: 1.45; display: flex; flex-direction: column; gap: 4px; }
.tile__name { font-size: var(--step-body); font-weight: 500; text-decoration: none; }
.tile__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-variant-numeric: tabular-nums; }
.tile__row span { white-space: nowrap; }
.tile__credit { opacity: 0.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:nth-child(4n+1) .tile__strip { background: var(--accent); color: var(--accent-ink); }
.tile:nth-child(4n+2) .tile__strip { background: var(--ink); color: var(--bg); }
.tile:nth-child(4n+3) .tile__strip { background: var(--surface-2); color: var(--ink); }
.tile:nth-child(4n+4) .tile__strip { background: #3f7a55; color: #f7f7f7; }
@media (max-width: 900px) { .tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; } .tile__row { justify-content: flex-start; } }

/* ---------- FAQ: sticky heading + filled accordion tiles ---------- */
.faq { padding-block: var(--section); }
.faq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gutter); align-items: start; }
.faq__title { position: sticky; top: 96px; font-size: var(--step-head); line-height: 1.1; }
.faq details { background: var(--surface); border-radius: var(--radius); transition: background-color var(--t-ui) ease; }
.faq details + details { margin-top: 8px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; padding: 18px 24px; font-size: var(--step-lead); font-weight: 500; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: none; width: 16px; height: 16px; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.faq__plus::after { transform: rotate(90deg); }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq details[open] .faq__plus::after { transform: rotate(0deg); }
.faq details:not([open]):hover { background: var(--surface-2); }
.faq__answer { padding: 0 24px 24px; font-size: var(--step-body); }
.faq__answer p { max-width: 52ch; }
.faq__answer a { font-weight: 500; }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__title { position: static; font-size: 9vw; margin-bottom: 16px; }
  .faq summary { font-size: var(--step-body); min-height: 64px; padding: 16px 20px; }
  .faq__answer { padding: 0 20px 20px; }
}

/* ---------- other stations: a flowing line of names ---------- */
.nearby { padding-block: var(--section); background: var(--ink); color: var(--bg); }
.nearby h2 { font-size: var(--step-lead); margin-bottom: 32px; }
.nearby__line { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: var(--step-lead); line-height: 1.35; }
.nearby__line a { text-decoration: none; }
.nearby__line a span { font-size: var(--step-small); color: var(--board-dim); margin-left: 8px; }
.nearby__line a:hover { color: var(--accent); }

/* ---------- index page ---------- */
.home-hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 8vw, 112px); }
.home-hero__lead { margin-top: clamp(28px, 4vw, 48px); max-width: 40ch; }
.search { background: var(--board); color: var(--board-ink); border-radius: var(--radius); padding: 8px; }
.search__field { display: flex; align-items: center; gap: 8px; background: var(--bg); color: var(--ink); border-radius: 2px; padding: 4px 4px 4px 16px; }
.search__field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: var(--step-body); outline: none; }
.search__field input::placeholder { color: var(--muted); }
.search__label { padding: 14px 16px 6px; font-size: var(--step-small); color: var(--board-dim); }
.search__results a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 16px; text-decoration: none; border-radius: 2px; transition: background-color var(--t-hover) ease; }
.search__results a:hover, .search__results a:focus-visible { background: #163b29; }
.search__results b { font-weight: 500; font-size: var(--step-body); }
.search__results small { grid-column: 1 / -1; font-size: var(--step-small); color: var(--board-dim); }
.search__results span { font-variant-numeric: tabular-nums; font-size: var(--step-small); align-self: center; }
.search__empty { padding: 16px; color: var(--board-dim); font-size: var(--step-small); }

.statement { padding-block: clamp(64px, 10vw, 160px); }
.statement p { max-width: 30em; margin-inline: auto; font-size: var(--step-lead); line-height: 1.6; font-weight: 500; }
.statement .thumb { display: inline-block; width: 1.3em; height: 0.85em; vertical-align: -0.1em; margin: 0 0.12em; border-radius: 0.14em; overflow: hidden; }
.statement .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .statement p { text-align: left; } }

.ranking { padding-block: var(--section); background: var(--surface); }
.ranking__grid { display: grid; grid-template-columns: 22fr 46fr 32fr; gap: var(--gutter); align-items: start; }
.ranking__body { grid-column: 2; }
.ranking h2 { font-size: var(--step-lead); margin-bottom: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.tabs button { min-height: 44px; padding: 0 14px; border-radius: var(--radius); background: var(--surface-2); font-size: var(--step-small); transition: background-color var(--t-hover) ease; }
.tabs button:hover { background: #d2dbd5; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.rank-row .spot__name b { font-weight: 500; }
@media (max-width: 1000px) { .ranking__grid { grid-template-columns: 1fr; } .ranking__body { grid-column: 1; } }

.prefs { padding-block: var(--section); }
.prefs h2 { font-size: var(--step-lead); margin-bottom: 32px; }
.prefs__grid { columns: 3 280px; column-gap: calc(var(--gutter) * 2); }
.prefs__item { break-inside: avoid; margin-bottom: 18px; font-size: var(--step-small); line-height: 1.8; }
.prefs__item b { display: block; font-weight: 500; font-size: var(--step-body); }
.prefs__item a { text-decoration: none; margin-right: 12px; color: var(--muted); }
.prefs__item a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- ads ---------- */
.ad { padding-block: 24px; }
.ad__label { font-size: var(--step-small); color: var(--muted); margin-bottom: 6px; }

/* ---------- footer: the last two rows of a board ---------- */
.footer { padding: 10px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.footer__tile { border-radius: var(--radius); padding: 24px; background: var(--surface); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.footer__tile p { font-size: var(--step-small); }
.footer__about { grid-column: span 4; }
.footer__about p:first-child { font-size: var(--step-lead); line-height: 1.4; font-weight: 500; }
.footer__nav { grid-column: span 3; }
.footer__nav ul { display: grid; gap: 6px; font-size: var(--step-body); }
.footer__nav a, .footer__data a { text-decoration: none; }
.footer__nav a:hover, .footer__data a:hover { text-decoration: underline; }
.footer__data { grid-column: span 2; line-height: 1.6; }
.footer__sister { grid-column: span 3; background: var(--surface-2); text-decoration: none; transition: background-color var(--t-hover) ease; }
.footer__sister:hover { background: #d2dbd5; }
.footer__sister p:first-child { font-size: var(--step-lead); font-weight: 500; line-height: 1.4; }
.footer__word { grid-column: span 8; min-height: 320px; background: var(--ink); color: var(--bg); justify-content: flex-end; }
.footer__word span { font-size: clamp(3rem, 9vw, 9.5rem); display: block; line-height: 0.95; font-weight: 500; letter-spacing: -0.02em; }
.footer__go { grid-column: span 4; min-height: 320px; background: var(--accent); color: var(--accent-ink); text-decoration: none; transition: background-color var(--t-hover) ease; }
.footer__go:hover { background: #ffe93a; }
.footer__go p { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }
.footer__go svg { align-self: flex-end; width: 56px; height: 56px; transition: transform var(--t-ui) var(--ease-out); }
.footer__go:hover svg { transform: translateX(6px); }
.footer small { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 900px) {
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
  .footer__word { display: none; }
  .footer__go { grid-column: 1 / -1; min-height: 160px; order: -1; }
  .footer__nav, .footer__data { grid-column: span 1; min-height: 0; }
  .footer__about, .footer__sister { grid-column: 1 / -1; min-height: 0; }
  .footer__tile { padding: 20px; }
  .footer__word span { font-size: 18vw; }
}

/* ---------- plain document pages ---------- */
.doc { padding-block: clamp(32px, 6vw, 96px) var(--section); }
.doc h1 { font-size: var(--step-head); margin-bottom: 40px; max-width: 18ch; }
.doc h2 { font-size: var(--step-lead); margin: 48px 0 12px; }
.doc p { margin-bottom: 1em; }
.doc__body { max-width: 680px; margin-left: 22%; }
@media (max-width: 900px) { .doc__body { margin-left: 0; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .reveal.is-in > * { opacity: 1; transform: none; }
  .js .reveal.is-in > *:nth-child(2) { transition-delay: 80ms; }
  .js .reveal.is-in > *:nth-child(3) { transition-delay: 160ms; }
  .js .reveal.is-in > *:nth-child(4) { transition-delay: 240ms; }
  .js .spot.is-moving { animation: settle 420ms var(--ease-out); }
  @keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .board { animation: board-in 700ms var(--ease-out) both; }
  .hero__half { animation: board-in 700ms var(--ease-out) both; }
  .hero__half--right { animation-delay: 120ms; }
  .hero__summary { animation: board-in 700ms 200ms var(--ease-out) both; }
  .js .reveal ol > li { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .js .reveal.is-in ol > li { opacity: 1; transform: none; }
  .js .reveal.is-in ol > li:nth-child(2) { transition-delay: 60ms; }
  .js .reveal.is-in ol > li:nth-child(3) { transition-delay: 120ms; }
  .js .reveal.is-in ol > li:nth-child(4) { transition-delay: 180ms; }
  .js .reveal.is-in ol > li:nth-child(5) { transition-delay: 240ms; }
  .js .reveal.is-in ol > li:nth-child(n+6) { transition-delay: 300ms; }
  .preview__frame img { animation: drift 14s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.0); } to { transform: scale(1.07); } }
  .js .tiles.reveal .tile { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .tiles.reveal.is-in .tile { opacity: 1; transform: none; }
  .js .tiles.reveal.is-in .tile:nth-child(2n) { transition-delay: 90ms; }
  @keyframes board-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
