:root {
  --bg: #f7efe8;
  --surface: #fffaf6;
  --surface-strong: #ffffff;
  --surface-soft: #fff4ed;
  --text: #3f2d25;
  --muted: #726055;
  --line: #e6d3c5;
  --line-strong: #d7c0ad;
  --accent: #82533b;
  --accent-soft: #f1dfd0;
  --line-green: #06c755;
  --line-green-deep: #00a848;
  --shadow-soft: 0 18px 38px rgba(109, 72, 47, 0.12);
  --shadow-strong: 0 24px 54px rgba(109, 72, 47, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --font-body: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-heading: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --max-width: 1120px;
  --fixed-offset: calc(env(safe-area-inset-bottom, 0px) + 18px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
}

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

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

.page-shell {
  overflow: clip;
}

.section {
  padding: 20px 16px;
}

.section-soft {
  background: rgba(255, 255, 255, 0.45);
}

.section-story {
  padding-top: 12px;
}

.section-cta {
  padding-bottom: 120px;
}

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

.hero {
  padding-top: 20px;
}

.hero-inner,
.story-shell,
.cta-shell {
  display: grid;
  gap: 20px;
}

.hero-copy,
.story-copy,
.cta-copy {
  display: grid;
  gap: 16px;
}

.hero-copy {
  background: var(--surface-strong);
  border: 1px solid rgba(230, 211, 197, 0.88);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
}

.eyebrow,
.kicker,
.soft-card-label,
.value-tag {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.kicker {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(34px, 10vw, 58px);
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(28px, 7vw, 44px);
  letter-spacing: 0.03em;
}

h3 {
  font-size: 22px;
}

.lead,
.section-copy,
.soft-card p,
.value-card p,
.cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(130, 83, 59, 0.2);
  outline-offset: 2px;
}

.button-line {
  padding: 0 24px;
  color: #ffffff;
  background: var(--line-green);
  box-shadow: 0 12px 22px rgba(6, 199, 85, 0.22);
}

.button-line:hover,
.button-line:focus-visible {
  background: var(--line-green-deep);
  box-shadow: 0 16px 30px rgba(6, 199, 85, 0.24);
}

.button-small {
  min-height: 46px;
  padding: 0 18px;
  font-size: 14px;
}

.button-large {
  min-height: 58px;
  width: min(100%, 340px);
  font-size: 16px;
}

.button-ghost {
  padding: 0 16px;
  min-height: 48px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
}

.hero-visual-frame,
.story-banner,
.cta-banner {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(230, 211, 197, 0.78);
  background: var(--surface-strong);
}

.hero-visual-frame {
  aspect-ratio: 4 / 5;
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 84% center;
  transform: scale(1.05);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.stack-cards {
  display: grid;
  gap: 14px;
}

.soft-card,
.value-card,
.story-copy,
.cta-copy {
  background: var(--surface-strong);
  border: 1px solid rgba(230, 211, 197, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.soft-card {
  padding: 20px 18px;
}

.soft-card-label {
  color: #bc7a5b;
}

.value-grid {
  display: grid;
  gap: 14px;
}

.value-card {
  padding: 22px 18px;
}

.value-tag {
  color: #9b6a4d;
  margin-bottom: 10px;
}

.value-card p:last-child {
  margin-top: 10px;
}

.story-shell,
.cta-shell {
  gap: 16px;
}

.story-copy,
.cta-copy {
  padding: 22px 18px;
}

.story-checks,
.cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-checks span,
.cta-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.cta-shell {
  background: rgba(255, 255, 255, 0.42);
  padding: 18px;
  border-radius: calc(var(--radius-xl) + 4px);
  border: 1px solid rgba(230, 211, 197, 0.7);
}

.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--fixed-offset);
  padding: 0 14px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 20;
}

body.has-fixed-cta .fixed-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fixed-cta-inner {
  width: min(100%, 720px);
  margin: 0 auto;
  background: rgba(255, 250, 246, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(230, 211, 197, 0.94);
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 44px rgba(63, 45, 37, 0.16);
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 10px;
}

.fixed-cta .button {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .section {
    padding: 28px 24px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
    align-items: center;
    gap: 24px;
  }

  .hero-copy {
    padding: 32px;
  }

  .hero-visual-frame {
    aspect-ratio: 4 / 4.4;
  }

  .stack-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-shell,
  .cta-shell {
    grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
    align-items: center;
    gap: 24px;
  }

  .story-copy,
  .cta-copy {
    padding: 28px;
  }
}

@media (min-width: 1080px) {
  .section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-copy {
    padding: 40px;
  }
}

@media (max-width: 420px) {
  .fixed-cta-inner {
    grid-template-columns: 1fr;
  }

  .button-large {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
