/* ============================================================
   KIMINARA 適職診断 v7 — スタイル
   参考: キャリドラ適職診断（黄背景・白/黒角丸3択・ピンクQ）
   ============================================================ */

:root {
  --bg: #FFD84D;        /* ベース背景（黄） */
  --primary: #F4437A;   /* アクセント（ピンク） */
  --ink: #2A3B52;       /* テキスト・枠線（ネイビー） */
  --surface: #FFFFFF;   /* カード・ボタン下地 */
  --cream: #FFF6E3;     /* サブ背景 */
  --orange: #F2702D;    /* 補助アクセント */
  --selected: #111111;  /* 選択済みボタン */
  --font-display: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --shadow-btn: 0 4px 0 rgba(42, 59, 82, .9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #F1E4BC; /* PC余白（黄の落ち着いた同系） */
  line-height: 1.7;
  font-size: 18.5px;
  overflow-x: hidden;
}
.column {
  width: 100%; max-width: 480px; margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}
.hidden { display: none !important; }
img { width: 100%; height: auto; display: block; }

h1, h2, h3, button { font-family: var(--font-display); }

/* 部分ドットパターン */
.dotted {
  background-image: radial-gradient(rgba(255, 255, 255, .55) 20%, transparent 21%);
  background-size: 14px 14px;
}

/* ===== ボタン共通 ===== */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 58px; padding: 14px 18px;
  font-family: var(--font-display); font-size: 19.5px; font-weight: 800;
  color: #fff; background: var(--primary);
  border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: var(--shadow-btn);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease, opacity .15s ease;
}
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(42, 59, 82, .9); }
.btn .arr { font-size: .85em; }
.btn-pulse { animation: btnPulse 2s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.btn.gate { background: #C9CDD4; color: #fff; cursor: pointer; }
.btn.gate.ready { background: var(--primary); }
.btn.shake { animation: btnShake .3s ease; }
@keyframes btnShake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-5px); }
  60% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-pulse, .btn.shake { animation: none; }
}

/* ===== S1: トップ ===== */
.fv-img { display: block; }
.fv-body { padding: 18px 20px 24px; }
.fv-note { margin-top: 10px; font-size: 14px; color: rgba(42, 59, 82, .7); text-align: center; }

.svc-mini {
  margin-top: 22px; background: var(--surface);
  border: 2.5px solid var(--ink); border-radius: 16px;
  padding: 18px 16px;
}
.svc-lead { font-size: 15.5px; line-height: 1.8; text-wrap: pretty; }
.svc-lead strong { color: var(--primary); }
.svc-list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.svc-list li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 15.5px; font-weight: 700; line-height: 1.6;
}
.svc-list .ck {
  flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px;
  background: var(--primary); border: 2px solid var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.svc-badges { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.svc-badge {
  background: var(--cream); border: 2px solid var(--ink); border-radius: 12px;
  padding: 10px 4px; text-align: center;
}
.svc-badge .b-label { font-size: 11.5px; font-weight: 700; color: rgba(42, 59, 82, .75); line-height: 1.4; }
.svc-badge .b-num {
  font-family: var(--font-display); font-size: 23px; font-weight: 800;
  color: var(--ink); line-height: 1.25; margin-top: 2px;
}
.svc-badge .b-unit { font-size: 12.5px; font-weight: 800; }

/* KIMINARAについて（画像・全幅） */
.svc-img {
  width: calc(100% + 40px); max-width: none; margin: 22px -20px 0;
}

/* ===== ヘッダー帯（S2/S3/S5共通） ===== */
.band-img { display: block; }

/* ===== S2: 10問 ===== */
.progress-sticky {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  padding: 10px 20px 10px;
  border-bottom: 1.5px solid rgba(42, 59, 82, .2);
}
.progress-row {
  display: flex; align-items: center; gap: 12px;
}
.progress-track {
  flex: 1; height: 14px; background: var(--surface);
  border: 2px solid var(--ink); border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: var(--primary);
  border-radius: 999px;
  transition: width .4s cubic-bezier(.22, 1, .36, 1);
}
.progress-remain {
  flex: none; font-family: var(--font-display);
  font-size: 16px; font-weight: 800; color: var(--ink);
  min-width: 64px; text-align: right;
}

.quiz-list { padding: 8px 20px 0; }
.q-block {
  padding: 24px 0 26px;
  border-bottom: 1.5px solid rgba(42, 59, 82, .25);
}
.q-block:last-child { border-bottom: none; }
.q-block.flash { animation: blockFlash 1s ease; border-radius: 12px; }
@keyframes blockFlash {
  0% { background: rgba(244, 67, 122, .18); box-shadow: 0 0 0 3px rgba(244, 67, 122, .35); }
  100% { background: transparent; box-shadow: none; }
}
.q-head { display: flex; gap: 12px; align-items: flex-start; }
.q-mark {
  flex: none;
  font-family: var(--font-display); font-weight: 900; font-size: 39px;
  line-height: 1.1; color: var(--primary);
  letter-spacing: .01em;
  min-width: 58px;
}
.q-text {
  font-size: 19.5px; font-weight: 700; line-height: 1.6;
  padding-top: 4px; text-wrap: pretty;
}
.q-choices {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px;
  margin-top: 16px;
}
.choice-btn {
  min-height: 56px; padding: 8px 4px;
  font-family: var(--font-display); font-size: 16px; font-weight: 800; line-height: 1.3;
  color: var(--ink); background: var(--surface);
  border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease, background-color .12s ease, color .12s ease;
}
.choice-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(42, 59, 82, .9); }
.choice-btn.selected {
  background: var(--selected); color: #fff; border-color: var(--selected);
  transform: translateY(2px); box-shadow: 0 2px 0 rgba(17, 17, 17, .8);
}
.quiz-foot { padding: 26px 20px 28px; }

/* ===== S3: MBTI＋生年月日 ===== */
.input-body { padding: 22px 20px 28px; }
.input-title {
  font-size: 24px; font-weight: 800; line-height: 1.5; text-align: center;
  text-wrap: pretty;
}
.input-title .hl {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.input-sub { margin-top: 6px; font-size: 15px; text-align: center; color: rgba(42, 59, 82, .75); }

.input-card {
  background: var(--surface); border: 2.5px solid var(--ink); border-radius: 16px;
  padding: 18px 16px; margin-top: 18px;
}
.input-label {
  display: inline-block;
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  color: #fff; background: var(--ink); border-radius: 999px;
  padding: 2px 14px;
}
.mbti-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.mbti-btn {
  font-family: var(--font-display); font-size: 15.5px; font-weight: 800;
  letter-spacing: .04em;
  color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink); border-radius: 10px;
  padding: 10px 0; min-height: 44px;
  box-shadow: 0 3px 0 rgba(42, 59, 82, .35);
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, background-color .12s, color .12s;
}
.mbti-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(42, 59, 82, .35); }
.mbti-btn.selected {
  background: var(--primary); color: #fff;
  transform: translateY(2px); box-shadow: 0 1px 0 rgba(42, 59, 82, .9);
}
.mbti-na {
  width: 100%; margin-top: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  color: rgba(42, 59, 82, .8); background: var(--cream);
  border: 2px dashed rgba(42, 59, 82, .45); border-radius: 10px;
  padding: 11px 0; min-height: 44px; cursor: pointer;
}
.mbti-na.selected {
  background: var(--primary); color: #fff;
  border-style: solid; border-color: var(--ink);
}

.birth-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.birth-grid select {
  font-family: var(--font-body); font-size: 18.5px; font-weight: 700; color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: 10px;
  padding: 12px 8px; min-height: 50px; width: 100%;
  box-shadow: 0 3px 0 rgba(42, 59, 82, .35);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%232A3B52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.privacy-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 16px; font-size: 13px; line-height: 1.7;
  color: rgba(42, 59, 82, .8);
}
.privacy-note svg { flex: none; margin-top: 2px; }
.input-actions { margin-top: 20px; }
.back-link {
  display: block; margin: 18px auto 0; padding: 8px;
  font-family: var(--font-body); font-size: 15px; color: rgba(42, 59, 82, .7);
  background: none; border: none; text-decoration: underline; cursor: pointer;
}

/* ===== S4: 診断中 ===== */
.loading-wrap {
  min-height: 80vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px 32px;
  text-align: center;
}
.dotpulse { display: flex; gap: 10px; margin-bottom: 26px; height: 36px; align-items: flex-end; }
.dotpulse span {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--ink);
  animation: dotBounce .75s ease-in-out infinite;
}
.dotpulse span:nth-child(2) { background: var(--orange); animation-delay: .12s; }
.dotpulse span:nth-child(3) { background: var(--surface); animation-delay: .24s; }
@keyframes dotBounce {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-16px); }
}
.loading-phase {
  font-family: var(--font-display); font-size: 18.5px; font-weight: 800;
  min-height: 1.6em; opacity: 0;
}
.loading-phase.in { animation: phaseIn .4s ease forwards; }
@keyframes phaseIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.loading-track {
  width: 100%; max-width: 300px; height: 12px; margin-top: 18px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 999px;
  overflow: hidden;
}
.loading-bar {
  height: 100%; width: 0%;
  background: var(--primary); border-radius: 999px;
  transition: width .3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .dotpulse span { animation: none; }
  .loading-phase { opacity: 1; }
}

/* ===== S5: 結果 ===== */
.result-body { padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 22px; }
.card {
  background: var(--surface); border: 2.5px solid var(--ink); border-radius: 16px;
  padding: 20px 18px;
}
.result-hero { text-align: center; }
/* キャラ画像自体がカードデザインのため、枠なしでそのまま表示 */
.result-hero .type-img { width: 100%; height: auto; margin: 0 auto; }
.result-hero .eyebrow {
  display: inline-block; margin-top: 8px;
  font-size: 15px; font-weight: 700; color: rgba(42, 59, 82, .7);
}
.result-hero .type-name {
  font-size: 27.5px; font-weight: 900; line-height: 1.4; margin-top: 2px;
}
.result-hero .type-catch {
  margin-top: 8px; font-size: 16.5px; font-weight: 800; color: var(--primary);
  line-height: 1.6; text-wrap: pretty;
}
/* タイプ名・キャッチコピーは画像内に含まれるため非表示 */
.result-hero .eyebrow,
.result-hero .type-name,
.result-hero .type-catch { display: none; }

.personal-card h3 {
  font-size: 17px; font-weight: 800; color: var(--ink);
  border-left: 5px solid var(--primary); padding-left: 10px;
  margin: 18px 0 8px;
}
.personal-card h3:first-child { margin-top: 0; }
.personal-card p { font-size: 16px; line-height: 1.85; text-wrap: pretty; }
.personal-intro {
  background: var(--cream); border: 2px solid var(--ink); border-radius: 12px;
  padding: 14px 14px; margin-bottom: 16px;
}
.personal-intro .pi-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800; margin-bottom: 8px; text-align: center;
}
.personal-intro ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.personal-intro li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 15.5px; font-weight: 700; line-height: 1.6;
}
.personal-intro li::before {
  content: "✓"; flex: none;
  width: 19px; height: 19px; border-radius: 5px; margin-top: 2px;
  background: var(--primary); color: #fff;
  border: 2px solid var(--ink);
  font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* 教育・実績（画像・全幅） */
.service { margin: -14px -16px -30px; }
.service-img { width: 100%; display: block; }
.service-note { margin-top: 10px; font-size: 11.5px; line-height: 1.6; text-align: center; }
.service-note a { color: rgba(42, 59, 82, .6); text-decoration: none; }
.cta-main .btn { margin-top: 0; }

/* 教育 */
.sec-heading {
  display: block; width: fit-content; max-width: 100%; margin: 0 auto;
  padding: 7px 22px;
  font-size: 18px; font-weight: 800; text-align: center; line-height: 1.5;
  color: var(--ink); background: var(--surface);
  border: 2.5px solid var(--ink); border-radius: 999px;
  text-wrap: pretty;
}
.bridge-steps { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.bridge-steps .step {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 12px;
  padding: 12px 14px;
}
.bridge-steps .num {
  flex: none; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 50%; background: var(--primary); color: #fff;
  border: 2px solid var(--ink);
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.bridge-steps p { font-size: 15.5px; font-weight: 700; line-height: 1.6; }
.bridge-figure { margin-top: 14px; }
.bridge-figure svg { width: 100%; height: auto; display: block; }

/* 実績 */
.proof-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.proof-card {
  background: var(--surface); border: 2px solid var(--ink); border-radius: 12px;
  padding: 12px 4px 10px; text-align: center;
}
.proof-card .p-label { font-size: 12px; font-weight: 700; color: rgba(42, 59, 82, .7); line-height: 1.4; }
.proof-card .p-num {
  font-family: var(--font-display);
  font-size: 25.5px; font-weight: 800; color: var(--ink);
  line-height: 1.25; margin-top: 3px;
}
.proof-card .p-unit { font-size: 12.5px; font-weight: 800; }
.proof-card .p-sub { font-size: 11px; color: rgba(42, 59, 82, .65); margin-top: 2px; line-height: 1.35; }
.proof-card a.asterisk { color: rgba(42, 59, 82, .6); text-decoration: none; font-size: 11.5px; vertical-align: super; }
.proof-authority {
  margin-top: 12px; font-size: 14px; color: rgba(42, 59, 82, .8);
  text-align: center; line-height: 1.7; text-wrap: pretty;
}
.proof-authority strong { color: var(--ink); }

/* CTA */
.cta-sec { text-align: center; }
.cta-loss { font-size: 16px; font-weight: 700; line-height: 1.8; text-wrap: pretty; }
.cta-gain {
  margin-top: 8px; font-family: var(--font-display);
  font-size: 18.5px; font-weight: 800; line-height: 1.7; text-wrap: pretty;
}
.cta-sec .btn { margin-top: 16px; }
.cta-assure {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 11px; font-size: 13px; font-weight: 700; color: rgba(42, 59, 82, .8);
}
.cta-assure .mini-ck { color: var(--primary); font-weight: 800; }

/* 口コミ */
.voice-list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.voice-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 14px; }
.voice-head { display: flex; gap: 11px; align-items: center; }
.voice-avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--ink);
  font-family: var(--font-display); font-size: 25.5px; font-weight: 800; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.voice-meta { display: flex; flex-direction: column; gap: 4px; }
.voice-who { font-size: 14px; font-weight: 800; font-family: var(--font-display); }
.voice-salary { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.voice-salary .before {
  font-size: 12.5px; font-weight: 700; color: rgba(42, 59, 82, .7);
  background: var(--cream); border: 1.5px solid rgba(42, 59, 82, .35);
  border-radius: 999px; padding: 0 9px; white-space: nowrap;
}
.voice-salary .sal-arrow { font-weight: 800; color: var(--orange); }
.voice-salary .after {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 800; color: #fff;
  background: var(--primary); border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 0 10px; white-space: nowrap;
}
.voice-title {
  margin-top: 10px; font-family: var(--font-display);
  font-size: 16px; font-weight: 800; line-height: 1.55; text-wrap: pretty;
}
.voice-body { margin-top: 5px; font-size: 15px; line-height: 1.75; color: rgba(42, 59, 82, .9); text-wrap: pretty; }
.voice-note { margin-top: 8px; font-size: 12px; color: rgba(42, 59, 82, .65); text-align: right; }

/* FAQ */
.faq-list { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.faq-item { background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 9px;
  padding: 14px 14px; font-size: 16px; font-weight: 700; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-badge {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--primary); color: var(--primary);
  font-family: var(--font-display); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.faq-item summary .chev { margin-left: auto; flex: none; transition: transform .2s ease; color: var(--primary); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-a {
  padding: 0 14px 14px 45px; font-size: 15px; line-height: 1.75;
  color: rgba(42, 59, 82, .85); text-wrap: pretty;
}

/* フッター */
.footer {
  margin: 0 16px; padding: 14px 0 16px;
  border-top: 1.5px solid rgba(42, 59, 82, .3);
}
.footnotes-wrap { border-top: 1.5px solid rgba(42, 59, 82, .3); padding-top: 14px; }
.footnotes { font-size: 12px; color: rgba(42, 59, 82, .75); line-height: 1.8; }
.footer-links { display: flex; justify-content: center; gap: 16px; font-size: 14px; }
.footer-links a { color: rgba(42, 59, 82, .8); }
a { color: var(--ink); }
a:hover { color: var(--primary); }
.footer-copy {
  margin-top: 8px; text-align: center;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 800;
  letter-spacing: .12em; color: rgba(42, 59, 82, .7);
}

/* ===== 追従CTA（FV・結果画面） ===== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 216, 77, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-top: 2px solid var(--ink);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .sticky-btn { max-width: 448px; margin: 0 auto; min-height: 54px; font-size: 18px; }
body.sticky-visible .column { padding-bottom: 80px; }
