:root {
      color-scheme: light;
      --paper: #f4eee3;
      --paper-deep: #ece3d5;
      --surface: #fffdf8;
      --ink: #292826;
      --muted: #625f59;
      --indigo: #263b50;
      --indigo-soft: #e7ecec;
      --red: #a94431;
      --sakura: #d98d88;
      --line: #d8d0c4;
      --shadow: 0 20px 55px rgb(54 43 32 / 10%);
      --serif: Georgia, "Times New Roman", serif;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 90px; }
    body {
      margin: 0;
      background:
        radial-gradient(ellipse at 86% 8%, rgb(217 141 136 / 12%), transparent 24rem),
        radial-gradient(ellipse at 4% 40%, rgb(38 59 80 / 5%), transparent 28rem),
        var(--paper);
      color: var(--ink);
      font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      -webkit-font-smoothing: antialiased;
    }
    a { color: var(--indigo); text-underline-offset: .2em; }
    a:hover { color: var(--red); }
    a:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 4px; }
    img { display: block; max-width: 100%; }
    .skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; padding: 12px 16px; background: var(--surface); border-radius: 8px; }
    .skip-link:focus { top: 12px; }
    .wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
    .site-header { position: relative; z-index: 5; border-bottom: 1px solid rgb(216 208 196 / 65%); }
    .nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
    .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
    .brand img { width: 48px; height: 48px; border-radius: 15px; object-fit: cover; }
    .brand-name { display: grid; line-height: 1.1; }
    .brand-name strong { font: 700 1.17rem var(--serif); letter-spacing: -.02em; }
    .brand-name span { margin-top: 5px; color: var(--muted); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
    .nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
    .nav-links a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 650; }
    .nav-links a:hover { color: var(--red); }
    .nav-links .nav-contact { padding: 10px 17px; border: 1px solid var(--indigo); border-radius: 999px; color: var(--indigo); }
    .nav-links .nav-contact:hover { background: var(--indigo); color: var(--surface); }
    .mobile-menu { display: none; position: relative; }
    .mobile-menu summary { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--indigo); cursor: pointer; font-size: .82rem; font-weight: 750; list-style: none; }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu-links { position: absolute; top: calc(100% + 9px); right: 0; display: grid; min-width: 190px; gap: 2px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
    .mobile-menu-links a { padding: 10px 12px; border-radius: 8px; color: var(--indigo); font-size: .87rem; font-weight: 700; text-decoration: none; }
    .mobile-menu-links a:hover { background: var(--indigo-soft); }

    .hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr); align-items: center; gap: clamp(45px, 8vw, 110px); min-height: 640px; padding-block: 78px 96px; }
    .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--red); font-size: .74rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
    .eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
    h1, h2, h3, p { margin-top: 0; }
    h1 { max-width: 720px; margin-bottom: 22px; color: var(--indigo); font: 500 clamp(3.1rem, 6.4vw, 5.6rem)/.99 var(--serif); letter-spacing: -.055em; }
    .hero-copy { max-width: 570px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.23rem); line-height: 1.7; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 12px 21px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
    .button:hover { transform: translateY(-2px); }
    .button-primary { background: var(--indigo); color: white; box-shadow: 0 9px 20px rgb(38 59 80 / 18%); }
    .button-primary:hover { background: #182d42; color: white; box-shadow: 0 12px 24px rgb(38 59 80 / 25%); }
    .button-secondary { border-color: var(--line); background: rgb(255 253 248 / 60%); color: var(--indigo); }
    .button-secondary:hover { background: var(--surface); color: var(--indigo); }
    .beta-note { display: flex; align-items: center; gap: 9px; margin: 22px 0 0; color: var(--muted); font-size: .86rem; }
    .beta-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgb(169 68 49 / 12%); }

    .hero-art { position: relative; display: grid; min-height: 450px; place-items: center; }
    .hero-art::before { position: absolute; width: min(440px, 95%); aspect-ratio: 1; border: 1px solid rgb(216 208 196 / 85%); border-radius: 50%; content: ""; }
    .hero-art::after { position: absolute; width: min(360px, 78%); aspect-ratio: 1; border: 1px dashed rgb(169 68 49 / 25%); border-radius: 50%; content: ""; }
    .phone { position: relative; z-index: 1; width: min(290px, 76%); padding: 17px; transform: rotate(2deg); border: 1px solid #e0d8cd; border-radius: 34px; background: var(--surface); box-shadow: var(--shadow); }
    .phone-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 15px; color: var(--muted); font-size: .68rem; font-weight: 700; }
    .phone-brand { display: flex; align-items: center; gap: 7px; color: var(--indigo); }
    .phone-brand img { width: 20px; height: 20px; border-radius: 6px; }
    .lesson-card { overflow: hidden; border: 1px solid #e4ded5; border-radius: 23px; background: #fcfaf5; }
    .lesson-top { padding: 17px 18px 7px; color: var(--red); font-size: .63rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
    .kana { padding: 0 18px; color: var(--ink); font: 400 5.9rem/1.1 "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif; text-align: center; }
    .kana-reading { margin: -1px 0 14px; color: var(--muted); font-size: .8rem; text-align: center; }
    .sound-row { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 11px 12px; border: 1px solid #c8d2d4; border-radius: 14px; background: var(--indigo-soft); color: var(--indigo); font-size: .74rem; font-weight: 750; }
    .play { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--indigo); color: white; font-size: .63rem; }
    .trace-preview { display: flex; align-items: center; justify-content: space-between; margin: 13px 17px 15px; color: var(--muted); font-size: .65rem; }
    .trace-lines { display: flex; gap: 4px; }
    .trace-lines i { width: 14px; height: 4px; border-radius: 4px; background: #d8d0c4; }
    .trace-lines i:first-child { background: var(--red); }
    .mascot { position: absolute; z-index: 2; right: 1%; bottom: 3%; width: clamp(105px, 15vw, 155px); filter: drop-shadow(0 10px 12px rgb(61 41 32 / 12%)); transform: rotate(7deg); }
    .seal { position: absolute; z-index: 2; top: 6%; left: 3%; display: grid; width: 82px; height: 82px; place-items: center; border: 1px solid rgb(169 68 49 / 45%); border-radius: 50%; color: var(--red); font: 500 1.8rem var(--serif); transform: rotate(-13deg); }

    .trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 19px 24px; border: 1px solid var(--line); border-radius: 18px; background: rgb(255 253 248 / 62%); }
    .trust-item { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--indigo); font-size: .87rem; font-weight: 700; text-align: center; }
    .trust-item span:first-child { color: var(--red); font-size: 1.05rem; }

    section { padding-block: 106px; }
    .section-heading { max-width: 680px; margin: 0 auto 48px; text-align: center; }
    .section-heading .eyebrow { justify-content: center; }
    h2 { margin-bottom: 15px; color: var(--indigo); font: 500 clamp(2.3rem, 4vw, 3.75rem)/1.08 var(--serif); letter-spacing: -.04em; }
    .section-intro { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
    .learning-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .learning-card { min-height: 254px; padding: 25px 23px; border: 1px solid var(--line); border-radius: 20px; background: rgb(255 253 248 / 82%); }
    .card-index { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 24px; border-radius: 13px; background: var(--indigo-soft); color: var(--indigo); font: 700 1rem var(--serif); }
    .learning-card:nth-child(2) .card-index { background: #f4e2dd; color: var(--red); }
    .learning-card:nth-child(3) .card-index { background: #eee8dc; }
    .learning-card:nth-child(4) .card-index { background: #f3e6e5; color: var(--red); }
    h3 { margin-bottom: 9px; color: var(--indigo); font-size: 1.05rem; }
    .learning-card p { margin: 0; color: var(--muted); font-size: .9rem; }

    .pathways { position: relative; overflow: hidden; background: var(--indigo); color: #f9f4eb; }
    .pathways::after { position: absolute; top: -120px; right: -70px; width: 420px; height: 420px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 50%; box-shadow: 0 0 0 42px rgb(255 255 255 / 2%), 0 0 0 84px rgb(255 255 255 / 2%); content: ""; }
    .pathways .section-heading { position: relative; z-index: 1; }
    .pathways h2 { color: #fffaf1; }
    .pathways .section-intro { color: #d8dee1; }
    .pathways .eyebrow { color: #e5aaa0; }
    .path-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .path-card { min-height: 245px; padding: 24px 22px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 18px; background: rgb(255 255 255 / 6%); }
    .path-card .jp { display: block; margin-bottom: 10px; color: #f0b8af; font: 500 2.3rem/1.2 "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif; }
    .path-card h3 { color: white; }
    .path-card p { margin: 0; color: #d8dee1; font-size: .88rem; }
    .path-state { display: inline-block; margin-top: 17px; padding: 5px 9px; border: 1px solid rgb(229 170 160 / 45%); border-radius: 999px; color: #f0c0b8; font-size: .69rem; font-weight: 750; }

    .offline { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(40px, 8vw, 100px); }
    .offline-art { position: relative; display: grid; min-height: 340px; place-items: center; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(140deg, #eee5d8, #fbf7ef); }
    .offline-art::before, .offline-art::after { position: absolute; content: ""; border: 1px solid rgb(38 59 80 / 16%); border-radius: 50%; }
    .offline-art::before { width: 245px; height: 245px; }
    .offline-art::after { width: 295px; height: 295px; }
    .offline-logo { position: relative; z-index: 1; width: 135px; border-radius: 28px; box-shadow: var(--shadow); }
    .offline-art .kanji { position: absolute; top: 13%; right: 13%; color: rgb(169 68 49 / 70%); font: 500 2.1rem var(--serif); transform: rotate(9deg); }
    .offline-copy h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); }
    .offline-copy p { color: var(--muted); }
    .offline-copy .policy-link { margin: 24px 0 0; }
    .check-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
    .check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: .94rem; }
    .check-list li::before { content: "✓"; display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); font-size: .75rem; font-weight: 900; }

    .faq { padding-top: 52px; }
    .faq-list { max-width: 800px; margin-inline: auto; border-top: 1px solid var(--line); }
    details { border-bottom: 1px solid var(--line); }
    summary { position: relative; padding: 20px 42px 20px 2px; color: var(--indigo); cursor: pointer; font-weight: 750; list-style: none; }
    summary::-webkit-details-marker { display: none; }
    summary::after { position: absolute; top: 50%; right: 4px; color: var(--red); content: "+"; font-size: 1.5rem; font-weight: 400; transform: translateY(-50%); }
    details[open] summary::after { content: "−"; }
    details p { max-width: 720px; margin: -4px 0 22px; color: var(--muted); }

    .closing { padding-block: 0 100px; }
    .closing-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: clamp(30px, 6vw, 65px); border-radius: 27px; background: #e8ddd0; }
    .closing-card::after { position: absolute; top: -70px; right: 130px; width: 260px; height: 260px; border: 1px solid rgb(169 68 49 / 18%); border-radius: 50%; content: ""; }
    .closing-card h2 { max-width: 590px; margin-bottom: 11px; font-size: clamp(2.2rem, 4vw, 3.5rem); }
    .closing-card p { max-width: 560px; margin: 0; color: var(--muted); }
    .closing-card .button { position: relative; z-index: 1; flex: 0 0 auto; }

    footer { padding: 30px 0 34px; border-top: 1px solid var(--line); }
    .footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
    .footer-brand { max-width: 390px; color: var(--muted); font-size: .86rem; }
    .footer-brand .brand { margin-bottom: 12px; }
    .footer-brand .brand img { width: 38px; height: 38px; }
    .footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
    .footer-links a { color: var(--indigo); font-size: .86rem; font-weight: 700; }
    .legal { margin: 28px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

    @media (max-width: 900px) {
      .hero { grid-template-columns: minmax(0, 1fr) minmax(290px, .82fr); gap: 26px; min-height: 590px; }
      .learning-grid, .path-grid { grid-template-columns: repeat(2, 1fr); }
      .offline { grid-template-columns: .9fr 1.1fr; gap: 40px; }
    }
    @media (max-width: 680px) {
      .wrap { width: min(100% - 30px, 520px); }
      .nav { min-height: 72px; }
      .brand img { width: 42px; height: 42px; }
      .nav-links { display: none; }
      .mobile-menu { display: block; }
      .hero { display: flex; min-height: 0; flex-direction: column; align-items: stretch; gap: 16px; padding-block: 68px 56px; }
      h1 { max-width: 560px; font-size: clamp(3.1rem, 13vw, 4.45rem); }
      .hero-copy { font-size: 1rem; }
      .hero-art { min-height: 370px; margin-top: 15px; }
      .phone { width: 248px; }
      .hero-art::before { width: 330px; }
      .hero-art::after { width: 275px; }
      .mascot { right: 4%; bottom: 1%; width: 108px; }
      .seal { top: 3%; left: 6%; width: 62px; height: 62px; font-size: 1.4rem; }
      .trust-strip { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
      .trust-item { justify-content: flex-start; }
      section { padding-block: 78px; }
      .section-heading { margin-bottom: 34px; }
      .learning-grid, .path-grid { grid-template-columns: 1fr; }
      .learning-card { min-height: 0; }
      .card-index { margin-bottom: 15px; }
      .path-card { min-height: 0; }
      .offline { display: flex; flex-direction: column; align-items: stretch; }
      .offline-art { min-height: 270px; }
      .offline-art::before { width: 195px; height: 195px; }
      .offline-art::after { width: 235px; height: 235px; }
      .offline-logo { width: 112px; border-radius: 24px; }
      .closing { padding-bottom: 72px; }
      .closing-card { align-items: flex-start; flex-direction: column; }
      .footer-main { flex-direction: column; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    }
