:root {
  color-scheme: light;
  --ink: #253b30;
  --body: #4d6054;
  --green: #294e3d;
  --rose: #a2465a;
  --paper: #fffefa;
  --line: #e7e9df;
  --round: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --sans: "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.7; }
a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, ul, figure { margin: 0; }
:focus-visible { outline: 3px solid #a2465a; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 36px, 1120px); margin-inline: auto; }
.skip { position: absolute; z-index: 2; inset: 8px auto auto 8px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: block; flex: none; }
.brand img { width: 129px; }
.main-nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 30px); }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-decoration: none; font-size: .8rem; font-weight: 750; white-space: nowrap; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.main-nav .nav-line { padding: 0 10px; border-radius: 999px; border: 1px solid #cfddce; background: #f5f9f0; }

.hero { padding: 43px 0 47px; border-bottom: 1px solid #e8ecdf; background: linear-gradient(155deg, #fafbef 0%, #f1f5e5 72%, #f4f2de 100%); }
.hero-inner { display: grid; gap: 26px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 750; color: var(--green); padding: 6px 13px; border: 1px solid #dae7d7; border-radius: 999px; background: #fffefa; letter-spacing: .025em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: #518263; border-radius: 50%; }
.hero h1 { margin: 18px 0 13px; font-family: var(--round); font-size: clamp(1.82rem, 7.65vw, 3.45rem); font-weight: 900; line-height: 1.26; letter-spacing: -.038em; }
.hero h1 strong { display: inline-block; margin-top: .07em; color: var(--rose); font-size: 1.33em; font-weight: inherit; }
.hero-copy { color: var(--body); font-size: .92rem; line-height: 1.85; }
.hero-copy span { display: inline-block; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 17px; min-height: 48px; color: var(--green); text-decoration: none; background: #fff; border: 1px solid #d6e2d5; border-radius: 999px; font-size: .9rem; font-weight: 750; }
.button:hover { background: #f1f6ed; }
.button.primary { margin-top: 20px; color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 4px 0 #d6dfcc; }
.button.primary:hover { background: #346149; }
.arrow { width: .52em; height: .52em; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(-45deg); margin-right: .14em; }
.arrow.down { transform: translateY(-.14em) rotate(45deg); }
.arrow.external { transform: translateY(.14em) rotate(-90deg); }
.arrow.external::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: .77em; height: 1.7px; background: currentColor; transform: rotate(45deg); transform-origin: right; }

.scene { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) minmax(0, 1.12fr); width: min(100%, 500px); margin: 0 auto; padding: 3% 8% 5%; aspect-ratio: 1.56; isolation: isolate; }
.scene::before { content: ""; position: absolute; z-index: -2; inset: 0 4% 3%; background: #e5ecd2; border: 1px solid #e1e8ce; border-radius: 51% 49% 48% 52% / 64% 64% 36% 36%; }
.scene::after { content: ""; position: absolute; z-index: -1; inset: auto 7% 3% 8%; height: 19%; border-radius: 50%; background: #d9e3bd; }
.scene img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.cast { min-height: 0; position: relative; }
.cast.mugi { grid-area: 1 / 1 / 2 / 3; transform: translateY(19%) rotate(-7deg); }
.cast.azuki { grid-area: 1 / 3 / 2 / 5; transform: translateY(-2%); }
.cast.shiro { grid-area: 1 / 5 / 2 / 7; transform: translateY(19%) rotate(7deg); }
.cast.kanta { grid-area: 2 / 2 / 3 / 4; }
.cast.momo { grid-area: 2 / 4 / 3 / 6; }
.sparkle { position: absolute; border-radius: 999px; width: 10px; height: 10px; background: #f4c2c8; }
.scene .sparkle:nth-of-type(1) { top: 16%; right: 21%; }
.scene .sparkle:nth-of-type(2) { top: 46%; left: 5%; width: 7px; height: 7px; }
.scene .sparkle:nth-of-type(3) { top: 29%; right: 9%; background: #fffefa; width: 19px; height: 19px; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.scene .sparkle:nth-of-type(4) { top: 14%; left: 20%; background: #fffefa; width: 26px; height: 26px; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

.library { padding-block: 57px 0; }
.section-title { font-family: var(--round); font-size: clamp(1.6rem, 5.3vw, 2.3rem); font-weight: 900; letter-spacing: -.028em; line-height: 1.4; }
.section-intro { margin-top: 7px; font-size: .93rem; color: var(--body); }
.category + .category { margin-top: 46px; }
.cards { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 22px; }
.card { --tint: #fae9e9; --cover-ink: #8e4655; display: flex; flex-direction: column; gap: 11px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: 0 3px 8px #22382a06; }
.card.green { --tint: #e9f0df; --cover-ink: #345842; }
.card.yellow { --tint: #fbf0d6; --cover-ink: #705731; }
.card.lavender { --tint: #f2eaf6; --cover-ink: #694a77; }
.cover { min-height: 99px; display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 12px 16px; background: var(--tint); color: var(--cover-ink); border-radius: 13px; }
.card-title { font-family: var(--round); font-size: 1.62rem; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; letter-spacing: -.025em; }
.card-subtitle { margin-top: 4px; font-size: .77rem; font-weight: 700; letter-spacing: .015em; }
.document { flex: none; display: grid; place-items: end center; align-self: center; width: 43px; height: 51px; border: 1.5px solid currentColor; border-radius: 6px 12px 6px 6px; transform: rotate(9deg); background: #fffdf6; padding-bottom: 7px; font-family: ui-rounded, system-ui, sans-serif; font-weight: 800; font-size: .65rem; position: relative; }
.document::before { content: ""; position: absolute; top: 11px; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px; opacity: .5; box-shadow: 0 6px currentColor; }
.card-links { display: grid; gap: 6px; margin-top: auto; padding: 0 2px; }
.card-access { padding-inline: 9px; color: var(--body); font-size: .76rem; font-weight: 650; }
.card-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 6px 9px; border-radius: 9px; color: var(--green); text-decoration: none; font-weight: 750; font-size: .88rem; }
.card-link:hover { background: #f2f6ee; text-decoration: underline; text-underline-offset: 3px; }
.library-note { margin-top: 16px; color: var(--body); font-size: .79rem; }

.line-area { padding-block: 54px; }
.line-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 23px 18px; border: 1px solid #dae7d7; border-radius: 22px; background: #edf5e8; overflow: hidden; }
.line-panel .section-title { font-size: clamp(1.35rem, 4.7vw, 1.95rem); }
.line-panel .section-intro { font-size: .86rem; }
.line-panel .button { margin-top: 14px; border-color: #a7c6ad; }
.line-panel img { width: clamp(64px, 19vw, 143px); transform: rotate(6deg); }
.line-status { margin-top: 10px; font-size: .8rem; color: var(--body); }

.site-footer { background: #f5f6ef; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 22px; padding-block: 19px; }
.footer-inner a { min-height: 44px; display: inline-flex; align-items: center; font-size: .8rem; color: var(--body); text-underline-offset: 4px; }
.footer-inner .brand img { width: 116px; }
.footer-inner small { color: var(--body); font-size: .75rem; }
.prose { max-width: 748px; min-height: 55vh; padding-block: 46px 63px; }
.prose h1 { margin-bottom: 17px; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.15rem; margin: 24px 0 6px; }
.prose p + p { margin-top: .7em; }
.prose p, .prose li { color: var(--body); }
.prose a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose .back { display: inline-block; margin-bottom: 18px; font-size: .88rem; }
.prose .privacy-switch { min-height: 44px; max-width: 100%; margin-top: 12px; padding: 6px 13px; border: 1px solid #a7c6ad; border-radius: 10px; background: #f4f8f0; color: var(--green); cursor: pointer; font-weight: 700; }

@media (min-width: 640px) {
  .wrap { width: min(100% - 68px, 1120px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .brand img { width: 155px; }
  .main-nav a { font-size: .9rem; }
  .main-nav .nav-line { padding-inline: 16px; }
  .line-panel { padding-inline: 34px; gap: 22px; }
}
@media (min-width: 820px) {
  .hero { padding-block: 63px 61px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 15px; }
  .hero h1 { font-size: clamp(2.45rem, 4.7vw, 3.75rem); }
  .hero-copy { font-size: 1rem; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
  .cover { min-height: 117px; padding-inline: 20px; }
  .card { padding: 11px; }
  .line-panel { padding-inline: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
