:root {
  color-scheme: light;
  --paper: #f8f3e9;
  --ink: #202b26;
  --muted: #565e53;
  --line: #d9d9ca;
  --forest: #1d322b;
  --accent: #ffd27b;
  --white: #fffdf7;
  --font: "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; font: 1rem/1.75 var(--font); color: var(--ink); }
main { min-height: 65vh; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; overflow-wrap: anywhere; }
p { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #b05d0a; outline-offset: 4px; }
.shell { width: min(1136px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; z-index: 8; inset: .5rem auto auto .5rem; padding: .6rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 1.3rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.23rem; font-weight: 900; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.brand small { font-size: .75rem; margin-left: .65rem; letter-spacing: .04em; color: var(--muted); }
.pixel-icon { width: 2.5rem; aspect-ratio: 1; display: inline-grid; place-items: center; position: relative; color: var(--accent); background: var(--forest); border-radius: .7rem; flex: none; }
.pixel-icon::before { content: ""; width: 55%; height: 55%; background: currentColor; }
.spark::before { clip-path: polygon(50% 0,61% 34%,72% 39%,100% 50%,65% 63%,59% 73%,50% 100%,38% 65%,26% 59%,0 50%,35% 38%,41% 26%); }
.crown::before { clip-path: polygon(0 19%,27% 46%,50% 6%,73% 46%,100% 19%,84% 86%,16% 86%); }
.sticker::before { clip-path: polygon(10% 10%,90% 10%,90% 62%,60% 90%,10% 90%); }
.book::before { clip-path: polygon(0 8%,44% 15%,50% 22%,56% 15%,100% 8%,100% 83%,58% 90%,50% 99%,42% 90%,0 83%,0 8%,46% 22%,46% 85%,54% 85%,54% 22%,46% 22%); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .1rem clamp(.35rem, 1.35vw, 1.3rem); }
.site-nav a { display: inline-grid; min-height: 44px; align-items: center; padding-inline: .16rem; font-size: .875rem; font-weight: 750; letter-spacing: .045em; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-decoration-color: #7c621c; text-decoration-thickness: 2px; }

.home-hero {
  background:
    radial-gradient(ellipse at 51% 30%, #ded0f1 0%, #eee2f1 30%, transparent 74%),
    linear-gradient(#f6eee9, var(--paper));
}
.hero-inner { padding: 3.5rem 0 2.8rem; text-align: center; position: relative; }
.eyebrow { font-weight: 800; letter-spacing: .105em; font-size: .875rem; }
.hero-inner .eyebrow { color: #4d6254; }
.hero-inner h1 { font-size: clamp(3.2rem, 8.6vw, 6.35rem); letter-spacing: .095em; line-height: 1.16; font-weight: 950; margin: .35rem 0 .55rem; }
.hero-inner h1 span { display: block; font-size: clamp(.86rem, 1.75vw, 1.18rem); line-height: 1.5; letter-spacing: .32em; margin-top: .48rem; }
.hero-inner .intro { color: var(--muted); margin-top: .72rem; }
.author-art { max-width: 12rem; margin: 0 auto 1rem; }
.author-art img { max-height: 12rem; width: 100%; object-fit: contain; }
.feature { background: var(--forest); color: #fffdf5; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 1.45rem; box-shadow: 0 19px 40px -32px #253a2d; }
.home-content .feature { background: linear-gradient(145deg, #1b3229, #274b3e); }
.feature-copy { padding: clamp(1.7rem, 4.7vw, 4.2rem); position: relative; z-index: 1; }
.feature-copy .eyebrow { display: flex; gap: .55rem; align-items: center; color: #c2dbcd; }
.feature-mark { width: .67rem; aspect-ratio: 1; background: var(--accent); transform: rotate(45deg); }
.feature h2 { font-size: clamp(1.8rem, 4.7vw, 4.1rem); font-weight: 950; line-height: 1.17; letter-spacing: .016em; margin: .8rem 0 .65rem; }
.feature h2 small { display: block; font-size: clamp(1.55rem, 3.15vw, 3.05rem); text-wrap: balance; margin-bottom: .18em; }
.feature h2 span { color: var(--accent); }
.work-subtitle { color: #e5d8ae; font-size: 1rem; font-weight: 700; }
.work-summary { max-width: 35ch; margin: 1.1rem 0 1.45rem; color: #e6e9dc; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.button, .chip { display: inline-flex; text-align: center; justify-content: center; align-items: center; min-height: 44px; padding: .45rem .95rem; border-radius: .65rem; border: 1px solid transparent; text-decoration: none; font-size: .95rem; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--accent); color: #242c20; }
.button.primary:hover { background: #ffe7ae; }
.button.on-dark { border-color: #9bac9c; color: #fffdf5; }
.button.on-dark:hover { background: #344940; }
.button.secondary, .chip { background: var(--white); color: var(--ink); border-color: #9ca798; }
.button.secondary:hover, .chip:hover { background: #e7eee1; }
.button[aria-disabled="true"] { opacity: .52; cursor: default; }
.text-link { color: #2d5546; font-weight: 800; display: inline-flex; align-items: center; min-height: 44px; }
.badge { display: inline-flex; width: fit-content; border-radius: 3rem; padding: .2rem .65rem; background: #e9ebdf; color: #354838; font-size: .875rem; font-weight: 750; }

.key-art { position: relative; overflow: hidden; min-height: 16rem; isolation: isolate; background: #294a3e; }
.key-art.has-image { display: grid; place-items: center; }
.key-art .cover { width: 100%; height: auto; }
.dispatch { min-height: 23rem; background: radial-gradient(ellipse at 57% 46%, #637870 0%, #3b6057 32%, #26483e 62%, #223a33 100%); }
.dispatch::before { content: ""; position: absolute; inset: 0; opacity: .52; background: radial-gradient(circle at center, #bad5c4 1px, transparent 1.4px) 0 0 / 28px 28px; mask-image: radial-gradient(ellipse, black, transparent 80%); }
.orbit { position: absolute; inset: 11% 9%; border: 1px solid #adbd9f70; border-radius: 50%; transform: rotate(-32deg); z-index: 2; }
.orbit-small { inset: 26% 2%; border-color: #f7cf807f; transform: rotate(30deg); }
.planet { position: absolute; width: min(49%, 255px); aspect-ratio: 1; top: 16%; left: 27%; border-radius: 50%; background: linear-gradient(155deg,#ffe4ad 2%,#ffcb7b 45%,#f5a04d 83%); box-shadow: 0 0 75px #ffbc694d; overflow: hidden; }
.planet::before { content: ""; position: absolute; inset: 40% -12% 8%; background: repeating-linear-gradient(0deg, transparent 0 8px, #a75c4244 9px 12px, transparent 13px 20px); transform: rotate(-16deg); }
.planet::after { content: ""; position: absolute; aspect-ratio: 1; width: 84%; border: 1px solid #fff5c980; border-radius: 50%; inset: 8%; }
.planet i { position: absolute; inset: 18% 43% 14%; border-right: 1px solid #fff5c977; transform: rotate(8deg); }
.sparkle { --s: 1.45rem; width: var(--s); aspect-ratio: 1; background: #ffe0a3; clip-path: polygon(50% 0,62% 38%,100% 50%,61% 62%,50% 100%,38% 60%,0 50%,38% 39%); position: absolute; z-index: 4; }
.s-one { top: 16%; right: 14%; --s: 2.1rem; } .s-two { left: 14%; top: 40%; } .s-three { top: 59%; right: 12%; --s: .9rem; }
.glitch { background: #9dc3af; height: .38rem; width: 2.5rem; position: absolute; z-index: 3; box-shadow: .7rem .55rem 0 #f4a364; opacity: .8; }
.g-one { top: 29%; right: 4%; } .g-two { left: 10%; top: 62%; width: 2rem; } .g-three { top: 15%; left: 19%; width: 1rem; }
.hill { position: absolute; inset: auto 0 0; height: 42%; z-index: 2; }
.hill-back { background: #77584c; clip-path: polygon(0 54%,15% 24%,28% 51%,39% 38%,53% 62%,66% 22%,79% 48%,100% 10%,100% 100%,0 100%); }
.hill-front { background: #253d35; height: 34%; clip-path: polygon(0 43%,9% 36%,15% 22%,30% 49%,42% 66%,55% 59%,72% 37%,88% 54%,100% 33%,100% 100%,0 100%); }
.horizon { position: absolute; z-index: 3; top: 73%; width: 100%; height: 28%; background: repeating-linear-gradient(0deg, transparent 0 15px,#b6c2a248 16px 17px,transparent 18px 26px); transform: skewY(-6deg); opacity: .45; }
.art-label { position: absolute; bottom: 8%; right: 8%; display: flex; align-items: center; gap: .65rem; z-index: 4; color: #fff0c9; font-size: .875rem; font-weight: 800; letter-spacing: .1em; }
.art-label span { display: inline-block; width: 2.2rem; height: 1px; background: #edc684; }
.home-section { margin: clamp(2.4rem, 6vw, 4.4rem) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.section-head .eyebrow, .page-head .eyebrow { color: #51715e; }
.section-head h2, .contact-banner h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.section-head .text-link { flex: none; }
.notice { display: block; padding: 1.15rem 1.35rem; border: 1px solid var(--line); border-radius: .85rem; background: #fffdf78a; color: var(--muted); }
.preview-link { margin-top: .5rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.character-card,.goods-card,.work-card,.prose,.episode-card,.news-item { border: 1px solid var(--line); border-radius: 1rem; background: var(--white); overflow: hidden; }
.character-card { display: grid; grid-template-columns: minmax(5.2rem,33%) 1fr; }
.character-card--teal {
  border-color: #d7c8e6;
  background: linear-gradient(135deg, #f1e8f8, #fcf9ff 75%);
}
.character-card--orange {
  border-color: #e8c6a1;
  background: linear-gradient(135deg, #f8e2d7, #fff5dd 75%);
}
.portrait { display: grid; place-items: center; min-height: 8rem; }
.portrait.teal { background: #d8e7dc; }
.portrait.orange { background: #f7dfb9; }
.portrait.has-portrait { background: #fafafa; }
.portrait-image { width: 100%; height: auto; object-fit: contain; }
.goods-image { width: 100%; height: 100%; object-fit: contain; }
.card-copy { padding: clamp(.9rem, 2.2vw, 1.65rem); min-width: 0; }
.card-copy .eyebrow { color: #4d6456; }
.card-copy h2,.card-copy h3 { margin: .25rem 0 .5rem; }
.card-copy p:not(.eyebrow) { margin-bottom: .65rem; color: var(--muted); }
.home-pair { display: grid; grid-template-columns: 1.13fr 1fr; gap: 1.6rem; }
.home-pair .home-section { margin-top: 0; }
.goods-card { display: grid; grid-template-columns: 5.8rem 1fr; }
.goods-icon,.episode-placeholder { display: grid; place-items: center; background: #ebecde; }
.contact-banner { padding: 1.45rem 1.6rem; border-radius: 1rem; background: #e4eadc; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 3rem; }
.contact-banner .eyebrow { color: #4a6554; }
.site-footer { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.footer-row,.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-row { justify-content: space-between; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.page-head {
  --heading-color: #ececde;
  --heading-glow: #f7f4e9;
  background: linear-gradient(112deg, var(--heading-color), var(--heading-glow));
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0 2.15rem;
}
.page-head--works {
  --heading-color: #d6e4d7;
  --heading-glow: #eff2e8;
  background:
    radial-gradient(circle, #36534520 .65px, transparent 1px) 0 0 / 5px 5px,
    linear-gradient(112deg, var(--heading-color), var(--heading-glow));
}
.page-head--comic { --heading-color: #e7d9f4; --heading-glow: #f5eff8; }
.page-head--characters { --heading-color: #ebdff6; --heading-glow: #faefd8; }
.page-head--goods { --heading-color: #f7e8b9; --heading-glow: #fbf2dd; }
.page-head--news { --heading-color: #dbe7d8; --heading-glow: #f0f3e9; }
.page-head--about { --heading-color: #efdcc8; --heading-glow: #faf0e4; }
.page-head--contact { --heading-color: #d7eae4; --heading-glow: #eff7f0; }
.page-head h1 { font-weight: 920; letter-spacing: .04em; margin: .35rem 0; font-size: clamp(2rem, 5.6vw, 3.5rem); }
.page-head p:last-child { color: var(--muted); }
.listing { margin-block: 1.7rem 3.5rem; }
.work-card { display: grid; grid-template-columns: minmax(13rem, 35%) 1fr; margin-bottom: 1rem; }
.work-card .key-art { min-height: 14rem; }
.work-card .card-copy { align-self: center; }
.stack { display: grid; gap: .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip.selected { color: #fff; background: var(--forest); border-color: var(--forest); }
.list-section { margin-top: 1.7rem; }
.list-section h2 { margin-bottom: .85rem; }
.preview-list { margin-top: .8rem; }
.episode-card { display: grid; grid-template-columns: minmax(5.2rem, 26%) 1fr; text-decoration: none; }
.episode-card:hover { border-color: #6a8877; }
.episode-image { width: 100%; height: 100%; max-height: 10rem; object-fit: cover; }
.episode-copy { display: grid; padding: .75rem 1rem; align-content: center; }
.episode-copy strong { font-size: 1.15rem; overflow-wrap: anywhere; }
.episode-meta { font-size: .875rem; color: var(--muted); }
.news-item,.prose { padding: clamp(1rem, 4vw, 2rem); }
.news-item div { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.news-item h3 { margin: .4rem 0; }
.prose h2:not(:first-child) { margin-top: 1.3rem; }
.prose p { margin: .45rem 0; max-width: 70ch; }
.prose .actions, .prose .button { margin-top: .7rem; }
.dark-page main {
  position: relative;
  background: radial-gradient(ellipse at 94% 15%, #4e305e, transparent 52%),
    linear-gradient(140deg, #17243e 40%, #312548);
  color: #fffaf0;
}
.dark-page main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, #ffc585 0 1px, transparent 2px) 95% 19% / .6rem .6rem no-repeat,
    radial-gradient(circle, #f5a044 0 1.5px, transparent 2.5px) 98% 36% / .6rem .6rem no-repeat,
    radial-gradient(circle, #e9a66c 0 1px, transparent 2px) 94% 46% / .6rem .6rem no-repeat,
    linear-gradient(#a98dca99, #a98dca99) 98% 27% / 2.4rem 2px no-repeat,
    linear-gradient(#ebad7199, #ebad7199) 96% 28% / 1.5rem 2px no-repeat,
    linear-gradient(#a98dca88, #a98dca88) 4% 65% / 1.25rem 2px no-repeat;
}
.dark-page main :focus-visible { outline-color: var(--accent); }
.dark-page .detail { padding-block: 1.3rem 3rem; }
.dark-page .feature { background: linear-gradient(140deg, #23314b, #3b2d52); }
.dark-page .eyebrow { color: #e2d7f5; }
.dark-page .card-copy,.dark-page .card-copy .eyebrow { color: var(--ink); }
.dark-page .breadcrumb { color: #ece2f5; }
.dark-page .home-section { margin-bottom: 0; }
.detail-feature h1 { font-size: clamp(1.85rem,4.1vw,3.65rem); margin: .65rem 0; }
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: .85rem; }
.reading-page { --reading-background: #f3f0eb; }
.reading-page main { background: var(--reading-background); }
.reader-shell { padding-block: 1rem 3rem; }
.reader-heading,.reader,.reader-end { max-width: 750px; margin-inline: auto; }
.reader-heading { margin-bottom: 1.15rem; }
.reader-heading h1 { margin: .35rem 0 .5rem; font-size: clamp(1.9rem,4.5vw,3.4rem); }
.reader-heading time { margin-left: .4rem; }
.reader-controls,.slide-controls { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; justify-content: space-between; padding: .65rem 0; }
.reader-controls { position: sticky; z-index: 5; top: 0; background: var(--reading-background, var(--paper)); }
.reader-controls [data-count] { margin-inline: .3rem; font-variant-numeric: tabular-nums; }
.toggle { display: flex; align-items: center; border: 1px solid #8d9e90; background: var(--white); padding: 2px; border-radius: .7rem; }
.toggle button { min-height: 44px; font-size: .9rem; font-weight: 800; border: 0; background: transparent; padding: .35rem .65rem; border-radius: .5rem; cursor: pointer; }
.toggle button[aria-pressed=true] { background: var(--forest); color: #fff; }
.reader-pages { display: grid; gap: .75rem; }
.reader-pages figure { margin: 0; scroll-margin-top: 4.5rem; }
.reader-pages img { width: 100%; margin-inline: auto; background: #fff; }
.reader[data-active-mode=horizontal] .reader-pages { touch-action: pan-y pinch-zoom; }
.reader[data-active-mode=horizontal] .reader-pages img { width: 100%; height: min(71vh, 900px); object-fit: contain; }
.reader[data-active-mode=horizontal] .demo-panel { min-height: min(58vh, 660px); }
.reader-end { margin-top: 1.2rem; }
.reader-end h2 { margin-bottom: .65rem; }
.demo-panel { display: grid; min-height: clamp(18rem,56vw,32rem); align-content: center; padding: 1.2rem; text-align: center; border-radius: 1rem; color: #fffdf1; background: #233d32; }
.demo-2 { background: #342b4d; } .demo-3 { background: #532f26; }
.demo-number { font-size: clamp(3rem,14vw,6rem); line-height: 1; font-weight: 950; color: var(--accent); }
.demo-panel h2 { margin: 1.15rem 0 .45rem; }
@media (max-width: 920px) {
  .masthead { flex-direction: column; align-items: flex-start; padding-top: .7rem; gap: .2rem; }
  .site-nav { justify-content: flex-start; }
}
@media (max-width: 670px) {
  .shell { width: calc(100% - 30px); }
  .masthead { align-items: center; }
  .site-nav { justify-content: center; gap: .05rem .6rem; padding-bottom: .2rem; }
  .site-nav a { font-size: .84rem; }
  .hero-inner { padding: 2.5rem 0 1.85rem; }
  .feature, .work-card { grid-template-columns: 1fr; }
  .feature .key-art { min-height: 15rem; }
  .home-pair,.card-grid { grid-template-columns: 1fr; }
  .home-pair { gap: 0; }
  .home-pair .home-section { margin-bottom: 2.5rem; }
  .section-head { align-items: start; }
  .section-head .text-link { font-size: .9rem; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 375px) {
  .section-head { flex-wrap: wrap; }
  .feature-copy { padding: 1.25rem; }
  .goods-card { grid-template-columns: 4.4rem 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .chip { transition: background-color .16s linear, border-color .16s linear; }
}
