/* ==========================================================================
   Growb キャリア診断サイト - 共通スタイル
   ========================================================================== */
:root {
  --navy: #142850;
  --navy-light: #1b3a6b;
  --blue: #4f8ff7;
  --blue-light: #eaf2ff;
  --blue-soft: #d8e9ff;
  --accent-gold: #f5a623;
  --text-main: #2b3344;
  --text-sub: #6b7688;
  --bg-page: #f4f8ff;
  --white: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(27, 58, 107, 0.08);
  --font-main: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-main);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(20,40,80,0.05);
  position: sticky; top: 0; z-index: 50;
}
.site-header .logo-wrap { display: flex; align-items: center; gap: 10px; }
.site-header .logo-wrap img { height: 34px; width: auto; }
.site-header .tagline { font-size: 12px; color: var(--text-sub); }

/* ---------- Layout wrapper ---------- */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Landing Hero ---------- */
.hero {
  padding: 50px 20px 30px;
  text-align: center;
}
.hero .badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--navy-light);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(26px, 5vw, 38px);
  color: var(--navy);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.5;
}
.hero h1 span { color: var(--blue); }
.hero p.lead {
  color: var(--text-sub);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-illustration {
  max-width: 600px;
  margin: 0 auto 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  margin: 30px auto 36px;
  max-width: 760px;
}
.hero-features .feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  flex: 1 1 200px;
  text-align: left;
}
.hero-features .feature-card .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue-light);
  margin-bottom: 12px;
  position: relative;
}
.hero-features .feature-card .icon::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border: 2.5px solid var(--navy-light);
}
.icon-compass::before { border-radius: 50%; }
.icon-compass::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 2px; height: 10px; background: var(--blue);
  transform: translate(-50%, -50%) rotate(45deg);
}
.icon-target::before { border-radius: 50%; width: 18px; height: 18px; }
.icon-target::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  transform: translate(-50%, -50%);
}
.icon-route::before { border-radius: 4px; width: 16px; height: 16px; border-color: var(--blue); }
.icon-route::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 7px; height: 7px; border-radius: 50%; background: var(--navy-light);
  transform: translate(-50%, -50%);
}
.hero-features .feature-card h3 { font-size: 14px; margin: 0 0 6px; color: var(--navy); }
.hero-features .feature-card p { font-size: 12.5px; color: var(--text-sub); margin: 0; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--navy-light));
  color: #fff; font-weight: 700; font-size: 16px;
  padding: 16px 40px;
  border-radius: 50px; border: none;
  box-shadow: 0 8px 20px rgba(79,143,247,0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79,143,247,0.45); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white);
  color: var(--navy-light); font-weight: 700; font-size: 14px;
  padding: 12px 26px;
  border-radius: 50px; border: 2px solid var(--blue-soft);
}
.btn-secondary:hover { background: var(--blue-light); }
.hero-note { font-size: 12px; color: var(--text-sub); margin-top: 14px; }

/* ---------- Wizard ---------- */
.wizard-wrap { max-width: 720px; margin: 0 auto; padding: 30px 20px 80px; }
.progress-steps {
  display: flex; justify-content: space-between; margin-bottom: 28px;
  position: relative;
}
.progress-steps::before {
  content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 3px;
  background: var(--blue-soft); z-index: 0;
}
.progress-steps .step-item {
  position: relative; z-index: 1; text-align: center; flex: 1;
}
.progress-steps .step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue-soft);
  color: var(--text-sub); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  transition: all .2s ease;
}
.progress-steps .step-item.active .step-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.progress-steps .step-item.done .step-dot { background: var(--navy-light); border-color: var(--navy-light); color: #fff; }
.progress-steps .step-label { font-size: 11px; color: var(--text-sub); }
.progress-steps .step-item.active .step-label { color: var(--navy-light); font-weight: 700; }

.step-header { text-align: center; margin-bottom: 20px; }
.step-header h2 { color: var(--navy); font-size: 20px; margin: 0 0 4px; }
.step-header p { color: var(--text-sub); font-size: 13px; margin: 0; }

.question-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 26px 24px;
  margin-bottom: 18px;
}
.question-card .q-label {
  font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 14px;
  line-height: 1.6;
}
.question-card .q-required { color: #e85c5c; font-size: 11px; margin-left: 6px; font-weight: 700; }
.question-card .q-hint { font-size: 12px; color: var(--text-sub); margin-top: 8px; }

.option-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.option-pill {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid #e6edf8; border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: 14px; color: var(--text-main);
  transition: all .15s ease; background: var(--white);
}
.option-pill:hover { border-color: var(--blue-soft); background: var(--blue-light); }
.option-pill input { accent-color: var(--blue); width: 17px; height: 17px; flex-shrink: 0; }
.option-pill.checked { border-color: var(--blue); background: var(--blue-light); font-weight: 700; }

.radio2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .radio2-grid { grid-template-columns: 1fr; } }
.radio2-card {
  border: 2px solid #e6edf8; border-radius: var(--radius-md);
  padding: 18px 16px; text-align: center; font-size: 13.5px;
  transition: all .15s ease; cursor: pointer; background: var(--white);
}
.radio2-card:hover { border-color: var(--blue-soft); }
.radio2-card.checked { border-color: var(--blue); background: var(--blue-light); font-weight: 700; color: var(--navy); }
.radio2-card input { display: none; }

select.q-select, textarea.q-textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
  border: 2px solid #e6edf8; font-size: 14px; font-family: inherit;
  color: var(--text-main); background: var(--white);
}
select.q-select:focus, textarea.q-textarea:focus { outline: none; border-color: var(--blue); }
textarea.q-textarea { resize: vertical; min-height: 90px; }

.warning-box {
  display: none;
  background: #fff6e8; border: 1.5px solid #f5d38a; color: #9a6b12;
  border-radius: var(--radius-sm); padding: 10px 14px 10px 36px; font-size: 12.5px;
  margin-top: 10px; position: relative;
}
.warning-box.show { display: block; }
.warning-box::before {
  content: '!'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: #e8a93c; color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.wizard-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; gap: 12px;
}
.wizard-nav .btn-nav {
  padding: 13px 28px; border-radius: 50px; font-size: 14px; font-weight: 700; border: none;
}
.btn-nav.back { background: var(--white); color: var(--text-sub); border: 2px solid #e6edf8 !important; }
.btn-nav.next { background: linear-gradient(135deg, var(--blue), var(--navy-light)); color: #fff; box-shadow: 0 6px 16px rgba(79,143,247,.3); }
.btn-nav:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Loading overlay ---------- */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(20,40,80,0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; z-index: 999; text-align: center; padding: 20px;
}
.loading-overlay .spinner {
  width: 54px; height: 54px; border: 5px solid rgba(255,255,255,.25);
  border-top-color: var(--blue); border-radius: 50%;
  animation: spin 0.9s linear infinite; margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay h3 { font-size: 18px; margin: 0 0 8px; }
.loading-overlay p { font-size: 13px; color: #cdd8f0; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; padding: 30px 20px; font-size: 12px; color: var(--text-sub);
}

/* ---------- Personal info card ---------- */
.name-input-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
input.q-text {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
  border: 2px solid #e6edf8; font-size: 14px; font-family: inherit;
}
input.q-text:focus { outline: none; border-color: var(--blue); }
