/* shindan-embed.css — 自動生成（embed/build.mjs）。直接編集しないこと。
 * 元: css/style.css を診断用だけ抽出し .ai-shindan にスコープ化。
 */
/* container reset: WPテーマ(SWELL)からの継承を打ち消す */
.ai-shindan { box-sizing: border-box; text-align: left; }
.ai-shindan *, .ai-shindan *::before, .ai-shindan *::after { box-sizing: border-box; }

/* 見出し: SWELLの色/下線/字間/背景/枠/影を無効化 */
.ai-shindan h1, .ai-shindan h2, .ai-shindan h3 {
  margin: 0; padding: 0; line-height: 1.25;
  color: var(--ink); text-decoration: none; letter-spacing: normal;
  background: none; border: 0; text-shadow: none;
}
.ai-shindan h1::before, .ai-shindan h1::after,
.ai-shindan h2::before, .ai-shindan h2::after,
.ai-shindan h3::before, .ai-shindan h3::after { content: none; display: none; }

/* 段落: SWELLが当てる余白/枠を無効化 */
.ai-shindan p { margin: 0; padding: 0; border: 0; background: none; }

.ai-shindan ul, .ai-shindan li { margin: 0; padding: 0; list-style: none; }

/* ボタン: 既存の打ち消しを維持（next/restart 等を壊さない） */
.ai-shindan button { font-family: inherit; }

/* リンク: 既定は継承色。個別に .sim-link へ明示色を与える */
.ai-shindan a { color: inherit; text-decoration: underline; }
.ai-shindan .sim-link { color: var(--accent-dark); }
.ai-shindan .btn, .ai-shindan .btn:hover { text-decoration: none; }

/* 入力: SWELLの固定 height(60px等)/枠/影を無効化 */
.ai-shindan input, .ai-shindan textarea, .ai-shindan select {
  height: auto; max-width: none; box-shadow: none;
  font-family: inherit; line-height: normal; margin: 0;
}

.ai-shindan { --ink: #0F172A;          
  --ink-soft: #334155;     
  --ink-muted: #64748B;    
  --accent: #D97706;       
  --accent-dark: #B45309;  
  --accent-tint: #FDF2E3;  
  --base: #FAF7F2;         
  --surface: #FFFFFF;      
  --line: #E7E1D8;         
  --ok: #15803D;           

  
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 72px;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);

  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --maxw: 1080px; }
.ai-shindan, .ai-shindan * { box-sizing: border-box; }
.ai-shindan { margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--base);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased; }
.ai-shindan .btn { display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease; }
.ai-shindan .btn:active { transform: translateY(1px); }
.ai-shindan .btn-primary { background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28); }
.ai-shindan .btn-primary:hover { background: var(--accent-dark); }
.ai-shindan .btn-ghost { background: transparent;
  color: var(--ink);
  border-color: var(--line); }
.ai-shindan .btn-ghost:hover { border-color: var(--ink-muted); }
.ai-shindan .btn-block { width: 100%; }
@media (min-width: 560px) {
  .ai-shindan .hero-cta .btn { width: auto; }
}
.ai-shindan .kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent-dark); text-transform: uppercase;
  margin-bottom: var(--sp-1); }
.ai-shindan .subsidy-band .kicker { color: var(--accent); }
.ai-shindan .placeholder .btn { margin-top: var(--sp-4); }
.ai-shindan .tool-head { padding: var(--sp-4) 0 var(--sp-2); }
.ai-shindan .tool-head h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 900; }
.ai-shindan .tool-head p { margin-top: var(--sp-2); color: var(--ink-soft); max-width: 46ch; }
.ai-shindan .steps { display: flex;
  gap: var(--sp-1);
  margin: var(--sp-3) 0 var(--sp-4); }
.ai-shindan .steps .step { flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line); }
.ai-shindan .steps .step.done { background: var(--accent); }
.ai-shindan .steps .step.current { background: var(--accent); opacity: 0.55; }
.ai-shindan .panel { background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow); }
.ai-shindan .panel[hidden] { display: none; }
.ai-shindan .q-label { font-size: 1.2rem; font-weight: 800; }
.ai-shindan .q-help { margin-top: var(--sp-1); color: var(--ink-muted); font-size: 0.9rem; }
.ai-shindan .choice-grid { margin-top: var(--sp-3);
  display: grid;
  gap: var(--sp-2); }
@media (min-width: 560px) {
  .ai-shindan .choice-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
.ai-shindan .choice { display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--base);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  min-height: 56px;
  transition: border-color 0.12s, background 0.12s; }
.ai-shindan .choice:hover { border-color: var(--accent); }
.ai-shindan .choice[aria-pressed="true"], .ai-shindan .choice.selected { border-color: var(--accent);
  background: var(--accent-tint); }
.ai-shindan .choice .check { width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 6px;
  border: 2px solid var(--ink-muted);
  display: grid; place-items: center;
  color: #fff;
  font-size: 0.8rem; }
.ai-shindan .choice.selected .check, .ai-shindan .choice[aria-pressed="true"] .check { background: var(--accent); border-color: var(--accent); }
.ai-shindan .wage-row { margin-top: var(--sp-3);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai-shindan .wage-input { font-family: inherit;
  font-size: 1.15rem; font-weight: 700;
  width: 140px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--base);
  color: var(--ink); }
.ai-shindan .wage-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.ai-shindan .task-list { margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.ai-shindan .task-item { border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-2);
  background: var(--base); }
.ai-shindan .task-item.selected { border-color: var(--accent); background: var(--accent-tint); }
.ai-shindan .task-top { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.ai-shindan .task-top .check { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px;
  border-radius: 6px; border: 2px solid var(--ink-muted);
  display: grid; place-items: center; color: #fff; font-size: 0.8rem; }
.ai-shindan .task-item.selected .task-top .check { background: var(--accent); border-color: var(--accent); }
.ai-shindan .task-name { font-weight: 700; }
.ai-shindan .task-hint { display: block; margin-top: 2px; font-size: 0.82rem; color: var(--ink-muted); font-weight: 400; }
.ai-shindan .task-hours { margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--ink-soft); }
.ai-shindan .task-hours[hidden] { display: none; }
.ai-shindan .task-hours input[type="range"] { flex: 1; accent-color: var(--accent); }
.ai-shindan .task-hours .val { font-weight: 800; color: var(--ink); min-width: 4.5ch; text-align: right; }
.ai-shindan .tool-nav { margin-top: var(--sp-4);
  display: flex; gap: var(--sp-2); }
.ai-shindan .tool-nav .btn { flex: 1; }
.ai-shindan .result-hero { text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-3);
  box-shadow: var(--shadow); }
.ai-shindan .result-hero .kicker { color: var(--accent-dark); }
.ai-shindan .result-amount { font-size: clamp(2.4rem, 11vw, 4rem);
  font-weight: 900;
  color: var(--ok);
  line-height: 1.05;
  margin: var(--sp-2) 0 var(--sp-1); }
.ai-shindan .result-amount .yen { font-size: 0.45em; color: var(--ink); font-weight: 800; }
.ai-shindan .result-sub { color: var(--ink-soft); }
.ai-shindan .result-sub b { color: var(--ink); }
.ai-shindan .result-assump { margin-top: var(--sp-2); font-size: 0.82rem; color: var(--ink-muted); }
.ai-shindan .result-metrics { margin-top: var(--sp-3);
  display: grid; gap: var(--sp-2);
  grid-template-columns: 1fr 1fr; }
.ai-shindan .metric { background: var(--base);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-2);
  text-align: center; }
.ai-shindan .metric .m-num { font-size: 1.4rem; font-weight: 900; color: var(--ink); }
.ai-shindan .metric .m-label { font-size: 0.8rem; color: var(--ink-muted); margin-top: 2px; }
.ai-shindan .breakdown { margin-top: var(--sp-4); }
.ai-shindan .breakdown h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: var(--sp-3); }
.ai-shindan .bar-row { margin-bottom: var(--sp-3); }
.ai-shindan .bar-meta { display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; margin-bottom: 6px; }
.ai-shindan .bar-meta .name { font-weight: 700; font-size: 0.95rem; }
.ai-shindan .bar-meta .amt { font-weight: 800; color: var(--ok); white-space: nowrap; }
.ai-shindan .bar-track { height: 14px; border-radius: 999px;
  background: var(--line); overflow: hidden; }
.ai-shindan .bar-fill { height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.5s ease; }
.ai-shindan .bar-hint { margin-top: 6px; font-size: 0.82rem; color: var(--ink-muted); }
.ai-shindan .subsidy-card { margin-top: var(--sp-4);
  background: var(--accent-tint);
  border: 1px solid #F2D9B3;
  border-radius: var(--radius-lg);
  padding: var(--sp-4); }
.ai-shindan .subsidy-card .kicker { color: var(--accent-dark); }
.ai-shindan .subsidy-card h3 { font-size: 1.25rem; font-weight: 800; margin-top: 4px; }
.ai-shindan .subsidy-amt { font-size: 1.7rem; font-weight: 900; color: var(--accent-dark);
  margin: var(--sp-2) 0 4px; }
.ai-shindan .subsidy-meta { color: var(--ink-soft); font-size: 0.95rem; }
.ai-shindan .subsidy-note { margin-top: var(--sp-3); font-size: 0.82rem; color: var(--ink-soft);
  line-height: 1.7; }
.ai-shindan .subsidy-card .sim-link { display: inline-block; margin-top: var(--sp-2); font-weight: 700; }
.ai-shindan .subsidy-disclaimer { margin-top: var(--sp-2); font-size: 0.8rem; color: var(--ink-muted); }
.ai-shindan .result-cta { margin-top: var(--sp-4);
  text-align: center; }
.ai-shindan .result-cta .btn { width: 100%; }
.ai-shindan .result-cta .again { display: inline-block; margin-top: var(--sp-3);
  background: none; border: none; cursor: pointer;
  color: var(--ink-muted); font-family: inherit; font-size: 0.9rem;
  text-decoration: underline; }
@media (min-width: 560px) {
  .ai-shindan .result-cta .btn { width: auto; padding-left: 40px; padding-right: 40px; }
}
.ai-shindan .visually-hidden { position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0; }
