@charset "UTF-8";

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: #1f2b46;
  background: #edf2f6;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
select,
textarea,
button {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(100%, 980px);
}

/* =========================
   Header
========================= */
.site-header {
  padding: 18px 0 8px;
}

.header-inner {
  display: flex;
  align-items: center;
}

.site-logo img {
  width: 220px;
}

/* =========================
   Hero
========================= */
.diagnosis-hero {
  padding: 26px 0 24px;
  text-align: center;
}

.page-title {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
}

.page-lead {
  margin: 0 0 14px;
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 700;
  color: #202020;
}

.page-subtext {
  margin: 0;
  font-size: 0.98rem;
  color: #555;
}

/* =========================
   Form Card
========================= */
.diagnosis-form-section {
  padding: 10px 0 44px;
}

.form-card {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 18px;
  padding: 40px 42px 34px;
  box-shadow:
    0 10px 24px rgba(19, 37, 66, 0.05),
    0 2px 6px rgba(19, 37, 66, 0.04);
}

.diagnosis-form {
  width: 100%;
}

/* =========================
   Basic Fields
========================= */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 26px;
  margin-bottom: 30px;
}

.form-group label,
.consult-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #2a2f39;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  border: 2px solid #cfd6df;
  border-radius: 16px;
  background: #fff;
  color: #1f2b46;
  padding: 14px 16px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  height: 56px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2c8eea;
  box-shadow: 0 0 0 4px rgba(44, 142, 234, 0.12);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9aa7b6 50%),
    linear-gradient(135deg, #9aa7b6 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 24px,
    calc(100% - 14px) 24px;
  background-size:
    8px 8px,
    8px 8px;
  background-repeat: no-repeat;
}

.field-note {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #7a8493;
}

/* =========================
   Question Sections
========================= */
.question-section {
  margin-bottom: 22px;
}

.question-heading {
  margin: 0 0 12px;
  padding: 11px 16px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  color: #233147;
  background: #e8f1fa;
  border-left: 5px solid #1f8ce6;
}

.question-row {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 20px;
  align-items: center;
  padding: 8px 0;
}

.question-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #1f2633;
  font-weight: 600;
}

/* =========================
   Score Radios
========================= */
.score-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.score-group label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.score-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.score-group span {
  width: 28px;
  height: 28px;
  border: 2px solid #b7c3d0;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

.score-group input[type="radio"]:checked + span {
  border-color: #1f8ce6;
  background: #1f8ce6;
  box-shadow: 0 0 0 3px rgba(31, 140, 230, 0.15);
}

.score-group input[type="radio"]:checked + span::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 50%;
}

/* =========================
   Textarea / consult
========================= */
.textarea-group {
  margin-top: 12px;
  margin-bottom: 18px;
}

.consult-section {
  margin-top: 18px;
  margin-bottom: 28px;
}

.consult-options {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 30px;
}

.consult-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.consult-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consult-radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #b7c3d0;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}

.consult-option input[type="radio"]:checked + .consult-radio {
  border-color: #1f8ce6;
}

.consult-option input[type="radio"]:checked + .consult-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #1f8ce6;
}

.consult-text {
  font-size: 1rem;
  font-weight: 600;
  color: #243249;
}

/* =========================
   Submit
========================= */
.submit-area {
  text-align: center;
  margin-top: 24px;
}

.submit-button {
  min-width: 430px;
  max-width: 100%;
  height: 68px;
  border: none;
  border-radius: 999px;
  padding: 0 32px;
  background: linear-gradient(180deg, #2d95ef 0%, #0d7cde 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 12px 22px rgba(16, 126, 222, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow:
    0 16px 28px rgba(16, 126, 222, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.submit-note {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #677488;
}

/* =========================
   Footer
========================= */
.site-footer {
  margin-top: 36px;
  background: #071f4a;
  color: #ffffff;
  padding: 56px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.footer-left {
  max-width: 600px;
}

.footer-catch {
  margin: 0 0 34px;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.3;
  font-weight: 800;
  color: #f5f8ff;
}

.footer-catch span {
  color: #2f8fff;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.footer-nav a {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.95;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-right {
  flex: 0 0 420px;
  display: flex;
  justify-content: flex-end;
}

.footer-cta {
  width: 100%;
  max-width: 420px;
  min-height: 86px;
  padding: 20px 28px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2f8fff 0%, #247be0 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.footer-cta-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #116fcd;
  position: relative;
  flex-shrink: 0;
}

.footer-cta-dot::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #fff;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: right;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
  .question-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .score-group {
    justify-content: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-right {
    flex: 1 1 auto;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100%, calc(100% - 20px));
  }

  .site-logo img {
    width: 180px;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .page-lead br {
    display: none;
  }

  .form-card {
    padding: 24px 18px 24px;
    border-radius: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .question-row {
    padding: 12px 0;
  }

  .question-text {
    font-size: 0.94rem;
  }

  .score-group {
    gap: 8px;
    justify-content: space-between;
  }

  .score-group span {
    width: 24px;
    height: 24px;
  }

  .submit-button {
    min-width: auto;
    width: 100%;
    font-size: 1.15rem;
    height: 60px;
  }

  .consult-options {
    flex-direction: column;
    gap: 14px;
  }

  .footer-catch {
    font-size: 2.2rem;
  }

  .footer-cta {
    min-height: 72px;
    padding: 18px 20px;
  }

  .footer-bottom {
    text-align: left;
  }
}
