:root {
  --red: #8e1d1d;
  --red-dark: #5c1718;
  --oxblood: #351012;
  --ink: #241b19;
  --muted: #70645f;
  --paper: #f5efe4;
  --paper-light: #fbf8f1;
  --white: #fff;
  --line: rgba(58, 37, 32, 0.14);
  --shell: min(1180px, calc(100% - 56px));
  --shadow-phone: 0 36px 90px rgba(50, 14, 15, 0.28);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper-light);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper-light); }
body, button, a { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
button { font: inherit; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px;
  border-radius: 999px; background: #fff; color: var(--oxblood); font-weight: 800;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.section-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: #fff;
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}
.site-header.is-scrolled, .legal-header {
  color: var(--ink); background: rgba(251, 248, 241, 0.9);
  box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(18px);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: var(--shell); min-height: 82px; margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 12px; font-size: 24px; font-weight: 850; letter-spacing: -.04em; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 24px rgba(47, 11, 13, .22); }
.site-nav { display: flex; gap: 34px; font-size: 14px; font-weight: 700; }
.site-nav a, .footer-links a { transition: opacity 160ms ease; }
.site-nav a:hover, .footer-links a:hover { opacity: .58; }
.header-cta {
  justify-self: end; padding: 11px 19px; border: 1px solid currentColor;
  border-radius: 999px; font-size: 13px; font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.header-cta:hover { background: #fff; color: var(--oxblood); transform: translateY(-1px); }
.site-header.is-scrolled .header-cta:hover, .legal-header .header-cta:hover { background: var(--red); color: #fff; }

.hero {
  --hero-shift: 0px; position: relative; min-height: 100svh; overflow: hidden;
  isolation: isolate; background: var(--oxblood); color: #fff;
}
.hero-backdrop, .hero-shade { position: absolute; inset: 0; }
.hero-backdrop {
  z-index: -3; inset: -50px; background: url("/assets/hero-paper.webp") center calc(50% + var(--hero-shift)) / cover;
  transform: scale(1.05); filter: saturate(.85) contrast(1.04);
  animation: hero-image-in 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.hero-shade {
  z-index: -2;
  background: linear-gradient(90deg, rgba(39,7,9,.96) 0%, rgba(56,10,13,.86) 37%, rgba(64,14,15,.28) 68%, rgba(38,8,9,.55) 100%),
              linear-gradient(180deg, rgba(27,5,7,.52) 0%, transparent 38%, rgba(28,6,8,.66) 100%);
}
.hero-glyphs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glyphs span {
  position: absolute; color: rgba(255,255,255,.08); font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 700; line-height: 1;
}
.hero-glyphs span:nth-child(1) { top: 10%; right: 5%; font-size: clamp(180px, 25vw, 370px); transform: rotate(8deg); }
.hero-glyphs span:nth-child(2) { bottom: -4%; left: 48%; font-size: clamp(150px, 20vw, 300px); }
.hero-glyphs span:nth-child(3) { top: 22%; left: 51%; font-size: 90px; opacity: .5; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, .94fr) minmax(390px, .72fr);
  align-items: center; width: var(--shell); min-height: 100svh; margin-inline: auto; padding: 118px 0 72px;
}
.hero-copy { position: relative; z-index: 2; max-width: 660px; animation: hero-copy-in 900ms 160ms cubic-bezier(.2,.7,.2,1) both; }
.hero-product { margin-bottom: 8px; font-size: clamp(48px, 6.1vw, 86px); font-weight: 900; line-height: .94; letter-spacing: -.065em; }
.hero-kicker { margin-bottom: 38px; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 850; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin-bottom: 24px; font-size: clamp(46px, 5.7vw, 76px); font-weight: 690; line-height: .98; letter-spacing: -.06em; }
.hero-lead { max-width: 540px; margin-bottom: 35px; color: rgba(255,255,255,.8); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 27px; border-radius: 999px; font-size: 15px; font-weight: 850; transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-light { background: #fff; box-shadow: 0 18px 42px rgba(25,4,6,.25); color: var(--oxblood); }
.store-status {
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px 18px 10px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 15px; background: rgba(43,8,10,.25);
  color: #fff; font-size: 20px; font-weight: 700; line-height: 1; backdrop-filter: blur(14px);
}
.store-status small { display: block; margin-bottom: 3px; font-size: 10px; font-weight: 600; }
.apple-mark { font-size: 29px; }
.hero-device { position: relative; align-self: end; justify-self: center; height: min(76svh, 720px); animation: hero-device-in 1s 310ms cubic-bezier(.2,.7,.2,1) both; }
.phone {
  position: relative; overflow: hidden; width: 332px; aspect-ratio: 9 / 19.4;
  border: 7px solid #201b1a; border-radius: 48px; background: #fff; box-shadow: var(--shadow-phone);
}
.phone::before { content: ""; position: absolute; z-index: 4; top: 10px; left: 50%; width: 90px; height: 24px; border-radius: 999px; background: #161313; transform: translateX(-50%); }
.phone-screen { position: absolute; inset: 0; overflow: hidden; background: #f8f7f4; color: #1e1918; }
.ios-status { display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 9px 22px 0; font-size: 10px; font-weight: 800; }
.app-bar, .detail-nav, .plain-nav { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 17px; border-bottom: 1px solid #e7e2dc; }
.app-bar button { border: 0; background: none; font-size: 24px; color: var(--red); }
.app-bar span { color: #817571; font-size: 11px; }
.study-progress { height: 3px; background: #e6ddd3; }
.study-progress i { display: block; width: 40%; height: 100%; background: var(--red); }
.flashcard { margin: 20px 14px 13px; padding: 20px 18px; border-radius: 24px; background: #fffdf8; box-shadow: 0 10px 34px rgba(62,35,25,.09); text-align: center; }
.card-label { margin-bottom: 2px; color: #9b8e87; font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.character { color: var(--red); font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 104px; font-weight: 600; line-height: 1.2; }
.card-reading { margin-bottom: 15px; color: #766963; font-family: "Hiragino Sans", sans-serif; font-size: 12px; }
.card-rule { width: 30px; height: 1px; margin: 0 auto 15px; background: #dacbc1; }
.card-keyword { margin-bottom: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.card-story { min-height: 80px; margin: 0; color: #675a55; font-family: Georgia, "Times New Roman", serif; font-size: 13px; line-height: 1.55; }
.card-story em { color: var(--red); font-style: normal; }
.reveal-answer { display: block; width: calc(100% - 28px); height: 48px; margin: 0 14px; border: 0; border-radius: 15px; background: var(--red); color: #fff; font-weight: 800; }
.tab-bar { position: absolute; inset: auto 0 0; display: flex; justify-content: space-around; align-items: center; height: 57px; border-top: 1px solid #e6e1db; background: rgba(252,250,246,.96); color: #968a84; font-size: 9px; }
.tab-bar strong { color: var(--red); }
.scroll-cue { position: absolute; bottom: 23px; left: 50%; z-index: 2; display: flex; gap: 9px; color: rgba(255,255,255,.65); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; transform: translateX(-50%); }

.intro { max-width: 960px; padding: 150px 0 145px; text-align: center; }
.eyebrow { margin-bottom: 22px; color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow-light { color: rgba(255,255,255,.63); }
.intro h2, .feature-copy h2, .privacy-heading h2, .download h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
.intro h2 { max-width: 850px; margin: 0 auto 25px; font-size: clamp(40px, 5.5vw, 68px); line-height: 1.04; }
.intro > p:last-child { max-width: 670px; margin: 0 auto; color: var(--muted); font-size: 19px; line-height: 1.65; }

.feature { position: relative; overflow: hidden; }
.feature-inner { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; min-height: 860px; gap: 76px; padding-block: 110px; }
.feature-copy { max-width: 490px; }
.feature-number { margin-bottom: 30px; color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.feature-copy h2 { margin-bottom: 24px; font-size: clamp(48px, 5vw, 70px); line-height: 1; }
.feature-copy > p:not(.feature-number) { margin-bottom: 30px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.feature-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 720; }
.device-stage { position: relative; height: 650px; }
.device-stage .phone { position: absolute; width: 290px; }
.device-stage .phone-back { top: 40px; left: 8%; transform: rotate(-7deg); }
.device-stage .phone-front { top: -5px; right: 5%; transform: rotate(6deg); }
.ink-circle { position: absolute; top: 6%; left: 10%; width: 510px; aspect-ratio: 1; border: 22px solid rgba(142,29,29,.12); border-right-color: transparent; border-radius: 50%; transform: rotate(-18deg); }
.red-bar { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 0 15px; background: var(--red); color: #fff; font-size: 10px; }
.red-bar strong { font-size: 11px; }
.search-field { margin: 10px 12px; padding: 10px 12px; border-radius: 12px; background: #ebe8e3; color: #918782; font-size: 10px; }
.character-row { display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; min-height: 63px; padding: 5px 13px; border-bottom: 1px solid #ebe6df; }
.character-row > b { color: var(--red); font-family: "Yu Mincho", serif; font-size: 31px; }
.character-row span { display: grid; gap: 3px; }
.character-row strong { font-family: Georgia, serif; font-size: 13px; }
.character-row small, .character-row i { color: #8d827d; font-size: 9px; font-style: normal; }
.character-row.selected { background: #f7e8e3; }
.detail-nav { color: var(--red); font-size: 10px; }
.detail-nav strong { color: var(--ink); font-size: 14px; }
.detail-glyph { margin-top: 12px; color: var(--red); font-family: "Yu Mincho", serif; font-size: 100px; line-height: 1.15; text-align: center; }
.detail-keyword { margin-bottom: 7px; font-family: Georgia, serif; font-size: 19px; text-align: center; }
.detail-reading { margin-bottom: 20px; color: #81736d; font-size: 10px; text-align: center; }
.detail-section { margin: 0 16px; padding: 12px 0; border-top: 1px solid #e7e0d9; }
.detail-section span, .stroke-title span { color: #9a8b84; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.detail-section p { margin: 6px 0 0; font-family: Georgia, serif; font-size: 12px; line-height: 1.45; }
.detail-section.story em { color: var(--red); font-style: normal; }
.stroke-title { display: flex; justify-content: space-between; margin: 2px 16px 10px; padding-top: 12px; border-top: 1px solid #e7e0d9; font-size: 12px; }
.stroke-grid { width: 118px; aspect-ratio: 1; margin: auto; border: 1px solid #e0c9c0; background: linear-gradient(45deg, transparent 49.6%, #eadbd5 50%, transparent 50.4%), linear-gradient(-45deg, transparent 49.6%, #eadbd5 50%, transparent 50.4%); color: var(--red); font-family: "Yu Mincho", serif; font-size: 80px; line-height: 118px; text-align: center; }

.study-feature { background: var(--oxblood); color: #fff; }
.study-feature::before { content: "記"; position: absolute; right: -4%; bottom: -18%; color: rgba(255,255,255,.035); font-family: "Yu Mincho", serif; font-size: 560px; line-height: 1; }
.feature-copy-light .feature-number { color: #dcaaa0; }
.feature-copy-light > p:not(.feature-number) { color: rgba(255,255,255,.67); }
.feature-copy-light .feature-list { border-color: rgba(255,255,255,.14); }
.feature-copy-light .feature-list li { border-color: rgba(255,255,255,.14); }
.study-composition { position: relative; height: 650px; }
.phone-study { position: absolute; top: 0; left: 50%; width: 300px; transform: translateX(-50%) rotate(2deg); }
.plain-nav strong { font-size: 19px; }
.plain-nav span { color: var(--red); font-size: 24px; }
.today-summary { display: grid; grid-template-columns: 1fr auto; margin: 14px; padding: 18px; border-radius: 21px; background: var(--red); color: #fff; }
.today-summary small { grid-column: 1 / -1; opacity: .65; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.today-summary strong { margin: 3px 0 -3px; font-family: Georgia, serif; font-size: 42px; }
.today-summary span { align-self: end; margin-bottom: 6px; opacity: .8; font-size: 10px; }
.today-summary button { grid-column: 1 / -1; margin-top: 12px; padding: 9px; border: 0; border-radius: 11px; background: #fff; color: var(--red); font-size: 10px; font-weight: 800; }
.deck-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; margin: 0 14px; padding: 13px 0; border-bottom: 1px solid #e7e1dc; }
.deck-mark { display: grid; width: 40px; aspect-ratio: 1; place-items: center; border-radius: 12px; background: var(--red); color: #fff; font-family: "Yu Mincho", serif; font-size: 19px; }
.deck-mark.alt { background: #314a48; }
.deck-mark.gold { background: #a37b2e; }
.deck-row p { display: grid; gap: 3px; margin: 0; }
.deck-row strong { font-size: 11px; }
.deck-row small { color: #918680; font-size: 9px; }
.deck-row b { color: var(--red); font-size: 13px; }
.paper-note { position: absolute; z-index: 2; display: grid; place-items: center; width: 170px; aspect-ratio: 1.08; background: #f2e6d3; box-shadow: 0 22px 45px rgba(9,2,3,.35); color: var(--oxblood); transform: rotate(-11deg); }
.paper-note::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(142,29,29,.18); }
.paper-note span { font-family: "Yu Mincho", serif; font-size: 72px; line-height: 1; }
.paper-note small { margin-top: -30px; color: #7c625a; font-family: Georgia, serif; }
.note-one { top: 70px; left: 0; }
.note-two { right: -2%; bottom: 36px; transform: rotate(9deg); }

.privacy-section { padding: 150px 0; background: var(--paper); }
.privacy-heading { max-width: 810px; }
.privacy-heading h2 { margin-bottom: 25px; font-size: clamp(48px, 5.4vw, 72px); line-height: 1; }
.privacy-heading > p:last-child { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 85px; border-top: 1px solid var(--line); }
.principles article { padding: 30px 38px 0 0; }
.principles article + article { padding-left: 38px; border-left: 1px solid var(--line); }
.principles span { color: var(--red); font-size: 11px; font-weight: 800; }
.principles h3 { margin: 33px 0 10px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.principles p { margin: 0; color: var(--muted); line-height: 1.6; }

.download { position: relative; overflow: hidden; padding: 150px 28px; background: var(--red); color: #fff; text-align: center; }
.download::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 25%, rgba(255,255,255,.12), transparent 47%); }
.download-mark { position: absolute; inset: -80px auto auto 50%; color: rgba(255,255,255,.05); font-family: "Yu Mincho", serif; font-size: 520px; line-height: 1; transform: translateX(-50%); }
.download-inner { position: relative; z-index: 1; }
.download img { width: 96px; margin: 0 auto 28px; border-radius: 23px; box-shadow: 0 24px 50px rgba(47,5,8,.28); }
.download h2 { max-width: 780px; margin: 0 auto 22px; font-size: clamp(46px, 6vw, 76px); line-height: 1; }
.download p:not(.eyebrow) { margin-bottom: 35px; color: rgba(255,255,255,.72); font-size: 18px; }
.store-status-large { background: rgba(62,8,11,.2); }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 34px max(28px, calc((100% - 1180px) / 2)); background: var(--oxblood); color: rgba(255,255,255,.72); font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 800; }
.footer-brand img { border-radius: 10px; }
.footer-links { display: flex; gap: 24px; }
.site-footer > p { justify-self: end; margin: 0; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.legal-page { min-height: 100vh; background: var(--paper-light); }
.legal-main { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 150px 0 100px; }
.legal-main h1 { margin-bottom: 16px; font-family: Georgia, serif; font-size: clamp(46px, 7vw, 72px); font-weight: 500; letter-spacing: -.05em; }
.legal-main h2 { margin-top: 45px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.legal-main p, .legal-main li { color: var(--muted); line-height: 1.75; }
.legal-main a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal-effective { margin-bottom: 48px; font-size: 14px; }

@keyframes hero-image-in { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1.05); } }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-device-in { from { opacity: 0; transform: translateY(60px) rotate(3deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr .68fr; gap: 20px; }
  .hero-device { transform: translateX(45px); }
  .feature-inner { grid-template-columns: 1fr 1.2fr; gap: 25px; }
  .device-stage .phone { width: 255px; }
  .paper-note { width: 135px; }
  .note-one { left: -12px; }
  .note-two { right: -12px; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 34px, 620px); }
  .header-inner { min-height: 70px; }
  .brand { font-size: 20px; }
  .brand img { width: 38px; height: 38px; }
  .header-cta { padding: 9px 14px; }
  .hero { min-height: auto; }
  .hero-inner { display: block; min-height: 980px; padding-top: 110px; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-kicker { margin-bottom: 28px; }
  .hero h1 { font-size: clamp(46px, 13vw, 66px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { justify-content: center; }
  .hero-device { height: 485px; margin-top: 54px; transform: none; }
  .hero-device .phone { width: 262px; margin-inline: auto; }
  .flashcard { padding: 12px 14px; }
  .character { font-size: 75px; }
  .card-story { min-height: 56px; font-size: 10px; }
  .scroll-cue { display: none; }
  .intro { padding: 110px 0; }
  .intro h2 { font-size: 43px; }
  .feature-inner { display: flex; flex-direction: column; min-height: auto; padding-block: 100px; }
  .feature-copy { max-width: none; }
  .feature-copy h2 { font-size: 51px; }
  .device-stage, .study-composition { width: 100%; height: 590px; margin-top: 35px; }
  .device-stage .phone { width: 230px; }
  .device-stage .phone-back { left: 0; }
  .device-stage .phone-front { right: 0; }
  .study-feature .feature-inner { flex-direction: column-reverse; }
  .phone-study { width: 265px; }
  .paper-note { width: 120px; }
  .paper-note span { font-size: 52px; }
  .paper-note small { font-size: 8px; }
  .privacy-section { padding: 110px 0; }
  .privacy-heading h2 { font-size: 48px; }
  .principles { grid-template-columns: 1fr; margin-top: 55px; }
  .principles article, .principles article + article { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .principles h3 { margin-top: 18px; }
  .download { padding: 115px 20px; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer > p { justify-self: center; }
}

@media (max-width: 480px) {
  .store-status { min-height: 52px; font-size: 17px; }
  .button { min-height: 52px; }
  .hero-inner { min-height: 945px; }
  .device-stage { height: 535px; }
  .device-stage .phone { width: 200px; border-width: 5px; border-radius: 38px; }
  .phone::before { width: 72px; height: 19px; }
  .detail-glyph { font-size: 70px; }
  .detail-section { padding: 8px 0; }
  .stroke-grid { width: 88px; font-size: 60px; line-height: 88px; }
  .paper-note { width: 100px; }
  .note-one { top: 80px; left: -20px; }
  .note-two { right: -15px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
