@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("/assets/fonts/mplus-rounded-regular-v1.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("/assets/fonts/mplus-rounded-medium-v1.ttf") format("truetype");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f0e4;
  --paper-deep: #ede4d3;
  --ink: #3b342e;
  --ink-soft: #6f6458;
  --flame: #e8752a;
  --ember: #c4471c;
  --bark: #6b4f3a;
  --moss: #7a9471;
  --dusk: #3e4e5e;
  --sky: #8fa9bf;
  --gold: #c9a227;
  --line: rgb(59 52 46 / 17%);
  --shadow: 0 24px 70px rgb(59 52 46 / 15%);
  --radius-card: 28px;
  --radius-small: 16px;
  --shell: min(1160px, calc(100% - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", ui-rounded, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: url("/assets/paper-texture-v1.png") repeat;
  content: "";
  opacity: 0.035;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  line-height: 1.28;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.9rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  color: var(--paper);
}

.site-header__inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 2px solid rgb(246 240 228 / 35%);
  border-radius: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.9rem;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}

.language-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(246 240 228 / 45%);
  border-radius: 999px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 860px;
  overflow: clip;
  background: var(--dusk);
  color: var(--paper);
}

.hero::before,
.night-band::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgb(201 162 39 / 75%) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 11%, rgb(246 240 228 / 65%) 0 1px, transparent 2px),
    radial-gradient(circle at 91% 38%, rgb(201 162 39 / 55%) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 37% 32%, rgb(246 240 228 / 45%) 0 1px, transparent 2px);
  background-size: 210px 180px, 280px 230px, 360px 320px, 430px 310px;
  content: "";
  opacity: 0.78;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -8vw;
  bottom: -18vw;
  width: 72vw;
  height: 52vw;
  border-radius: 52% 48% 0 0;
  background: var(--ink);
  content: "";
  opacity: 0.28;
  transform: rotate(-8deg);
}

.hero__inner {
  display: grid;
  min-height: 860px;
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  padding-block: 154px 94px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 38px;
  height: 3px;
  border-radius: 99px;
  background: var(--flame);
  content: "";
}

.hero h1 {
  max-width: 10ch;
  margin-bottom: 28px;
}

.hero .hero-title-ja {
  max-width: none;
  font-size: clamp(2.45rem, 5.3vw, 4.8rem);
}

.hero-title-ja span {
  display: block;
  white-space: nowrap;
}

.hero__lead {
  max-width: 38rem;
  color: var(--paper-deep);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 34px 28px;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  padding: 8px 13px;
  border: 1px solid rgb(246 240 228 / 28%);
  border-radius: 999px;
  color: var(--paper-deep);
  font-size: 0.84rem;
}

.release-status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 11px 18px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.release-status::before {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 5px rgb(232 117 42 / 18%);
  content: "";
}

.phone-stage {
  position: relative;
  width: min(420px, 88vw);
  margin-inline: auto;
}

.phone {
  position: relative;
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 54px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  height: auto;
}

.camp-note {
  position: absolute;
  right: -48px;
  bottom: 14%;
  width: 148px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px 18px 24px 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.45;
  transform: rotate(3deg);
}

.section {
  padding-block: clamp(88px, 12vw, 160px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(50px, 7vw, 84px);
}

.section-heading h2 {
  margin-bottom: 22px;
}

.section-heading p:last-child {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  min-height: 310px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgb(237 228 211 / 72%);
}

.step-card:nth-child(2) {
  transform: translateY(28px);
}

.step-number {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: 14px;
}

.step-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.night-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--dusk);
  color: var(--paper);
}

.night-band .section-heading p:last-child {
  color: var(--paper-deep);
}

.screen-grid {
  display: grid;
  align-items: start;
  gap: clamp(18px, 3vw, 38px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screen-card {
  margin: 0;
}

.screen-card:nth-child(2) {
  margin-top: 72px;
}

.screen-card .phone {
  border-width: 7px;
  border-radius: 40px;
}

.screen-card figcaption {
  padding: 18px 6px 0;
  color: var(--paper-deep);
  font-size: 0.9rem;
}

.promise-grid {
  display: grid;
  align-items: start;
  gap: clamp(40px, 8vw, 110px);
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
}

.promise-statement {
  position: sticky;
  top: 40px;
}

.promise-statement h2 {
  max-width: 10ch;
}

.promise-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise-list li {
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.promise-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.promise-list span {
  color: var(--ink-soft);
}

.privacy-card {
  display: grid;
  align-items: center;
  gap: 40px;
  padding: clamp(32px, 7vw, 76px);
  border-radius: 36px;
  background: var(--ink);
  color: var(--paper);
  grid-template-columns: minmax(0, 1fr) auto;
}

.privacy-card h2 {
  margin-bottom: 18px;
}

.privacy-card p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--paper-deep);
}

.privacy-points {
  display: grid;
  gap: 10px;
  min-width: 190px;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  padding: 9px 14px;
  border: 1px solid rgb(246 240 228 / 24%);
  border-radius: 999px;
  text-align: center;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 700;
}

.final-call {
  text-align: center;
}

.final-call__icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 30px;
  border: 4px solid var(--paper-deep);
  border-radius: 30px;
}

.final-call h2 {
  max-width: 14ch;
  margin-inline: auto;
}

.final-call p {
  max-width: 620px;
  margin-inline: auto;
  color: var(--ink-soft);
}

.final-call .release-status {
  margin-top: 18px;
  background: var(--ink);
  color: var(--paper);
}

.legal-header {
  background: var(--dusk);
  color: var(--paper);
}

.legal-header .site-header {
  position: relative;
}

.legal-hero {
  padding-block: 80px 96px;
}

.legal-hero h1 {
  max-width: 13ch;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.legal-hero .support-title {
  max-width: none;
  font-size: clamp(2.15rem, 5.6vw, 4.6rem);
}

.support-title span {
  display: block;
  white-space: nowrap;
}

.legal-hero p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--paper-deep);
}

.language-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.language-jump a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid rgb(246 240 228 / 36%);
  border-radius: 999px;
  text-decoration: none;
}

.document {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 80px 130px;
}

.document section + section {
  margin-top: 96px;
  padding-top: 96px;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin-bottom: 44px;
}

.document h3 {
  margin-top: 48px;
  margin-bottom: 14px;
}

.document p,
.document li {
  color: var(--ink-soft);
}

.document a {
  color: var(--ink);
}

.document-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 42px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper-deep);
}

.support-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-deep);
}

.support-card h3 {
  margin-top: 0;
}

.contact-card {
  margin-block: 48px;
  padding: clamp(28px, 6vw, 52px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--paper);
}

.contact-card p {
  color: var(--paper-deep);
}

.contact-card a {
  color: var(--paper);
}

.site-footer {
  padding-block: 52px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  align-items: end;
  gap: 28px;
  grid-template-columns: 1fr auto;
}

.footer-note {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
  font-size: 0.9rem;
}

.footer-links a {
  min-height: 44px;
  align-content: center;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.not-found img {
  width: 112px;
  margin: 0 auto 28px;
  border-radius: 28px;
}

.not-found h1 {
  margin-bottom: 16px;
}

.not-found p {
  max-width: 520px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero,
  .hero__inner {
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 154px;
  }

  .hero__copy {
    text-align: center;
  }

  .hero h1,
  .hero__lead {
    margin-inline: auto;
  }

  .eyebrow,
  .hero__facts {
    justify-content: center;
  }

  .phone-stage {
    width: min(390px, 82vw);
  }

  .steps,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .step-card:nth-child(2),
  .screen-card:nth-child(2) {
    margin-top: 0;
    transform: none;
  }

  .step-card {
    min-height: 0;
  }

  .step-number {
    margin-bottom: 28px;
  }

  .screen-card {
    width: min(410px, 88vw);
    margin-inline: auto;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .promise-statement {
    position: static;
  }

  .promise-statement h2 {
    max-width: none;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(1160px, calc(100% - 28px));
  }

  body {
    font-size: 16px;
  }

  .site-header__inner {
    min-height: 80px;
  }

  .site-nav a:not(.language-link) {
    display: none;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .hero__inner {
    padding-top: 126px;
    padding-bottom: 76px;
  }

  .camp-note {
    right: -4px;
    bottom: 7%;
    width: 130px;
  }

  .privacy-card {
    grid-template-columns: 1fr;
  }

  .privacy-points {
    min-width: 0;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .copyright {
    grid-column: auto;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .language-jump {
    display: none;
  }

  body,
  .legal-header {
    background: var(--paper);
    color: var(--ink);
  }

  .legal-hero {
    padding-block: 30px;
  }

  .legal-hero p {
    color: var(--ink-soft);
  }
}
