:root {
  color-scheme: light;
  --ink: #192a32;
  --muted: #52615e;
  --forest: #193e38;
  --forest-light: #315a50;
  --gold: #d5ae61;
  --ivory: #f5f2e9;
  --paper: #fffcf5;
  --line: #d4cebc;
  --dark-line: #43534d;
  --radius: 5px;
  --sans: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.62 var(--sans); }
[hidden] { display: none !important; }
a { color: var(--forest); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .46; }
:where(button, a, select, input, textarea):focus-visible { outline: 3px solid #a86f17; outline-offset: 3px; }
button, select, input, textarea { color: var(--ink); }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.small-only { display: none; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link:focus { position: fixed; top: 6px; left: 6px; z-index: 10; padding: 10px 18px; color: #fff; background: var(--forest); }
.site-header { background: #172928; color: #f9f6e9; border-bottom: 1px solid #a28954; }
.header-inner, .shell, .site-footer > div { max-width: 1216px; margin-inline: auto; padding-inline: clamp(16px, 3.5vw, 48px); }
.header-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: inherit; display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 850; letter-spacing: .025em; line-height: 1; text-decoration: none; flex: none; }
.brand-ja { margin-left: 3px; font-size: .86em; letter-spacing: .03em; }
.brand-mark { position: relative; width: 30px; height: 30px; display: grid; place-items: center; background: var(--gold); clip-path: polygon(50% 0,93% 23%,93% 68%,50% 100%,7% 68%,7% 23%); }
.brand-mark::before { content: ""; position: absolute; inset: 2px; background: #172928; clip-path: inherit; }
.brand-mark i { position: relative; width: 12px; height: 13px; border: 2px solid var(--gold); transform: rotate(45deg) skew(-7deg,-7deg); }
.nav { display: flex; align-items: stretch; gap: clamp(14px, 2.2vw, 32px); }
.nav a { display: inline-flex; align-items: center; color: #e9ece1; text-decoration: none; font-size: 14px; font-weight: 650; min-height: 48px; white-space: nowrap; }
.nav a:hover, .brand:hover { color: #ffe1a2; }
.shell { padding-block: 24px 64px; }
.hero { isolation: isolate; position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; min-height: 224px; padding: clamp(23px, 3.3vw, 41px); overflow: hidden; border-radius: var(--radius); background: #29352f; color: #fff9e7; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("./hero.webp") center 55% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(92deg, rgb(16 32 31 / 96%) 0%, rgb(22 34 31 / 83%) 30%, rgb(29 40 31 / 48%) 53%, rgb(29 40 31 / 8%) 78%), linear-gradient(0deg, rgb(21 28 24 / 36%), transparent 44%); }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: #f4d996; font-size: .79rem; letter-spacing: .12em; font-weight: 750; }
.hero-kicker::before { content: ""; width: 24px; border-top: 2px solid currentColor; }
.hero-kicker span { color: #ad9b6c; }
.hero h1 { margin-block: 5px 8px; font-family: var(--serif); font-size: clamp(2.3rem, 4.1vw, 4.15rem); line-height: 1.18; letter-spacing: .045em; font-weight: 800; }
.hero-detail { font-size: .96rem; color: #eeeeda; line-height: 1.65; }
.season-status { align-self: flex-end; background: #18342cec; color: #fff0bc; border: 1px solid #ad985e; border-radius: 3px; padding: 5px 11px; font-size: .78rem; font-weight: 700; }
.season-status:empty { display: none; }
.map-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 7px; border: 1px solid #c1b99e; border-radius: var(--radius); background: var(--paper); }
.map-shortcuts a { display: grid; place-items: center; min-height: 42px; padding: 7px 3px; text-align: center; color: #284d3e; font-size: clamp(.73rem,1.6vw,.96rem); font-weight: 750; text-decoration-color: #a38b53; text-underline-offset: 3px; }
.map-shortcuts a + a { border-left: 1px solid #cec7b3; }
.map-shortcuts a:hover { background: #e8eadb; }
.panel { padding: clamp(20px, 3vw, 35px) 0; border-bottom: 1px solid var(--line); scroll-margin-block: 8px; }
.panel:last-of-type { border-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 16px; }
.section-head h2 { color: var(--ink); font: 750 clamp(1.55rem, 2.35vw, 2.2rem)/1.25 var(--serif); letter-spacing: .025em; }
.section-head p:not(.eyebrow) { margin-top: 5px; font-size: .9rem; color: var(--muted); }
.eyebrow { font: 750 .71rem/1.35 var(--sans); color: #756036; letter-spacing: .12em; }
.section-head .eyebrow { margin-bottom: 5px; }
.atlas-entry { display: inline-block; margin-top: 5px; color: var(--forest); font-size: .84rem; font-weight: 700; }
.day-tools, .date-controls { display: flex; align-items: center; }
.day-tools { gap: 10px; }
.date-controls { border: 1px solid #bcb6a3; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.move-day, .date-controls select { background: transparent; border: 0; min-height: 42px; }
.move-day { min-width: 43px; padding: 0 6px; font-size: 1.6rem; line-height: 1; color: var(--forest); }
.move-day:hover:not(:disabled), .share-button:hover { background: #e5e6d8; }
.date-controls select { max-width: 260px; padding: 0 9px; font-size: .9rem; font-weight: 700; border-inline: 1px solid var(--line); }
.share-button, .primary-button { min-height: 44px; padding: 7px 14px; border: 1px solid #adb7a6; border-radius: var(--radius); background: transparent; font-size: .86rem; font-weight: 700; }
.date-controls :focus-visible { outline-offset: -3px; }
.day-stage { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .88fr); background: var(--paper); border: 1px solid #bcb6a1; border-radius: var(--radius); overflow: hidden; min-height: 150px; }
.day-stage > *, .objective-grid > *, .downloads > * { min-width: 0; }
.day-map { margin: 0; display: flex; flex-direction: column; justify-content: center; background: #e9e2d1; border-right: 1px solid #c8c0aa; overflow: hidden; }
.day-map img { width: 100%; height: auto; object-fit: contain; }
.day-map figcaption, .obj-card figcaption { padding: 9px 14px; color: #4b5048; font-size: .78rem; }
.day-copy { padding: clamp(17px, 2.25vw, 30px); overflow-wrap: anywhere; }
.day-copy h2, .day-copy h3 { color: var(--ink); font-size: clamp(1.2rem, 1.8vw, 1.7rem); line-height: 1.45; margin: 5px 0 13px; }
.day-copy h4 { font-size: .96rem; margin: 14px 0 4px; }
.day-copy p { margin-block: 6px; }
.day-copy .eyebrow { color: #6c5525; }
.action-row, .fact { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid #e0dbc9; font-size: .94rem; }
.action-row:last-child, .fact:last-child { border-bottom: 0; }
.fact strong, .fact dt, .action-row strong { color: var(--forest); }
.take-list, .release-list { list-style: none; padding: 0; margin: 8px 0; }
.take-list li, .release-list li { margin: 3px 0; padding: 6px 9px; border-left: 3px solid #517d69; background: #e7eee1; }
.release-list li { border-color: #aa713a; background: #f5e9d6; }
.action-row.take-list, .action-row.release-list { grid-template-columns: 5.3em minmax(0,1fr); padding: 8px 10px; border: 0; border-left: 3px solid #517d69; background: #e7eee1; }
.action-row.release-list { border-color: #aa713a; background: #f5e9d6; }
.day-copy > small { display: block; margin-top: 14px; color: var(--muted); font-size: .78rem; }
.tag { display: inline-block; background: #e9ede0; color: #2e5949; border: 1px solid #cad2be; border-radius: 3px; padding: 2px 7px; font-size: .73rem; font-weight: 700; line-height: 1.5; }
.objective-grid, .downloads { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.obj-card { display: block; height: 100%; overflow: hidden; color: inherit; text-decoration: none; border: 1px solid #c6bfa9; border-radius: var(--radius); background: var(--paper); }
.obj-card img { width: 100%; height: auto; background: #eae3d2; }
.obj-card > div, .obj-card > figcaption { padding: 13px 16px; }
.obj-card > :is(h2,h3,p,a) { margin-inline: 16px; }
.obj-card > :is(h2,h3) { margin-block: 14px 4px; }
.obj-card > :is(p,a):last-child { margin-bottom: 14px; }
.obj-card h3 { font-size: 1.06rem; }
.obj-card p, .file-card p { color: var(--muted); font-size: .89rem; }
.obj-body details { margin-block: 12px; border-block: 1px solid var(--line); }
.obj-body summary { padding: 8px 0; color: var(--forest); cursor: pointer; font-size: .88rem; font-weight: 700; }
.obj-body details ul { padding-left: 1.15em; font-size: .86rem; }
.obj-body > a { font-size: .87rem; font-weight: 700; }
.filter-control { display: grid; gap: 4px; font-weight: 700; font-size: .8rem; color: var(--forest); }
.filter-control select { min-height: 42px; border: 1px solid #bcb6a3; border-radius: var(--radius); background: var(--paper); padding: 5px 11px; }
.filter-control select { min-width: 135px; }
.events-list, .notes-list { border-radius: var(--radius); overflow-wrap: anywhere; }
.events-list > :is(h3,h4) { margin: 0; padding: 11px 15px; background: var(--forest); color: #fff8df; font-size: 1rem; }
.events-list > p { margin: 5px 0 10px; color: var(--muted); font-size: .9rem; }
.event-row { display: grid; grid-template-columns: minmax(86px, .25fr) minmax(0,1fr); gap: 15px; align-items: start; padding: 13px 16px; border: 1px solid var(--line); border-top: 0; background: var(--paper); }
.event-row:first-of-type { border-top: 1px solid var(--line); }
.event-day { font-weight: 780; color: var(--forest); }
.event-day > * { display: block; }
.event-day > span { font-size: .8rem; color: var(--muted); }
.week-intro { color: #fff8df; background: var(--forest); border-radius: var(--radius) var(--radius) 0 0; padding: 12px 16px; }
.week-intro h3 { font-size: 1.04rem; }
.week-intro p { margin: 4px 0 0; font-size: .82rem; color: #d9e4d6; }
.event-detail { color: var(--ink); }
.event-detail small, .event-detail p { color: var(--muted); }
.event-entry + .event-entry { border-top: 1px solid #e3dfce; margin-top: 9px; padding-top: 8px; }
.event-entry .tag { margin-left: 6px; }
.event-entry p { margin-top: 2px; font-size: .85rem; }
.event-detail ul { margin: 0; padding-left: 1.15em; }
.notice, .note-item, .file-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 15px 17px; }
.notice { border-left: 3px solid #ad8c49; }
.note-item + .note-item { margin-top: 8px; }
.note-item p { white-space: pre-wrap; overflow-wrap: anywhere; }
.note-item small, .note-item time { color: var(--muted); font-size: .8rem; }
.primary-button { justify-self: start; background: var(--forest); color: #fff7dc; border-color: var(--forest); }
.primary-button:hover { background: var(--forest-light); }
.downloads { grid-template-columns: repeat(auto-fit,minmax(225px,1fr)); gap: 9px; }
.file-card { display: block; text-decoration: none; color: var(--forest); overflow-wrap: anywhere; }
.file-card strong { display: block; }
.file-group h3 { margin: 0 0 8px; font-size: 1rem; }
.file-grid { display: grid; gap: 7px; }
.file-card > span { font-size: .82rem; color: var(--muted); }
.file-card > small { display: block; margin: 0 0 4px; }
.file-card:hover, a.obj-card:hover { border-color: #58725d; background: #f6f3e5; }
.animation-figure { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.animation-figure img[src] { width: auto; height: auto; max-height: min(78vh, 740px); max-width: 100%; margin-inline: auto; }
.animation-figure img:not([src]) { display: none; }
.animation-figure figcaption:not(:empty) { border-top: 1px solid var(--line); padding: 8px 14px; color: var(--muted); font-size: .86rem; }
.history-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; border-left: 3px solid #a48546; background: #e8ece0; color: var(--forest); padding: 12px 16px; text-decoration: none; }
.history-link small { display: block; color: var(--muted); }
.history-link:hover { background: #e0e6d5; }
.site-footer { color: #e9edde; background: #1c2e2c; border-top: 2px solid #ad965f; }
.site-footer > div { display: flex; align-items: center; gap: 14px; min-height: 65px; font-size: .8rem; }
.site-footer span { color: #beccbe; }
.site-footer a { margin-left: auto; color: #f3d696; text-decoration: none; }
@media (max-width: 820px) {
  .header-inner, .shell, .site-footer > div { padding-inline: 18px; }
  .hero { min-height: 195px; }
  .day-stage { grid-template-columns: minmax(0,1.07fr) minmax(0,.93fr); }
}
@media (max-width: 680px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; }
  .brand { align-self: flex-start; font-size: 18px; }
  .brand-mark { height: 24px; width: 24px; }
  .brand-mark i { width: 9px; height: 10px; }
  .nav { justify-content: space-between; gap: 7px; }
  .nav a { min-height: 37px; font-size: .81rem; }
  .shell { padding-top: 13px; padding-bottom: 33px; }
  .header-inner, .shell, .site-footer > div { padding-inline: 14px; }
  .hero { min-height: 164px; padding: 18px; gap: 8px; }
  .hero::before { background-position: 65% center; }
  .hero::after { background: linear-gradient(90deg, rgb(16 32 31 / 94%), rgb(20 34 30 / 77%) 47%, rgb(28 39 28 / 22%) 89%); }
  .hero h1 { margin-block: 4px 7px; font-size: clamp(1.9rem, 8.2vw, 2.9rem); }
  .hero-kicker { font-size: .7rem; }
  .hero-detail { font-size: .82rem; }
  .small-only { display: inline; }
  .season-status { font-size: .69rem; padding: 3px 6px; }
  .panel { padding-block: 22px; }
  .section-head { margin-bottom: 11px; gap: 10px; flex-wrap: wrap; }
  .section-head p:not(.eyebrow) { font-size: .82rem; }
  .day-tools { flex: 1 0 100%; justify-content: space-between; gap: 5px; }
  .date-controls { max-width: calc(100% - 98px); }
  .date-controls select { min-width: 0; max-width: 170px; font-size: .81rem; padding-inline: 4px; }
  .move-day { min-width: 33px; }
  .share-button { padding-inline: 8px; font-size: .76rem; }
  .day-stage { grid-template-columns: minmax(0,1fr); }
  .day-map { border-right: 0; border-bottom: 1px solid #c8c0aa; }
  .day-copy { padding: 14px; }
  .objective-grid, .downloads { grid-template-columns: minmax(0,1fr); }
  .objective-grid { gap: 12px; }
  .filter-control { display: flex; align-items: center; gap: 8px; }
  .filter-control select { min-width: 98px; max-width: 100%; }
  .event-row { grid-template-columns: 68px minmax(0,1fr); gap: 9px; padding: 10px; font-size: .9rem; }
  .notice, .note-item, .file-card { padding: 12px; }
  .site-footer > div { min-height: 58px; gap: 8px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
