:root {
  --ink: #1c2b26;
  --ink-soft: #3d534a;
  --paper: #f3f7f4;
  --mist: #e4efe9;
  --teal: #1a5c4e;
  --teal-deep: #0f3d34;
  --leaf: #3d8f78;
  --accent: #e8792e;
  --accent-soft: #fff0e4;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 61, 52, 0.12);
  --radius: 4px;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(61, 143, 120, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(232, 121, 46, 0.1), transparent 50%),
    linear-gradient(180deg, #eef5f1 0%, var(--paper) 35%, #e8f0eb 100%);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 244, 0.85);
  border-bottom: 1px solid rgba(26, 92, 78, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #5cb89a, transparent 55%),
    var(--teal);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 28%;
  border: 2px solid rgba(255, 240, 228, 0.9);
  border-radius: 50%;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav a:hover {
  color: var(--teal);
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, #0f3d34 0%, #1a5c4e 42%, #2a7a66 78%, #3d8f78 100%);
}

.hero-glow {
  position: absolute;
  width: 55%;
  height: 70%;
  right: -8%;
  top: -10%;
  background: radial-gradient(circle, rgba(255, 158, 67, 0.28), transparent 68%);
  animation: drift 12s ease-in-out infinite alternate;
}

.hero-path {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 42%;
  color: rgba(15, 61, 52, 0.35);
  animation: rise 1.2s ease-out both;
}

.hero-bike {
  position: absolute;
  width: min(280px, 42vw);
  right: 8%;
  bottom: 22%;
  color: rgba(243, 247, 244, 0.55);
  animation: pedal-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-content {
  padding: 7rem 0 5.5rem;
  animation: fade-up 0.9s ease-out both;
}

.brand-hero {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.45;
  max-width: 18em;
  font-weight: 500;
  opacity: 0.95;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 32em;
  font-size: 1.02rem;
  color: rgba(243, 247, 244, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(232, 121, 46, 0.35);
}

.btn-primary:hover {
  background: #d4681f;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-light {
  background: var(--white);
  color: var(--teal-deep);
  box-shadow: var(--shadow);
}

.btn-light:hover {
  background: var(--mist);
}

/* Strip */
.strip {
  background: var(--white);
  border-block: 1px solid rgba(26, 92, 78, 0.08);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.strip-grid strong {
  color: var(--teal);
  font-weight: 700;
}

/* About */
.about,
.trust {
  padding: 5rem 0 4rem;
}

.about h2,
.trust h2,
.quiz-panel h2,
.cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.35;
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.section-lead {
  margin: 0 0 2.5rem;
  max-width: 40em;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.pillars h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal-deep);
}

.pillars p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.pillars li {
  padding-top: 1rem;
  border-top: 3px solid var(--leaf);
  animation: fade-up 0.8s ease both;
}

.pillars li:nth-child(2) { animation-delay: 0.1s; }
.pillars li:nth-child(3) { animation-delay: 0.2s; }

/* Quiz */
.quiz-section {
  padding: 1rem 0 5rem;
}

.quiz-wrap {
  max-width: 720px;
}

.quiz-panel {
  background: var(--white);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  border: 1px solid rgba(26, 92, 78, 0.06);
  animation: fade-up 0.55s ease both;
}

.quiz-panel.hidden {
  display: none;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 700;
}

.quiz-meta {
  margin-bottom: 1.25rem;
}

#progress-label {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.progress {
  height: 6px;
  background: var(--mist);
  border-radius: 999px;
  overflow: hidden;
}

#progress-fill {
  display: block;
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--teal), var(--leaf));
  border-radius: inherit;
  transition: width 0.35s ease;
}

.choices {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.choice {
  text-align: left;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(26, 92, 78, 0.18);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.choice:hover:not(:disabled) {
  border-color: var(--teal);
  background: #e8f3ee;
  transform: translateX(3px);
}

.choice:disabled {
  cursor: default;
}

.choice.correct {
  border-color: var(--teal);
  background: #d8eee5;
}

.choice.wrong {
  border-color: #c45c3a;
  background: #fce8e2;
}

.result-score {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  color: var(--teal);
  margin: 0.25rem 0 0.75rem;
}

.result-tips {
  margin: 1.25rem 0 1.75rem;
  padding: 0 0 0 1.15rem;
  color: var(--ink-soft);
}

.result-tips li {
  margin-bottom: 0.4rem;
}

/* Trust steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(26, 92, 78, 0.12);
}

.steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1.2;
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* CTA */
.cta {
  padding: 0 0 5rem;
}

.cta-inner {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal) 55%, #2f7a66);
  color: var(--white);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  background: radial-gradient(circle, rgba(232, 121, 46, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-inner p {
  margin: 0 auto 1.5rem;
  max-width: 32em;
  color: rgba(255, 255, 255, 0.88);
}

.cta-inner h2 {
  position: relative;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.75rem;
  border-top: 1px solid rgba(26, 92, 78, 0.1);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-inner .logo-text {
  color: var(--ink);
}

.fine {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Motion */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pedal-in {
  from {
    opacity: 0;
    transform: translateX(40px) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes rise {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 6%) scale(1.06); }
}

@media (max-width: 800px) {
  .pillars,
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .strip-grid {
    text-align: left;
    gap: 0.35rem;
  }

  .hero {
    min-height: auto;
    align-items: center;
  }

  .hero-content {
    padding: 5.5rem 0 4rem;
  }

  .hero-bike {
    opacity: 0.35;
    bottom: 12%;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
