:root {
  --ink: #20222b;
  --muted: #5f6472;
  --paper: #fffaf3;
  --washi: #f7efe5;
  --blush: #e99aa8;
  --blush-deep: #bc5e70;
  --matcha: #7c936d;
  --indigo: #263a66;
  --line: rgba(32, 34, 43, 0.13);
  --shadow: 0 24px 80px rgba(38, 58, 102, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

body[data-active-language="en"] [data-lang]:not([data-lang="en"]),
body[data-active-language="ja"] [data-lang]:not([data-lang="ja"]),
body[data-active-language="ko"] [data-lang]:not([data-lang="ko"]) {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 88svh;
  color: #fff;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(32, 34, 43, 0.74) 0%, rgba(32, 34, 43, 0.42) 42%, rgba(32, 34, 43, 0.06) 76%),
    linear-gradient(180deg, rgba(32, 34, 43, 0.38) 0%, rgba(32, 34, 43, 0.08) 32%, rgba(32, 34, 43, 0.5) 100%);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.nav__links,
.language-toggle,
.hero__actions,
.feature-grid,
.income-grid,
.steps,
.cta-band,
.split-section,
.eligibility-list {
  display: flex;
}

.brand {
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.nav__links {
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.nav__links a:hover {
  color: #fff;
}

.nav--page {
  color: var(--ink);
}

.nav--page .brand__mark {
  border-color: rgba(38, 58, 102, 0.2);
  background: #fff;
}

.nav--page .nav__links {
  color: var(--muted);
}

.nav--page .nav__links a:hover {
  color: var(--ink);
}

.nav--page .language-toggle {
  border-color: rgba(38, 58, 102, 0.14);
  background: #fff;
  box-shadow: 0 10px 30px rgba(38, 58, 102, 0.08);
}

.nav--page .language-toggle__button {
  color: var(--muted);
}

.nav--page .language-toggle__button.is-active {
  color: #fff;
  background: var(--indigo);
}

.language-toggle {
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.language-toggle__button {
  min-width: 46px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.language-toggle__button.is-active {
  color: var(--ink);
  background: #fff;
}

.hero__content {
  width: min(700px, calc(100% - 40px));
  margin: clamp(44px, 8vh, 96px) auto 0;
  transform: translateX(calc((min(1180px, 100vw - 40px) - min(700px, 100vw - 40px)) / -2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blush);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd4db;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.4vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero__copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.hero__actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
}

.button--primary {
  color: #fff;
  background: var(--blush-deep);
  box-shadow: 0 12px 34px rgba(188, 94, 112, 0.32);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.button--light {
  color: var(--blush-deep);
  background: #fff;
  box-shadow: none;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) 0;
}

.page-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fffaf3 0%, #f7efe5 46%, #fffaf3 100%);
}

.page-hero,
.story-section,
.auth-layout,
.page-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero {
  display: grid;
  min-height: 54svh;
  align-items: center;
  padding: clamp(54px, 8vw, 110px) 0;
}

.page-hero h1,
.auth-copy h1 {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(3rem, 6.2vw, 6rem);
}

.page-hero p,
.auth-copy p {
  max-width: 740px;
  font-size: 1.08rem;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  padding: clamp(44px, 7vw, 92px) 0;
}

.story-copy {
  max-width: 760px;
}

.principle-panel,
.auth-card,
.detail-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.principle-panel {
  padding: 28px;
}

.principle-panel ul {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

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

.detail-grid article {
  padding: 24px;
}

.page-cta {
  margin-bottom: clamp(40px, 7vw, 90px);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  padding: clamp(48px, 8vw, 110px) 0;
}

.auth-layout--wide {
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 0.88fr);
}

.auth-card {
  padding: clamp(22px, 4vw, 34px);
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 14px;
}

.form-stack label {
  display: grid;
  gap: 8px;
  color: var(--indigo);
  font-weight: 800;
}

.form-stack input,
.form-stack textarea {
  width: 100%;
  border: 1px solid rgba(38, 58, 102, 0.16);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.form-stack textarea {
  resize: vertical;
}

.form-stack input:focus,
.form-stack textarea:focus {
  outline: 3px solid rgba(233, 154, 168, 0.28);
  border-color: rgba(188, 94, 112, 0.58);
}

.form-button {
  width: 100%;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: 18px 0 0;
  font-size: 0.95rem;
}

.form-note a {
  color: var(--blush-deep);
  font-weight: 800;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mini-list > span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(124, 147, 109, 0.28);
  border-radius: 999px;
  color: var(--indigo);
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  font-weight: 800;
}

.flash {
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 13px 14px;
  font-weight: 800;
  line-height: 1.45;
}

.flash--notice {
  color: #39502d;
  background: #edf5e6;
}

.flash--alert {
  color: #7c2a38;
  background: #ffe8ed;
}

.section__header {
  max-width: 850px;
}

.section__header--center {
  margin: 0 auto 34px;
  text-align: center;
}

.section__header--center p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.feature-grid,
.income-grid,
.steps {
  gap: 18px;
}

.feature-card,
.income-card,
.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.feature-card {
  flex: 1;
  min-height: 260px;
  padding: 26px;
}

.feature-card__icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--indigo);
  font-weight: 800;
}

.split-section {
  align-items: stretch;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(70px, 9vw, 110px) max(20px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #eef2e9 0%, #fff8f2 46%, #f3dbe1 100%);
}

.split-section__text,
.eligibility-list {
  flex: 1;
}

.split-section__text {
  max-width: 620px;
}

.eligibility-list {
  flex-direction: column;
  gap: 12px;
}

.eligibility-list div {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 22px;
  border: 1px solid rgba(38, 58, 102, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.eligibility-list strong {
  color: var(--indigo);
}

.eligibility-list div > span {
  color: var(--muted);
}

.earnings {
  position: relative;
}

.earnings::before {
  position: absolute;
  top: 54px;
  right: 0;
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border: 1px solid rgba(124, 147, 109, 0.28);
  border-radius: 50%;
  color: rgba(124, 147, 109, 0.42);
  content: "¥";
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

.income-grid {
  align-items: stretch;
  flex-wrap: wrap;
}

.income-card {
  flex: 1;
  min-width: min(250px, 100%);
  padding: 28px;
}

.income-card--highlight {
  border-color: rgba(188, 94, 112, 0.45);
  background: #fff;
  transform: translateY(-14px);
}

.income-card__label {
  color: var(--matcha);
  font-weight: 800;
}

.income-card strong {
  display: block;
  margin: 16px 0;
  color: var(--indigo);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
}

.process {
  padding-top: 20px;
}

.steps {
  margin-bottom: 28px;
}

.step {
  flex: 1;
  padding: 26px;
}

.step > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--matcha);
  font-weight: 900;
}

.cta-band {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), #7b4150);
}

.cta-band h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.6vw, 3.5rem);
}

.cta-band .eyebrow,
.cta-band p {
  color: #ffd4db;
}

@media (max-width: 880px) {
  .hero {
    min-height: 90svh;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(32, 34, 43, 0.76) 0%, rgba(32, 34, 43, 0.32) 100%),
      linear-gradient(180deg, rgba(32, 34, 43, 0.34), rgba(32, 34, 43, 0.6));
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav__links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero__content {
    margin-top: 82px;
    transform: none;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .feature-grid,
  .income-grid,
  .steps,
  .split-section,
  .cta-band {
    flex-direction: column;
  }

  .story-section,
  .auth-layout,
  .auth-layout--wide,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .income-card--highlight {
    transform: none;
  }
}

@media (max-width: 560px) {
  .nav,
  .section,
  .hero__content {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    font-size: 0.96rem;
  }

  .language-toggle {
    margin-left: auto;
  }

  .button {
    width: 100%;
  }

  .page-hero,
  .story-section,
  .auth-layout,
  .page-cta {
    width: min(100% - 28px, 1180px);
  }

  .page-hero h1,
  .auth-copy h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__image {
    object-position: 58% center;
  }

  .hero__content {
    margin-top: 54px;
  }

  .hero__copy {
    font-size: 1rem;
  }

  .feature-card,
  .income-card,
  .step {
    min-height: auto;
    padding: 22px;
  }
}
