:root {
  --cream: #f7f4ec;
  --paper: #fffefa;
  --ink: #25252c;
  --muted: #6e6e75;
  --line: #d9d6ce;
  --teal: #38adbb;
  --teal-dark: #267e89;
  --teal-soft: #dff4f5;
  --coral: #ff9f88;
  --orange: #f47732;
  --radius: 28px;
  --shadow: 0 22px 60px rgba(37, 37, 44, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: none; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand img { border-radius: 10px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: #4d4d54; font-size: .92rem; font-weight: 700; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--teal-dark); }
.language-link { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 720px;
  margin: 0 auto;
  padding: 64px 0 94px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 44px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: .76rem;
  line-height: 1.4;
  font-weight: 850;
  letter-spacing: .18em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  line-height: .98;
  letter-spacing: -.075em;
  font-weight: 900;
}
.hero h1 span { display: block; white-space: nowrap; color: var(--teal); }
.hero h1 .ink { color: var(--ink); }
.lead {
  max-width: 570px;
  margin: 34px 0 0;
  color: #515158;
  font-size: 1.1rem;
  line-height: 2;
}
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
  padding: 10px 20px;
  border-radius: 15px;
  background: var(--ink);
  color: white;
  font-weight: 750;
  line-height: 1.22;
}
.store-button small { display: block; font-size: .64rem; font-weight: 500; }
.apple { width: 24px; height: 30px; font-size: 0; position: relative; }
.apple::before { content: ""; position: absolute; left: 2px; top: 8px; width: 21px; height: 21px; background: white; border-radius: 45% 48% 44% 42%; }
.apple::after { content: ""; position: absolute; left: 14px; top: 1px; width: 8px; height: 12px; background: white; border-radius: 9px 0 9px 0; transform: rotate(-24deg); }
.text-link { font-weight: 750; text-decoration: none; border-bottom: 1px solid var(--ink); }
.availability { margin: 12px 0 0; color: var(--muted); font-size: .82rem; }

.hero-visual { position: relative; min-height: 640px; display: grid; place-items: center; overflow: hidden; }
.sound-steps { position: absolute; inset: 6% 0 0 1%; display: flex; align-items: center; gap: 14px; opacity: .22; transform: rotate(-7deg); }
.sound-steps i { width: 9%; border-radius: 999px; background: var(--teal); }
.sound-steps i:nth-child(1) { height: 12%; }
.sound-steps i:nth-child(2) { height: 26%; }
.sound-steps i:nth-child(3) { height: 48%; }
.sound-steps i:nth-child(4) { height: 76%; }
.sound-steps i:nth-child(5) { height: 54%; }
.sound-steps i:nth-child(6) { height: 34%; }
.sound-steps i:nth-child(7) { height: 16%; }
.phone {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 9px solid var(--ink);
  border-radius: 52px;
  background: #fff;
  box-shadow: var(--shadow);
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 50%;
  width: 28%;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ink);
}
.phone-main { width: min(370px, 72vw); transform: rotate(3.2deg); }
.phone img { width: 100%; height: auto; }
.mascot-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero-mascot {
  position: absolute;
  z-index: 4;
  right: 2%;
  bottom: 8%;
  width: 148px;
  height: 148px;
  border: 7px solid var(--paper);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(37, 37, 44, .18);
  transform: rotate(-6deg);
}
.mascot-canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.mascot-button:focus-visible { outline: 4px solid var(--orange); outline-offset: 5px; }
.mascot-hint {
  position: absolute;
  right: -10px;
  bottom: -28px;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--ink);
  color: white;
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}
.trial-link { padding: 9px 17px; border: 1px solid var(--teal-dark); border-radius: 999px; color: var(--teal-dark); font-weight: 800; text-decoration: none; }

.promise {
  padding: 22px 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--ink);
  color: white;
}
.promise p { flex: 0 0 auto; margin: 0; font-size: clamp(1.25rem, 3vw, 2.1rem); letter-spacing: .04em; }
.promise strong { color: #67d5de; }
.promise-line { min-width: 760px; height: 14px; background: repeating-linear-gradient(90deg, var(--teal) 0 46px, transparent 46px 66px); }

.features {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 130px 0;
}
.section-heading { margin-bottom: 56px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2, .practice h2, .closing h2, .document-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.15;
  letter-spacing: -.055em;
}
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature-card {
  min-height: 290px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-wide { grid-column: 1 / -1; min-height: 260px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.feature-number { color: var(--teal-dark); font-size: .8rem; font-weight: 900; letter-spacing: .15em; }
.feature-card h3 { margin: 24px 0 12px; font-size: 1.6rem; line-height: 1.4; letter-spacing: -.025em; }
.feature-card p { margin: 0; max-width: 580px; color: var(--muted); }
.feature-dark { background: var(--ink); color: white; border-color: var(--ink); }
.feature-dark .feature-number { color: #74d8df; }
.feature-dark p { color: #d6d6da; }
.feature-coral { background: var(--coral); border-color: #ef8f79; }
.feature-coral .feature-number, .feature-coral p { color: #633229; }
.mini-score { display: flex; align-items: end; gap: 10px; color: var(--teal); font-size: clamp(2.5rem, 6vw, 5.2rem); white-space: nowrap; }
.mini-score span:nth-child(2) { transform: translateY(-18px); }
.mini-score span:nth-child(3) { transform: translateY(7px); }
.mini-score span:nth-child(4) { transform: translateY(-10px); }

.practice {
  padding: 120px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  background: var(--teal-soft);
}
.practice-visual { min-height: 700px; display: grid; place-items: center; }
.phone-secondary { width: min(350px, 72vw); transform: rotate(-2.5deg); }
.practice-copy > p:not(.eyebrow) { max-width: 560px; margin: 28px 0; color: #4d5c60; font-size: 1.06rem; }
.check-list { margin: 32px 0 0; padding: 0; list-style: none; }
.check-list li { padding: 14px 0; border-bottom: 1px solid rgba(38,126,137,.25); font-weight: 700; }
.check-list li::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 12px; border-radius: 50%; background: var(--teal); color: white; font-size: .8rem; }

.closing { padding: 130px 24px; text-align: center; background: var(--paper); }
.closing-mascot { width: 132px; height: 132px; margin: 0 auto 24px; }
.closing p:not(.eyebrow) { margin: 22px 0 32px; color: var(--muted); }
.closing .primary-button { margin-right: 10px; }
.outline-button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.outline-button { border: 1px solid var(--ink); }
.outline-button:hover { background: var(--ink); color: white; }
.primary-button { background: var(--ink); color: white; }
.primary-button:hover { background: var(--teal-dark); }

footer {
  padding: 52px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 32px;
  background: var(--ink);
  color: white;
}
.footer-brand { font-size: 1.7rem; font-weight: 900; letter-spacing: -.04em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.footer-links a { color: #dedee2; font-size: .86rem; text-decoration: none; }
footer > p { grid-column: 1 / -1; margin: 18px 0 0; color: #95959c; font-size: .78rem; }

.document-main { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 90px 0 130px; }
.document-header { padding-bottom: 52px; border-bottom: 1px solid var(--line); }
.document-header > p:last-child { margin: 24px 0 0; color: var(--muted); }
.faq-list { padding: 42px 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 25px 44px 25px 0; cursor: pointer; font-size: 1.1rem; font-weight: 800; }
.faq-list details p { max-width: 760px; margin: -4px 0 28px; color: var(--muted); }
.contact-card { margin-top: 52px; padding: 44px; border-radius: var(--radius); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; background: var(--teal-soft); }
.contact-card h2 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }
.contact-card p:not(.eyebrow) { margin: 12px 0 0; color: #4d5c60; }
.legal { max-width: 820px; }
.legal > section { padding-top: 46px; }
.legal h2 { margin: 0 0 16px; font-size: 1.35rem; letter-spacing: -.02em; }
.legal p, .legal li { color: #55555c; }
.legal ul { padding-left: 1.4em; }
.legal li + li { margin-top: 12px; }

.trial-main { width: min(1060px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 120px; }
.trial-intro { max-width: 760px; margin-bottom: 48px; }
.trial-intro h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.3rem); line-height: 1.08; letter-spacing: -.06em; }
.trial-intro > p:last-child { max-width: 680px; margin: 26px 0 0; color: var(--muted); font-size: 1.05rem; }
.quiz-card { min-height: 480px; padding: 48px; border-radius: 36px; display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 48px; background: var(--paper); box-shadow: var(--shadow); }
.quiz-mascot-wrap { display: grid; place-items: center; min-height: 260px; border-radius: 28px; background: var(--teal-soft); }
.quiz-mascot { width: 210px; height: 210px; }
.quiz-topline { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.quiz-progress { margin: 0; color: var(--muted); font-size: .84rem; font-weight: 800; }
.quiz-status { min-height: 64px; margin: 24px 0; font-size: 1.25rem; font-weight: 800; line-height: 1.5; }
.note-answers { display: grid; grid-template-columns: repeat(7, minmax(52px, 1fr)); gap: 8px; }
.note-answer { min-height: 58px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); font: inherit; font-weight: 850; cursor: pointer; }
.note-answer:hover:not(:disabled), .note-answer:focus-visible { border-color: var(--teal); background: var(--teal-soft); }
.note-answer:disabled { cursor: default; opacity: .48; }
.note-answer.is-correct { opacity: 1; border-color: var(--teal-dark); background: var(--teal); color: white; }
.note-answer.is-wrong { opacity: 1; border-color: #cf6049; background: var(--coral); }
.quiz-actions { min-height: 54px; margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.quiz-actions button { border: 0; cursor: pointer; font: inherit; }
.quiz-actions .outline-button { border: 1px solid var(--ink); background: transparent; }
.trial-notes { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trial-notes > div { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.48); }
.trial-notes h2 { margin: 0 0 12px; font-size: 1.15rem; }
.trial-notes p { margin: 0; color: var(--muted); }
.trial-notes a { display: inline-block; margin-top: 10px; font-weight: 700; }

@media (max-width: 820px) {
  .site-header { width: min(100% - 32px, 1180px); min-height: 72px; }
  nav { gap: 14px; }
  nav a:first-child, nav a:nth-child(3), nav a:nth-child(4) { display: none; }
  .hero { width: min(100% - 32px, 1180px); padding: 52px 0 76px; grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(3.3rem, 18vw, 5.4rem); }
  .lead { margin-left: auto; margin-right: auto; font-size: 1rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 590px; }
  .hero-mascot { right: 4%; width: 112px; height: 112px; border-radius: 25px; }
  .features { width: min(100% - 32px, 1180px); padding: 92px 0; }
  .section-heading { display: block; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; min-height: 340px; display: flex; align-items: stretch; gap: 0; }
  .mini-score { justify-content: flex-end; font-size: 3rem; }
  .practice { padding: 90px 24px; grid-template-columns: 1fr; gap: 60px; }
  .practice-visual { min-height: 620px; }
  .practice-copy { text-align: center; }
  .practice-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .check-list { text-align: left; }
  .contact-card { grid-template-columns: 1fr; }
  .trial-main { width: min(100% - 32px, 1060px); padding: 56px 0 88px; }
  .quiz-card { padding: 30px; grid-template-columns: 1fr; gap: 20px; }
  .quiz-mascot-wrap { min-height: 190px; }
  .quiz-mascot { width: 165px; height: 165px; }
  .trial-notes { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  nav a { font-size: .8rem; }
  .brand span { font-size: 1.15rem; }
  .hero { padding-top: 38px; }
  .hero-visual { min-height: 540px; }
  .phone { border-width: 7px; border-radius: 42px; }
  .feature-card { min-height: 270px; padding: 28px; }
  .practice-visual { min-height: 570px; }
  .document-main { width: min(100% - 32px, 900px); padding: 66px 0 90px; }
  .contact-card { padding: 30px 24px; }
  .quiz-card { padding: 24px 18px; border-radius: 26px; }
  .note-answers { grid-template-columns: repeat(4, 1fr); }
  .note-answer { min-height: 52px; }
}

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