/* 見た目の仕上げ（2026-10-22 作り直し）。
   「AI っぽい」飾り（ぼかしたガラス・光・グラデーション・動く背景）はやめ、
   IPA・JPCERT/CC・駆けつけ系サービスの作りにならう：白い背景と細い線、色はべた塗り、
   赤は「緊急」だけ、黄色は「無料」だけ、日付と公的な出典をはっきり見せる。
   ファイル名は読み込み側を変えないため glass.css のまま。 */

:root {
  --brand: #1d4ed8;
  --brand-dark: #12307a;
  --brand-grad: #1d4ed8;          /* blog.css が背景色として使う。べた塗り */
  --on-brand: #fff;
  --blue: #1d4ed8;
  --violet: #1d4ed8;
  --teal: #1d4ed8;
  --alert: #c8102e;
  --alert-dark: #9b0c22;
  --free: #ffd400;
  --glass: #fff;
  --glass-strong: #fff;
  --glass-line: var(--line);
  --glass-shadow: none;
  --radius: 6px;
}

body { background: #f2f4f7; }
.bg { display: none; }

/* ---------------------------------------------------------------- 箱 */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.tool, .result, .next, .doc, .side-box, .answer, .faq, .table-wrap, .glass, .card-glass {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.tool-run { background: #f7f8fa; }
.answer { border-left: 4px solid var(--brand); }
.side-box.cta { border: 2px solid var(--brand); }
.chips li { background: #fff; border-color: var(--line); }
.msg { background: #f7f8fa; }
input, textarea { background: #fff; border-color: #c3c9d4; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); }
.grad-text { color: var(--alert); }
.live { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #16a34a; vertical-align: 1px; }
code { background: #eef2f8; color: #12307a; }

/* ---------------------------------------------------------------- ボタン */
.btn-main { background: var(--brand); color: #fff; border-radius: var(--radius); box-shadow: none; transition: background .15s; }
.btn-main:hover { background: var(--brand-dark); }
.btn-sub { background: #fff; border: 1px solid var(--brand); color: var(--brand); border-radius: var(--radius); }
.btn-sub:hover { background: #eef3ff; }

/* 選択肢 */
.choice span { background: #fff; border: 1px solid #c3c9d4; border-radius: var(--radius); transition: border-color .12s, background .12s; }
.choice span:hover { border-color: var(--brand); background: #f5f8ff; }
.choice input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.num { background: var(--brand); color: #fff; }
.steps li::before { background: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- 結果 */
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; }
.result.danger .result-head { background: #fff5f5; border-top-color: var(--alert); }
.result.check .result-head { background: #fffaeb; }
.result.ok .result-head { background: #f0fbf4; }
.meter { flex: 0 0 auto; width: 120px; height: 72px; }
.meter path { fill: none; stroke-width: 10; stroke-linecap: butt; }
.meter-bg { stroke: #e5e8ee; }
.meter-val { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .8s ease-out; }
.danger .meter-val { stroke: var(--alert); }
.check .meter-val { stroke: #d97706; }
.ok .meter-val { stroke: #16a34a; }
.meter text { font-size: 11px; fill: var(--muted); text-anchor: middle; }

/* 次の一歩 */
.next { border: 2px solid var(--brand); }
.path { position: relative; background: #fff; border: 1px solid #c3c9d4; border-radius: var(--radius); transition: border-color .12s, background .12s; }
.path:hover { border-color: var(--brand); background: #f5f8ff; }
.path.on { background: var(--brand); border-color: var(--brand); }
.path.first { border: 2px solid var(--alert); }
.path.first::after { content: "おすすめ"; position: absolute; top: -10px; right: 10px; padding: 1px 8px; border-radius: 3px; background: var(--alert); color: #fff; font-size: .66rem; font-weight: 700; }
.paths { padding-top: 6px; }
.stuck { background: #f5f8ff; border: 1px solid #d6e0f5; }
.price { background: #fffbe6; border: 1px solid #f0d97a; }

/* ---------------------------------------------------------------- 保守期限の図 */
.timeline { margin: 0 0 18px; padding: 16px 18px 10px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.tl-axis { display: grid; grid-template-columns: 64px 1fr; font-size: .7rem; color: var(--muted); }
.tl-years { position: relative; height: 18px; }
.tl-years span { position: absolute; transform: translateX(-50%); }
.tl-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; height: 28px; font-size: .82rem; font-weight: 700; }
.tl-track { position: relative; height: 10px; background: #eef1f5; }
.tl-bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--brand); transform-origin: left; transform: scaleX(0); transition: transform .9s ease-out; }
.tl-bar.short { background: var(--alert); }
.in .tl-bar { transform: scaleX(1); }
.tl-row.ended em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--alert); }
.tl-note { margin: 6px 0 0; font-size: .72rem; color: var(--muted); }

/* ---------------------------------------------------------------- 出てくる動き（控えめに、ふわっと出すだけ） */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result.show, .next.show, .path-panel:not([hidden]) { animation: rise .35s ease-out; }

/* ---------------------------------------------------------------- 緊急の帯（全ページの上） */
.alert-bar { position: relative; z-index: 11; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: var(--alert); color: #fff; font-size: .84rem; text-decoration: none; text-align: center; }
.alert-bar b { padding: 1px 8px; border-radius: 3px; background: #fff; color: var(--alert); font-size: .75rem; letter-spacing: .1em; }
.alert-go { padding: 2px 10px; border: 1px solid #fff; border-radius: 3px; font-weight: 700; font-size: .78rem; }
.alert-bar:hover .alert-go { background: #fff; color: var(--alert); }
.siren { display: none; }

/* ---------------------------------------------------------------- トップの見出し（駆けつけ系の広告にならう） */
.hero-ad { margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--alert); border-radius: var(--radius); overflow: hidden; }
.hero-ad-in { padding: 26px 28px 0; }
.hero-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: .85rem; color: var(--ink); }
.hero-kicker .tag-urgent { padding: 2px 10px; background: var(--alert); color: #fff; font-weight: 700; letter-spacing: .1em; border-radius: 3px; }
.hero-title { margin: 12px 0 8px; color: var(--ink); font-size: 2.15rem; line-height: 1.35; font-weight: 900; letter-spacing: .01em; }
.hero-title .hl { color: var(--alert); }
.hero-sub { margin: 0 0 18px; color: #333; font-size: 1rem; line-height: 1.8; }
.hero-sub b { background: linear-gradient(transparent 62%, #ffe14d 62%); }
.hero-stats { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-stats li { padding: 12px 14px; border-right: 1px solid var(--line); }
.hero-stats li:last-child { border-right: 0; }
.hero-stats span { display: block; font-size: .74rem; color: var(--muted); }
.hero-stats b { font-size: 1.6rem; line-height: 1.3; color: var(--ink); font-weight: 900; }
.hero-stats small { margin-left: 2px; color: var(--muted); }
.hero-stats .red b { color: var(--alert); }
.hero-stats .count b { font-size: 1.05rem; }
.hero-stats .count em { font-style: normal; font-size: 1.8rem; margin: 0 2px; color: var(--alert); font-variant-numeric: tabular-nums; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; text-align: center; }
.hero-cta p { margin: 0; font-size: .8rem; color: var(--muted); }
.hero-cta .btn-hero { min-width: 360px; justify-content: center; }
/* 赤いべた塗りのボタンに、白い「無料」の札（駆けつけ系の電話ボタンと同じ形） */
.btn-hero { display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px 14px 16px; border-radius: var(--radius); background: var(--alert); color: #fff; font-weight: 900; font-size: 1.15rem; letter-spacing: .04em; text-decoration: none; box-shadow: 0 3px 0 var(--alert-dark); transition: transform .08s, box-shadow .08s; }
.btn-hero .free { padding: 3px 8px; border-radius: 3px; background: #fff; color: var(--alert); font-size: .8rem; letter-spacing: .05em; }
.btn-hero:hover { background: #b00d28; }
.btn-hero:active { transform: translateY(3px); box-shadow: none; }
/* 「すべて無料」の帯 */
.free-band { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 -28px; padding: 12px 20px; background: var(--brand-dark); color: #fff; font-weight: 700; font-size: 1rem; }
.free-band em { font-style: normal; font-size: 1.5rem; color: var(--free); font-weight: 900; letter-spacing: .05em; }
.free-band small { width: 100%; text-align: center; font-weight: 400; font-size: .72rem; color: #c6d0e8; }
.hero-meta { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 14px; font-size: .75rem; color: var(--muted); }
.hero-meta b { color: var(--ink); }
.pc-inline { display: inline; }

/* 公的機関の注意喚起（IPA の一覧にならう：ラベル・日付・題名） */
.official { margin: 0 0 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.official h2 { margin: 0 0 4px; font-size: 1.05rem; padding-left: 10px; border-left: 4px solid var(--alert); }
.official p { margin: 0 0 8px; font-size: .82rem; color: var(--muted); }
.official ul { list-style: none; margin: 0; padding: 0; }
.official li { display: grid; grid-template-columns: auto 8.5em 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.official .lbl { padding: 1px 8px; border-radius: 3px; background: var(--brand-dark); color: #fff; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.official .lbl.red { background: var(--alert); }
.official time { color: var(--muted); font-size: .82rem; }
.official a { color: var(--brand); }

/* ---------------------------------------------------------------- 移行の不安 → 引き受けること */
.pas { margin-top: 24px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pas-kicker { margin: 0; font-size: .82rem; font-weight: 700; color: var(--alert); }
.pas h2 { margin: 4px 0 16px; font-size: 1.4rem; }
.pas-grid { display: grid; grid-template-columns: 1fr 36px 1fr; align-items: stretch; }
.pas-col { padding: 16px 18px; border-radius: var(--radius); }
.pas-col h3 { margin: 0 0 8px; font-size: 1rem; }
.pas-col.worry { background: #fff5f5; border: 1px solid #f3c7cd; }
.pas-col.worry h3 { color: var(--alert); }
.pas-col.solve { background: #fff; border: 2px solid var(--brand); }
.pas-col.solve h3 { color: var(--brand); }
.pas-arrow { position: relative; }
.pas-arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-top: 3px solid var(--brand); border-right: 3px solid var(--brand); transform: translate(-70%, -50%) rotate(45deg); }
.xlist, .clist { list-style: none; margin: 0; padding: 0; }
.xlist li, .clist li { position: relative; padding: 8px 0 8px 24px; font-size: .88rem; line-height: 1.65; border-bottom: 1px dashed #dde1e8; }
.xlist li:last-child, .clist li:last-child { border-bottom: 0; }
.xlist li::before, .xlist li::after { content: ""; position: absolute; left: 3px; top: 1.2em; width: 12px; height: 2.5px; background: var(--alert); transform: rotate(45deg); }
.xlist li::after { transform: rotate(-45deg); }
.clist li::before { content: ""; position: absolute; left: 3px; top: .95em; width: 11px; height: 6px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.xlist b { color: var(--alert); }
.clist b { color: var(--ink); }
.pas-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.inline-cta { display: inline-block; width: auto; padding: 13px 30px; }
.pas-cta span { font-size: .85rem; color: var(--muted); }

@media (max-width: 760px) {
  .hero-ad-in { padding: 20px 16px 0; }
  .hero-title { font-size: 1.5rem; }
  .hero-title .pc, .pc-inline { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li:nth-child(2) { border-right: 0; }
  .hero-stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-cta .btn-hero { display: flex; justify-content: center; width: 100%; min-width: 0; }
  .free-band { margin: 0 -16px; }
  .official li { grid-template-columns: auto 1fr; }
  .official li a { grid-column: 1 / -1; }
  .alert-bar { font-size: .75rem; }
  .pas { padding: 18px 16px; }
  .pas-grid { grid-template-columns: 1fr; }
  .pas-arrow { height: 30px; }
  .pas-arrow::before { transform: translate(-50%, -70%) rotate(135deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .tl-bar { transform: none; }
}

/* ---------------------------------------------------------------- トップは1列（診断の流れだけ） */
.layout.single { grid-template-columns: minmax(0, 860px); justify-content: center; padding-top: 20px; }
.more, .faq-sec { margin-top: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.more h2, .faq-sec h2 { margin: 0 0 12px; font-size: 1.15rem; padding-left: 10px; border-left: 4px solid var(--brand); }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.more-list a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.more-list a:hover { border-color: var(--brand); background: #f5f8ff; }
.more-list .lbl { grid-row: span 2; align-self: start; padding: 1px 8px; border-radius: 3px; background: var(--brand-dark); color: #fff; font-size: .7rem; font-weight: 700; }
.more-list .lbl.tool { background: var(--brand); }
.more-list b { color: var(--ink); font-size: .95rem; }
.more-list small { color: var(--muted); font-size: .8rem; }
.faq-sec .faq { margin-bottom: 8px; }
.official { margin-top: 16px; }
@media (max-width: 760px) { .more-list { grid-template-columns: 1fr; } }
