:root {
  --text: #1f2a24;
  --sub: #5c6a62;
  --line: #d8e0da;
  --card: #f1f4f2;
  --bg: #edf1ee;
  --surface: #ffffff;
  --accent: #2f6b4f;
  --on-accent: #ffffff;
  --accent-bg: #e2ede6;
  --accent-ink: #245a40;
  --warn-bg: #fff4e5;
  --warn-ink: #8a5300;
  --rule: #e3e9e4;
  --bar: #b9c7be;
  --sun: #f7c948;
  --on-sun: #1f2a24;
  --mark: #ffe08a;
  --coral: #e8735a;
  --coral-bg: #fde6df;
  --coral-ink: #a3402a;
  --shadow: #c6d5ca;
  --accent-deep: #1d4a35;
  --dot: #d6e1d9;
  --radius: 22px;
  --head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", Meiryo, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #f5f5f7; --sub: #a1a1a6; --line: #424245; --card: #1c1c1e; --bg: #000000; --surface: #111113;
    --accent: #7cc4a0; --on-accent: #0b1a12; --accent-bg: #143223; --accent-ink: #a9dcc2;
    --warn-bg: #3a2a10; --warn-ink: #ffc56b; --rule: #2c2c2e; --bar: #636366; color-scheme: dark;
    --sun: #e9bc3f; --on-sun: #1a1608; --mark: #5c4a12; --coral: #f08f77; --coral-bg: #3d1f18; --coral-ink: #ffb4a1; --shadow: #050807; --accent-deep: #2f6b4f; --dot: #18221d;
  }
}
:root[data-theme="dark"] {
  --text: #f5f5f7; --sub: #a1a1a6; --line: #424245; --card: #1c1c1e; --bg: #000000; --surface: #111113;
  --accent: #7cc4a0; --on-accent: #0b1a12; --accent-bg: #143223; --accent-ink: #a9dcc2;
  --warn-bg: #3a2a10; --warn-ink: #ffc56b; --rule: #2c2c2e; --bar: #636366; color-scheme: dark;
    --sun: #e9bc3f; --on-sun: #1a1608; --mark: #5c4a12; --coral: #f08f77; --coral-bg: #3d1f18; --coral-ink: #ffb4a1; --shadow: #050807; --accent-deep: #2f6b4f; --dot: #18221d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  font-feature-settings: "palt";
}
a { color: var(--accent); }
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  max-width: 720px; margin: 0 auto; padding-block: 16px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.brand { font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; }
.pr-note { white-space: nowrap; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; line-height: 1.4; }
.pr-note::before { content: "PR"; font-size: 12px; font-weight: 800; color: var(--on-accent); background: var(--text); border-radius: 999px; padding: 1px 8px; }
main { max-width: 720px; margin: 0 auto; padding-top: 8px; padding-bottom: 64px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); outline: none; }
.site-footer { max-width: 720px; margin: 0 auto; padding-top: 24px; padding-bottom: 48px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.site-footer p { margin: 6px 0; }

/* hero */
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: clamp(26px, 7.8vw, 48px); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 20px; font-weight: 700; }
.hero p.lead { font-size: 19px; color: var(--sub); margin: 0 0 28px; }
.meta-row { display: flex; gap: 20px; flex-wrap: wrap; color: var(--sub); font-size: 15px; margin-top: 20px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; font-size: 17px;
  text-decoration: none; cursor: pointer; text-align: center; line-height: 1.4; padding-top: 10px; padding-bottom: 10px;
}
.btn:focus-visible, .choice:focus-visible, .link-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn.secondary { background: var(--card); color: var(--text); }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--accent); font: inherit; font-size: 16px; min-height: 44px; padding: 0 4px; cursor: pointer; }

/* question */
.progress { height: 4px; background: var(--card); border-radius: 4px; overflow: hidden; margin: 16px 0 40px; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .35s ease; }
.step { font-size: 14px; color: var(--sub); margin: 0 0 8px; }
.q-title { font-size: clamp(26px, 6vw, 34px); line-height: 1.35; margin: 0 0 12px; font-weight: 700; }
.q-help { color: var(--sub); margin: 0 0 28px; font-size: 16px; }
.choices { display: grid; gap: 12px; margin: 0 0 24px; }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; text-align: left;
  padding: 14px 20px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  font: inherit; font-size: 17px; color: var(--text); cursor: pointer;
}
.choice small { display: block; color: var(--sub); font-size: 14px; line-height: 1.5; }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { border-color: var(--accent); background: var(--accent-bg); }
.check { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--surface); }
.choice[aria-checked="true"] .check { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--accent-bg); }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
select, input[type=month], input[type=number] {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line);
  font: inherit; font-size: 17px; color: var(--text); background: var(--surface);
}
.field { margin: 0 0 20px; }
.field label { display: block; font-weight: 600; margin: 0 0 6px; }
.field .hint { color: var(--sub); font-size: 14px; margin: 6px 0 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--card); color: var(--sub); margin-left: 6px; vertical-align: 2px; }
.tag.warn { background: var(--warn-bg); color: var(--warn-ink); }

/* result */
.fade-in { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } .progress > span { transition: none; } }
.section { margin: 48px 0; }
.section h2 { font-size: 24px; margin: 0 0 16px; line-height: 1.4; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; margin: 0 0 12px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; }
.big { font-size: clamp(30px, 7vw, 40px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.muted { color: var(--sub); }
.status { display: inline-block; font-weight: 600; padding: 4px 12px; border-radius: 999px; font-size: 15px; margin: 0 0 12px; }
.status.likely { background: var(--accent-bg); color: var(--accent-ink); }
.status.maybe { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.status.no { background: var(--card); color: var(--text); }
ul.plain { margin: 8px 0 0; padding-left: 1.2em; }
.deadline { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.deadline:last-child { border-bottom: 0; }
.deadline b { white-space: nowrap; }
ol.todo { padding: 0; margin: 0; list-style: none; counter-reset: t; }
ol.todo li { counter-increment: t; position: relative; padding: 18px 0 18px 48px; border-bottom: 1px solid var(--line); }
ol.todo li::before { content: counter(t); position: absolute; left: 0; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.exit { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 12px; }
.exit .pr { font-size: 12px; font-weight: 700; color: var(--sub); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; margin-right: 8px; }
.exit h3 { margin: 8px 0 4px; font-size: 19px; }
.exit p { margin: 0 0 16px; color: var(--sub); font-size: 15px; }
.disclaimer { font-size: 14px; color: var(--sub); }

/* simulator */
.seg { display: inline-flex; background: var(--card); border-radius: 999px; padding: 4px; margin: 0 0 24px; }
.seg button { min-height: 44px; min-width: 88px; border: 0; background: none; border-radius: 999px; font: inherit; font-size: 16px; cursor: pointer; color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.bars { display: grid; gap: 18px; }
.bar-row .label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.bar-row .label span:last-child { font-variant-numeric: tabular-nums; }
.bar { height: 12px; background: var(--card); border-radius: 6px; margin-top: 8px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 6px; background: var(--bar); transition: width .5s ease; }
.bar-row.best .bar > span { background: var(--accent); }
.bar-row .note { font-size: 14px; color: var(--sub); margin-top: 4px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
table.breakdown { width: 100%; border-collapse: collapse; font-size: 15px; }
table.breakdown td { padding: 6px 0; border-bottom: 1px solid var(--rule); }
table.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid2 { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; }
.toggle input { width: 22px; height: 22px; }
.sources li { margin: 0 0 10px; }

/* v2 */
.ym-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.hint.err { color: var(--warn-ink); }
.card.headline { background: var(--accent-bg); }
.card.headline .big { color: var(--accent-ink); margin: 4px 0 8px; font-size: clamp(24px, 6vw, 32px); }
.card.example-note { border: 1.5px dashed var(--line); background: var(--bg); }
.bars.is-example { opacity: .75; }
.bar-row .diff { display: block; text-align: right; font-weight: 400; font-size: 13px; color: var(--sub); }
.bar-row .tag { margin-left: 8px; background: var(--accent-bg); color: var(--accent-ink); }
.field-title { font-weight: 600; margin: 0 0 8px; }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; min-width: 0; padding: 0 6px; font-size: 15px; }
.notice-mock { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-size: 13px; font-variant-numeric: tabular-nums; }
.nm-title { color: var(--sub); margin: 0 0 6px; }
.nm-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; padding: 4px 0; }
.nm-head { color: var(--sub); border-bottom: 1px solid var(--rule); }
.nm-hit { color: var(--accent-ink); font-weight: 700; background: var(--accent-bg); border-radius: 4px; padding: 0 4px; }
details.more { margin-top: 8px; }
details.more summary { color: var(--accent); }

/* v3 */
.lead-text { font-size: 18px; margin: 0 0 24px; }
.cta-row { margin: 0 0 8px; }
.cta-row .hint { color: var(--sub); font-size: 14px; text-align: center; margin: 8px 0 0; }
.sub-h { font-size: 20px; margin: 48px 0 12px; }
.quick { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 20px; margin: 0 0 8px; border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.quick > span:last-child { font-size: 28px; color: var(--sub); }
.quick .muted { font-size: 15px; }
.summary { font-size: 18px; margin: 0 0 20px; }
.yearly { color: var(--text); font-weight: 600; }

/* site */
.article { max-width: 720px; margin: 0 auto; padding-top: 8px; padding-bottom: 32px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
main .article { padding-left: 0; padding-right: 0; }
.article h2 { font-size: 22px; margin: 40px 0 12px; line-height: 1.4; }
.article p, .article li { margin: 0 0 12px; }
.article ul { padding-left: 1.2em; }
.seo { border-top: 1px solid var(--line); margin-top: 16px; }
dl.faq dt { font-weight: 700; margin: 20px 0 4px; }
dl.faq dd { margin: 0; color: var(--sub); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* 案内役（結果を話して伝える） */
.guide { margin: 8px 0 28px; }
.guide-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.guide-head b { display: block; font-size: 17px; }
.guide-head .muted { display: block; font-size: 13px; line-height: 1.5; }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: block; }
.avatar svg, .avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar { background: #fff; }
.avatar.sm { width: 44px; height: 44px; }
.bubble { background: var(--card); border-radius: 6px var(--radius) var(--radius) var(--radius); padding: 18px 20px; margin: 0 0 10px; }
.bubble.first { background: var(--accent-bg); }
.bubble p { margin: 0; }
.bubble p + p { margin-top: 8px; }
.bubble-label { font-size: 14px; font-weight: 600; color: var(--sub); margin-bottom: 4px !important; }
.bubble.first .bubble-label { color: var(--accent-ink); }
.bubble-title { font-size: clamp(22px, 5.6vw, 28px); line-height: 1.4; margin: 0 0 8px; font-weight: 700; }
.bubble .deadline { padding: 12px 0; }
.bubble .deadline.soon b { color: var(--accent-ink); }
.bubble .days { color: var(--sub); font-weight: 400; font-size: 14px; }
.bubble ol.todo li { padding: 14px 0 14px 44px; }
.bubble ol.todo li:last-child { border-bottom: 0; }
.bubble ol.todo li::before { top: 13px; }
ul.facts { list-style: none; margin: 0; padding: 0; }
ul.facts li { position: relative; padding: 8px 0 8px 30px; }
ul.facts li b { font-weight: 600; }
ul.facts li span { display: block; color: var(--sub); font-size: 15px; }
ul.facts li::before { position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
ul.facts li.ok::before { content: "✓"; background: var(--accent); color: var(--on-accent); }
ul.facts li.maybe::before { content: "?"; background: var(--warn-bg); color: var(--warn-ink); }
ul.facts li.no::before { content: "!"; background: var(--warn-ink); color: var(--bg); }
ul.facts li.info::before { content: "・"; color: var(--sub); }
.guide-say { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; }
.guide-say .bubble { flex: 1; min-width: 0; margin: 0; }
.guide-say .summary { margin: 0; }

/* 記事 */
.step a { color: inherit; }
.updated { font-size: 14px; margin: -8px 0 20px; }
.guide-article .guide-say { margin-bottom: 28px; }
.article table.breakdown { width: 100%; margin: 0 0 16px; }
ul.sources { font-size: 15px; }
ul.article-list { list-style: none; padding: 0; margin: 0; }
ul.article-list li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
ul.article-list li a { font-weight: 600; text-decoration: none; display: block; }
ul.article-list li span { display: block; color: var(--sub); font-size: 15px; margin-top: 4px; }
.article table.breakdown td { vertical-align: top; padding: 10px 0; }
.article table.breakdown td:first-child { padding-right: 16px; width: 42%; }
.article table.breakdown td:last-child { white-space: normal; text-align: left; }

/* トップのゆい */
.hero-guide { display: flex; align-items: center; gap: 16px; margin: 0 0 32px; }
.hero-guide .bubble { flex: 1; min-width: 0; margin: 0; border-radius: var(--radius); position: relative; }
.hero-guide .bubble::before { content: ""; position: absolute; left: -8px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left: 0; border-right-color: var(--accent-bg); }
.avatar.lg { width: 80px; height: 80px; }
@media (min-width: 600px) { .avatar.lg { width: 132px; height: 132px; } }
@media (max-width: 599px) { .hero-guide { align-items: flex-start; gap: 12px; } .hero-guide .bubble::before { top: 32px; } }
.card-kicker { font-size: 14px; font-weight: 600; color: var(--accent-ink); margin: 0 0 4px !important; }

/* トップ（LP） */
.hero-kicker { display: inline-block; font-size: 15px; font-weight: 600; color: var(--accent-ink); background: var(--accent-bg); border-radius: 999px; padding: 6px 14px; margin: 0 0 16px; }
ul.worries { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
ul.worries li { position: relative; background: var(--card); border-radius: 14px; padding: 14px 16px 14px 46px; }
ul.worries li::before { content: "✓"; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--accent); }
ol.gains { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; gap: 12px; }
ol.gains li { counter-increment: g; position: relative; padding: 4px 0 4px 52px; min-height: 40px; }
ol.gains li::before { content: counter(g); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; }
ol.gains li b { display: block; font-size: 18px; }
ol.gains li span { display: block; color: var(--sub); }
.assure .card h3 { font-size: 17px; }
.final-cta { border-top: 1px solid var(--rule); padding-top: 40px; }
.final-cta > .btn { margin-bottom: 28px; }
.sub-links { color: var(--sub); font-size: 15px; margin: 0 0 8px; }

/* トップはPCで横幅を広く使う */
body[data-page="home"] main, body[data-page="home"] .site-header, body[data-page="home"] .site-footer { max-width: 1100px; }
body[data-page="home"] .seo { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero { display: grid; grid-template-areas: "text" "guide" "cta"; }
.hero-text { grid-area: text; } .hero-guide { grid-area: guide; } .hero-cta { grid-area: cta; }
.cards3 .card { margin: 0; } .cards3 { display: grid; gap: 12px; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "text guide" "cta guide"; column-gap: 56px; align-items: start; padding-top: 72px; padding-bottom: 56px; }
  .hero h1 { font-size: 46px; }
  ul.worries li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero-guide { flex-direction: column; align-items: center; margin: 8px 0 0; }
  .hero-guide .avatar.lg { width: 168px; height: 168px; }
  .hero-guide .bubble::before { left: 50%; top: -8px; margin: 0 0 0 -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--accent-bg); }
  .section { margin: 72px 0; }
  .section > h2 { font-size: 30px; margin-bottom: 24px; }
  ul.worries { grid-template-columns: 1fr 1fr; }
  .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  ol.gains { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  ol.gains li { padding: 52px 0 0; } ol.gains li::before { top: 0; }
  .final-cta { text-align: center; } .final-cta .guide-say { max-width: 720px; margin: 0 auto 24px; text-align: left; }
  .final-cta .quick, .final-cta .disclaimer { max-width: 720px; margin-left: auto; margin-right: auto; text-align: left; }
}
.section > h2 { text-wrap: balance; }

/* トップ：番号つきの枠 */
.lp-block { border: 1.5px solid var(--line); border-radius: 24px; padding: 24px 20px; background: var(--surface); scroll-margin-top: 16px; }
.block-head { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.block-num { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.block-label { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--accent-ink); letter-spacing: .04em; }
.block-head h2 { margin: 0; font-size: 22px; line-height: 1.4; text-wrap: balance; }
.lp-block .guide-say { margin-bottom: 0; }
.lp-block.final-cta { border-top: 1.5px solid var(--line); padding-top: 24px; background: var(--accent-bg); border-color: transparent; }
.lp-block.final-cta .quick { background: var(--surface); }
.seo .block-head { margin-top: 8px; }
.toc { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 20px; margin: 0 0 8px; }
.toc-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--sub); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 4px; }
.toc li { counter-increment: t; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; }
.toc a::before { content: counter(t); flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-bg); color: var(--accent-ink); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
@media (min-width: 960px) {
  .lp-block { padding: 36px 40px; }
  .block-head h2 { font-size: 28px; }
  .toc ol { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  .final-cta .block-head { text-align: left; }
}
.section.lp-block { margin: 20px 0; }
body[data-page="home"] .seo { border: 1.5px solid var(--line); border-radius: 24px; padding: 24px 20px; margin-top: 0; margin-bottom: 48px; margin-left: max(20px, calc((100% - 1060px) / 2)); margin-right: max(20px, calc((100% - 1060px) / 2)); max-width: none; }
body[data-page="home"] main { padding-bottom: 20px; }
@media (min-width: 960px) {
  .section.lp-block { margin: 28px 0; }
  body[data-page="home"] .seo { padding: 36px 40px; }
}

/* 背景色（セージ）：背景に色、内容は白い面に載せる */
body[data-page="home"] .seo, .toc { background: var(--surface); }
body[data-page="home"] .lp-block, body[data-page="home"] .seo, body[data-page="home"] .toc { border-color: transparent; box-shadow: 0 1px 2px rgba(30, 50, 40, .06); }
body[data-page="home"] .lp-block.final-cta { background: var(--accent-bg); }
body:not([data-page="home"]) main, body:not([data-page="home"]) > .seo { background: var(--surface); border-radius: 20px; margin: 8px 12px 0; padding-top: 24px; box-shadow: 0 1px 2px rgba(30, 50, 40, .06); }
body:not([data-page="home"]) > .seo { margin-top: 16px; margin-bottom: 24px; border-top: 0; }
@media (min-width: 760px) { body:not([data-page="home"]) main, body:not([data-page="home"]) > .seo { margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; } }

/* トップ：1問目をその場で答える */
.q-start { background: var(--surface); border-radius: 20px; padding: 18px; box-shadow: 0 2px 10px rgba(30, 50, 40, .08); max-width: 520px; }
.q-start-step { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.q-start h2 { margin: 0 0 12px; font-size: 21px; }
.q-start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q-start-btn { display: grid; place-items: center; min-height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-size: 17px; font-weight: 600; text-decoration: none; }
.q-start-btn:hover, .q-start-btn:focus-visible { border-color: var(--accent); background: var(--accent-bg); }
.q-start-other { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 15px; text-decoration: none; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badges span { background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.badges span::before { content: "✓ "; color: var(--accent); font-weight: 700; }
@media (max-width: 959px) { .hero { grid-template-areas: "text" "cta" "guide"; padding-top: 24px; } .hero-cta { margin-bottom: 28px; } .hero p.lead { margin-bottom: 20px; } }

/* トップの装飾（10/16 レビュー後） */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -40px -20px auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--accent-bg), transparent 70%); pointer-events: none; }
.hero h1 .mark { background: linear-gradient(transparent 62%, var(--accent-bg) 62%); padding: 0 2px; }
.hero-kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.ico { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.q-start { position: relative; border-top: 4px solid var(--accent); }
.q-start-step { display: flex; align-items: center; gap: 8px; }
.q-start-step span { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.q-start-btn { display: flex; justify-content: space-between; padding: 0 16px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.q-start-btn span { color: var(--accent); font-size: 22px; }
.q-start-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30, 50, 40, .12); }

.toc ol { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--card); font-size: 16px; }
@media (min-width: 960px) { .toc ol { display: flex; } }

ul.worries li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
ul.worries li::before { content: none; }
ul.worries li .ico { color: var(--accent); margin-top: 2px; }

.deadlines .dl-card { background: var(--card); border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--warn-ink); display: flex; flex-direction: column; }
.deadlines .dl-card.calm { border-top-color: var(--accent); }
.dl-kicker { margin: 0; font-size: 14px; font-weight: 700; color: var(--sub); }
.dl-date { margin: 4px 0 0; font-size: 34px; font-weight: 800; letter-spacing: .01em; line-height: 1.2; color: var(--text); font-feature-settings: "tnum"; }
.dl-left { margin: 6px 0 12px; align-self: flex-start; background: var(--warn-bg); color: var(--warn-ink); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.dl-left b { font-size: 18px; margin: 0 2px; }
.dl-card.calm .dl-left { background: var(--accent-bg); color: var(--accent-ink); }
.dl-card h3 { margin: 0 0 6px; font-size: 18px; }
.dl-card p.muted { margin: 0; }

ol.gains li::before { content: none; }
ol.gains li { padding: 0; display: flex; flex-direction: column; gap: 4px; background: var(--card); border-radius: var(--radius); padding: 20px; }
.gain-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin-bottom: 6px; }
ol.gains li em { margin-top: 8px; align-self: flex-start; font-style: normal; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: var(--accent-bg); border-radius: 8px; padding: 4px 10px; }
@media (min-width: 960px) { ol.gains li { padding: 24px; } }

.assure .card .ico { width: 32px; height: 32px; color: var(--accent); margin-bottom: 8px; }

.final-grid { display: grid; gap: 20px; }
.final-grid .q-start { max-width: none; }
@media (min-width: 960px) {
  .final-grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .final-cta { text-align: left; }
  .final-cta .guide-say, .final-cta .quick, .final-cta .disclaimer { max-width: none; margin-left: 0; margin-right: 0; }
}

.faq-acc { display: grid; gap: 8px; }
.faq-acc details { background: var(--card); border-radius: 14px; }
.faq-acc summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 14px 44px 14px 16px; min-height: 44px; font-weight: 600; position: relative; }
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 22px; color: var(--accent); font-weight: 400; }
.faq-acc details[open] summary::after { content: "−"; }
.faq-a { display: flex; gap: 12px; padding: 0 16px 16px; }
.faq-a p { margin: 0; color: var(--sub); }
.qa { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.qa.q { background: var(--accent); color: var(--on-accent); }
.qa.a { background: var(--warn-bg); color: var(--warn-ink); }
ol.gains li .gain-ico { display: grid; color: var(--on-accent); }
@media (max-width: 959px) {
  .toc ol { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc li { flex: none; }
  .toc { padding-left: 20px; padding-right: 20px; overflow: hidden; }
}
@media (max-width: 400px) { .pr-note { font-size: 13px; } }


/* ===== ポップ（10/16 ゆいの全身イラストに合わせて） ===== */
body { background-color: var(--bg); background-image: radial-gradient(var(--dot) 1.5px, transparent 1.7px); background-size: 24px 24px; }
h1, h2, h3, .brand, .block-num, .dl-date, .big, .bubble-title, .q-title, .gain-ico { font-family: var(--head); }
h1, h2, .q-title, .dl-date, .big { font-weight: 800; }
.brand { font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.brand::before { content: ""; width: 26px; height: 26px; border-radius: 9px; background: var(--accent); box-shadow: 0 3px 0 var(--accent-deep); transform: rotate(-8deg);
  background-image: linear-gradient(135deg, transparent 0 52%, var(--sun) 52% 100%); }

/* ボタン：下に影をつけて押すと沈む */
.btn { font-weight: 700; box-shadow: 0 4px 0 var(--accent-deep); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--accent-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn.secondary { box-shadow: 0 4px 0 var(--shadow); }
.choice { border-width: 2px; border-radius: 16px; box-shadow: 0 3px 0 var(--line); transition: transform .12s, box-shadow .12s, border-color .12s, background-color .12s; }
.choice:hover { border-color: var(--accent); }
.choice:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { box-shadow: 0 3px 0 var(--accent); }
.quick { border-width: 2px; box-shadow: 0 3px 0 var(--line); background: var(--surface); transition: transform .12s, box-shadow .12s, border-color .12s; }
.quick:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 5px 0 var(--accent); }
.quick > span:last-child { color: var(--accent); }
select, input[type=month], input[type=number] { border-width: 2px; border-radius: 14px; }

/* 進捗バー：太くしてしま模様を流す */
.progress { height: 12px; border-radius: 999px; margin: 16px 0 32px; box-shadow: inset 0 0 0 2px var(--line); background: var(--surface); }
.progress > span { border-radius: 999px; background-color: var(--accent); background-image: linear-gradient(45deg, rgba(255,255,255,.22) 25%, transparent 25% 50%, rgba(255,255,255,.22) 50% 75%, transparent 75%); background-size: 18px 18px; animation: stripe 1.2s linear infinite; }
@keyframes stripe { to { background-position: 18px 0; } }
.step { display: inline-block; font-weight: 700; color: var(--accent-ink); background: var(--accent-bg); border-radius: 999px; padding: 2px 12px; }

/* 枠と番号ステッカー */
body[data-page="home"] .lp-block, body[data-page="home"] .seo, body[data-page="home"] .toc { box-shadow: 0 6px 0 var(--shadow); border-radius: 28px; }
body:not([data-page="home"]) main, body:not([data-page="home"]) > .seo { box-shadow: 0 6px 0 var(--shadow); border-radius: 26px; }
.block-num { width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: var(--on-sun); font-size: 26px; font-weight: 800; transform: rotate(-8deg); box-shadow: 0 3px 0 var(--shadow), inset 0 0 0 3px rgba(255,255,255,.55); }
.lp-block:nth-of-type(even) .block-num { transform: rotate(7deg); }
.block-head { border-bottom: 2px dashed var(--rule); align-items: center; }
.block-label { display: inline-block; background: var(--accent-bg); border-radius: 999px; padding: 0 10px; }

/* ヒーロー */
.hero h1 .mark { background: linear-gradient(transparent 58%, var(--mark) 58%); border-radius: 4px; }
.hero::before { background: radial-gradient(circle at 40% 40%, var(--mark), transparent 68%); opacity: .7; }
.hero::after { content: ""; position: absolute; z-index: -1; left: -60px; bottom: 40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--accent-bg), transparent 70%); pointer-events: none; }
.hero-kicker { border: 2px solid var(--accent); background: var(--surface); }
.spark { position: absolute; z-index: -1; width: 18px; height: 18px; background: var(--sun); pointer-events: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.spark.s1 { top: 18px; right: 34%; }
.spark.s2 { top: 46%; right: 6px; width: 12px; height: 12px; background: var(--accent); }
.spark.s3 { bottom: 18px; left: 46%; width: 14px; height: 14px; background: var(--coral); }
.bubble { border-radius: 8px 24px 24px 24px; }
.hero-guide .bubble { border: 2px solid var(--accent); }
.hero-guide .bubble::before { display: none; }

/* ゆいの全身ポーズ */
.pose-wrap { display: block; flex: none; cursor: default; }
.pose-wrap img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; filter: drop-shadow(0 6px 0 rgba(30, 50, 40, .12)); }
.hero-pose { display: none; }
.pose-say { display: flex; align-items: flex-end; gap: 6px; margin-top: 24px; }
.pose-say.is-right { flex-direction: row-reverse; }
.pose-say .pose-wrap { width: 96px; }
.pose-say .bubble { flex: 1; min-width: 0; margin: 0 0 28px; position: relative; border: 2px solid var(--accent); }
.pose-say .bubble::before { content: ""; position: absolute; bottom: 22px; left: -11px; width: 18px; height: 18px; background: var(--accent-bg); border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.pose-say.is-right .bubble::before { left: auto; right: -11px; transform: rotate(-135deg); }
.pose-say .bubble { border-radius: 24px; }
.lp-block .pose-say { margin-bottom: -8px; }
@media (min-width: 600px) { .pose-say .pose-wrap { width: 132px; } }

/* 1問目カードのゆい（スマホ・タブレット） */
.q-start-head { position: relative; }
.q-start-yui { position: absolute; right: -8px; bottom: 100%; margin-bottom: -40px; width: 74px; }
.has-yui .q-start-step { padding-right: 70px; }
.has-yui { margin-top: 72px; }
@media (min-width: 600px) { .q-start-yui { width: 92px; } .has-yui { margin-top: 96px; } }
@media (min-width: 960px) {
  .q-start-yui { display: none; } .has-yui { margin-top: 0; }
  .hero-guide .avatar.lg { display: none; }
  .hero-guide { gap: 0; }
  .hero-guide .bubble { order: -1; position: relative; }
  .hero-guide .bubble::after { content: ""; position: absolute; bottom: -11px; left: 15%; width: 18px; height: 18px; background: var(--accent-bg); border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
  .hero-pose { display: block; width: 236px; margin: 18px 0 0 40px; }
}

/* 質問画面のゆい */
.q-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.q-head > div { min-width: 0; }
.q-yui { width: 76px; margin: -8px -4px 0 0; }
@media (min-width: 600px) { .q-yui { width: 108px; } }

/* 中身のカード */
ul.worries li { border-radius: 16px; transition: transform .15s; }
ul.worries li .ico { color: var(--on-accent); background: var(--accent); border-radius: 10px; padding: 5px; width: 34px; height: 34px; margin-top: -2px; }
.deadlines .dl-card { border-top: 0; box-shadow: inset 0 6px 0 var(--coral); border-radius: 22px; padding-top: 24px; }
.deadlines .dl-card.calm { box-shadow: inset 0 6px 0 var(--accent); }
.dl-left { background: var(--coral-bg); color: var(--coral-ink); }
.dl-left b { font-size: 22px; font-family: var(--head); font-weight: 800; }
.dl-date { color: var(--text); }
.gain-ico { border-radius: 16px; transform: rotate(-6deg); box-shadow: 0 3px 0 var(--accent-deep); }
ol.gains li:nth-child(2) .gain-ico { transform: rotate(5deg); background: var(--coral); }
ol.gains li:nth-child(3) .gain-ico { transform: rotate(-3deg); background: var(--sun); color: var(--on-sun); }
ol.gains li em { background: var(--mark); color: var(--on-sun); }
.assure .card .ico { width: 48px; height: 48px; padding: 9px; border-radius: 50%; background: var(--sun); color: var(--on-sun); }
.toc a { transition: transform .12s, background-color .12s; }
.toc a:hover { transform: translateY(-2px); background: var(--accent-bg); }
.toc a::before { background: var(--sun); color: var(--on-sun); border-radius: 50%; }
.q-start { border-top: 0; border: 2px solid var(--accent); box-shadow: 0 6px 0 var(--accent-deep); border-radius: 24px; }
.q-start-btn { border-width: 2px; box-shadow: 0 3px 0 var(--line); }
.q-start-btn:hover, .q-start-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 5px 0 var(--accent); }
.q-start-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent); }
.badges span { border: 2px solid var(--line); font-weight: 600; }
.faq-acc details { border-radius: 16px; }
.qa { border-radius: 50%; font-family: var(--head); }
.card { border-radius: 22px; }
.card.headline { border: 2px solid var(--accent); box-shadow: 0 5px 0 var(--shadow); }
.exit { border-width: 2px; box-shadow: 0 4px 0 var(--line); }
.guide-head .avatar, .guide-say .avatar { box-shadow: 0 0 0 3px var(--accent), 0 4px 0 3px var(--shadow); }
ol.todo li::before { background: var(--sun); color: var(--on-sun); font-family: var(--head); font-weight: 800; }

/* ===== 動き（動きを減らす設定では止める） ===== */
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(-1.5deg); } }
@keyframes popin { 0% { opacity: 0; transform: translateY(24px) scale(.85); } 60% { opacity: 1; transform: translateY(-6px) scale(1.03); } 100% { transform: none; } }
@keyframes hop { 0%, 100% { transform: none; } 30% { transform: translateY(-22px) rotate(-6deg); } 60% { transform: translateY(0) scale(1.04, .96); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .6; } }
@keyframes sticker { 0% { transform: scale(0) rotate(-90deg); } 70% { transform: scale(1.15) rotate(-4deg); } 100% { transform: rotate(-8deg); } }
@keyframes sticker2 { 0% { transform: scale(0) rotate(90deg); } 70% { transform: scale(1.15) rotate(3deg); } 100% { transform: rotate(7deg); } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: no-preference) {
  .pose-wrap img { animation: bob 4.2s ease-in-out infinite; }
  .pose-say.is-right .pose-wrap img { animation-delay: -1.4s; }
  .q-start-yui img { animation-delay: -2.1s; }
  .pose-wrap { animation: popin .7s cubic-bezier(.2, .9, .3, 1.3) both; }
  .pose-wrap.hop { animation: hop .6s ease; }
  .spark { animation: twinkle 2.6s ease-in-out infinite; }
  .spark.s2 { animation-delay: -.9s; } .spark.s3 { animation-delay: -1.7s; }
  .q-start-btn span, .quick > span:last-child { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
  .q-yui { animation-delay: .1s; }
  ul.worries li:hover { transform: translateX(4px); }

  /* スクロールで登場 */
  .js-anim .reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1); }
  .js-anim .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }
  .js-anim .reveal:not(.is-in) .pose-wrap { animation: none; opacity: 0; }
  .js-anim .reveal:not(.is-in) .block-num { transform: scale(0); }
  .js-anim .reveal.is-in .block-num { animation: sticker .6s .15s cubic-bezier(.2, .9, .3, 1.3) both; }
  .js-anim .lp-block:nth-of-type(even).is-in .block-num { animation-name: sticker2; }
  .js-anim .reveal .stagger > * { transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .3, 1); }
  .js-anim .reveal:not(.is-in) .stagger > * { opacity: 0; transform: translateY(18px); }
  .js-anim .reveal .stagger > :nth-child(2) { transition-delay: .1s; }
  .js-anim .reveal .stagger > :nth-child(3) { transition-delay: .2s; }
  .js-anim .reveal .stagger > :nth-child(4) { transition-delay: .3s; }
  .js-anim .reveal .stagger > :nth-child(5) { transition-delay: .4s; }
  .js-anim .reveal.is-in .pose-wrap { animation: popin .7s .25s cubic-bezier(.2, .9, .3, 1.3) both; }
  .js-anim .reveal.is-in .pose-wrap.hop { animation: hop .6s ease; }
}

.hero-kicker .kb { display: inline; }
@media (max-width: 599px) { .hero-kicker { border-radius: 18px; } .hero-kicker .kb { display: block; } }
.final-cta .sub-links { margin-top: 20px; }
.q-title, .q-start h2 { text-wrap: balance; }

/* ===== ついてくるゆい ===== */
.buddy { position: fixed; z-index: 30; right: max(4px, env(safe-area-inset-right, 0px)); bottom: calc(4px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: flex-end; gap: 2px; text-decoration: none; color: var(--text); transform: translateY(130%); opacity: 0; pointer-events: none; transition: transform .5s cubic-bezier(.2, .9, .3, 1.3), opacity .3s; }
.buddy.show { transform: none; opacity: 1; pointer-events: auto; }
.buddy-yui { position: relative; flex: none; width: 76px; aspect-ratio: 430 / 640; }
.buddy-yui img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: drop-shadow(0 4px 0 rgba(30, 50, 40, .15)); }
.buddy[data-pose="ul"] .p-ul, .buddy[data-pose="dl"] .p-dl, .buddy[data-pose="dr"] .p-dr { opacity: 1; }
.buddy-bubble { display: block; margin-bottom: 34px; background: var(--surface); border: 2px solid var(--accent); border-radius: 18px; padding: 8px 14px; box-shadow: 0 4px 0 var(--accent-deep); font-size: 14px; line-height: 1.5; max-width: 210px; min-height: 44px; }
.buddy-bubble b { display: block; color: var(--accent-ink); white-space: nowrap; font-size: 15px; }
.buddy-line { display: block; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .35s ease, margin .35s; }
.buddy.talk .buddy-line { max-height: 4.5em; opacity: 1; margin-bottom: 4px; }
body[data-page="home"] .site-footer { padding-bottom: 140px; }
@media (min-width: 960px) {
  .buddy { right: 24px; bottom: 16px; }
  .buddy-yui { width: 112px; }
  .buddy-bubble { font-size: 15px; max-width: 250px; margin-bottom: 70px; }
}

/* ===== 動きを強める（向きに合わせて指し棒の方へ身を乗り出す） ===== */
.p-dl { --dx: -8px; --dy: 6px; --rot: -5deg; }
.p-ul { --dx: -8px; --dy: -8px; --rot: -4deg; }
.p-ur { --dx: 8px; --dy: -8px; --rot: 4deg; }
.p-dr { --dx: 8px; --dy: 6px; --rot: 5deg; }
@keyframes point { 0%, 100% { transform: none; } 25% { transform: translateY(-12px) rotate(0); } 45% { transform: translateY(0) scale(1.03, .97); } 65% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } 80% { transform: translate(calc(var(--dx) / 2), calc(var(--dy) / 2)) rotate(calc(var(--rot) / 2)); } }
@keyframes popin2 { 0% { opacity: 0; transform: translateY(60px) scale(.5) rotate(-12deg); } 55% { opacity: 1; transform: translateY(-14px) scale(1.06) rotate(3deg); } 75% { transform: translateY(4px) scale(.98); } 100% { transform: none; } }
@keyframes swap { 0% { transform: scale(1); } 40% { transform: scale(1.12, .88) translateY(4px); } 70% { transform: scale(.94, 1.06) translateY(-6px); } 100% { transform: none; } }
@keyframes shine { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 20px) scale(1.08); } 100% { transform: translate(10px, -10px) scale(.96); } }
@keyframes bubblepop { 0% { opacity: 0; transform: scale(.7); } 70% { opacity: 1; transform: scale(1.04); } 100% { transform: none; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: no-preference) {
  .pose-wrap img { animation: point 3.4s ease-in-out infinite; }
  .pose-say.is-right .pose-wrap img { animation-delay: -1.1s; }
  .q-start-yui img { animation-delay: -2s; }
  .pose-wrap, .js-anim .reveal.is-in .pose-wrap { animation: popin2 .9s cubic-bezier(.2, .9, .3, 1.2) both; }
  .js-anim .reveal.is-in .pose-wrap { animation-delay: .2s; }
  .pose-wrap.hop, .js-anim .reveal.is-in .pose-wrap.hop { animation: hop .6s ease; }
  .hero-guide .bubble { animation: bubblepop .6s .5s cubic-bezier(.2, .9, .3, 1.3) both; transform-origin: 40% 100%; }
  .js-anim .reveal .pose-say .bubble { transition: transform .5s .45s cubic-bezier(.2, .9, .3, 1.3), opacity .4s .45s; }
  .js-anim .reveal:not(.is-in) .pose-say .bubble { opacity: 0; transform: scale(.7); }
  .hero::before { animation: drift 9s ease-in-out infinite alternate; }
  .hero::after { animation: drift 11s ease-in-out -4s infinite alternate-reverse; }
  .q-start-btn { position: relative; overflow: hidden; }
  .q-start-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shine 3.6s ease-in-out infinite; pointer-events: none; }
  .q-start-btn:nth-child(2)::after { animation-delay: .25s; } .q-start-btn:nth-child(3)::after { animation-delay: .5s; } .q-start-btn:nth-child(4)::after { animation-delay: .75s; }
  .buddy-yui.swap { animation: swap .4s ease; }
  .buddy-yui img { transition: opacity .12s; }
  .buddy.show .buddy-yui { animation: point 3.4s ease-in-out infinite; --dx: -6px; --dy: -6px; --rot: -4deg; }
  .buddy.show .buddy-yui.swap { animation: swap .4s ease; }
  .block-num { transition: transform .2s; } .lp-block:hover .block-num { animation: wave .5s ease 2; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .q-start-btn::after { opacity: .25; } }
:root[data-theme="dark"] .q-start-btn::after { opacity: .25; }

/* PC：ヒーローのゆいは指し棒の先が1問目の枠に届く位置に置く */
@media (min-width: 960px) {
  .hero-cta .q-start { max-width: none; }
  .hero-pose { align-self: flex-start; width: 250px; margin: 12px 0 0 -66px; }
}
@media (min-width: 960px) { .hero-guide { position: relative; z-index: 2; } .hero-cta { position: relative; z-index: 1; } }

/* 編集長レビュー（10/16）：説明文は16px、リンクは押しやすく、広告表記ははっきり */
.field .hint, .bar-row .note, ul.facts li span, .exit p, .disclaimer, .dl-left, .guide-head .muted { font-size: 16px; }
.dl-left b { font-size: 22px; }
.exit .pr { display: inline-block; font-size: 14px; font-weight: 800; color: var(--on-accent); background: var(--text); border: 0; border-radius: 999px; padding: 1px 10px; margin-right: 8px; vertical-align: 1px; }
.todo-link, ol.todo li a { display: inline-flex; align-items: center; min-height: 44px; }
.link-row { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 360px) { .pr-note { white-space: normal; border-radius: 16px; } }
.a8-px { position: absolute; width: 1px; height: 1px; border: 0; }

/* 2回目の編集長レビュー：どのページからも診断へ、トップから記事へ */
.head-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 3px 0 var(--accent-deep); white-space: nowrap; }
.head-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--accent-deep); }
.head-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); }
@media (max-width: 719px) {
  .site-header .brand { order: 1; } .site-header .head-cta { order: 2; margin-left: auto; } .site-header .pr-note { order: 3; }
}
.diag-cta { margin: 32px 0 8px; }
.diag-cta .pose-say .bubble .btn { margin-top: 12px; }
.diag-cta .pose-say { margin-top: 0; }
ul.read-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ul.read-cards a { display: block; height: 100%; background: var(--card); border-radius: 18px; padding: 16px 18px; text-decoration: none; color: var(--text); border: 2px solid transparent; transition: transform .12s, border-color .12s; }
ul.read-cards a:hover { transform: translateY(-2px); border-color: var(--accent); }
ul.read-cards b { display: block; color: var(--accent-ink); line-height: 1.5; margin-bottom: 4px; }
ul.read-cards span { display: block; color: var(--sub); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 760px) { ul.read-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { ul.read-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.read-all { margin: 16px 0 0; } .read-all a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
body[data-page="home"] .seo-read { margin-top: 0; }
body[data-page="home"] .seo + .seo-read { margin-top: -24px; }
ul.article-list li a { color: var(--accent-ink); }
.guide-article > .pose-say, .article > .pose-say { margin-bottom: 20px; }

/* 実際のユーザーで使ってみた修正（10/16） */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn:focus-visible, .choice:focus-visible, .link-btn:focus-visible, .q-start-btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:root { --focus: #1d4a35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --focus: #f7c948; } }
:root[data-theme="dark"] { --focus: #f7c948; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) ol.gains li em { background: var(--sun); color: var(--on-sun); } }
:root[data-theme="dark"] ol.gains li em { background: var(--sun); color: var(--on-sun); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸"; display: inline-block; flex: none; width: 1.2em; color: var(--accent); transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
.faq-acc summary::before { content: none; }
.choice small, .field .hint, .cta-row .hint { font-size: 16px; }
.choice, .q-start-btn, .btn { -webkit-tap-highlight-color: transparent; }
.dl-date { font-size: clamp(26px, 9vw, 34px); overflow-wrap: anywhere; }
.bubble-label { white-space: nowrap; }
@media (max-width: 360px) { .q-head .q-yui { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .choice:active, .btn:active, .head-cta:active, .head-cta:hover, ul.read-cards a:hover { transform: none; }
}

/* 診断結果・質問・ゆいの修正（10/16 ユーザーテスト） */
/* ===== 利用者テスト（10/16）の修正：結果・質問・トップ・ゆい（app.js の viewResult / viewQuestion / viewHome / buddy 用） ===== */

/* 結果：控除の期限が近いとき（120日以内）の残り日数と引き渡し日の注意 */
.urgent-pill { display: inline-block; margin: 0 0 10px !important; padding: 4px 14px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 800; font-size: 17px; line-height: 1.5; }
.urgent-note { margin: 12px 0 0 !important; padding: 12px 14px; border-radius: 12px; background: var(--coral-bg); color: var(--coral-ink); font-size: 16px; line-height: 1.7; border-left: 4px solid var(--coral); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .urgent-pill { color: #1a0d09; } }
:root[data-theme="dark"] .urgent-pill { color: #1a0d09; }

/* 結果：やることの下の一言・そろえておくもの */
.todo-note { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--sub); font-size: 16px; }
ul.doc-list { list-style: none; margin: 0; padding: 0; }
ul.doc-list li { position: relative; padding: 6px 0 6px 30px; }
ul.doc-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--accent); background: var(--surface); }

/* 結果：期限の一覧（確定申告の行は日付を2行で出す） */
/* 登記の期限など長い文の日付欄が375pxではみ出さないよう、10文字ほどで折り返す（日付だけなら1行に収まる） */
.bubble .deadline > b { flex: none; max-width: 10em; white-space: normal; text-align: right; }
.bubble .deadline > b .days { white-space: nowrap; }

/* 結果：「売ることにした」で来たのに案内先がないときの順番 */
.sell-plan { scroll-margin-top: 16px; }
.sell-plan:focus { outline: none; }
.sell-plan:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.sell-plan > p.muted { margin: 0 0 8px; }

/* 結果：共有ボタン（コピー・LINEなどで送る） */
.share-row { display: grid; gap: 12px; }
@media (min-width: 600px) { .share-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }

/* 質問：選んだ答えにチェックを付ける（戻ったときに分かるように） */
.choice { -webkit-tap-highlight-color: transparent; }
.choice[aria-pressed="true"]::after { content: "✓"; flex: none; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 16px; font-weight: 800; line-height: 1; }

/* 質問2：何も選ばずに「次へ」の説明 */
.q-none-note { margin: -8px 0 16px; color: var(--sub); font-size: 15px; }

/* 質問4：「まだ相続していない」を上に置いたときの区切り */
.ym-or { margin: 4px 0 12px; font-weight: 600; }

/* トップ：1問目のカードの「質問 1 / 8」は折り返さない */
.q-start-step span { white-space: nowrap; flex: none; }

/* トップ：期限1の2行目（2023年に相続した方） */
.dl-left.dl-sub { margin-top: -4px; font-size: 15px; }
.dl-left.dl-sub b { font-size: 18px; }

/* トップ：ヒーローの下の「親が元気・施設に入っている方」 */
.hero-alive { margin: -8px 0 24px; }
.hero-alive a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ゆい（画面の隅）：外側を div にしたのでリンク側を横並びにする。閉じるボタンは44pxの押せる範囲 */
.buddy-go { display: flex; align-items: flex-end; gap: 2px; text-decoration: none; color: var(--text); border-radius: 18px; }
.buddy-go:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.buddy-x { position: absolute; top: -14px; right: 0; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.buddy-x span { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); color: var(--sub); display: grid; place-items: center; font-size: 16px; font-weight: 700; line-height: 1; }
.buddy-x:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; border-radius: 50%; }
/* 隠れている間はキーボードでも届かないようにする */
.buddy { visibility: hidden; transition: transform .5s cubic-bezier(.2, .9, .3, 1.3), opacity .3s, visibility 0s linear .5s; }
.buddy.show { visibility: visible; transition-delay: 0s; }
/* 幅400px未満：話す一言とゆいの絵は出さず、ボタン（160px以内）と閉じるだけ */
@media (max-width: 399px) {
  .buddy { align-items: center; gap: 0; }
  .buddy-yui, .buddy-line { display: none; }
  .buddy-bubble { margin-bottom: 0; max-width: 160px; padding: 8px 12px; display: flex; align-items: center; }
  .buddy-bubble b { font-size: 14px; }
  .buddy-x { position: static; order: -1; }
}
/* 動きを減らす設定：下からせり上がらず、ふわっと出るだけ */
@media (prefers-reduced-motion: reduce) {
  .buddy { transform: none; transition: opacity .3s, visibility 0s linear .3s; }
  .buddy.show { transition-delay: 0s; }
  .buddy-line { transition: none; }
}

/* 比べる・期限・放置コストの修正（10/16 ユーザーテスト） */
/* ===== 単体ツール（比べる・期限チェック・放置コスト）：tools agent ===== */
/* 計算後に移動する結果の見出し・読み上げ */
.tool-result-head { scroll-margin-top: 16px; font-size: 20px; margin: 24px 0 4px; }
.tool-result-head:focus { outline: none; }
.tool-result-head:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.tool-live:empty { display: none; }
.tool-live { color: var(--accent-ink); font-weight: 600; margin: 0 0 12px; }
/* 借地などの注意（ページ上部） */
.card.tool-banner { background: var(--coral-bg); color: var(--coral-ink); border-left: 6px solid var(--coral); }
.card.tool-banner b { display: block; margin-bottom: 6px; }
.card.tool-banner p { margin: 0 0 4px; }
.card.tool-banner .link-btn { color: var(--coral-ink); text-decoration: underline; padding-left: 0; }
.note.tool-warn { color: var(--coral-ink); background: var(--coral-bg); border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
/* 「あなたの家の数字を入れる ↓」 */
.btn.jump-inputs { margin: 0 0 12px; }
/* 東京23区内ですか？（必須の問い） */
.w23-q { border-left: 4px solid var(--sun); padding-left: 12px; }
.w23-q.need { background: var(--coral-bg); border-left-color: var(--coral); border-radius: 0 10px 10px 0; padding: 10px 12px; }
.w23-q .field-title { margin: 0 0 8px; }
.w23-q .field-title .tag { margin-left: 8px; }
.w23-q .seg { margin: 0 0 6px; }
.w23-q .seg button { min-width: 96px; }
/* 円→万円に直したお知らせ・人数の既定値のお知らせ */
.field .hint.conv, .hint.need-note { color: var(--coral-ink); background: var(--coral-bg); border-radius: 6px; padding: 4px 8px; font-weight: 600; }
/* 「貸す」が1位でも条件しだいの行 */
.bar-row.cond .bar > span { background: var(--sun); }
/* 内訳を見る：開閉の印 */
details summary .sum-mark { display: inline-block; width: 1.2em; margin-left: 6px; color: var(--accent); }
details summary .sum-mark::before { content: "＋"; }
details[open] > summary .sum-mark::before { content: "−"; }
.bd-note { margin: 8px 0 0; font-size: 14px; }
/* 課税明細書の例：大きい文字・狭い幅では枠の中で横にスクロール */
.notice-mock { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.nm-row { grid-template-columns: repeat(3, minmax(max-content, 1fr)); }
.nm-row span { white-space: nowrap; }

/* 診断の画面の見出し（H1）。質問文（h2.q-title）より小さく、ラベルのように出す */
.shindan-h1 { font-size: 15px; font-weight: 700; color: var(--sub); margin: 0 0 8px; line-height: 1.5; }
/* トップの期限1：2023年に相続した方の記事へ */
.dl-link { margin: -4px 0 12px; font-size: 15px; font-weight: 700; }
/* 広告の枠：ひとこと（申し込んだあとどうなるか）、やることの行の下・比べる画面の解体の下 */
.exit p.exit-note { font-size: 14px; margin-top: -8px; }
.todo-offer, .bar-offer { margin-top: 12px; }
.todo-offer .exit, .bar-offer .exit { padding: 16px; }
.guide-offer { margin-top: 32px; }

/* 地域ページ・計算ツール */
table.chika-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 16px; }
table.chika-table th { text-align: left; font-weight: 700; color: var(--sub); padding: 8px 6px 8px 0; border-bottom: 2px solid var(--rule); white-space: nowrap; }
.article table.chika-table td { padding: 8px 6px 8px 0; width: auto; vertical-align: top; text-align: left; white-space: normal; }
.article table.chika-table td:nth-child(n+2) { white-space: nowrap; }
.article table.chika-table td:first-child { width: auto; }
table.chika-table .muted { font-size: 12px; }
details.chika-all { margin: 0 0 12px; }
details.chika-all > summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 8px 0; }
ul.chip-links { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.chip-links a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 2px solid var(--rule); text-decoration: none; color: var(--text); font-weight: 600; }
ul.chip-links a:hover { border-color: var(--accent); }
.chika-table .tag { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--accent); color: #fff; white-space: nowrap; }
.keisan-form .input-unit { display: flex; align-items: center; gap: 8px; }
.keisan-form .input-unit input, .keisan-form select { font: inherit; font-size: 18px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--rule); background: var(--bg, #fff); color: var(--text); width: 100%; max-width: 320px; }
.keisan-form .input-unit span { white-space: nowrap; }
.keisan-out tr.total td { font-weight: 800; font-size: 17px; }
@media (max-width: 480px) { .article table.chika-table td:nth-child(2) { white-space: normal; } }

/* 記事の「この記事でわかること」「この記事で使うことば」「目次」「まとめ」（content/guide の points・terms・summary） */
.guide-box { border: 2px solid var(--rule); border-radius: 18px; background: var(--card); padding: 16px 20px; margin: 0 0 20px; }
.guide-box .box-label, .guide-summary h2 { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--accent-ink); }
.guide-box ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.guide-terms dl { margin: 0; display: grid; gap: 10px; }
.guide-terms dt { font-weight: 700; }
.guide-terms dd { margin: 2px 0 0; color: var(--sub); font-size: 15px; }
.guide-points { background: var(--accent-bg); border-color: transparent; }
.guide-summary { margin-top: 32px; border-color: var(--accent); }
.guide-summary h2 { font-size: 20px; border: 0; padding: 0; }
.guide-toc { margin: 0 0 28px; }
.guide-toc ol { display: grid; gap: 2px; }
.guide-toc a { border-radius: 12px; background: transparent; padding: 4px 8px; min-height: 40px; font-size: 15px; line-height: 1.5; }
.guide-article h2[id] { scroll-margin-top: 16px; }
.guide-terms > summary { margin: 0; min-height: 28px; justify-content: flex-start; text-align: left; }
.guide-terms[open] dl { margin-top: 12px; }
/* 記事の目次は画面の幅にかかわらず1列（トップの「このページの流れ」の横並びを打ち消す） */
.toc.guide-toc ol { display: grid; grid-template-columns: 1fr; flex-wrap: nowrap; overflow: visible; margin: 0; padding: 0; gap: 2px; }
/* 記事のチェックリスト（印刷しても使える四角）と文例 */
.article ul.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.article ul.checklist li { position: relative; padding: 10px 12px 10px 44px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.article ul.checklist li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; border: 2px solid var(--accent); border-radius: 4px; background: var(--surface); }
.article .bunrei { border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 0 0 20px; }
.article .bunrei p { margin: 0 0 8px; }
.article .bunrei p:last-child { margin-bottom: 0; }
.article .bunrei .bunrei-label { font-size: 14px; font-weight: 800; color: var(--accent-ink); }
@media print { .article ul.checklist li { break-inside: avoid; } .article .bunrei { break-inside: avoid; } }
