:root {
  color-scheme: light;
  --ink: #1b2540;
  --muted: #555b6c;
  --paper: #faf8f1;
  --white: #fffefa;
  --line: #e4dfd1;
  --amber: #f6c65f;
  --navy: #1b2540;
  --release-bg: #e9effc;
  --release-ink: #304b8f;
  --deadline-bg: #f9e4e2;
  --deadline-ink: #992d3c;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, select:focus-visible { outline: 3px solid #4967b6; outline-offset: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .65rem; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.22rem, 2vw, 1.6rem); }
h3 { font-size: 1.08rem; }
.wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: -5rem; left: 1rem; z-index: 4; background: var(--white); padding: .75rem; }
.skip:focus { top: .5rem; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 900; letter-spacing: .025em; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--navy); border-radius: .55rem; color: var(--amber); font-size: 1.25rem; }
.site-header nav { display: flex; gap: clamp(.75rem, 3vw, 2rem); flex-wrap: wrap; }
.site-header nav a { text-decoration: none; font-size: .875rem; font-weight: 700; padding-block: .35rem; }
.site-header nav a:hover, .site-header nav [aria-current] { text-decoration: underline; text-underline-offset: .45em; }
.hero { display: grid; grid-template-columns: 1.02fr 1fr; margin-top: 2rem; overflow: hidden; background: #202a46; color: #fffdf5; border-radius: 1.25rem; }
.hero-copy { align-self: center; padding: clamp(1.6rem, 4vw, 3.6rem); }
.hero h1 { font-size: clamp(1.75rem, 4.15vw, 3.55rem); line-height: 1.18; letter-spacing: .015em; margin-bottom: 1.1rem; text-wrap: balance; }
.hero h1 span { display: block; }
.eyebrow { color: #6b4a19; font-size: .875rem; font-weight: 800; letter-spacing: .045em; margin-bottom: .65rem; }
.hero .eyebrow { color: #ffe298; }
.hero-copy > p:not(.eyebrow) { color: #eae8ef; max-width: 31rem; }
.hero-art { position: relative; min-height: 100%; background: #ebc884; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art span { position: absolute; bottom: .7rem; right: .75rem; padding: .18rem .5rem; border-radius: .3rem; background: #fff7eacf; color: var(--ink); font-size: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: .55rem; text-decoration: none; font-weight: 800; padding: .65rem 1.05rem; min-height: 44px; }
.button.primary { background: var(--amber); color: #251e16; }
.button.primary:hover { background: #ffd888; }
.button.secondary { background: var(--white); border: 1px solid var(--line); font-size: .875rem; }
.button.secondary:hover, .month-picker a:hover, .category-tile:hover { border-color: #a78b59; background: #fff8e6; }
.section { margin-block: 2rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: .85rem; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.muted { color: var(--muted); font-size: .875rem; }
.text-link { color: #354e92; font-weight: 700; font-size: .875rem; text-underline-offset: .22em; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem; }
.category-tile { display: flex; align-items: center; gap: .55rem; padding: .75rem .6rem; border-radius: .65rem; border: 1px solid var(--line); background: var(--white); font-weight: 800; font-size: .875rem; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.category-tile .tag { font-size: 1.06rem; min-width: 2rem; min-height: 2rem; justify-content: center; }
.category-tile[aria-current] { border-color: #a78b59; background: #fff6db; }
.home-columns { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 1.5rem; }
.home-columns > .section { margin-top: 0; }
.home-aside { display: grid; gap: 1rem; align-self: start; margin-bottom: 2rem; }
.aside-card, .calendar-panel, .detail-info, .prose { border: 1px solid var(--line); border-radius: .9rem; background: var(--white); padding: clamp(.9rem, 2.6vw, 1.45rem); min-width: 0; }
.aside-card img { width: 100%; max-height: 14rem; object-fit: cover; border-radius: .6rem; }
.aside-card h2 { font-size: 1.08rem; }
.feature-link { display: block; margin-top: .75rem; font-weight: 800; text-underline-offset: .2em; }
.deadline-list, .event-list, .products { list-style: none; padding: 0; margin: 0; }
.deadline-list li { display: grid; gap: .15rem; padding-block: .65rem; border-bottom: 1px solid var(--line); }
.deadline-list li:last-child { border: 0; }
.deadline-list a { font-weight: 700; font-size: .875rem; }
.deadline-text { color: var(--deadline-ink); font-weight: 800; font-size: .875rem; }
.tag { display: inline-flex; align-items: center; padding: .16rem .5rem; border-radius: .35rem; font-weight: 800; font-size: .8rem; line-height: 1.5; }
.red, .deadline { background: var(--deadline-bg); color: var(--deadline-ink); }
.indigo, .release { background: var(--release-bg); color: var(--release-ink); }
.gold { background: #fbedc5; color: #715015; }
.green { background: #e3efe5; color: #2d623f; }
.pink { background: #f9e4ef; color: #853456; }
.blue { background: #e0eff5; color: #27546b; }
.day-group { display: grid; grid-template-columns: 6rem minmax(0,1fr); align-items: start; gap: .85rem; margin-bottom: .8rem; scroll-margin-top: 1rem; }
.day-group:target .day-label { background: #f6d483; }
.day-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .38rem; margin: 0; padding: .55rem .7rem; background: #f0eadc; border-radius: .5rem; font-size: .95rem; }
.day-label span { font-size: .8rem; color: var(--muted); }
.event-card { display: flex; align-items: center; gap: .65rem .85rem; padding: .65rem; background: var(--white); border: 1px solid var(--line); border-radius: .65rem; margin-bottom: .37rem; min-width: 0; }
.event-card > div { min-width: 0; }
.event-card .thumb { flex: 0 0 52px; }
.thumb img { border-radius: .35rem; aspect-ratio: 1; object-fit: cover; }
.event-meta { margin-bottom: .23rem; color: var(--muted); font-size: .875rem; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.event-name { font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.event-name:hover { text-decoration: underline; }
.event-extra { margin-top: .15rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; color: var(--muted); font-size: .875rem; margin-block: 1.5rem 1rem; }
.page-heading { margin-block: 1.4rem 1.5rem; }
.page-heading h1 { font-size: clamp(1.55rem, 4vw, 2.5rem); margin-top: .4rem; }
.heading-segment { display: inline-block; max-width: 100%; }
.page-heading > p:last-child { color: var(--muted); }
.month-picker { display: flex; flex-wrap: wrap; gap: .5rem; }
.month-picker a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .45rem; font-weight: 700; font-size: .875rem; text-decoration: none; background: var(--white); }
.month-picker [aria-current] { background: #fff0c7; border-color: #c09b4c; }
.calendar-heading { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .35rem; margin-bottom: .85rem; }
.calendar-heading h2 { margin: 0; text-align: center; }
.calendar-heading > :first-child { justify-self: start; }
.calendar-heading > :last-child { justify-self: end; }
.calendar { table-layout: fixed; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calendar th, .calendar td { width: calc(100% / 7); border: 1px solid var(--line); padding: .35rem .45rem; }
.calendar th { background: #f3eee1; font-size: .875rem; }
.calendar td { height: 4.25rem; vertical-align: top; font-weight: 700; }
.calendar tr > :first-child > time, .calendar th:first-child { color: var(--deadline-ink); }
.calendar tr > :last-child > time, .calendar th:last-child { color: var(--release-ink); }
.calendar td.blank { background: #f7f4ed; }
.calendar td.today { background: #fff1ce; box-shadow: inset 0 0 0 1px #c08d33; }
.calendar td a { display: flex; justify-content: flex-start; min-height: 30px; align-items: center; gap: .16rem; text-decoration: none; }
.calendar td a:hover .mini { text-decoration: underline; }
.calendar .mini { display: grid; place-items: center; border-radius: .25rem; padding-inline: .24rem; min-width: 1.25rem; line-height: 1.5; font-size: .8rem; }
.calendar-key { display: flex; align-items: center; flex-wrap: wrap; gap: .38rem; margin-top: .85rem; }
.filters { display: flex; gap: 1rem; margin: 0 0 .9rem; flex-wrap: wrap; }
.filters label { display: grid; font-size: .875rem; gap: .15rem; font-weight: 800; }
.filters select { font: inherit; min-height: 44px; padding: .45rem .75rem; color: var(--ink); background: var(--white); border: 1px solid #a49b89; border-radius: .45rem; }
.empty { padding: 1.25rem; border: 1px dashed #bdb39e; border-radius: .6rem; color: var(--muted); background: var(--white); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product-card { border: 1px solid var(--line); border-radius: .75rem; background: var(--white); overflow: hidden; }
.product-card > a { display: block; text-decoration: none; }
.product-card a:hover h2 { text-decoration: underline; }
.product-card img { width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.product-card a > div { padding: .8rem; }
.product-card h2 { font-size: 1rem; margin: .3rem 0 0; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1.2rem; margin-bottom: 2rem; align-items: start; }
.detail:not(:has(.detail-art)) { grid-template-columns: minmax(0, 1fr); }
.detail-art { margin: 0; }
.detail-art img { width: 100%; border: 1px solid var(--line); border-radius: .85rem; }
.detail-art figcaption { padding-block: .35rem; color: var(--muted); font-size: .875rem; }
.detail-info dl, .prizes { margin: .55rem 0 1rem; }
.detail-info dl div, .prizes div { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr); padding-block: .55rem; gap: .65rem; border-bottom: 1px solid var(--line); }
.detail-info dt, .prizes dt { font-weight: 800; }
.detail-info dt small { display: block; font-size: .8rem; color: var(--muted); }
.detail-info dd, .prizes dd { margin: 0; overflow-wrap: anywhere; }
.notes { white-space: pre-line; }
.source-list { margin-top: 0; padding-left: 1.2rem; }
.source-list a { color: #354e92; }
.callout { background: #fbeecb; padding: 1rem 1.2rem; border-radius: .65rem; }
.callout p:last-child, .prose p:last-child { margin-bottom: 0; }
.prose { max-width: 47rem; margin-bottom: 2rem; }
.commerce { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0; background: #eee9dc; }
.site-footer p { margin: .2rem 0 0; font-size: .875rem; }
.site-footer a { font-size: .875rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 900px) {
  .category-grid, .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 1.5rem); }
  .header-inner, .footer-inner { flex-wrap: wrap; padding-block: .7rem; gap: .4rem 1rem; }
  .site-header nav { gap: 1.2rem; }
  .hero { grid-template-columns: 1fr; margin-top: 1rem; border-radius: .85rem; }
  .hero-art { aspect-ratio: 16 / 8; }
  .hero h1 { text-wrap: initial; }
  .home-columns, .detail { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .category-grid, .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-group { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .day-label { justify-self: start; }
  .calendar th, .calendar td { padding: .25rem .19rem; }
  .calendar td { height: 3.75rem; }
  .calendar .mini { min-width: .88rem; padding-inline: .13rem; font-size: .74rem; }
  .detail-info dl div, .prizes div { grid-template-columns: minmax(5.2rem, 1fr) minmax(0, 2fr); }
}
