/* =========================================================
 * AI自動化レイヤー診断 — shindan/style.css (Re-skin v2)
 * 色/書体/余白は一切ここで定義しない。すべて ../assets/app.css の
 * デザイントークン(var(--ink) 等)を参照する。このファイルは
 * 診断ツール固有のクラス(.sh-*)にトークンを流し込むだけの層。
 * クラス名・id依存はソース版(hub-site/shindan)から一切変えていない
 * ＝ app.js のDOM生成・分岐には触れず、見た目だけを差し替える。
 * ========================================================= */

/* ── ビュー切り替え ── */
.sh-view.is-hidden { display: none; }

/* =========================================================
   イントロ ヒーロー(画像なし・特大明朝の中央寄せ)
   ========================================================= */
.sh-hero { padding: clamp(64px, 10vw, 110px) 0 clamp(48px, 7vw, 80px); text-align: center; }

.sh-eyebrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: var(--latin);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 22px;
}
.sh-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--amber); display: inline-block; }

.sh-hero-title {
  font-family: var(--mincho);
  font-weight: 900;
  color: var(--ink);
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  line-height: 1.5;
  letter-spacing: .015em;
  margin: 0 auto 20px;
  max-width: 17em;
  word-break: keep-all;
  line-break: strict;
}

.sh-hero-tagline {
  font-family: var(--mincho2);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  color: var(--amber-deep);
  margin: 0 auto 26px;
  max-width: 34em;
  line-height: 1.75;
}

.sh-hero-lead {
  color: var(--ink-2);
  font-size: clamp(.98rem, 1.4vw, 1.08rem);
  line-height: 2;
  margin: 0 auto 30px;
  max-width: 42em;
  text-align: left;
}

/* pill/箱にせず、罫のドットで区切るだけの実績メタ行 */
.sh-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
  margin: 0 0 30px;
  font-family: var(--latin);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sh-hero-meta span { position: relative; padding-left: 16px; }
.sh-hero-meta span::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px;
  background: var(--amber); border-radius: 50%; transform: translateY(-50%);
}
.sh-hero-meta span:first-child { padding-left: 0; }
.sh-hero-meta span:first-child::before { display: none; }

.sh-start-note { display: block; margin-top: 14px; font-size: .82rem; color: var(--ink-soft); letter-spacing: .01em; }

/* =========================================================
   イントロ本文(罫と余白・カード箱にしない)
   ========================================================= */
.sh-intro-body { padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); }

.sh-section-head { margin: 0 0 20px; }
.sh-section-head.sh-mt { margin-top: clamp(56px, 8vw, 88px); }
.sh-section-head .sh-en {
  display: block;
  font-family: var(--latin);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 8px;
}
.sh-section-head h2 {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.4;
  letter-spacing: .02em;
  margin: 0;
  word-break: keep-all;
  line-break: strict;
}

.sh-ladder-lead { color: var(--ink-2); font-size: clamp(.95rem, 1.4vw, 1.04rem); line-height: 2; margin: 0 0 32px; max-width: 44em; }

/* ── 6レイヤー プレビュー: カード群でなく step-ladder と同じ「罫の一覧」に ── */
.sh-layer-grid { display: grid; gap: 0; margin-top: clamp(8px, 2vw, 16px); }
.sh-layer-item {
  display: grid;
  grid-template-columns: minmax(60px, auto) 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: clamp(18px, 2.6vw, 26px) 0;
  border-top: 1px solid var(--line);
  transition: background .35s var(--ease);
}
.sh-layer-grid .sh-layer-item:last-child { border-bottom: 1px solid var(--line); }
.sh-layer-item:hover { background: linear-gradient(90deg, rgba(183, 101, 27, .05), transparent 70%); }
.sh-layer-tag {
  font-family: var(--latin);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--layer-accent, var(--amber-deep));
}
.sh-layer-copy h3 { font-family: var(--mincho); font-weight: 700; font-size: clamp(1.02rem, 1.8vw, 1.22rem); margin: 0 0 4px; color: var(--ink); }
.sh-layer-copy p { margin: 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.8; }

/* ── 診断の流れ: 丸バッジをやめ、番号を字組みだけで見せる ── */
.sh-flow { margin: 0; padding: 0; list-style: none; counter-reset: shflow; }
.sh-flow li {
  counter-increment: shflow;
  position: relative;
  padding: 16px 0 16px 48px;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: .96rem;
  line-height: 1.9;
}
.sh-flow li:last-child { border-bottom: 1px dashed var(--line); }
.sh-flow li::before {
  content: counter(shflow);
  position: absolute;
  left: 0; top: 16px;
  width: 32px;
  font-family: var(--latin);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--amber-deep);
}

.sh-cta-center { text-align: center; margin-top: clamp(36px, 5vw, 52px); }

/* =========================================================
   クイズ 進捗バー(app.css .quiz-progress と同トーン)
   ========================================================= */
.sh-quiz-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.sh-progress-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sh-progress-text { font-family: var(--latin); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); }
.sh-progress-count { font-size: .78rem; color: var(--ink-soft); }
.sh-progress-bar { height: 2px; background: var(--line); position: relative; }
.sh-progress-fill { position: absolute; inset: 0 auto 0 0; height: 100%; width: 11%; background: var(--amber); transition: width .5s var(--ease-out); }

/* =========================================================
   クイズ 本文
   ========================================================= */
.sh-quiz-body { padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 88px); max-width: 720px; margin-inline: auto; }

.sh-q-lead { font-family: var(--latin); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); margin: 0 0 14px; }
.sh-q-text {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 clamp(28px, 4vw, 40px);
  word-break: keep-all;
  line-break: strict;
}

.sh-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sh-choice {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px 22px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease-out);
}
.sh-choice::before {
  content: "";
  width: 9px; height: 9px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  flex: none;
  transition: border-color .2s ease, background .2s ease;
}
.sh-choice:hover { border-color: var(--amber); background: var(--paper-lift); transform: translateX(4px); }
.sh-choice:hover::before { border-color: var(--amber-deep); }
.sh-choice.is-selected { border-color: var(--amber-deep); background: var(--paper-lift); box-shadow: inset 0 0 0 1px var(--amber-deep); }
.sh-choice.is-selected::before { border-color: var(--amber-deep); background: var(--amber-deep); }
.sh-choice:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.sh-quiz-nav { margin-top: 28px; }
.sh-back {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sh-back::before { content: "\2190"; }
.sh-back:disabled { opacity: .35; cursor: default; }
.sh-back:not(:disabled):hover { color: var(--amber-deep); }

/* フェードイン */
.sh-fade { animation: shFade .3s var(--ease-out); }
@keyframes shFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =========================================================
   結果(統計エディトリアル・カード箱を全廃)
   ========================================================= */
.sh-result-hero { color: var(--ink); padding: clamp(56px, 8vw, 88px) 0 clamp(48px, 7vw, 72px); text-align: center; position: relative; overflow: hidden; }
.sh-result-hero.is-dark { color: var(--paper); }
.sh-result-hero .wrap { position: relative; z-index: 1; }
.sh-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--latin);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .85;
  margin: 0 0 16px;
}
.sh-result-layercode { font-family: var(--mincho); font-weight: 900; font-size: clamp(2.8rem, 9vw, 4.6rem); line-height: 1; margin: 0 0 8px; }
.sh-result-name { font-family: var(--mincho); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2rem); margin: 0 0 14px; }
.sh-result-tagline { font-size: 1rem; opacity: .88; margin: 0 auto; max-width: 30em; line-height: 1.8; }

/* ── 現在地ラダー: 浮くカードをやめ、罫だけの縦一覧に ── */
.sh-ladder { max-width: 560px; margin: clamp(32px, 5vw, 48px) auto 0; padding: 0 var(--gutter); position: relative; z-index: 2; }
.sh-ladder-inner { border-top: 1px solid var(--line); padding-top: clamp(20px, 3vw, 28px); }
.sh-ladder-title { font-family: var(--latin); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); margin: 0 0 16px; }
.sh-rung {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  opacity: .42;
  border-bottom: 1px solid var(--line-soft);
  transition: opacity .3s var(--ease);
}
.sh-rung:last-child { border-bottom: none; }
.sh-rung.is-reached { opacity: 1; }
.sh-rung .sh-rung-code {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: .88rem;
  width: 32px; height: 32px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--paper-2);
  color: var(--ink-soft);
}
.sh-rung-label { font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.sh-rung.is-current .sh-rung-label { color: var(--ink); font-weight: 700; }
.sh-rung-here {
  margin-left: auto;
  font-family: var(--latin);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 2px 10px;
}

/* 結果 本文ブロック */
.sh-result-body { max-width: 640px; margin-inline: auto; padding: clamp(40px, 6vw, 56px) var(--gutter) clamp(24px, 4vw, 32px); }
.sh-block { margin: 0 0 clamp(32px, 5vw, 44px); }
.sh-block h2 {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sh-block h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 1.5px; background: var(--amber); }
.sh-block p { margin: 0 0 14px; color: var(--ink-2); font-size: .98rem; line-height: 2; }

/* app.css .pr-notice と同型(罫+淡背景・箱化しない) */
.sh-next { background: var(--paper-2); border-left: 3px solid var(--amber); border-radius: 2px; padding: 18px 22px; }
.sh-next-label { font-family: var(--latin); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); margin: 0 0 8px; }
.sh-next p { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.9; }

/* ── 商品CTA: カードをやめ、rung/step と同じ罫の行に ── */
.sh-recos { display: grid; gap: 0; }
.sh-cta-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 3vw, 26px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .3s var(--ease), padding-left .3s var(--ease);
}
.sh-recos .sh-cta-card:last-child { border-bottom: 1px solid var(--line); }
.sh-cta-card:hover { background: linear-gradient(90deg, rgba(183, 101, 27, .06), transparent 70%); padding-left: 6px; }
.sh-cta-card.is-primary { box-shadow: inset 3px 0 0 var(--amber); padding-left: 14px; }
.sh-cta-body { flex: 1; }
.sh-cta-body h3 { margin: 0 0 6px; font-family: var(--mincho); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.sh-cta-body p { margin: 0; font-size: .86rem; line-height: 1.8; color: var(--ink-soft); }
.sh-cta-badge {
  flex: none;
  font-family: var(--latin);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--amber-deep);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 3px 12px;
}
.sh-cta-arrow { flex: none; color: var(--amber-deep); font-weight: 700; transition: transform .3s var(--ease-out); }
.sh-cta-card:hover .sh-cta-arrow { transform: translateX(5px); }

/* 近日公開(リンクなし) */
.sh-cta-card.is-soon { opacity: .6; cursor: default; }
.sh-cta-card.is-soon:hover { background: none; padding-left: 0; }
.sh-cta-card.is-soon .sh-cta-badge { color: var(--ink-soft); border-color: var(--line); }

.sh-soft-link { margin-top: 20px; font-size: .9rem; text-align: center; color: var(--ink-soft); line-height: 1.9; }
.sh-soft-link a { color: var(--amber-deep); font-weight: 700; }

.sh-disclaimer { font-size: .78rem; color: var(--ink-soft); line-height: 1.9; margin: 28px 0 0; }

.sh-result-foot { text-align: center; margin: clamp(32px, 5vw, 44px) 0 12px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.sh-retake {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  border-radius: 2px;
  padding: 12px 26px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.sh-retake:hover { background: var(--ink); color: var(--paper); }
.sh-tohub { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }
.sh-tohub:hover { color: var(--amber-deep); }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 640px) {
  .sh-hero { padding: 48px 0 32px; }
  .sh-cta-card { flex-wrap: wrap; }
  .sh-cta-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-fade { animation: none; }
  .sh-progress-fill, .sh-choice, .sh-cta-card, .sh-retake { transition: none !important; }
}
