:root {
  --ink: #1a2a2e;
  --ink-soft: #3d5258;
  --paper: #f3f7f5;
  --mist: #dce8e4;
  --teal: #0d7377;
  --teal-deep: #095456;
  --lime: #9bc53d;
  --sand: #e8f0ec;
  --line: rgba(26, 42, 46, 0.12);
  --shadow: 0 18px 40px rgba(9, 84, 86, 0.12);
  --radius: 18px;
  --font-display: "Zen Maru Gothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", 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(1200px 600px at 10% -10%, #c5e4de 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 20%, #d9e8c8 0%, transparent 50%),
    linear-gradient(180deg, #eef5f2 0%, var(--paper) 40%, #e5efe9 100%);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 245, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 115, 119, 0.28);
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid rgba(13, 115, 119, 0.35);
}

.btn-option {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.95rem 1.1rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.btn-option:hover {
  border-color: var(--teal);
  background: #fff;
  transform: translateX(4px);
}

.btn-option.selected {
  border-color: var(--teal);
  background: #dff1ef;
}

.btn-option.correct {
  border-color: #3d8b4a;
  background: #e5f5e8;
}

.btn-option.wrong {
  border-color: #b85c4a;
  background: #f8e9e6;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: end;
  min-height: calc(100vh - 70px);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero-copy p {
  margin: 0 0 1.6rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 34rem;
}

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

.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(13, 115, 119, 0.92), rgba(9, 84, 86, 0.75)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 12px,
      rgba(255, 255, 255, 0.04) 12px,
      rgba(255, 255, 255, 0.04) 13px
    );
  box-shadow: var(--shadow);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: rise-in 0.9s ease both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% 20%;
  height: 70%;
  background: radial-gradient(circle, rgba(155, 197, 61, 0.45), transparent 65%);
  pointer-events: none;
}

.hero-stat {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.hero-stat span {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.bike-path {
  height: 70px;
  margin-top: 1.5rem;
}

.bike-path svg {
  width: 100%;
  height: 100%;
}

.path-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 2.5;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: draw-path 2.4s ease forwards 0.4s;
}

.wheel {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  transform-origin: center;
  animation: spin-soft 6s linear infinite;
}

section {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

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

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  animation: fade-up 0.7s ease both;
}

.value:nth-child(2) {
  animation-delay: 0.1s;
}

.value:nth-child(3) {
  animation-delay: 0.2s;
}

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

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

.quiz-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.quiz-nav a {
  text-decoration: none;
  text-align: center;
  padding: 0.7rem 0.4rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quiz-nav a:hover,
.quiz-nav a.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.quiz-stack {
  display: grid;
  gap: 1.25rem;
}

.quiz-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: 0 8px 28px rgba(26, 42, 46, 0.06);
  scroll-margin-top: 90px;
}

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 115, 119, 0.12);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.75rem;
}

.quiz-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.quiz-card > p.lead {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

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

.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  transition: width 0.35s ease;
}

.q-block {
  display: none;
}

.q-block.active {
  display: block;
  animation: fade-up 0.35s ease both;
}

.q-block h4 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.options {
  display: grid;
  gap: 0.65rem;
}

.quiz-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
  align-items: center;
}

.result {
  display: none;
  margin-top: 0.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f5f3, #f3f8e8);
  border: 1px solid rgba(13, 115, 119, 0.18);
}

.result.show {
  display: block;
  animation: fade-up 0.4s ease both;
}

.result strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.trust {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.trust-panel,
.cta-panel {
  border-radius: 22px;
  padding: 1.8rem 1.6rem;
}

.trust-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.trust-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--lime);
}

.cta-panel {
  background: var(--ink);
  color: #eef5f2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.cta-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.35;
}

.cta-panel p {
  margin: 0;
  opacity: 0.85;
}

.cta-panel .btn-primary {
  align-self: flex-start;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spin-soft {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero,
  .values,
  .trust,
  .quiz-nav {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

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

  .nav-links {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
