:root {
  color-scheme: light;
  --paper: #f4efe5;
  --paper-deep: #e4dac9;
  --ink: #292720;
  --muted: #716a5e;
  --stamp: #d53a20;
  --gold: #c58b2d;
  --green: #2f5940;
  --green-dark: #183527;
  --line: rgba(61, 52, 39, 0.18);
  --shadow: 0 28px 80px rgba(51, 42, 27, 0.22);
  --serif: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", serif;
  --sans: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 58, 32, 0.11), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(47, 89, 64, 0.16), transparent 26rem),
    linear-gradient(145deg, #fbf7ef 0%, var(--paper) 45%, #e9dfce 100%);
  font-family: var(--sans);
}

body.is-en .ja,
body:not(.is-en) .en {
  display: none;
}

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

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(rgba(92, 76, 50, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 76, 50, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(61, 52, 39, 0.1);
  background: rgba(249, 245, 236, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(97, 55, 27, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.nav-links a {
  transition: color 160ms ease, transform 160ms ease;
}

.nav-links a:hover {
  color: var(--stamp);
  transform: translateY(-1px);
}

.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.75);
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.lang-toggle:hover {
  border-color: rgba(213, 58, 32, 0.38);
  transform: translateY(-1px);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: clamp(44px, 7vw, 96px) clamp(20px, 6vw, 92px) clamp(52px, 8vw, 116px);
}

.hero::before {
  position: absolute;
  inset: 10% auto auto -70px;
  width: 210px;
  height: 210px;
  border: 24px solid rgba(213, 58, 32, 0.14);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.13;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  letter-spacing: 0.05em;
}

.lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  filter: drop-shadow(0 16px 28px rgba(34, 26, 17, 0.2));
  transition: transform 180ms ease, filter 180ms ease;
}

.app-store-badge:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 22px 36px rgba(34, 26, 17, 0.28));
}

.app-store-badge img {
  display: block;
  width: 180px;
  height: auto;
}

.ghost-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 22px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.52);
}

.note {
  margin-top: 22px;
  color: #8a5f1e;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}

.phone-frame {
  position: relative;
  width: min(420px, 82vw);
  overflow: hidden;
  border: 16px solid #15140f;
  border-radius: 54px;
  background: #15140f;
  box-shadow: var(--shadow);
  transform: rotate(2.2deg);
}

.phone-frame::before {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 2;
  width: 106px;
  height: 28px;
  border-radius: 999px;
  background: #0b0a08;
  content: "";
  transform: translateX(-50%);
}

.phone-frame img {
  width: 100%;
  border-radius: 36px;
}

.floating-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 118px;
  height: 154px;
  border: 1px solid rgba(66, 52, 33, 0.16);
  border-radius: 22px;
  color: var(--green);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 18px 40px rgba(69, 55, 35, 0.16);
  font-family: var(--serif);
  font-size: 38px;
}

.card-one {
  right: 8%;
  top: 11%;
  transform: rotate(8deg);
}

.card-two {
  left: 2%;
  bottom: 13%;
  transform: rotate(-10deg);
}

.steps,
.screenshots {
  padding: clamp(60px, 9vw, 126px) clamp(20px, 6vw, 92px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2,
.feature-band h2,
.download-panel h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: 0.05em;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.step-grid article {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 32px;
  background: rgba(255, 253, 248, 0.68);
  box-shadow: 0 20px 55px rgba(62, 50, 32, 0.1);
}

.step-grid article > span:first-child {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fffaf2;
  background: var(--gold);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.step-grid h3 {
  margin: 28px 0 10px;
  font-size: 28px;
}

.step-grid p,
.feature-band p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 32px;
  align-items: center;
  margin: 0 clamp(20px, 6vw, 92px);
  border-radius: 46px;
  padding: clamp(34px, 5vw, 66px);
  color: #fff8e9;
  background:
    radial-gradient(circle at 80% 20%, rgba(205, 139, 45, 0.34), transparent 22rem),
    linear-gradient(135deg, var(--green-dark), var(--green));
  box-shadow: var(--shadow);
}

.feature-band p {
  max-width: 760px;
  margin-top: 20px;
  color: rgba(255, 248, 233, 0.82);
}

.feature-band img {
  width: 190px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transform: rotate(3deg);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 30px);
  max-width: 1180px;
  margin: 0 auto;
}

figure {
  margin: 0;
}

.screenshot-grid figure {
  display: grid;
  gap: 16px;
  align-content: start;
}

.screenshot-grid img {
  width: 100%;
  border: 10px solid #181711;
  border-radius: 34px;
  background: #181711;
  box-shadow: 0 24px 62px rgba(62, 50, 32, 0.2);
}

figcaption {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  text-align: center;
}

.download-panel {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin: 0 clamp(20px, 6vw, 92px) clamp(56px, 8vw, 96px);
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: clamp(30px, 4vw, 54px);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 24px 70px rgba(62, 50, 32, 0.13);
}

.app-store-badge.compact {
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 6vw, 92px) 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.step-grid article.reveal:hover,
.screenshot-grid figure.reveal:hover {
  transform: translateY(-4px);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    min-height: auto;
  }

  .step-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .feature-band,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .feature-band img {
    width: 132px;
  }

  .download-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-links a {
    display: none;
  }

  .hero-actions,
  .app-store-badge,
  .ghost-link {
    width: 100%;
  }

  .app-store-badge,
  .ghost-link {
    justify-content: center;
  }

  .floating-card {
    display: none;
  }

  .phone-frame {
    width: min(360px, 92vw);
    border-width: 12px;
    border-radius: 42px;
    transform: none;
  }

  .step-grid article {
    min-height: auto;
  }
}
