/* ============================================
   AI駆動率診断 — mock v1 (ヤバリティ診断のデザインを踏襲)
   Klee One / Yusei Magic + 紙色 + 点線枠 + 新聞紙面
   ============================================ */

:root {
  --ink: #1a1a1a;
  --ink-soft: #555;
  --muted: #888;
  --paper-bg: #e7e1d3;        /* スマホ画面の外側 */
  --paper: #ffffff;            /* カード白背景 */
  --news: #fdfaf2;             /* 新聞紙色 */
  --news-stripe: #f4ede0;      /* 紙の縞 */
  --sticky: #fef4a8;           /* 付箋黄 */
  --line: #06c755;             /* LINE 緑 */
  --line-soft: #cdebd6;
  --ai-yellow: #facc15;        /* AI Atelier 黄 */
  --ai-yellow-soft: #fff5b3;
  --border: 1.5px solid var(--ink);
  --dashed: 1.5px dashed #aaa;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--paper-bg);
  color: var(--ink);
  font-family: 'Klee One', 'Yusei Magic', 'Hiragino Maru Gothic ProN',
               'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ボタン/インプット: ブラウザ既定の青文字を撲滅 */
button, input, a {
  font-family: inherit;
  color: var(--ink);
}
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--ink); text-decoration: none; }
input { font-size: 16px; /* iOS Safari 自動ズーム抑止 */ }

/* レイアウト：スマホ単画面・最大 420px */
.app {
  width: min(420px, 100%);
  margin: 0 auto;
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(26,26,26,.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26,26,26,.018) 1px, transparent 1px),
    var(--news);
  background-size: 18px 18px, 100% 24px, auto;
  position: relative;
  box-shadow: 0 0 0 1px rgba(26, 26, 26, .08);
}

.view {
  display: none;
  min-height: 100svh;
  padding: 24px 18px 32px;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.view.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* ========== 共通パーツ ========== */

.eyebrow {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 2px;
  border: 2px double var(--ink);
  background: var(--ai-yellow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  box-shadow: 2px 2px 0 var(--ink);
  text-transform: uppercase;
}

#intro > .eyebrow {
  margin: 4px 0 0 4px;
  transform: rotate(-7deg);
}

#intro > .eyebrow::after {
  content: " EXTRA";
  margin-left: 6px;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.eyebrow-ghost {
  background: var(--news);
  color: var(--muted);
  border: 1px dashed #aaa;
  box-shadow: none;
  font-weight: 500;
  transform: none;
}

.h1 {
  margin: 4px 0;
  font-size: 26px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
}

.h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 600;
}

#profile .h2,
#attributes .h2,
#question .h2,
#loading .h2 {
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  padding: 14px 14px 12px;
  background: var(--news);
  border: var(--border);
  box-shadow: 4px 4px 0 var(--news-stripe);
  position: relative;
}

#profile .h2::before,
#attributes .h2::before,
#question .h2::before,
#loading .h2::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 8px;
  top: -5px;
  right: 20px;
  background: var(--ai-yellow-soft);
  border: 1px solid rgba(26, 26, 26, .18);
  transform: rotate(4deg);
}

.lead, p.lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 400;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.wavy {
  text-decoration: underline wavy var(--ai-yellow);
  text-underline-offset: 6px;
}

.wavy-line {
  text-decoration: underline wavy var(--line);
  text-underline-offset: 6px;
}

.spacer { flex: 1; }
.spacer-sm { flex: 0 0 auto; height: 14px; }

/* 推奨アクションを1個に集約＝一番弱い領域の「まず、この一手」を大きく（視認性・SHION 2026-07-24） */
.action-hero {
  list-style: none;
  padding: 16px 16px 14px; border: 2px solid var(--ink); border-radius: 14px;
  background: #fffdf3; box-shadow: 4px 4px 0 rgba(26,26,26,.10);
}
.action-hero-eyebrow { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.action-hero-eyebrow b { color: var(--ink); font-weight: 900; }
.action-hero-do {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 17px; font-weight: 900; color: var(--ink); line-height: 1.45;
}
.action-hero-do .arrow-bold { flex: 0 0 auto; margin-top: 2px; }
.action-hero-cta {
  margin-top: 12px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 11px 12px; border: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: var(--ai-yellow); color: var(--ink);
  font-size: 14px; font-weight: 800; border-radius: 999px;
  box-shadow: 0 2px 0 rgba(10,10,10,.85);
}
.action-hero-cta:active { transform: translateY(2px); box-shadow: none; }
.action-hero-cta .arrow-icon { color: var(--ink); }

/* 拡散：診断結果をシェア（メインで目立たせる） */
.cta-share-main {
  width: 100%; margin-top: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; border: 2px solid var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: var(--ai-yellow); color: var(--ink);
  font-size: 16px; font-weight: 900; border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(26,26,26,.18);
}
.cta-share-main:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(26,26,26,.18); }
.cta-share-main svg { flex: 0 0 auto; }
.cta-grid-2 { grid-template-columns: 1fr 1fr; }
.cta-pdf-link {
  display: block; width: 100%; margin-top: 2px; padding: 8px;
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: underline;
}

/* 入口：完成済みの全般版As-Is/To-Be図をそのまま使い、TO BE側の中身だけぼかす（SHION 2026-07-24） */
.intro-asistobe { margin-top: 18px; }
.ia-preline {
  text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px;
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
}
.ia-figwrap {
  position: relative; width: 100%; border: 2px solid var(--ink); border-radius: 12px;
  overflow: hidden; box-shadow: 3px 3px 0 rgba(26,26,26,.12); background: #fff;
}
.ia-fig { display: block; width: 100%; height: auto; }
/* ぼかしコピーを重ね、TO BEの中身領域(帯の下〜下部ピルの上)だけをクリップして表示＝そこだけ blur */
.ia-fig-blur {
  position: absolute; inset: 0;
  filter: blur(6px);
  -webkit-clip-path: inset(15.5% 1.5% 15% 54%);
  clip-path: inset(15.5% 1.5% 15% 54%);
}
.ia-q {
  position: absolute; top: 51%; left: 76.5%; transform: translate(-50%, -50%);
  font-size: clamp(30px, 13vw, 60px); font-weight: 900; color: #0A0A0A; z-index: 2;
  font-family: 'Yusei Magic', serif; text-shadow: 0 2px 10px rgba(255,255,255,.9);
}
.ia2-foot {
  margin-top: 10px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink);
}
.ia2-foot b { font-weight: 900; background: linear-gradient(transparent 60%, var(--ai-yellow) 60%); padding: 0 2px; }

/* 詳細レポート最上部：As-Is/To-Be 図 */
.report-asistobe {
  margin: 4px 0 20px; padding: 0;
  border: 2px solid var(--ink); border-radius: 14px;
  overflow: hidden; background: var(--news, #fbf8ef);
  box-shadow: 4px 4px 0 rgba(26,26,26,.10);
}
.report-asistobe-cap {
  padding: 9px 12px; font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--ai-yellow); border-bottom: 2px solid var(--ink);
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif; letter-spacing: .01em;
}
.report-asistobe-cap b { font-weight: 900; }
.report-asistobe img { display: block; width: 100%; height: auto; }

/* 入口：この3分で分かること（空白を埋めて完成度を上げる） */
.intro-steps {
  margin-top: 18px;
  padding: 16px 16px 14px;
  background: #fffdf3;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(26,26,26,.10);
}
.intro-steps-title {
  margin: 0 0 12px;
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  font-size: 15px; font-weight: 700; color: var(--ink);
  text-align: center; letter-spacing: 0.02em;
}
.intro-steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.intro-steps-list li { display: flex; align-items: center; gap: 11px; }
.istep-no {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ai-yellow); border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: var(--ink);
}
.istep-txt { font-size: 14px; line-height: 1.4; color: var(--ink); }
.istep-txt b { font-weight: 800; background: linear-gradient(transparent 60%, var(--ai-yellow) 60%); padding: 0 2px; }

.intro-trust {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 7px; margin-top: 12px;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.intro-trust .itrust-dot { color: var(--line-color, rgba(26,26,26,.3)); }

/* ヘッダー（progress bar + 戻る） */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px;
  border: 1px dashed rgba(26, 26, 26, .28);
  background: rgba(253, 250, 242, .78);
}
.topbar .back {
  background: none;
  border: 1px solid rgba(26, 26, 26, .25);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 5px 8px;
  line-height: 1;
}
.bar-rail {
  flex: 1;
  height: 10px;
  border-radius: 99px;
  border: 1px solid var(--ink);
  background:
    repeating-linear-gradient(45deg, #eee 0 4px, #fff 4px 8px);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.bar-fill {
  height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(250,204,21,.55) 0 4px, rgba(26,26,26,.12) 4px 8px),
    var(--ink);
  transition: width 340ms cubic-bezier(.2,.8,.2,1), filter 180ms ease;
  box-shadow: 0 0 12px rgba(250,204,21,.45);
  animation: barPulse 900ms ease-out;
}
.topbar .q-count { font-weight: 600; color: var(--ink); }

/* インライン矢印アイコン（Unicode矢印の置換・iOS絵文字化対策） */
.arrow-icon {
  display: inline-block;
  vertical-align: -1px;
  flex-shrink: 0;
}

/* ========== 本設問（2問1画面） ========== */
.question-pair {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.question-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.question-block .question-help {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}
/* 共通の問いかけ（毎回同じ）は小さく。各設問の業務名（毎回変わる）を主役にする */
.question-lead {
  margin: 4px 0 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.question-block .question-main {
  margin: 2px 0 4px;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--ink);
}

@keyframes barPulse {
  0% { filter: brightness(1.8); }
  100% { filter: brightness(1); }
}

/* ========== ボタン ========== */

.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  border: 1.5px solid var(--ink);
  background: white;
  color: var(--ink);
  transition: transform 100ms ease, box-shadow 140ms ease, background 140ms ease;
}
.btn:active {
  transform: translateY(2px) scale(.99);
  box-shadow: 0 0 0 3px var(--ai-yellow), 0 0 18px rgba(250,204,21,.7);
}

.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 0 0 2px var(--ai-yellow);
}
.btn-line {
  background: var(--line);
  color: white;
  border-color: var(--line);
}
.btn-ghost {
  background: white;
}
.btn-text {
  background: none;
  border: none;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

/* ========== 選択肢ボタン ========== */

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.choice {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 0 91%, rgba(26,26,26,.08) 91% 100%),
    var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
  position: relative;
  box-shadow: 3px 3px 0 var(--news-stripe);
  transition: background 120ms ease, transform 100ms ease, box-shadow 120ms ease, color 120ms ease;
}
.choice::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 6px;
  top: -4px;
  right: 18px;
  background: rgba(250,204,21,.62);
  border: 1px solid rgba(26,26,26,.16);
  transform: rotate(5deg);
}
.choice:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0 var(--news-stripe);
}
.choice:hover, .choice.selected {
  background:
    repeating-linear-gradient(45deg, rgba(250,204,21,.18) 0 4px, transparent 4px 8px),
    var(--ink);
  color: white;
  box-shadow: 0 0 0 2px var(--ai-yellow);
}
.choice.multi {
  padding-left: 42px;
  position: relative;
}
.choice.multi::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: white;
}
.choice.multi.selected::before {
  background: var(--ai-yellow);
  content: "✓";
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
}
.choice.multi.selected {
  background: var(--ai-yellow);
  color: var(--ink);
}

/* ========== 入力フィールド ========== */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.field input {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-size: 16px;
  color: var(--ink);
}
.field input::placeholder {
  color: #bbb;
  font-weight: 400;
}
.field input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(250,204,21,.35);
  background: #fffef8;
}

/* ========== intro / mascot ========== */

.intro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 12px;
}

.intro-copy {
  min-width: 0;
}

/* マスコット「アトリ」＝ブランドの黒猫×黄円で存在感を出す（空白解消・SHION 2026-07-24） */
.mascot-note {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.mascot-badge {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--ai-yellow);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 5px 5px 0 var(--ai-yellow-soft);
}

.mascot-say {
  position: relative;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  text-align: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 6px 12px;
  box-shadow: 2px 2px 0 var(--ai-yellow-soft);
}

.mascot-say::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 8px 6px;
  border-style: solid;
  border-color: transparent transparent var(--ink) transparent;
}

.aa-mascot {
  --aa-gaze-x: 0;
  --aa-gaze-y: 0;
  display: block;
  width: 92px;
  height: 92px;
}

.aa-mascot.mini {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.aa-mascot .aa-eye {
  transform-origin: center;
  animation: aa-blink 5s infinite;
}

.aa-ear-l {
  transform-box: fill-box;
  transform-origin: 100% 100%;
}

.aa-ear-r {
  transform-box: fill-box;
  transform-origin: 0% 100%;
}

.mascot-note:hover .aa-ear-l,
.loading-icon:hover .aa-ear-l,
.aa-mascot.is-answering .aa-ear-l {
  animation: aa-ear-twitch .6s;
}

.mascot-note:hover .aa-ear-r,
.loading-icon:hover .aa-ear-r,
.aa-mascot.is-answering .aa-ear-r {
  animation: aa-ear-twitch .6s .05s;
}

.aa-pupil {
  transform: translate(calc(var(--aa-gaze-x) * 1px), calc(var(--aa-gaze-y) * 1px));
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}

.aa-eye-hl-l,
.aa-eye-hl-r {
  transform: translate(calc(var(--aa-gaze-x) * .5px), calc(var(--aa-gaze-y) * .5px));
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}

.aa-mascot .aa-mouth {
  transform-origin: center;
  transition: transform .18s ease;
}

.aa-mascot.is-answering .aa-eye-hl-l,
.aa-mascot.is-answering .aa-eye-hl-r {
  animation: aa-sparkle .5s ease-out;
}

.aa-mascot.is-answering .aa-mouth {
  transform: translateY(-1px) scaleY(1.14);
}

@keyframes aa-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%, 97% { transform: scaleY(.1); }
}

@keyframes aa-ear-twitch {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-8deg) translateY(-1px); }
  60% { transform: rotate(4deg); }
}

@keyframes aa-sparkle {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.25); filter: brightness(1.4); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* ========== intro preview ========== */

.intro-preview {
  position: relative;
  padding: 10px;
  border: 3px double var(--ink);
  background:
    repeating-linear-gradient(45deg, var(--news-stripe) 0 4px, var(--news) 4px 8px);
  box-shadow: 5px 5px 0 rgba(26,26,26,.12);
}

.intro-preview::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(26,26,26,.35);
  pointer-events: none;
}

.intro-preview-tag {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 0 8px auto;
  padding: 4px 8px;
  background: var(--ai-yellow);
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  letter-spacing: 0.02em;
  transform: rotate(2deg);
}

.preview-paper {
  position: relative;
  z-index: 1;
  padding: 10px;
  background: var(--news);
  border: var(--border);
}

.preview-mast {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 3px double var(--ink);
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
}

.preview-mast-meta {
  font-size: 9px;
  color: var(--ink-soft);
}

.preview-mast-title {
  font-size: 18px;
  letter-spacing: 4px;
  white-space: nowrap;
}

.preview-score {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.preview-score-label,
.preview-yaba,
.preview-headline-sub {
  font-size: 10px;
  color: var(--muted);
}

.preview-score-value {
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  font-size: 25px;
  line-height: 1;
}

.preview-score-value small {
  font-size: 11px;
}

.preview-divider {
  height: 44px;
  border-left: 1px dashed var(--muted);
}

.preview-stars {
  font-size: 16px;
  letter-spacing: 1px;
}

.preview-headline {
  padding: 8px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.preview-headline-main {
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  font-size: 16px;
  line-height: 1.4;
}

.preview-comic {
  margin-top: 10px;
  overflow: hidden;
  line-height: 0;
  border: var(--border);
  background:
    repeating-linear-gradient(45deg, var(--news-stripe) 0 4px, var(--news) 4px 8px);
}

.preview-comic img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== loading ========== */

.loading-icon {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 2px dashed var(--ink);
  display: grid;
  place-items: center;
  margin: 0 auto;
  background:
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(26,26,26,.08) 8px 10px),
    var(--news);
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(250,204,21,.18);
}

.loading-icon::before,
.loading-icon::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(26,26,26,.35);
  animation: pressRing 2.6s linear infinite;
}

.loading-icon::after {
  inset: 23px;
  border-style: solid;
  border-color: rgba(250,204,21,.7);
}

.press-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(26,26,26,.1) 10px 12px);
  animation: pressMove 900ms linear infinite;
}

.loading-mascot {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 3px 0 rgba(250,204,21,.7));
}
@keyframes pressRing { to { transform: rotate(360deg); } }
@keyframes pressMove { to { transform: translateX(12px); } }
.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  align-items: flex-start;
  width: fit-content;
  margin: 0 auto;
}
.loading-steps .current { color: var(--ink); font-weight: 600; }

/* ========== 新聞画面（Frame 6） ========== */

.view-result {
  background: var(--news);
  padding: 0;
}

.view-result .news-inner {
  padding: 20px 12px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.masthead {
  text-align: center;
  padding: 10px 0;
  border-bottom: 3px double var(--ink);
}
.masthead-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  font-size: 9px;
  color: var(--ink-soft);
}
.masthead-title {
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 6px;
  margin: 8px 0 4px;
  color: var(--ink);
}
.masthead-sub {
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  font-size: 10px;
  color: var(--ink-soft);
}
.paper-companyname {
  text-align: center;
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  font-size: 11px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
}

.score-strip {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  text-align: center;
}
.score-strip > div { flex: 1; }
.score-strip .divider { width: 1px; height: 50px; border-left: 1px dashed var(--muted); flex: 0; }
.score-strip-label {
  font-family: 'Yusei Magic', serif;
  font-size: 10px;
  color: var(--ink-soft);
}
.score-strip-value {
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  font-weight: 700;
  font-size: 26px;
}
.score-strip-value small { font-size: 12px; font-weight: 700; }
.score-strip-stars {
  font-family: 'Yusei Magic', serif;
  font-size: 16px;
  color: var(--ai-yellow);
  -webkit-text-stroke: 0.5px #b88a00;
}
.score-strip-yaba {
  font-family: 'Yusei Magic', serif;
  font-weight: 700;
  font-size: 22px;
}
.score-strip-yaba-label {
  font-family: 'Yusei Magic', serif;
  font-size: 10px;
  color: var(--ink-soft);
}

.paper-headline {
  text-align: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
}
.paper-headline-sub {
  display: inline-block;
  font-family: 'Yusei Magic', serif;
  font-size: 11px;
  color: var(--ink-soft);
  text-decoration: underline wavy var(--ai-yellow);
  text-underline-offset: 4px;
}
.paper-headline-main {
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
  margin: 8px 0 0;
}
.paper-headline-combo {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 500;
}
.paper-headline-combo strong {
  color: var(--ink);
  font-weight: 700;
}
.comic-frame {
  margin: 14px 0 4px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.comic-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.comic-frame figcaption {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  border-top: 1px solid var(--line, #e5e5e5);
  text-align: center;
}

.comic-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
}
.comic-cell {
  aspect-ratio: 3 / 4;
  border: 1.5px solid var(--ink);
  background: repeating-linear-gradient(
    45deg,
    var(--news-stripe), var(--news-stripe) 4px,
    var(--news) 4px, var(--news) 8px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  font-family: 'Yusei Magic', serif;
  font-size: 8px;
  color: var(--ink-soft);
}
.comic-cell-num { font-weight: 700; font-size: 11px; color: var(--ink); margin-bottom: 2px; }

/* 漫画画像ラッパー: 紙面の左右パディング突破でほぼ画面端まで広げる */
.comic-image-wrap {
  margin: 12px -12px 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ink);
}
.comic-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--news);
}

.paper-caption {
  padding: 10px 0;
  font-family: 'Klee One', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: center;
}

.cross-sell-note {
  margin: 0;
  padding: 10px 12px;
  border: var(--dashed);
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: center;
}
.cross-sell-note a {
  font-weight: 600;
  text-decoration: underline;
}

.cta-cluster {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed var(--muted);
}
.cta-main-detail {
  background: var(--ink);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ai-yellow);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cta-grid .btn-cta {
  padding: 12px 8px;
  border-radius: 4px;
  border: var(--dashed);
  background: var(--news);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
  text-align: center;
}
.cta-grid .btn-cta.is-line {
  border-color: var(--line);
  color: var(--line);
}
.cta-grid .btn-cta.is-line::before {
  content: "●  ";
  font-size: 10px;
}

/* ========== LINE ゲート（Frame 7） ========== */

.line-gate-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.line-benefit {
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-left: 4px solid var(--ai-yellow);
  border-radius: 2px;
  background: var(--news);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
}
.line-benefit b {
  color: var(--ink);
  margin-right: 6px;
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
}
.gate-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
  font-family: 'Yusei Magic', 'Hiragino Mincho ProN', serif;
}

/* ========== 詳細レポート（Frame 8）========== */

.report-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 10px 0;
}
.report-summary > div {
  text-align: center;
  border-right: 1px dashed #ccc;
  padding: 0 4px;
}
.report-summary > div:last-child { border-right: none; }
.report-summary .label {
  font-size: 9px;
  color: var(--muted);
  font-family: sans-serif;
  font-weight: 500;
}
.report-summary .value {
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

/* details: 算出説明 折りたたみ */
.calc-explain {
  border: var(--dashed);
  border-radius: 8px;
  padding: 0;
  font-size: 12px;
}
.calc-explain summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--ink-soft);
}
.calc-explain summary::-webkit-details-marker { display: none; }
.calc-explain summary::after {
  content: "折りたたみ";
  font-size: 10px;
  color: var(--muted);
  font-family: sans-serif;
}
.calc-explain[open] summary::after { content: "閉じる"; }
.calc-body {
  padding: 0 12px 10px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.report-block {
  border: var(--dashed);
  border-radius: 8px;
  padding: 12px;
}
.report-block h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
}
.report-lead {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* 10領域レーダーチャート */
.radar-wrap { display: flex; justify-content: center; margin: 6px 0 14px; }
.radar-wrap svg { width: 100%; max-width: 300px; height: auto; }

/* 領域別の現状マップ */
.area-map { display: flex; flex-direction: column; gap: 5px; }
.area-map-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--news);
  border-radius: 6px;
}
.area-map-name { font-size: 11px; font-weight: 600; }
.area-map-stage {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.area-map-stage.stage-0 { background: #f0ece2; color: #8a8375; }
.area-map-stage.stage-1 { background: #fdeecf; color: #a06a12; }
.area-map-stage.stage-2 { background: var(--ai-yellow-soft); color: #7a5c00; }
.area-map-stage.stage-3 { background: #1a1a1a; color: #fff; }
.area-map-score { font-size: 12px; font-weight: 800; min-width: 34px; text-align: right; }
.area-map-score small { font-size: 9px; font-weight: 600; }

/* 伸ばしどころ（複数領域＋相談先） */
.growth-list { display: flex; flex-direction: column; gap: 8px; }
.growth-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft, #e5e5e5);
  border-radius: 8px;
}
.growth-rank {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: #1a1a1a; color: #fff;
  border-radius: 50%;
  font-size: 11px; font-weight: 800;
}
.growth-area { font-size: 13px; font-weight: 800; color: var(--ink); }
/* 見取り図：相談先(事業)を見出しに・カバーする凹み領域をタグで（相談先の重複解消） */
.growth-route-name {
  font-size: 15px; font-weight: 900; color: var(--ink);
  background: linear-gradient(transparent 62%, var(--ai-yellow) 62%);
  display: inline; padding: 0 2px;
}
.growth-areas { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 3px; line-height: 1.4; }
/* Before/After：今%は濃く、After%は黒背景で強調（視認性UP・SHION指摘） */
.growth-ba { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.growth-ba .ba-now { font-size: 13px; font-weight: 800; color: var(--ink); }
.growth-ba .arrow-icon { width: 14px; height: 14px; color: var(--ink); }
.growth-ba .ba-after {
  font-size: 14px; font-weight: 900; color: #fff;
  background: var(--ink); border-radius: 6px; padding: 1px 8px;
}
.growth-vision { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.5; margin-top: 2px; }
.growth-route {
  font-size: 14px; font-weight: 900; color: var(--ink);
  padding: 7px 11px;
  background: var(--ai-yellow);
  border-radius: 12px;
  white-space: nowrap; text-align: center; line-height: 1.25;
}
.growth-route small { display: block; font-size: 9.5px; font-weight: 700; }
button.growth-route.is-cta {
  border: none; cursor: pointer; -webkit-appearance: none; appearance: none;
  box-shadow: 0 2px 0 rgba(10,10,10,0.85); transition: transform .08s ease, box-shadow .08s ease;
}
button.growth-route.is-cta:active { transform: translateY(2px); box-shadow: 0 0 0 rgba(10,10,10,0.85); }
.growth-route.is-cta small .arrow-right { width: 11px; height: 8px; vertical-align: -1px; }

/* 仕組み化の視点 */
.method-callout {
  border: 2px solid var(--ai-yellow);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fffdf3;
}
.method-label {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  color: #7a5c00;
  margin-bottom: 6px;
}
.method-body { margin: 0; font-size: 11.5px; line-height: 1.7; }
.method-body strong { font-weight: 800; }

/* 4軸スコア */
.axis-bars { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.axis-row { display: flex; align-items: center; gap: 8px; }
.axis-label { width: 64px; font-weight: 500; }
.axis-bar { flex: 1; height: 6px; background: #eee; border-radius: 99px; overflow: hidden; }
.axis-bar i { display: block; height: 100%; background: var(--ink); }
.axis-value { width: 28px; text-align: right; font-weight: 600; font-family: sans-serif; }

/* 事故化ルート */
.route-map {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.route-step {
  flex: 1;
  padding: 6px 4px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}
.route-step.is-end {
  background: var(--ai-yellow);
  font-weight: 600;
}
.route-arrow { color: var(--muted); }

/* 穴 3つ */
.holes {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.7;
}
.holes li { margin-bottom: 2px; }

/* AI顧問カード（視認性UP・SHION指摘：薄い/小さいを解消） */
.advisor-card {
  background: #fffdf3;
  border: 2px solid var(--ai-yellow);
  border-radius: 10px;
  padding: 13px 14px;
}
.advisor-eyebrow {
  font-size: 12px;
  color: var(--ink);
  margin: 0 0 4px;
  font-weight: 700;
}
.advisor-eyebrow span { text-decoration: underline; text-decoration-color: var(--ai-yellow); text-decoration-thickness: 3px; }
.advisor-vision {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}
.advisor-name { font-size: 13px; font-weight: 600; margin: 0; }
.advisor-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
}
.advisor-foot .advisor-name-line { color: var(--ink); font-weight: 600; font-size: 13px; }
/* 事業名は黄色ハイライトで大きく強調（SHION指摘：小さすぎる） */
.advisor-foot .advisor-name-line b {
  font-weight: 900; font-size: 17px;
  background: linear-gradient(transparent 60%, var(--ai-yellow) 60%);
  padding: 0 3px;
}
.advisor-foot a {
  text-decoration: none; font-weight: 800; color: var(--ink);
  background: var(--ai-yellow); border-radius: 999px; padding: 5px 12px;
  white-space: nowrap;
}
/* 事業名の行まるごとをタップ可能なボタンに（SHION指摘：全部ボタンにして相談へ飛ばす） */
button.advisor-foot-btn {
  width: 100%; border: 2px solid var(--ai-yellow); background: #fffdf3;
  border-radius: 14px; padding: 10px 12px; cursor: pointer;
  -webkit-appearance: none; appearance: none; text-align: left;
  transition: transform .08s ease, box-shadow .08s ease;
  box-shadow: 0 2px 0 rgba(10,10,10,0.12);
}
button.advisor-foot-btn:active { transform: translateY(2px); box-shadow: 0 0 0 rgba(10,10,10,0.12); }
.advisor-foot-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 800; color: var(--ink);
  background: var(--ai-yellow); border-radius: 999px; padding: 5px 12px;
  white-space: nowrap; flex-shrink: 0;
}
.advisor-foot-cta .arrow-icon { color: var(--ink); }

/* ========== 相談・PDF 共通 ========== */

.security-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1.5px solid var(--ink);
  background: var(--ai-yellow);
  font-size: 11px;
  font-weight: 600;
}

/* PDF サムネ */
.pdf-thumb {
  width: 65%;
  aspect-ratio: 1 / 1.3;
  align-self: center;
  border: 1.5px solid var(--ink);
  background: #fafafa;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pdf-thumb-title {
  font-family: 'Yusei Magic', serif;
  font-size: 9px;
  text-align: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.pdf-thumb-bar { height: 10px; background: #ddd; }
.pdf-thumb-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pdf-thumb-grid div { background: #eee; }
.pdf-thumb-line { height: 6px; background: #ddd; }
.pdf-thumb-line.short { width: 70%; }

/* ========== 他社事例（Frame 11）========== */

.other-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.other-card {
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
}
.other-meta {
  display: flex;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  font-family: sans-serif;
  margin-bottom: 2px;
}
.other-type {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
}
.other-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.other-link {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: underline;
  text-align: right;
}

/* ========== 4事業バナー（Frame 12）========== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.service-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.service-icon {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}
.service-card strong {
  font-size: 13px;
  font-weight: 600;
}
.service-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.powered-by {
  margin: 8px 0 0;
  text-align: right;
  font-size: 10px;
  font-family: sans-serif;
  color: var(--muted);
}

/* ========================================
   PC / タブレット拡大表示（min-width: 768px）
   スマホ互換を保ちつつ中央 720px まで広げて
   新聞画面・詳細レポート・4コマ画像を大きく見せる
   ======================================== */

@media (min-width: 768px) {
  .app {
    width: min(720px, 100%);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  }

  /* 主要 view の余白を PC 用に広げる */
  .view {
    padding: 40px 40px 56px;
    gap: 20px;
  }

  /* 入口画面: タイトル・サンプル新聞も大きく */
  .h1 { font-size: 34px; line-height: 1.5; }
  .h2 { font-size: 26px; line-height: 1.5; }
  .lead { font-size: 16px; }
  .muted { font-size: 13px; }

  /* 入口プレビュー新聞: PC では少し小さめに収めて中央配置 */
  .intro-preview { margin-top: 16px; }
  .preview-paper { max-width: 460px; }

  /* ボタン: PC でも適度な大きさに（過大にしない） */
  .btn { max-width: 480px; margin-left: auto; margin-right: auto; padding: 18px; font-size: 16px; }
  .btn-text { max-width: 480px; margin-left: auto; margin-right: auto; }

  /* 選択肢: PC では押しやすく */
  .choices { max-width: 540px; margin: 0 auto; width: 100%; }
  .question-pair { max-width: 540px; margin: 0 auto; width: 100%; gap: 28px; }
  .field { max-width: 540px; margin: 0 auto; width: 100%; }
  .line-gate-content { max-width: 540px; margin: 0 auto; width: 100%; }
  .line-benefit { font-size: 14px; }

  /* topbar: PC では幅を抑える */
  .topbar { max-width: 540px; margin: 0 auto; width: 100%; }

  /* 新聞画面: PC では迫力ある紙面に */
  .view-result .news-inner {
    padding: 32px 24px 40px;
  }
  .masthead-title { font-size: 44px; letter-spacing: 8px; margin: 12px 0 6px; }
  .masthead-meta, .masthead-sub { font-size: 11px; }
  .paper-companyname { font-size: 13px; padding: 8px 0; }
  .score-strip { padding: 18px 0; }
  .score-strip-value { font-size: 36px; }
  .score-strip-yaba { font-size: 28px; }
  .score-strip-stars { font-size: 22px; }
  .paper-headline-sub { font-size: 13px; }
  .paper-headline-main { font-size: 30px; line-height: 1.5; padding: 4px 0; }

  /* 4コマ画像も PC ではほぼ画面端まで広げる（紙面パディング突破 24px） */
  .comic-image-wrap {
    margin: 16px -24px 0;
    padding: 0 0 14px;
  }

  /* 新聞画面の CTA */
  .cta-main-detail { font-size: 18px; padding: 18px; max-width: 540px; margin: 0 auto; width: 100%; }
  .cta-cluster { padding-top: 18px; }
  .cta-grid { max-width: 540px; margin: 0 auto; width: 100%; }
  .cta-grid .btn-cta { padding: 14px 10px; font-size: 14px; }

  /* 詳細レポート */
  .report-block { padding: 16px; }
  .report-block h3 { font-size: 14px; }
  .axis-bars { font-size: 13px; }
  .axis-label { width: 80px; }
  .holes { font-size: 14px; }
  .calc-explain summary { padding: 14px 16px; font-size: 13px; }
  .calc-body { padding: 0 16px 14px; font-size: 13px; }
  .advisor-card { padding: 14px 16px; }
  .advisor-name { font-size: 15px; }

  /* 他社事例カード: PC では 2-3列横並びにできる */
  .other-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* 4事業バナー */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .service-card { padding: 14px; }
}

/* タブレット縦・大型スマホ用の中間調整 */
@media (min-width: 540px) and (max-width: 767px) {
  .app {
    width: min(540px, 100%);
  }
}

/* ============================================
   詳細レポート v2 追加スタイル
   ベンチマーク位置 / 顧問コメント / レーダー /
   業界平均ライン / アクション詳細 / ロードマップ /
   AI顧問カード v2
   ============================================ */

/* ベンチマーク位置（サマリ直後の業界比較数値） */
.benchmark-position {
  margin: 0;
  padding: 10px 12px;
  border: var(--dashed);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: #fafaf4;
  text-align: center;
}
.benchmark-position strong {
  color: var(--ink);
  font-weight: 700;
  font-family: 'Yusei Magic', serif;
}

/* AI Atelier 顧問コメント */
.advisor-comment {
  background: var(--ai-yellow-soft);
  border: 1px solid #ddd;
  border-left: 4px solid var(--ai-yellow);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.advisor-comment-label {
  font-size: 10px;
  color: var(--ink-soft);
  font-family: 'Yusei Magic', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.advisor-comment-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
}
.advisor-comment-body strong {
  background: linear-gradient(transparent 60%, var(--ai-yellow) 60%);
  font-weight: 600;
}

/* レーダーチャート */
.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
#radarChart {
  width: 100%;
  max-width: 280px;
  height: auto;
}
.radar-legend {
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: var(--ink-soft);
  font-family: 'Yusei Magic', serif;
}
.radar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.radar-legend-item i {
  display: inline-block;
  width: 12px;
  height: 8px;
  border: 1px solid var(--ink);
}
.radar-self i { background: rgba(250, 204, 21, 0.28); }
.radar-bench i { background: rgba(136, 136, 136, 0.08); border: 1px dashed #888; }

/* ベンチマーク注釈 */
.benchmark-note {
  margin: 4px 0 0;
  font-size: 9px;
  color: var(--muted);
  font-family: sans-serif;
  text-align: right;
}

/* 業界平均ライン（axis-bar 内に絶対配置） */
.axis-bar { position: relative; overflow: visible; }
.axis-benchmark {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 0;
  border-left: 1.5px dashed #888;
  pointer-events: none;
}
.axis-value small {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}

/* アクションリスト（穴3つ → 推奨アクション） */
.action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fafafa;
}
.action-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.action-no {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--ai-yellow);
  font-family: 'Yusei Magic', serif;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.action-hole {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.action-do {
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 4px;
  padding-left: 28px;
  line-height: 1.55;
}
.action-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-left: 28px;
  font-size: 10px;
  color: var(--muted);
  font-family: sans-serif;
}
.action-meta .action-days {
  font-weight: 600;
  color: var(--ink-soft);
}
.action-meta .action-effect {
  color: var(--ink-soft);
}

/* NEXT STEP ロードマップ */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roadmap-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-left: 3px solid var(--ink);
  background: #fafaf4;
}
.roadmap-step-label {
  font-family: 'Yusei Magic', serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--ai-yellow);
  padding: 4px 6px;
  border-radius: 4px;
  text-align: center;
  align-self: start;
}
.roadmap-step-body {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink);
}

/* AI顧問カード v2（3プラン強化） */
.advisor-card-v2 {
  background: var(--news);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.advisor-card-v2 .advisor-eyebrow {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  font-family: 'Yusei Magic', serif;
}
.advisor-headline {
  margin: 0;
  font-family: 'Yusei Magic', serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
}
.advisor-pwc-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.advisor-plans {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.advisor-plan {
  display: grid;
  grid-template-columns: 60px 70px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
}
.plan-name {
  font-family: 'Yusei Magic', serif;
  font-weight: 700;
  font-size: 13px;
}
.plan-price {
  font-family: 'Yusei Magic', serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}
.plan-body {
  font-size: 10.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.advisor-card-v2 .advisor-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #ccc;
  gap: 8px;
}
.advisor-first30 {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 10px;
  line-height: 1.4;
}
.advisor-card-v2 .advisor-foot a {
  text-decoration: underline;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}

/* PC 拡大時の調整 */
@media (min-width: 768px) {
  #radarChart { max-width: 340px; }
  .advisor-comment-body { font-size: 14px; line-height: 1.8; }
  .roadmap-step { grid-template-columns: 90px 1fr; padding: 12px 14px; }
  .roadmap-step-label { font-size: 12px; }
  .roadmap-step-body { font-size: 13px; }
  .advisor-plan { grid-template-columns: 80px 80px 1fr; padding: 10px 12px; }
  .plan-name { font-size: 14px; }
  .plan-price { font-size: 13px; }
  .plan-body { font-size: 11.5px; }
  .advisor-headline { font-size: 17px; }
  .advisor-pwc-note { font-size: 12px; }
  .action-item { padding: 12px 14px; }
  .action-hole { font-size: 13px; }
  .action-do { font-size: 13px; padding-left: 30px; }
  .action-meta { font-size: 11px; padding-left: 30px; }
  .benchmark-position { font-size: 13px; padding: 12px 14px; }
  .radar-legend { font-size: 11px; }
}

/* Web Font (Klee One / Yusei Magic) は HTML 側 <link> で読み込む */

/* 太い矢印（見出し・Before/After） */
.arrow-bold { vertical-align: middle; margin: 0 4px; }
.growth-ba .arrow-bold { width: 24px; height: 17px; margin: 0 3px; }

/* 2段階目：サービスへの誘導（目立たせる） */
.paper-headline-combo {
  margin-top: 10px !important;
  font-size: 14px !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
  background: #fffdf3;
  border: 2px solid var(--ai-yellow);
  border-radius: 8px;
  padding: 8px 12px;
}
.paper-headline-combo strong { color: var(--ink); font-weight: 900; }
.paper-headline-combo .combo-note { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.combo-link {
  display: inline-flex; align-items: center; gap: 3px;
  text-decoration: none; color: var(--ink);
  background: var(--ai-yellow); border-radius: 999px;
  padding: 2px 10px; margin-left: 2px;
}
.combo-link .arrow-right { width: 12px; height: 9px; }
