:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --card: #fffefa;
  --ink: #1b2824;
  --subtle: #55645d;
  --green: #174434;
  --forest: #0f3528;
  --line: #d5dbd2;
  --red: #9d362d;
  --soft-green: #e4eee5;
  --soft-red: #f9eae5;
  --shadow: #19382d38;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 400 16px/1.55 var(--sans); color: var(--ink); background: var(--paper); }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--red); }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 10px; left: 18px; z-index: 10; border: 1px solid; padding: .6rem 1rem; background: var(--card); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; }
.header-inner { min-height: 70px; }
.wordmark { display: inline-flex; gap: .55rem; align-items: center; color: var(--forest); text-decoration: none; font-weight: 700; font-size: 1.08rem; letter-spacing: -.045em; }
.wordmark img { width: 30px; height: 30px; border-radius: 5px; }
nav { display: flex; align-items: center; gap: .35rem 1.6rem; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: .9rem; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-block: 46px 32px; }
.location { margin: 0 0 .52rem; font-weight: 700; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--red); }
.location span { padding-inline: .3rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.03; color: var(--forest); margin: 0; }
.hero h1, .text-page h1 { font-size: clamp(3.5rem, 7.2vw, 6.25rem); letter-spacing: -.027em; }
.hero-copy { color: var(--subtle); margin: .9rem 0 0; max-width: 34rem; font-size: 1.06rem; }
.hero-note { align-self: end; padding-left: 1rem; border-left: 2px solid var(--red); color: var(--subtle); font-size: .85rem; margin: 0 0 .3rem; }
.hero-note span { display: block; color: var(--ink); font-weight: 700; }
.board { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 14px 34px -26px var(--shadow); }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: .7rem 1rem; padding: 16px 24px; background: var(--forest); color: var(--card); }
.board-head h2 { color: inherit; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.board-source { margin: 0; padding: .55rem clamp(15px, 3vw, 24px); color: var(--subtle); border-bottom: 1px solid var(--line); }
.calendar-snapshot { margin-top: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 8px; }
.calendar-snapshot summary { cursor: pointer; }
.calendar-snapshot table, .prose table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.calendar-snapshot caption { padding: .5rem 0; text-align: left; }
.calendar-snapshot th, .calendar-snapshot td, .prose th, .prose td { padding: .5rem .25rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: top; }
.preview-label { color: var(--soft-green); font-size: .73rem; font-weight: 700; border: 1px solid var(--soft-green); border-radius: 24px; padding: 4px 10px; white-space: nowrap; }
.board-columns { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(225px, 1fr); }
.query, .alert { padding: 24px; }
.filters { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.filters label { display: grid; gap: .38rem; min-width: 0; color: var(--subtle); font-size: .88rem; font-weight: 700; }
.filters select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: .5rem .65rem; font-weight: 600; color: var(--ink); }
.result { min-height: 130px; padding: 23px 0 17px; }
.result-line { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; }
.state { display: inline-flex; align-items: center; gap: .44rem; background: var(--paper); color: var(--subtle); border-radius: 20px; padding: .27rem .65rem; font-weight: 700; font-size: .79rem; }
.state::before { content: ""; border-radius: 50%; width: .48rem; height: .48rem; background: currentColor; }
.state[data-state="available"] { color: var(--forest); background: var(--soft-green); }
.state[data-state="sold_out"] { color: var(--red); background: var(--soft-red); }
.result time { color: var(--subtle); font-size: .76rem; }
.result p { margin: .75rem 0 .5rem; color: var(--subtle); }
.slot-list { list-style: none; padding: 0; margin: .9rem 0 .25rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.slot-list li { font-size: .82rem; font-weight: 600; padding: .45rem .56rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-variant-numeric: tabular-nums; }
.slot-list li[data-state="available"] { background: var(--soft-green); border-color: var(--line); }
.slot-list li span { display: block; font-weight: 400; font-size: .73rem; color: var(--subtle); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; gap: .48rem; padding: .53rem .88rem; border: 1px solid transparent; border-radius: 8px; font-weight: 700; font-size: .88rem; text-decoration: none; }
.primary { background: var(--green); color: var(--card); }
.primary:hover { background: var(--forest); color: var(--card); }
.secondary { background: var(--card); border-color: var(--line); color: var(--forest); }
.secondary:hover:not(:disabled) { border-color: var(--green); background: var(--soft-green); }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.text-button { min-height: 43px; border: 0; padding: .25rem .2rem; background: transparent; color: var(--green); font-size: .87rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.alert { background: var(--soft-green); border-left: 1px solid var(--line); }
.alert h3 { font-size: 2rem; max-width: 16rem; }
.alert > p { color: var(--subtle); margin: .66rem 0 .85rem; font-size: .91rem; }
.alert-selection { margin-bottom: .84rem; padding-top: .6rem; border-top: 1px solid var(--line); color: var(--forest); font-size: .83rem; font-weight: 700; }
.alert-form { display: grid; gap: .55rem; }
.alert-form label { color: var(--forest); font-size: .87rem; font-weight: 700; }
.alert-form input { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; padding: .45rem .6rem; }
.alert-form .button { justify-self: start; }
.alert-form p { color: var(--subtle); margin: 0; font-size: .82rem; }
.alert-form [role="status"] { color: var(--forest); font-weight: 600; }
.sample { margin-top: .85rem; padding: .75rem .9rem; border-left: 3px solid var(--red); background: var(--card); font-size: .87rem; }
.sample p { margin: 0; color: var(--subtle); }
.sample .sample-label { font-weight: 700; color: var(--red); margin-bottom: .2rem; }
.sample strong { display: block; margin-bottom: .22rem; }
.guide { padding-block: 50px 68px; scroll-margin-top: 18px; }
.guide > h2 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
.prose { max-width: 720px; color: var(--subtle); }
.prose h2 { font-size: 2.05rem; margin: 1.75rem 0 .5rem; }
.prose h3 { font-size: 1.55rem; margin: 1.6rem 0 .45rem; }
.prose p, .prose ol, .prose ul { margin: .72rem 0; }
.prose li + li { margin-top: .35rem; }
.guide > h2:not(:first-child) { margin-top: 2.35rem; }
.faq { max-width: 720px; margin-top: 1rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.faq summary { padding: .25rem 0; cursor: pointer; font-weight: 700; }
.faq p { margin: .45rem 0 .4rem; max-width: 65ch; color: var(--subtle); }
.text-page { padding-block: 48px 72px; min-height: 66vh; }
.text-page h1 { font-size: clamp(2.65rem, 5vw, 4.25rem); }
.site-footer { border-top: 1px solid var(--line); background: var(--soft-green); padding-block: 25px 30px; }
.footer-inner p { margin: .4rem 0 0; color: var(--subtle); font-size: .89rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner, .footer-inner { flex-wrap: wrap; }
  .header-inner { min-height: 66px; padding-block: 12px; }
  .hero { grid-template-columns: 1fr; gap: .8rem; padding-block: 25px 21px; }
  .hero h1 { font-size: clamp(3.2rem, 10vw, 5.3rem); }
  .hero-note { margin: 0; }
  .hero-note span { display: inline; margin-right: .55rem; }
  .board-columns { grid-template-columns: minmax(0, 1fr); }
  .board-head, .query, .alert { padding: 15px; }
  .result { padding-block: 17px 12px; }
  .alert { border-left: 0; border-top: 1px solid var(--line); }
  .guide { padding-block: 38px 48px; }
}
@media (max-width: 390px) {
  .header-inner { gap: .2rem; }
  nav { gap: .2rem .8rem; }
  .filters { gap: 8px; }
  .slot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 374px) {
  .filters { grid-template-columns: 1fr; }
}


/* ---- readability pass 2026-12-04：正文表格与手机字号 ---- */
.prose table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1.5em 0 2em;
  font-variant-numeric: tabular-nums;
}
.prose table th:nth-child(1), .prose table td:nth-child(1) { width: 12%; }
.prose table th:nth-child(2), .prose table td:nth-child(2) { width: 42%; }
.prose table th:nth-child(3), .prose table td:nth-child(3) { width: 20%; }
.prose table th:nth-child(4), .prose table td:nth-child(4) { width: 26%; }
.prose table th, .prose table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, .12));
}
.prose table th {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted, #5c5c5c);
}
.prose table td { font-size: .95rem; }
.prose table td a { overflow-wrap: anywhere; }
.prose { max-width: 72ch; }
.prose p { line-height: 1.72; font-weight: 400; margin-bottom: 1.15em; }

@media (max-width: 720px) {
  .text-page h1 { font-size: clamp(1.5rem, 6vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 12px; }
  .prose table { display: block; table-layout: auto; }
  .prose table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .prose table tbody { display: block; }
  .prose table tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line, rgba(0, 0, 0, .12));
  }
  .prose table td { display: block; width: auto; padding: 2px 0; border: 0; }
  .prose table td::before {
    display: block;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted, #5c5c5c);
    margin-bottom: 3px;
  }
  .prose table td:nth-child(1)::before { content: "Visit month"; }
  .prose table td:nth-child(2)::before { content: "What Nintendo announced"; }
  .prose table td:nth-child(3)::before { content: "Last checked (JST)"; }
  .prose table td:nth-child(4)::before { content: "Where to check"; }
  .prose table td[data-label]::before { content: attr(data-label); }
  .prose table tr td:nth-child(1) { font-weight: 600; font-size: 1.02rem; }
  .prose table td + td { margin-top: 9px; }
}
