* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Sans", "Meiryo", sans-serif;
  color: #26302a;
  background:
    radial-gradient(circle at 15% 10%, rgba(186, 218, 178, 0.32), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 224, 170, 0.35), transparent 28%),
    #f7f4ec;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 56px;
  background: rgba(247, 244, 236, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(90, 82, 62, 0.14);
}

.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 28px;
  color: #746f66;
  font-size: 14px;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #5f946d;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 80px 8%;
}

.hero-simple {
  justify-content: center;
  text-align: center;
}

.hero-text {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #6aa074;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.12;
  letter-spacing: 0.03em;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.25;
}

h3 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.lead {
  max-width: 620px;
  margin: 0 auto 34px;
  color: #746f66;
  font-size: 17px;
}

.section {
  min-height: calc(100vh - 72px);
  padding: 72px 8% 88px;
}

.section-title {
  max-width: 760px;
  margin-bottom: 36px;
}

.center-title {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title p:not(.eyebrow) {
  margin: 0;
  color: #746f66;
}

.primary-button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid #6fa47a;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  background: #6fa47a;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(83, 130, 92, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.primary-button:hover,
button:hover {
  background: #568760;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(83, 130, 92, 0.23);
}

.secondary-button {
  color: #5f946d;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.secondary-button:hover {
  color: #fff;
  background: #6fa47a;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.center-buttons {
  justify-content: center;
}

/* select page */

.select-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.selector {
  display: grid;
  gap: 18px;
}

.selector-full {
  width: min(1100px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
}

fieldset {
  margin: 0;
  padding: 24px 24px 20px;
  border: 1px solid rgba(126, 112, 82, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(82, 73, 53, 0.1);
  backdrop-filter: blur(8px);
}

legend {
  padding: 0 8px;
  font-weight: 800;
  color: #26302a;
}

label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  color: #5e5a53;
  cursor: pointer;
}

input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: #6fa47a;
  cursor: pointer;
}

.selector-full .button-row {
  grid-column: 1 / -1;
  margin-top: 16px;
}

/* result / random page */

.random-page,
.result-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.random-layout {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.result-card {
  width: min(1100px, 100%);
  margin: 0 auto 26px;
  padding: 38px;
  border: 1px solid rgba(126, 112, 82, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(82, 73, 53, 0.12);
  backdrop-filter: blur(8px);
}

.result-card-large {
  width: min(1200px, 100%);
}

.card-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #5f946d;
  font-size: 12px;
  font-weight: 800;
  background: #e8f2df;
}

.result-card p {
  margin: 0;
  color: #746f66;
}

.result-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 30px 0 0;
}

.result-card dl div {
  padding: 16px 18px;
  border-radius: 16px;
  background: #e8f2df;
}

dt {
  color: #746f66;
  font-size: 12px;
  font-weight: 700;
}

dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.feedback {
  width: min(1200px, 100%);
  margin: 26px auto 0;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid rgba(126, 112, 82, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(82, 73, 53, 0.1);
  backdrop-filter: blur(8px);
}

.feedback p {
  width: 100%;
  margin: 0 0 2px;
  font-weight: 800;
}

.feedback button {
  min-height: 42px;
  color: #5f946d;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.feedback button:hover,
.feedback button.is-active {
  color: #fff;
  background: #6fa47a;
}

.result-page > .button-row {
  width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* footer */

.footer {
  padding: 34px 8%;
  color: #746f66;
  text-align: center;
  border-top: 1px solid rgba(90, 82, 62, 0.14);
}

.footer p {
  margin: 0;
}

/* responsive */

@media (max-width: 1100px) {
  .selector-full {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .site-header {
    height: auto;
    padding: 16px 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
  }

  .hero,
  .section {
    min-height: auto;
    padding: 58px 24px 72px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 30px;
  }

  .selector-full {
    grid-template-columns: 1fr;
  }

  .result-card dl {
    grid-template-columns: 1fr;
  }

  .primary-button,
  button {
    width: 100%;
  }

  .button-row {
    width: 100%;
  }

  .feedback button {
    width: 100%;
  }
}
.hero .button-row {
  justify-content: center;
  align-items: center;
  margin-top: 34px;
  gap: 18px;
}

.hero .primary-button {
  min-width: 150px;
  height: 50px;
  padding: 0 26px;
}

.hero .lead {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (max-width: 780px) {
  .hero .button-row {
    flex-direction: column;
    align-items: center;
  }

  .hero .primary-button {
    width: min(280px, 100%);
  }
}
.primary-button,
button {
  color: #5f946d;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #6fa47a;
  box-shadow: none;
}

.primary-button:hover,
button:hover {
  color: #fff;
  background: #6fa47a;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(83, 130, 92, 0.2);
}

.hero .primary-button {
  color: #5f946d;
  background: rgba(255, 255, 255, 0.65);
}

.hero .primary-button:hover {
  color: #fff;
  background: #6fa47a;
}

.center-buttons .primary-button,
.center-buttons button {
  color: #5f946d;
  background: rgba(255, 255, 255, 0.65);
}

.center-buttons .primary-button:hover,
.center-buttons button:hover {
  color: #fff;
  background: #6fa47a;
}

.result-card p {
  display: none;
}

.card-label {
  display: none;
}

.feedback-message {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: #5f946d;
  font-size: 14px;
  font-weight: 700;
}
.feedback-message {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: #5f946d;
  font-size: 14px;
  font-weight: 700;
}

body {
  animation: pageFadeIn 0.99s ease both;
}

body.page-leave {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body {
  animation: pageIn 0.45s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card {
  animation: cardIn 0.5s ease both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

button:active,
.primary-button:active {
  transform: scale(0.96);
}