/*
 * 部品のスタイル（AI駆動開発タイプ診断 画面デザイン案より）
 *
 * デザイン案のインラインスタイルを、部品ごとのクラスに書き起こした参考CSS。
 * 値はデザイン案のSP画面（幅390px）に合わせている。見た目は image/design/*.png を参照。
 * tokens.css を先に読み込むこと。2026-10-29時点では3画面とも未適用（適用はデザインのタスクで行う）。
 * クラス名はこのファイルで新しく付けたもの（デザイン案にクラス名は無い）。
 */

/* ---------- 土台 ---------- */
.ds-page { background: var(--c-bg); color: var(--c-text); font-family: var(--font-sans); min-height: 100vh; }
.ds-mono { font-family: var(--font-mono); }

/* ヘッダー：ロゴ（TBの角丸四角）＋「テックバディ」＋右に小さく画面名 */
.ds-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--c-divider); }
.ds-brand { display: flex; align-items: center; gap: 8px; font-weight: var(--fw-bold); font-size: var(--fs-md); letter-spacing: .04em; }
.ds-brand__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--c-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: var(--fw-heavy); font-size: var(--fs-md); }
.ds-header__meta { font-size: var(--fs-xs); color: var(--c-text-muted); }

/* ---------- TOP：ヒーロー ---------- */
.ds-hero { background: var(--c-bg-tint); padding: 36px var(--gutter-sp) 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.ds-pill { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-primary); background: #fff; border: 1px solid var(--c-border-pill); border-radius: var(--r-pill); padding: 5px 14px; }
.ds-hero__title { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: var(--fw-black); letter-spacing: .01em; }
.ds-hero__title em { font-style: normal; color: var(--c-primary); }
.ds-hero__lead { margin: 0; font-size: var(--fs-base); line-height: var(--lh-relaxed); color: var(--c-text-body); }

/* 「全20問」「約3分」「登録不要」のチップ */
.ds-chips { display: flex; gap: 8px; justify-content: center; }
.ds-chip { font-size: var(--fs-sm); font-weight: var(--fw-bold); background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 8px 12px; }
.ds-chip--highlight { background: var(--c-highlight); border-color: var(--c-highlight); color: var(--c-text); }

/* キャラ画像の枠（画像が無いときは点線） */
.ds-char { width: 68px; height: 68px; border-radius: var(--r-char); background: #fff; border: 1.5px dashed var(--c-border-accent); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ds-char img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.ds-char--lg { width: 160px; height: 160px; border-radius: 28px; }
.ds-code { font-family: var(--font-mono); font-weight: var(--fw-heavy); font-size: var(--fs-sm); color: var(--c-primary); }

/* ---------- ボタン ---------- */
/* 主CTA：ティールの立体ボタン（下に濃い色の影） */
.ds-btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: var(--cta-height); border: 0; border-radius: var(--r-pill); background: var(--c-primary); color: #fff; font-family: inherit; font-weight: var(--fw-bold); font-size: var(--fs-xl); text-decoration: none; box-shadow: var(--shadow-cta); cursor: pointer; }
.ds-btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--c-primary-dark); }
/* 暗背景の上のCTA（登録ブロック） */
.ds-btn-accent { display: flex; align-items: center; justify-content: center; height: 56px; border: 0; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-accent-ink); font-family: inherit; font-weight: var(--fw-bold); font-size: 16px; text-decoration: none; cursor: pointer; }
/* 薄い背景のサブボタン（もう一度診断する・16タイプ一覧） */
.ds-btn-sub { flex: 1; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; background: var(--c-bg-soft); color: var(--c-primary); font-weight: var(--fw-bold); font-size: var(--fs-md); text-decoration: none; }
/* シェアボタン（X は黒） */
.ds-btn-x { background: var(--c-text); color: #fff; }

/* ---------- セクション ---------- */
.ds-section { padding: 40px var(--gutter-sp); display: flex; flex-direction: column; gap: 16px; }
.ds-section--soft { background: var(--c-bg-soft); }
.ds-eyebrow { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-primary); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.ds-h2 { margin: 0; font-size: var(--fs-h2); font-weight: var(--fw-black); }
.ds-h3 { margin: 0; font-size: var(--fs-h3); font-weight: var(--fw-heavy); }

/* カード */
.ds-card { border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.ds-card--soft { background: var(--c-bg-soft); border-color: transparent; }
.ds-card--active { border: 1.5px solid var(--c-accent); }  /* 無料公開の伸びしろ①。ラベルはティール */
.ds-card--active .ds-card__label { color: var(--c-primary); }
.ds-card__label { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-text-muted); }
.ds-card__title { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.ds-card__body { font-size: var(--fs-md); line-height: var(--lh-relaxed); color: var(--c-text-body); }
/* 番号つきの強み（01/02/03 の小さな四角） */
.ds-num { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: var(--fw-heavy); color: #fff; background: var(--c-primary); border-radius: var(--r-xs); padding: 2px 7px; }

/* 軸の説明カード（TOP）：左極バッジは塗り、右極バッジは薄色 */
.ds-pole { font-family: var(--font-mono); font-weight: var(--fw-heavy); font-size: var(--fs-md); width: 24px; height: 24px; border-radius: var(--r-xs); display: inline-flex; align-items: center; justify-content: center; }
.ds-pole--left { background: var(--c-primary); color: #fff; }
.ds-pole--right { background: var(--c-bg-badge); color: var(--c-primary); }

/* ---------- 質問 ---------- */
.ds-progress { height: 6px; border-radius: var(--r-pill); background: var(--c-divider); overflow: hidden; }
.ds-progress__fill { height: 100%; border-radius: var(--r-pill); background: var(--c-accent); transition: width .2s; }
.ds-q-count { font-family: var(--font-mono); font-weight: var(--fw-heavy); font-size: var(--fs-base); }
.ds-q-count b { color: var(--c-primary); }
.ds-q-text { margin: 0; font-size: var(--fs-question); line-height: var(--lh-normal); font-weight: var(--fw-bold); }
/* 5段階の丸：外側ほど大きい（44/36/28/36/44px）。左2つはグレー、中央は薄グレー、右2つはティール。選ぶと塗りつぶし */
.ds-scale { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.ds-scale__btn { width: 56px; height: 56px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ds-scale__dot { display: block; box-sizing: border-box; border-radius: 50%; border: 2.5px solid currentColor; background: #fff; }
.ds-scale__btn:nth-child(1) .ds-scale__dot, .ds-scale__btn:nth-child(5) .ds-scale__dot { width: 44px; height: 44px; }
.ds-scale__btn:nth-child(2) .ds-scale__dot, .ds-scale__btn:nth-child(4) .ds-scale__dot { width: 36px; height: 36px; }
.ds-scale__btn:nth-child(3) .ds-scale__dot { width: 28px; height: 28px; }
.ds-scale__btn:nth-child(-n+2) { color: var(--c-text-muted); }
.ds-scale__btn:nth-child(3) { color: var(--c-neutral); }
.ds-scale__btn:nth-child(n+4) { color: var(--c-primary); }
.ds-scale__btn.is-selected .ds-scale__dot { background: currentColor; }
.ds-scale-labels { display: flex; justify-content: space-between; font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.ds-scale-labels > :first-child { color: var(--c-text-muted); }
.ds-scale-labels > :last-child { color: var(--c-primary); }

/* ---------- 結果 ---------- */
.ds-reveal { background: var(--c-bg-tint); padding: 32px var(--gutter-sp); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.ds-type-code { font-family: var(--font-mono); font-weight: var(--fw-heavy); font-size: var(--fs-type-code); letter-spacing: .08em; color: var(--c-primary); line-height: 1.1; }
.ds-type-name { margin: 0; font-size: var(--fs-type-name); font-weight: var(--fw-black); }
.ds-type-catch { margin: 0; font-size: var(--fs-base); color: var(--c-text-body); }

/* スコアバー：常に右極%。決まった側のラベルを太字・濃色にする */
.ds-axis { display: flex; flex-direction: column; gap: 6px; }
.ds-axis__labels { display: flex; justify-content: space-between; font-size: var(--fs-md); }
.ds-axis__label { font-weight: var(--fw-medium); color: var(--c-text-muted); }
.ds-axis__label.is-active { font-weight: var(--fw-heavy); color: var(--c-text); }
.ds-axis__pct { font-family: var(--font-mono); font-weight: var(--fw-heavy); color: var(--c-primary); }
.ds-axis__track { height: 10px; border-radius: var(--r-pill); background: var(--c-divider); display: flex; justify-content: flex-end; overflow: hidden; }
.ds-axis__fill { height: 10px; border-radius: var(--r-pill); background: var(--c-accent); }

/* ロックされた伸びしろ：見出しは見せ、本文はぼかす。右上に黄色の「登録で解除」 */
.ds-locked { border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--c-bg-card-muted); }
.ds-locked__badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-text); background: var(--c-highlight); border-radius: var(--r-pill); padding: 3px 9px; }
.ds-locked__body { font-size: var(--fs-md); line-height: var(--lh-relaxed); color: var(--c-text-body); filter: blur(5px); user-select: none; }

/* 「ここまでで見られるのは 診断結果の20% です」 */
.ds-ratio { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ds-ratio__num { font-family: var(--font-mono); font-weight: var(--fw-heavy); color: var(--c-primary); }

/* 登録CTAブロック（濃紺） */
.ds-cta-block { background: var(--c-bg-dark); border-radius: var(--r-xl); padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; color: #fff; }
.ds-cta-block__eyebrow { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-accent-light); }
.ds-cta-block__title { margin: 0; font-size: 20px; font-weight: var(--fw-black); }
.ds-cta-block__count { color: var(--c-highlight); }
.ds-cta-block__item { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-base); line-height: var(--lh-normal); }
.ds-cta-block__note { font-size: var(--fs-xs); color: var(--c-text-on-dark-muted); text-align: center; }

/* ---------- フォーム ---------- */
.ds-field { display: flex; flex-direction: column; gap: 6px; }
.ds-field__label { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.ds-field__required { font-size: var(--fs-xs); color: #fff; background: var(--c-primary); border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.ds-input { height: 52px; border-radius: var(--r-md); border: 1.5px solid var(--c-border-strong); padding: 0 16px; font-size: 16px; font-family: inherit; color: var(--c-text); }
.ds-input:focus { outline: none; border-color: var(--c-primary); }
.ds-option { height: 48px; border: 1.5px solid var(--c-border-strong); border-radius: var(--r-md); font-family: inherit; font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--c-text); background: #fff; cursor: pointer; }
.ds-option.is-selected { border-color: var(--c-primary); background: var(--c-bg-tint); color: var(--c-primary); } /* 選択中の見た目はデザイン案に無いため仮 */

/* ---------- フッター ---------- */
.ds-footer { padding: 20px 24px 28px; font-size: var(--fs-xs); color: var(--c-text-muted); display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--c-divider); }
.ds-footer a { color: var(--c-primary); }

/* ---------- PC（デザイン案のPC画面は幅1440px、中身は最大1120px） ---------- */
@media (min-width: 800px) {
  .ds-container { max-width: var(--container-pc); margin: 0 auto; padding: 0 40px; }
  .ds-hero__title { font-size: 52px; line-height: 1.35; }
  .ds-type-code { font-size: 52px; }
  .ds-type-name { font-size: 32px; }
  .ds-q-card { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 40px 48px 44px; box-shadow: var(--shadow-card); }
  .ds-modal-backdrop { position: fixed; inset: 0; background: var(--c-overlay); display: flex; align-items: center; justify-content: center; }
  .ds-modal { width: 100%; max-width: 920px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-modal); }
}
