:root {
  --teal: #00909f;
  --teal-dark: #007584;
  --teal-light: #e6f4f5;
  --gray-bg: #eeeeee;
  --text: #1a1a1a;
  --radius: 5px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- header ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e2e2;
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
}

.logo-link {
  display: inline-block;
}

.logo {
  display: block;
  height: 26px;
  width: auto;
}

/* ---------- hero ---------- */
.hero {
  background: var(--teal);
  color: #ffffff;
  text-align: center;
  padding: 40px 20px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 700;
}

.hero__sub {
  font-size: 0.8em;
}

.hero__lead {
  margin: 0;
  font-size: 15px;
  opacity: 0.95;
}

/* ---------- layout ---------- */
.content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.panel {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  padding: 32px;
}

.panel__title {
  margin: 0 0 30px;
  font-size: 20px;
  font-weight: 700;
  border-left: 6px solid var(--teal);
  padding-left: 12px;
}

.panel__note {
  margin: 12px 0 24px;
  color: #555555;
  font-size: 14px;
}

/* ---------- form fields ---------- */
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.field-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e2e2e2;
}

.field-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.field-label {
  flex-shrink: 0;
  width: 120px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 14px;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}

.option-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  background: #ffffff;
  border: 2px solid var(--teal);
  border-radius: 999px;
  padding: 10px 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  width: 12em;
}

.option-btn:hover {
  background-color: var(--teal-light);
}

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

.option-btn:disabled {
  color: #b7b7b7;
  border-color: #d5d5d5;
  background: #f5f5f5;
  cursor: not-allowed;
}

.option-btn:disabled:hover {
  background-color: #f5f5f5;
}

.option-empty {
  margin: 0;
  padding-top: 10px;
  font-size: 13px;
  color: #999999;
}

/* ---------- judge button ---------- */
.judge-row {
  text-align: center;
  margin-top: 36px;
}

#judge-btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: var(--teal);
  border: none;
  border-radius: var(--radius);
  padding: 14px 56px;
  cursor: pointer;
  box-shadow: 0 0 5px 0 var(--teal);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

#judge-btn:hover:not(.is-inactive) {
  background: var(--teal-dark);
}

#judge-btn:active:not(.is-inactive) {
  transform: translateY(1px);
}

#judge-btn.is-inactive {
  background: #c6c6c6;
  box-shadow: none;
}

.judge-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: #d06060;
  min-height: 16px;
}

.disclaimer {
  margin: 20px 0 0;
  font-size: 12px;
  color: #999999;
}

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  background: var(--teal);
  color: #ffffff;
  font-size: 10px;
  padding: 15px 0;
}

.site-footer p {
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .hero {
    padding: 32px 16px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .panel {
    padding: 0;
    border: none;
  }

  .field-row {
    flex-direction: column;
    gap: 8px;
  }

  .field-label {
    width: auto;
    padding-top: 0;
  }

  .option-group {
    margin: 0 auto;
    justify-content: center;
  }

  .option-btn {
    font-size: 12px;
  }
}
