@charset "UTF-8";

/* ==========================================================================
   AI研修 投資効果シミュレーター — Art Direction v2
   ビルスピ カラーガイド ver.202605（Primary #e06224 / Secondary #eda226）
   ダーク×オレンジグローのヒーロー + エディトリアルなライトセクション
   ========================================================================== */

:root {
  /* Brand（ビルスピ カラーガイド） */
  --primary: #e06224;   /* 炎オレンジ */
  --secondary: #eca224; /* 黄 */
  --red: #df5a25;       /* 赤 */
  --primary-bright: #f07a3c;
  --primary-deep: #b44a16;
  --primary-soft: #fbece3;
  --secondary-soft: #fdf4e3;
  --grad: linear-gradient(135deg, #eca224 0%, #e06224 55%, #df5a25 100%);

  /* Dark stage（ダークプラム＝ブランド文字色） */
  --dark: #2a1d2e;
  --dark-2: #382640;
  --on-dark: #fff;
  --on-dark-soft: rgba(255, 245, 240, .78);
  --on-dark-faint: rgba(255, 245, 240, .52);
  --dark-line: rgba(255, 245, 240, .16);

  /* Light stage */
  --text: #2a1d2e;
  --ink-light: #4a3d4e;
  --ink-muted: #7a6d7e;
  --bg: #fff;
  --bg-warm: #f8f5f2;
  --border: #e9e3e5;
  --white: #fff;

  /* Semantic */
  --blue: #2f6f9f;
  --blue-deep: #24567b;
  --blue-soft: #e9f1f7;
  --green: #2f8f72;
  --green-deep: #236e57;
  --green-soft: #e8f4f0;
  --pink: #d84f7a;
  --pink-deep: #b03a60;
  --pink-soft: #fceaf0;

  /* Layout */
  --wrap: 1120px;
  --radius: 18px;
  --radius-sm: 13px;
  --shadow-sm: 0 1px 2px rgba(42, 29, 46, .05), 0 4px 14px rgba(42, 29, 46, .05);
  --shadow-md: 0 2px 6px rgba(42, 29, 46, .05), 0 18px 50px rgba(42, 29, 46, .10);
  --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Lexend Exa", "Noto Sans JP", sans-serif;
  --font-serif: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--primary); }
table { border-collapse: collapse; width: 100%; }
::selection { background: rgba(224, 98, 36, .25); }

/* --- layout --------------------------------------------------------------- */
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 48px, 800px); margin-inline: auto; }

.screen { display: none; }
.screen.is-active { display: block; animation: fade .4s ease both; }
@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* entrance / motion polish（第一印象の演出。ロジックには無関係） */
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
#screen-lp.is-active { animation: none; } /* セクション全体フェードは切り、子要素のスタッガーに委ねる */
#screen-lp.is-active .hero__grid > div:first-child > * { animation: heroIn .6s cubic-bezier(.22, .7, .3, 1) both; }
#screen-lp.is-active .hero__grid > div:first-child > *:nth-child(1) { animation-delay: .04s; }
#screen-lp.is-active .hero__grid > div:first-child > *:nth-child(2) { animation-delay: .10s; }
#screen-lp.is-active .hero__grid > div:first-child > *:nth-child(3) { animation-delay: .16s; }
#screen-lp.is-active .hero__grid > div:first-child > *:nth-child(4) { animation-delay: .22s; }
#screen-lp.is-active .hero__grid > div:first-child > *:nth-child(5) { animation-delay: .28s; }
#screen-lp.is-active .hero__grid > div:first-child > *:nth-child(6) { animation-delay: .34s; }
#screen-lp.is-active .hero__grid > div:first-child > *:nth-child(7) { animation-delay: .40s; }
#screen-lp.is-active .preview { animation: heroIn .78s cubic-bezier(.22, .7, .3, 1) both .3s; }

@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
#screen-result.is-active .hero-metric { animation: popIn .6s cubic-bezier(.22, .7, .3, 1) both; }

/* scroll reveal（app.js が .reveal を付与） */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .7, .3, 1); }
.reveal.in-view { opacity: 1; transform: none; }

/* --- header (white) ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand__img { display: block; height: 32px; width: auto; }
.brand__sub {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: .05em;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.header-contact {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.header-contact::before { content: "\2709"; font-size: 13px; }
.header-contact:hover { background: var(--primary); color: #fff; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s, filter .18s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(224, 98, 36, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 40px rgba(224, 98, 36, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn__arrow { font-family: var(--font-en); transition: transform .2s ease; }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }
.btn--outline { background: #fff; border-color: var(--primary); color: var(--primary); padding: 12px 26px; font-size: 15px; }
.btn--outline:hover:not(:disabled) { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(224, 98, 36, .28); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--ink-light); }
.btn--ghost:hover { background: var(--bg-warm); border-color: var(--ink-muted); }
.btn--quiet { background: none; border: none; color: var(--ink-muted); font-weight: 500; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.btn--quiet:hover { color: var(--text); }
.btn--lg { padding: 21px 44px; font-size: 19px; border-radius: 14px; }
.btn--block { width: 100%; }

/* --- hero (white × 炎グラデーション) --------------------------------------- */
.hero {
  position: relative;
  padding: 84px 0 84px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -14%;
  width: 52%;
  height: 124%;
  background: linear-gradient(205deg, var(--secondary) 0%, var(--primary) 52%, var(--red) 100%);
  border-radius: 48px;
  transform: rotate(6deg);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}
/* キッカーをブロック化し、吹き出しを常に次の行（下段）へ落とす（タブレットで横並びになる崩れを防止）。
   .kicker（inline-flex）が後方定義で詳細度が並ぶため、.kicker.kicker--hero で確実に上書きする */
.kicker.kicker--hero { display: flex; margin-bottom: 22px; }
.balloon {
  display: inline-block;
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--text);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 26px;
}
.balloon strong { color: var(--primary); }
.balloon::after {
  content: "";
  position: absolute;
  left: 38px;
  bottom: -7.5px;
  width: 13px;
  height: 13px;
  background: var(--white);
  border-right: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  transform: rotate(45deg);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(33px, 3.6vw, 48px);
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: .04em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero__lead {
  font-size: 17px;
  line-height: 2.05;
  color: var(--ink-light);
  margin-bottom: 34px;
  max-width: 33em;
}
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__assure { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero__assure-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid rgba(224, 98, 36, .28);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.hero__assure-check {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.hero__stats {
  display: flex;
  gap: 0;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.hero__stats > div { flex: 1; }
.hero__stats > div + div { border-left: 1px solid var(--border); padding-left: 22px; }
.hero__stats dt {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.hero__stats dd {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
.hero__stats dd small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--ink-muted); margin-left: 3px; }

/* preview card（白カード。炎グラデパネルの上に浮かせる） */
.preview {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(42, 29, 46, .30);
  padding: 30px 32px;
  overflow: hidden;
}
.preview::after {
  content: "SAMPLE";
  position: absolute;
  top: 22px;
  right: -36px;
  transform: rotate(38deg);
  background: var(--bg-warm);
  color: var(--ink-muted);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  padding: 5px 46px;
}
.preview__label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--primary);
}
.preview__label span { font-family: var(--font); font-weight: 500; letter-spacing: .06em; color: var(--ink-muted); margin-left: 10px; }
.preview__value {
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 6px 0 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.preview__value small { font-family: var(--font); font-size: 17px; font-weight: 700; margin-left: 6px; }
.preview__sub { font-size: 13.5px; color: var(--ink-muted); padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.preview__row { display: flex; gap: 14px; padding-top: 20px; }
.preview__cell { flex: 1; }
.preview__cell dt { font-size: 12.5px; color: var(--ink-muted); }
.preview__cell dd { font-family: var(--font-en); font-size: 25px; font-weight: 600; color: var(--text); }
.preview__cell dd small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--ink-muted); margin-left: 2px; }
.preview__bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 62px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.preview__bars span {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgba(236, 162, 36, .8), rgba(224, 98, 36, .4));
  animation: barGrow 1s cubic-bezier(.25, .7, .3, 1) both;
}
.preview__bars span:last-child { background: var(--grad); }
.preview__bars span:nth-child(2) { animation-delay: .06s; }
.preview__bars span:nth-child(3) { animation-delay: .12s; }
.preview__bars span:nth-child(4) { animation-delay: .18s; }
.preview__bars span:nth-child(5) { animation-delay: .24s; }
.preview__bars span:nth-child(6) { animation-delay: .3s; }
.preview__bars span:nth-child(7) { animation-delay: .36s; }
@keyframes barGrow { from { height: 0; } }

/* --- generic section (light stage) ---------------------------------------- */
.section { padding: 88px 0; }
.section--warm { background: var(--bg-warm); border-block: 1px solid var(--border); }
.section__head { margin-bottom: 48px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--primary);
  margin-bottom: 14px;
}
.kicker::before { content: "/"; font-weight: 600; color: var(--primary); }
.section__head h2 { font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.section__head p { font-size: 17px; color: var(--ink-muted); margin-top: 14px; }

/* 提供価値：罫線ベースのエディトリアルリスト */
.value-list { border-top: 1px solid var(--border); }
.value-item {
  display: grid;
  grid-template-columns: 110px 280px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 34px 8px;
  border-bottom: 1px solid var(--border);
  transition: background .25s ease, padding-left .25s ease;
}
.value-item:hover { background: rgba(255, 255, 255, .65); padding-left: 16px; }
.value-item__no {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--primary), rgba(224, 98, 36, .3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.value-item__title { font-size: 24px; font-weight: 900; line-height: 1.5; }
.value-item__desc { font-size: 15.5px; line-height: 2; color: var(--ink-light); max-width: 44em; }

/* 診断の流れ：箱なしステッパー */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 8px 28px 4px; border-left: 1px solid var(--border); }
.step:first-child { border-left: none; padding-left: 8px; }
.step::before {
  content: "";
  position: absolute;
  left: -4.5px; top: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(224, 98, 36, .14);
}
.step:first-child::before { display: none; }
.step__no {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--primary);
  margin-bottom: 12px;
}
.step h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.step p { font-size: 14.5px; line-height: 1.9; color: var(--ink-muted); }

/* chips（ライト画面のデフォルト） */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14.5px;
  color: var(--ink-light);
  white-space: nowrap;
}
.chip--accent { border-color: rgba(47, 143, 114, .3); background: var(--green-soft); color: var(--green-deep); font-weight: 700; }

/* --- quiz ----------------------------------------------------------------- */
.quiz { padding: 56px 0 96px; }
.quiz .wrap--narrow {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 42px 48px 44px;
}
.progress { margin-bottom: 38px; }
.progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.progress__meta strong { font-family: var(--font-en); color: var(--primary); font-size: 22px; font-weight: 700; }
.progress__bar { height: 6px; border-radius: 999px; background: var(--bg-warm); overflow: hidden; }
.progress__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(224, 98, 36, .5);
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

#q-body.q-anim { animation: qstep .34s cubic-bezier(.25, .7, .3, 1) both; }
@keyframes qstep {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

.q__label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--primary);
  margin-bottom: 10px;
}
.q__title { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 31px); font-weight: 700; line-height: 1.55; letter-spacing: .04em; margin-bottom: 12px; }
.q__help { font-size: 15.5px; color: var(--ink-muted); margin-bottom: 30px; }

/* option cards */
.opts { display: grid; gap: 12px; margin-bottom: 12px; }
.opts--2col { grid-template-columns: repeat(2, 1fr); }
.opt {
  display: block;
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px 18px 54px;
  cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s, transform .16s;
}
.opt:hover { border-color: var(--secondary); background: var(--secondary-soft); transform: translateY(-1px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt::before {
  content: "";
  position: absolute;
  left: 20px; top: 22px;
  width: 19px; height: 19px;
  border: 1.5px solid var(--ink-muted);
  border-radius: 50%;
  background: var(--white);
  transition: border-color .15s, border-width .15s, box-shadow .15s;
}
.opt:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 6px 20px rgba(224, 98, 36, .16);
}
.opt:has(input:checked)::before { border-color: var(--primary); border-width: 6px; }
.opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.opt__title { display: block; font-size: 17.5px; font-weight: 700; line-height: 1.5; }
.opt__summary { display: block; font-size: 14.5px; color: var(--ink-light); margin-top: 3px; }
.opt__desc { display: block; font-size: 13.5px; color: var(--ink-muted); margin-top: 7px; line-height: 1.8; }

/* select / number */
.field { margin-bottom: 12px; }
.field__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.select, .input {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 17px;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.select:focus, .input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 98, 36, .14);
}
.select:disabled { background: var(--bg-warm); color: var(--ink-muted); cursor: not-allowed; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2385786B' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.input--num { max-width: 220px; text-align: right; font-family: var(--font-en); font-size: 18px; font-weight: 600; }
.field__unit { font-size: 15px; color: var(--ink-light); font-weight: 700; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.preset {
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  color: var(--ink-light);
  transition: all .15s;
}
.preset:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.error {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--pink-soft);
  border: 1px solid rgba(216, 79, 122, .28);
  color: var(--pink-deep);
  font-size: 14.5px;
  font-weight: 700;
}
.error.is-shown { display: flex; }

.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; }

/* --- result --------------------------------------------------------------- */
.result { padding: 56px 0 96px; }
.result__head { text-align: center; margin-bottom: 36px; }
.result__head .kicker { justify-content: center; }
.result__head .kicker::before { display: none; }
.result__head h2 { font-family: var(--font-serif); font-size: clamp(29px, 3.6vw, 40px); font-weight: 700; letter-spacing: .04em; }
.result__head p { font-size: 15.5px; color: var(--ink-muted); margin-top: 8px; }
.result__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.result__contact { margin-top: 20px; }

/* メイン数値：炎グラデーション */
.hero-metric {
  position: relative;
  background: var(--noise), linear-gradient(135deg, var(--secondary) 0%, var(--primary) 52%, var(--red) 100%);
  background-blend-mode: soft-light, normal;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(224, 98, 36, .35);
  padding: 30px 34px 28px;
  text-align: center;
  margin-bottom: 18px;
  color: var(--on-dark);
  overflow: hidden;
}
.hero-metric__label {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  letter-spacing: .08em;
}
.hero-metric__value {
  font-family: var(--font-en);
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 4px 0 4px;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(122, 42, 8, .3);
}
.hero-metric__value small { font-family: var(--font); font-size: .34em; font-weight: 700; margin-left: 8px; letter-spacing: 0; }
.hero-metric__note { font-size: 14px; color: rgba(255, 255, 255, .82); }

.metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.metrics::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: var(--grad);
}
.metric { padding: 28px 32px; }
.metric + .metric { border-left: 1px solid var(--border); }
.metric__label { font-size: 15px; color: var(--ink-muted); }
.metric__value {
  font-family: var(--font-en);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -.01em;
}
.metric__value small { font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--ink-muted); margin-left: 3px; }
.metric__note { font-size: 13.5px; color: var(--ink-muted); margin-top: 2px; }

/* panel */
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.panel__title { font-size: 21px; font-weight: 900; display: flex; align-items: center; gap: 12px; letter-spacing: .02em; }
.panel__title::before { content: ""; width: 5px; height: 21px; border-radius: 3px; background: var(--grad); }
.panel__title--blue::before { background: linear-gradient(180deg, #4b93c7, var(--blue-deep)); }
.panel__title--green::before { background: linear-gradient(180deg, #43b190, var(--green-deep)); }
.panel__title--pink::before { background: linear-gradient(180deg, #ef7ba0, var(--pink-deep)); }

/* potential score */
.pot { display: grid; grid-template-columns: 220px 1fr; gap: 38px; align-items: center; }
.pot__score { text-align: center; }
.ring { position: relative; width: 176px; height: 176px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring__bg { stroke: var(--bg-warm); }
.ring__fg {
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-dasharray: 439.82;
  stroke-dashoffset: 439.82;
  transition: stroke-dashoffset 1.15s cubic-bezier(.3, .7, .3, 1);
  filter: drop-shadow(0 0 8px rgba(224, 98, 36, .45));
}
.pot__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: var(--font-en);
  font-size: 54px; font-weight: 700; line-height: 1; color: var(--primary); letter-spacing: -.02em;
}
.pot__num small { font-family: var(--font-en); font-size: 15px; color: var(--ink-muted); font-weight: 500; margin-top: 5px; }
.badge {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.badge--a { background: var(--pink-soft); color: var(--pink-deep); }
.badge--b { background: var(--primary-soft); color: var(--primary-deep); }
.badge--c { background: var(--secondary-soft); color: #8a5c0f; }
.badge--d { background: var(--bg-warm); color: var(--ink-light); }

.gap-bars { display: grid; gap: 18px; }
.gap-bar__head { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.gap-bar__head strong { font-family: var(--font-en); font-weight: 700; }
.gap-bar__track { height: 12px; border-radius: 999px; background: var(--bg-warm); overflow: hidden; }
.gap-bar__fill { height: 100%; border-radius: 999px; transition: width .9s cubic-bezier(.4, 0, .2, 1); }
.gap-bar__fill--self { background: linear-gradient(90deg, #a49484, #85786b); }
.gap-bar__fill--industry { background: linear-gradient(90deg, #4b93c7, var(--blue)); }
.pot__desc { font-size: 15px; color: var(--ink-light); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }

/* task list */
.tasks { display: grid; gap: 12px; }
.task {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 17px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color .18s, transform .18s;
}
.task:hover { border-color: rgba(216, 79, 122, .4); transform: translateX(3px); }
.task__rank {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
}
.task__name { font-size: 17px; font-weight: 700; }
.task__desc { font-size: 14.5px; color: var(--ink-muted); margin-top: 2px; }

/* table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { min-width: 560px; font-size: 15.5px; }
/* シナリオ表：狭い画面で文字が縦積みにならないよう主要列を折り返さない */
.tbl--scenario { min-width: 680px; }
.tbl--scenario th, .tbl--scenario td { white-space: nowrap; }
.scroll-hint { font-size: 12px; color: var(--ink-muted); display: none; }
@media (max-width: 640px) { .scroll-hint { display: inline; } }
.tbl th, .tbl td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.tbl thead th {
  background: var(--bg-warm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-light);
  white-space: nowrap;
}
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr.is-current { background: var(--green-soft); }
.tbl tbody tr.is-current td { font-weight: 700; color: var(--green-deep); }
.tbl__tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: middle;
}

/* note */
.note {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-light);
}
.note strong { color: var(--text); }
.note + .note { margin-top: 12px; }

/* CTA block（ダークプラム） */
.cta-block {
  position: relative;
  background:
    radial-gradient(620px 340px at 88% -30%, rgba(224, 98, 36, .38), transparent 62%),
    radial-gradient(400px 260px at 0% 130%, rgba(236, 162, 36, .14), transparent 60%),
    linear-gradient(150deg, var(--dark-2), var(--dark));
  border-radius: 22px;
  padding: 46px 48px;
  color: var(--on-dark);
  margin: 36px 0 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(42, 29, 46, .3);
}
.cta-block h3 { font-family: var(--font-serif); font-size: clamp(22px, 2.9vw, 28px); font-weight: 700; line-height: 1.6; letter-spacing: .04em; margin-bottom: 14px; }
.cta-block p { font-size: 16px; color: var(--on-dark-soft); margin-bottom: 28px; max-width: 44em; }
.cta-block__list { display: grid; gap: 12px; margin-bottom: 32px; }
.cta-block__list li { font-size: 15.5px; padding-left: 30px; position: relative; color: rgba(255, 238, 226, .85); }
.cta-block__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .6em;
  width: 13px; height: 7px;
  border-left: 2.5px solid var(--primary-bright);
  border-bottom: 2.5px solid var(--primary-bright);
  transform: rotate(-45deg);
}
.cta-block__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-block .btn--quiet { color: var(--on-dark-faint); }
.cta-block .btn--quiet:hover { color: var(--on-dark); }

.result__foot { text-align: center; margin-top: 28px; }

/* --- form ----------------------------------------------------------------- */
.form-screen { padding: 56px 0 96px; }
.form-screen .result__head { text-align: left; }
.form-screen .result__head .kicker { justify-content: flex-start; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .form-field--full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.req { color: var(--pink); font-size: 11px; margin-left: 5px; font-weight: 700; }
.opt-tag { color: var(--ink-muted); font-size: 11px; margin-left: 5px; font-weight: 500; }
.form-field .error { margin-top: 7px; padding: 8px 12px; font-size: 12.5px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 15px;
  cursor: pointer;
}
.consent input { width: 19px; height: 19px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.consent a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--primary-deep); }

/* --- thanks（面談申込完了） ----------------------------------------------- */
.thanks { text-align: center; padding: 40px 0 20px; }
.thanks__icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 24px;
  background: var(--grad);
  color: #fff;
  font-size: 36px; font-weight: 700;
  box-shadow: 0 14px 34px rgba(224, 98, 36, .38);
  animation: popIn .6s cubic-bezier(.22, .7, .3, 1) both;
}
.thanks .kicker { justify-content: center; }
.thanks h2 { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; letter-spacing: .04em; }
.thanks__lead { font-size: 16px; color: var(--ink-light); line-height: 2.05; margin-top: 16px; }
.thanks__lead strong { color: var(--text); }
.thanks__panel {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  margin: 34px auto 24px;
  max-width: 520px;
}
.thanks__panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.thanks__steps { display: grid; gap: 15px; }
.thanks__steps li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink-light); }
.thanks__steps li span {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-family: var(--font-en);
  font-weight: 700; font-size: 14px;
}
.thanks__foot { margin-top: 8px; }
.thanks__demo { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--border); }
.thanks__demo .btn--quiet { color: var(--ink-muted); font-size: 13px; }

/* --- report --------------------------------------------------------------- */
.report { padding: 56px 0 96px; }
.report__header {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.report__header::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 5px;
  background: var(--grad);
}
.report__header h2 { font-family: var(--font-serif); font-size: clamp(23px, 3vw, 30px); font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.report__attrs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.summary-box {
  background: var(--primary-soft);
  border: 1px solid rgba(224, 98, 36, .22);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin-top: 20px;
}
.summary-box h4 { font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--primary-deep); margin-bottom: 8px; }
.summary-box p { font-size: 16px; line-height: 2; }

.kv { display: grid; gap: 0; }
.kv__row { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.kv__row:last-child { border-bottom: none; }
.kv__row dt { font-size: 15px; font-weight: 700; color: var(--ink-light); }
.kv__row dd { font-size: 16px; }

.formula {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 14.5px;
  background: var(--dark-2);
  border: 1px solid rgba(255, 226, 205, .14);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.95;
  color: rgba(255, 238, 226, .85);
}

.steps-next { display: grid; gap: 14px; }
.step-next {
  display: flex;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color .18s, transform .18s;
}
.step-next:hover { border-color: rgba(224, 98, 36, .4); transform: translateX(3px); }
.step-next__no {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(224, 98, 36, .35);
}
.step-next h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.step-next p { font-size: 15px; color: var(--ink-light); }

.report__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* --- sticky CTA（LPのFV以降に追従） --------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(42, 29, 46, .1);
  transform: translateY(120%);
  transition: transform .35s cubic-bezier(.25, .7, .3, 1);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}
.sticky-cta__text { font-size: 15px; font-weight: 700; color: var(--text); }
.sticky-cta__text strong { color: var(--primary); font-size: 17px; }
.sticky-cta .btn { padding: 13px 26px; font-size: 15.5px; white-space: nowrap; }
@media (max-width: 520px) {
  .sticky-cta__text { display: none; }
  .sticky-cta__inner { justify-content: center; padding: 10px 0; }
  .sticky-cta .btn { width: 100%; }
}

/* --- footer (dark) --------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-line);
  padding: 34px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--on-dark-faint);
}

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 56px; }
  /* 斜めの装飾帯は小画面ではコンテンツに重なって崩れるため非表示にし、
     オレンジはプレビューカード背後の枠（.hero__visual）に収める */
  .hero::before { display: none; }
  .hero__visual {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 55%, var(--red) 100%);
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(224, 98, 36, .28);
  }
  .balloon { margin-bottom: 22px; }
  .preview { box-shadow: 0 12px 30px rgba(42, 29, 46, .22); }
  main { padding-bottom: 76px; } /* sticky CTAとの重なり回避 */
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .steps .step:nth-child(odd) { border-left: none; padding-left: 8px; }
  .steps .step:nth-child(odd)::before { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .metric + .metric { border-left: none; border-top: 1px solid var(--border); }
  .value-item { grid-template-columns: 80px 1fr; }
  .value-item__desc { grid-column: 2; }
  .pot { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .pot__desc { text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
  .brand__img { height: 26px; }
  .brand__sub { font-size: 10.5px; padding-left: 9px; line-height: 1.3; }
  .site-header__inner { min-height: 56px; }
  .hero { padding: 48px 0 46px; }
  .hero__stats { flex-wrap: wrap; gap: 18px 0; }
  .hero__stats > div { flex: 1 1 40%; }
  .hero__stats > div:nth-child(3) { border-left: none; padding-left: 0; }
  .section { padding: 56px 0; }
  .steps, .opts--2col, .form-grid { grid-template-columns: 1fr; }
  .steps { gap: 24px 0; }
  .steps .step { border-left: none; padding-left: 8px; }
  .steps .step::before { display: none; }
  .value-item { grid-template-columns: 1fr; gap: 8px; padding: 26px 4px; }
  .value-item__desc { grid-column: auto; }
  .quiz .wrap--narrow { padding: 28px 22px 30px; border-radius: 18px; }
  .panel { padding: 24px 20px; }
  .cta-block { padding: 32px 24px; }
  .hero-metric { padding: 30px 22px; }
  .kv__row { grid-template-columns: 1fr; gap: 4px; }
  .quiz__nav .btn { padding: 14px 24px; }
  .report__header { padding: 26px 20px; }
  .preview { padding: 24px 22px; }
}

/* --- reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- print ---------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .report__actions, .cta-block__actions { display: none !important; }
  body { background: var(--white); }
  .panel, .report__header { box-shadow: none; break-inside: avoid; }
  .formula { background: var(--bg-warm); color: var(--ink-light); }
  .reveal { opacity: 1 !important; transform: none !important; }
}
