:root {
  --ink: #14212b;
  --muted: #4a5c6a;
  --paper: #f3f7f4;
  --teal: #0d7377;
  --teal-deep: #095456;
  --lime: #d4e822;
  --lime-soft: #eef6a8;
  --sky: #c8e4e0;
  --asphalt: #1e2a33;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 33, 43, 0.12);
  --radius: 4px;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 244, 0.88);
  border-bottom: 1px solid rgba(13, 115, 119, 0.12);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.logo-mark::before { left: 5px; top: 12px; }
.logo-mark::after { right: 5px; top: 12px; }

.logo-mark span {
  width: 14px;
  height: 2px;
  background: var(--lime);
  transform: rotate(-18deg);
  margin-top: -4px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  font-family: inherit;
  cursor: pointer;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(13, 115, 119, 0.92) 0%, rgba(9, 84, 86, 0.78) 42%, rgba(30, 42, 51, 0.55) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, #7ec8c3 0%, transparent 55%),
    linear-gradient(180deg, #0d7377 0%, #1e2a33 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 28px,
      rgba(255, 255, 255, 0.03) 28px,
      rgba(255, 255, 255, 0.03) 29px
    );
  animation: drift 28s linear infinite;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-60px); }
}

.hero-wheel {
  position: absolute;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  border: 3px solid rgba(212, 232, 34, 0.35);
  border-radius: 50%;
  right: -4%;
  top: 12%;
  z-index: 1;
  animation: spin-slow 40s linear infinite;
}

.hero-wheel::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.hero-wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, rgba(212, 232, 34, 0.25) 49%, rgba(212, 232, 34, 0.25) 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.15) 49%, rgba(255, 255, 255, 0.15) 51%, transparent 51%),
    linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.1) 49%, rgba(255, 255, 255, 0.1) 51%, transparent 51%);
  border-radius: 50%;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.hero .container {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  animation: rise 0.9s ease-out both;
}

.brand-hero span {
  color: var(--lime);
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  opacity: 0.92;
  margin-bottom: 2rem;
  animation: rise 0.9s 0.15s ease-out both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s 0.3s ease-out both;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(212, 232, 34, 0.35);
}

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

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

/* —— Sections —— */
section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

/* —— Value —— */
.values {
  background: var(--white);
}

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

.value-item {
  padding-top: 1.25rem;
  border-top: 3px solid var(--teal);
}

.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.value-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--lime);
  background: var(--teal);
  width: fit-content;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

/* —— Quiz —— */
.quiz-section {
  background:
    linear-gradient(180deg, var(--sky) 0%, var(--paper) 40%);
  position: relative;
}

.quiz-shell {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(13, 115, 119, 0.1);
}

.quiz-progress {
  height: 4px;
  background: var(--lime-soft);
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--teal);
  transition: width 0.4s ease;
}

.quiz-body {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

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

.option {
  text-align: left;
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1.5px solid rgba(13, 115, 119, 0.22);
  background: var(--paper);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.option:hover {
  border-color: var(--teal);
  background: var(--lime-soft);
  transform: translateX(4px);
}

.option.selected {
  border-color: var(--teal);
  background: var(--lime-soft);
  font-weight: 600;
}

.option.correct {
  border-color: var(--teal);
  background: #d5ebe9;
}

.option.wrong {
  border-color: #c45c4a;
  background: #fceceb;
  opacity: 0.85;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.quiz-feedback {
  min-height: 1.5rem;
  font-size: 0.92rem;
  color: var(--teal-deep);
  font-weight: 500;
}

.btn-next {
  background: var(--teal);
  color: var(--white);
  margin-left: auto;
}

.btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.quiz-start,
.quiz-result {
  text-align: center;
  padding: 1rem 0;
}

.quiz-start h3,
.quiz-result h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.quiz-start p,
.quiz-result p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.result-score {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-type {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.hidden {
  display: none !important;
}

/* —— How —— */
.how-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.how-item {
  position: relative;
  padding: 1.5rem 0 0;
}

.how-item::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--sky);
  display: block;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.how-item h3 {
  font-family: var(--font-display);
  margin-bottom: 0.4rem;
}

.how-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Trust —— */
.trust {
  background: var(--asphalt);
  color: var(--white);
  padding: 3.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--lime);
  margin-bottom: 0.25rem;
}

.trust-item span {
  font-size: 0.88rem;
  opacity: 0.8;
}

/* —— CTA —— */
.cta-band {
  padding: 5rem 0;
  background:
    linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--white);
  text-align: center;
}

.cta-band .section-title {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.75rem;
  max-width: 28rem;
  margin-inline: auto;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 1rem 4%;
    border-bottom: 1px solid rgba(13, 115, 119, 0.12);
    gap: 0.85rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .value-grid,
  .how-list {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 78vh;
    align-items: center;
    padding-top: 5rem;
  }

  .hero-wheel {
    opacity: 0.4;
    right: -20%;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}
