:root {
  --ink: #2d1f14;
  --brown: #5c4033;
  --brown-soft: #8a6a55;
  --paper: #fff8ea;
  --paper-deep: #f3dfbd;
  --sky: #7ed7f4;
  --mint: #c9ead7;
  --leaf: #4f8d61;
  --rose: #ef8f86;
  --line: rgba(92, 64, 51, 0.18);
  --shadow: 0 24px 70px rgba(62, 45, 32, 0.18);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.75;
  background: #fffdf7;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 42px);
  background: rgba(255, 253, 247, 0.84);
  border-bottom: 1px solid rgba(92, 64, 51, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brown);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(92, 64, 51, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.8vw, 28px);
  color: var(--brown);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding-top: 74px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 253, 247, 0.08), rgba(255, 253, 247, 0.2)), url("assets/bg_home.png");
  background-size: cover;
  background-position: center bottom;
  transform: scale(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.94) 0%, rgba(255, 253, 247, 0.74) 45%, rgba(255, 253, 247, 0.3) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100svh - 74px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 34px 0 54px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  color: var(--brown);
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  color: var(--brown);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  color: var(--brown);
  font-size: 20px;
  line-height: 1.35;
}

.lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: #3b2a1e;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-button {
  color: #fff;
  background: var(--brown);
  box-shadow: 0 12px 26px rgba(92, 64, 51, 0.22);
}

.secondary-button {
  color: var(--brown);
  background: rgba(255, 248, 234, 0.86);
  border: 1px solid rgba(92, 64, 51, 0.22);
}

.store-note {
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 800;
}

.hero-phone {
  justify-self: center;
  width: min(360px, 100%);
}

.phone-shell {
  overflow: hidden;
  padding: 10px;
  border-radius: 42px;
  background: #211813;
  box-shadow: var(--shadow);
}

.phone-shell img {
  width: 100%;
  border-radius: 32px;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top center;
}

.section {
  padding: clamp(72px, 10vw, 124px) 0;
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.two-col,
.privacy-layout,
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 7vw, 80px);
  align-items: center;
}

.section-text {
  color: #463226;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 650;
}

.intro {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.worries {
  background: #fffdf7;
}

.worry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.worry-item {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ea;
}

.worry-number {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--rose);
  font-weight: 900;
}

.worry-item p,
.feature-list p,
.caution p {
  color: #594235;
  font-weight: 620;
}

.feature-band {
  overflow: hidden;
  background: linear-gradient(180deg, #e9f8fb 0%, #fffdf7 100%);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(26px, 6vw, 74px);
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.feature-list div {
  padding: 18px 20px;
  border-left: 6px solid var(--paper-deep);
  background: rgba(255, 253, 247, 0.72);
}

.feature-list h3 {
  margin-bottom: 5px;
}

.screen-stack {
  position: relative;
  min-height: 690px;
}

.phone-small {
  position: absolute;
  width: min(330px, 48vw);
}

.phone-small.front {
  z-index: 2;
  left: 4%;
  top: 0;
}

.phone-small.back {
  right: 2%;
  top: 88px;
  opacity: 0.82;
}

.privacy {
  background: var(--paper);
}

.promise-panel {
  display: grid;
  gap: 14px;
}

.promise-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(92, 64, 51, 0.16);
  border-radius: 8px;
  background: #fffdf7;
}

.promise-panel span {
  color: var(--brown-soft);
  font-weight: 900;
}

.promise-panel strong {
  color: var(--brown);
  font-size: 24px;
}

.screens {
  background: #fffdf7;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 34px;
}

figure {
  margin: 0;
}

.screens-grid figure {
  padding: 8px;
  border-radius: 8px;
  background: #241914;
  box-shadow: 0 16px 44px rgba(62, 45, 32, 0.14);
}

.screens-grid img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top center;
}

figcaption {
  padding: 11px 4px 3px;
  color: #fff8ea;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.story {
  background: #f0f8ed;
}

.story-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fffdf7;
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.caution {
  padding: 64px 0;
  background: var(--brown);
  color: #fff8ea;
}

.caution h2,
.caution p {
  color: #fff8ea;
}

.caution h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 42px);
  color: var(--brown);
  background: #fffdf7;
  border-top: 1px solid var(--line);
}

.footer div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer span,
.footer a {
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 700;
}

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

  .hero-inner,
  .two-col,
  .feature-layout,
  .privacy-layout,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.94) 0%, rgba(255, 253, 247, 0.78) 55%, rgba(255, 253, 247, 0.42) 100%);
  }

  .hero-phone {
    width: min(330px, 76vw);
  }

  .worry-grid,
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screen-stack {
    min-height: 600px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px 16px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-inner {
    width: min(100% - 28px, var(--max));
    min-height: auto;
    padding-top: 44px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 28px, var(--max));
  }

  .worry-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .worry-item {
    min-height: auto;
  }

  .screen-stack {
    min-height: 520px;
  }

  .phone-small {
    width: 64vw;
  }

  .phone-small.front {
    left: 0;
  }

  .phone-small.back {
    right: 0;
    top: 78px;
  }

  .promise-panel div,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
