/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1A3A5C;
  --navy-light: #2A5080;
  --accent: #3A8FD4;
  --green:  #2E9E6B;
  --red:    #C0392B;
  --text:   #222;
  --muted:  #666;
  --bg:     #F6F8FA;
  --white:  #FFFFFF;
  --border: #DDE3EA;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.site-header {
  background: var(--navy);
  padding: 14px 20px;
  text-align: center;
}
.site-header .logo {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.site-header .logo span {
  color: #7EC8F0;
}

/* ===== Progress Bar ===== */
.progress-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}
.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--border);
}
.step.active:not(:last-child)::after,
.step.done:not(:last-child)::after {
  background: var(--accent);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
}
.step.active .step-num {
  background: var(--accent);
  color: var(--white);
}
.step.done .step-num {
  background: var(--green);
  color: var(--white);
}
.step-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.step.active .step-label { color: var(--accent); font-weight: 600; }
.step.done .step-label { color: var(--green); }

/* ===== Container ===== */
.container {
  max-width: 620px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ===== Page Title ===== */
.page-title {
  text-align: center;
  margin-bottom: 28px;
}
.page-title h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}
.page-title p {
  color: var(--muted);
  font-size: 16px;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #EAF4FD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* ===== Benefit Card ===== */
.benefit-card {
  background: linear-gradient(135deg, #EAF4FD 0%, #F0F7FF 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.benefit-card .tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

/* ===== Reason Buttons ===== */
.reason-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.reason-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 18px;
  cursor: pointer;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
  width: 100%;
}
.reason-btn:hover, .reason-btn.active {
  border-color: var(--accent);
  background: #EAF4FD;
  color: var(--navy);
}
.reason-btn .reason-icon { font-size: 22px; }

/* ===== Content Panel ===== */
.content-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.content-panel.show { display: block; }

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

/* ===== Info Box ===== */
.info-box {
  background: #F0F7FF;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 15px 17px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.8;
}
.info-box h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.success-box {
  background: #F0FBF5;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 15px 17px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.8;
}
.success-box h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}

.warn-box {
  background: #FFF8EC;
  border-left: 4px solid #F39C12;
  border-radius: 0 8px 8px 0;
  padding: 15px 17px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.8;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 24px;
  margin: 12px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.8;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.timeline-item.current::before { background: var(--accent); }
.timeline-item.highlight::before { background: var(--green); }
.timeline-item strong { color: var(--navy); }

/* ===== Consult Box ===== */
.consult-box {
  background: linear-gradient(135deg, #F5F0FF 0%, #EEF2FF 100%);
  border: 1.5px solid #A78BFA;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 16px;
}
.consult-box h4 {
  font-size: 17px;
  font-weight: 700;
  color: #5B21B6;
  margin-bottom: 8px;
}
.consult-box p { font-size: 16px; color: var(--muted); line-height: 1.8; }

/* ===== Buttons ===== */
.btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-light); color: var(--white); text-decoration: none; }
.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: #247A54; color: var(--white); text-decoration: none; }
.btn-outline {
  background: var(--white);
  color: var(--muted);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: #aaa; color: var(--text); text-decoration: none; }
.btn-danger {
  background: var(--white);
  color: var(--red);
  border: 2px solid #EAB0AD;
  font-size: 15px;
  padding: 12px 20px;
}
.btn-danger:hover { background: #FDF2F2; text-decoration: none; }

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

/* ===== Form ===== */
.form-group {
  margin-bottom: 22px;
}
.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-group label .required {
  color: var(--red);
  font-size: 13px;
  margin-left: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group .hint { font-size: 14px; color: var(--muted); margin-top: 5px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}
.radio-label:hover { border-color: var(--accent); background: #EAF4FD; }
.radio-label input[type=radio] { accent-color: var(--accent); width: 17px; height: 17px; }
.radio-label.checked { border-color: var(--accent); background: #EAF4FD; }

.datetime-fields { display: none; }
.datetime-fields.show { display: block; }

/* ===== Done Page ===== */
.done-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #F0FBF5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
}
.done-page { text-align: center; padding: 40px 0; }
.done-page h1 { font-size: 24px; color: var(--navy); margin-bottom: 12px; }
.done-page p { color: var(--muted); font-size: 16px; line-height: 1.9; }

/* ===== Divider ===== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 24px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .container { padding: 18px 14px 48px; }
  .page-title h1 { font-size: 22px; }
  .form-row { flex-direction: column; gap: 0; }
  body { font-size: 16px; }
}
