/* scripts/build-spinoff.js が site.json の theme から作る（手で編集しない）。共通の見た目は style.css（ツール箱と同じ）で、色だけをこのサイト用に変える */
:root { --accent: #4a6378; --accent-ink: #34495c; --focus: 0 0 0 3px rgba(74, 99, 120, 0.35); }

.logo-sub { display: inline-block; margin-left: 8px; font-size: .72rem; font-weight: 400; color: var(--muted); }
.spinoff-hero { padding: 40px 0 8px; }
.spinoff-hero h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin: 0 0 14px; }
.spinoff-kicker { display: inline-block; margin: 0 0 14px; padding: 3px 12px; border-radius: 6px; font-size: .8rem; font-weight: 700; color: var(--accent-ink); background: var(--ai-tint); }
.spinoff-hero .badges li { padding: 4px 14px; }
.spinoff-home-link { margin-top: 16px; font-size: .9rem; color: var(--muted); }
@media (max-width: 480px) { .logo-sub { display: none; } }

/* ---- spinoffs/hikkoshi-okane/custom.css（このサイトだけの見た目） ---- */
/* 引っ越しと賃貸のお金：落ち着いた見た目（白地・墨の青・生成りの差し色、細い線、小さな角、明朝の見出し）。
   年配の方でも読みやすいよう、文字は基準18px、押す所は48px以上。絵（site/img/）は届いたものだけ表示する */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f3f4f3; --text: #24282c; --muted: #535a61;
  --border: #dde1e4; --border-strong: #bfc6cc;
  --ai: #4a6378; --ai-hover: #34495c; --ai-tint: #eef2f5; --ai-tint-2: #dfe6ec; --on-ai: #ffffff;
  --accent: #4a6378; --accent-ink: #34495c;
  --warm: #9a7b55; --warm-soft: #f1ebe2;
  --grad: none; --grad-strong: none;
  --header-bg: rgba(255, 255, 255, .95); --footer-bg: #2b3238; --footer-text: #cfd4d8; --footer-head: #ffffff; --footer-mark: #ffffff;
  --radius: 6px; --radius-sm: 4px;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "BIZ UDPMincho", serif;
}

html { font-size: 112.5%; }
html.big { font-size: 131%; }
body { font-size: 1rem; background: var(--bg); line-height: 1.9; letter-spacing: .01em; }
h1, h2, h3, .logo-text, .sec-title { font-family: var(--mincho); font-weight: 600; letter-spacing: .04em; }
.logo-mark .m-base { fill: var(--ai); }
.site-header { border-bottom: 1px solid var(--border); box-shadow: none; }
.spinoff .site-header .wrap { max-width: 1120px; }
.site-header nav { display: flex; gap: 2px; flex-wrap: wrap; }
.site-header .nav-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: .9rem; border-radius: 0; background: transparent; border: 0; border-bottom: 2px solid transparent; }
.site-header .nav-link:hover { border-bottom-color: var(--warm); background: transparent; }
main a { color: var(--accent-ink); text-underline-offset: 3px; }
main a:hover { color: var(--ai-hover); }
.card, .tool-card, details { background: var(--surface); border-radius: var(--radius); box-shadow: none; }
.lead { color: var(--text); }
input, select, button { font-size: 1rem; min-height: 48px; }
.nw { display: inline-block; }
.note { font-size: .9rem; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-top: 22px; }
.site-footer { margin-top: 80px; }

/* 文字の大きさの切り替え（site.json の sizeToggle） */
.g-size { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: 10px auto 0; font-size: .9rem; }
.g-chip { min-height: 48px; padding: 6px 16px; white-space: nowrap; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); font-size: .95rem; cursor: pointer; }
.g-chip:hover, .g-chip[aria-pressed="true"] { border-color: var(--ai); background: var(--ai); color: var(--on-ai); }

/* 見出し */
.sec-title { font-size: clamp(1.35rem, 3.6vw, 1.65rem); margin: 64px 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border-strong); }
.sec-lead { margin: 12px 0 24px; color: var(--muted); }
#start, #guide, #tools, #faq, #kagu { scroll-margin-top: 110px; }

/* トップの見出しと絵（hero.webp があるときだけ絵を出す） */
.h-hero { display: grid; gap: 20px; margin: 18px 0 0; padding: 26px 22px; border: 1px solid var(--border); border-top: 3px solid var(--ai); border-radius: var(--radius); background: var(--surface); }
.h-for { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--warm); font-weight: 600; color: var(--warm); }
.h-hero h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.55; margin: 0 0 14px; }
.h-hero .lead { margin: 0; }
.h-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
@media (min-width: 860px) { .h-hero:has(.h-hero-img) { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 36px; padding: 40px; } }

/* 知りたいことを選んでください（大きな入口） */
.h-start { margin: 40px 0 0; }
.h-start h2 { font-size: 1.4rem; margin: 0 0 14px; }
.h-start ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .h-start ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .h-start ul { grid-template-columns: repeat(4, 1fr); } }
.h-start li { max-width: none; margin: 0; }
.h-start a { display: flex; align-items: center; gap: 16px; height: 100%; min-height: 96px; padding: 16px 18px; border: 2px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.h-start a:hover, .h-start a:focus-visible { border-color: var(--ai); background: var(--ai-tint); }
.h-start img { display: block; width: 96px; flex: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
@media (min-width: 1040px) { .h-start a { flex-direction: column; align-items: stretch; } .h-start img { width: 100%; } }
.h-ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--ai-tint); color: var(--ai); }
.h-ico svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.h-start strong { display: block; font-size: 1.12rem; line-height: 1.5; }
.h-start strong::after { content: " →"; color: var(--warm); }
.h-d { display: block; margin-top: 4px; font-size: .95rem; color: var(--muted); }

/* 解説の一覧（番号つき） */
.h-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.h-steps li { display: flex; gap: 16px; max-width: none; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--border); }
.h-n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--warm); border-radius: 50%; color: var(--warm); font-family: var(--mincho); font-size: 1.2rem; }
.h-steps h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.h-steps h3 a { display: inline-block; padding: 4px 0; text-decoration: none; }
.h-steps h3 a::after { content: " →"; color: var(--warm); }
.h-steps p { margin: 0; }
.h-sub { margin: 30px 0 10px; font-size: 1.08rem; }
.h-season { margin: 0; }
.h-season a { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-height: 64px; padding: 16px 18px; border: 1px solid var(--border-strong); border-left: 4px solid var(--warm); border-radius: var(--radius-sm); background: var(--warm-soft); color: var(--text); text-decoration: none; }
.h-season a:hover { border-color: var(--warm); }
.h-season-img { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.h-season strong::after { content: " →"; color: var(--warm); }
.h-links { margin: 8px 0 0; padding-left: 1.2em; }
.h-links a { display: inline-block; padding: 8px 0; }

/* 頼みたい作業を選ぶ（data-count="need" data-task） */
.h-task { margin: 48px 0 10px; padding: 20px 22px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2); }
.h-task-h { margin: 0 0 8px; font-size: 1.25rem; padding: 0; border: 0; }
.h-task > p { margin: 0 0 12px; }
.h-task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .h-task-list { grid-template-columns: repeat(2, 1fr); } }
.h-task-list li { max-width: none; margin: 0; }
main a.h-task-btn { display: block; height: 100%; min-height: 64px; padding: 12px 16px; border: 2px solid var(--ai); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); text-decoration: none; }
main a.h-task-btn:hover, main a.h-task-btn:focus-visible { background: var(--ai-tint); }
.h-task-btn strong { display: block; color: var(--accent-ink); font-size: 1.08rem; }
.h-task-btn strong::after { content: " →"; color: var(--warm); }
.h-task-btn span { display: block; font-size: .92rem; color: var(--muted); }
.h-small { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

/* ツールの一覧（TOOLS マーカー） */
.home .tool-card { border: 1px solid var(--border); }
.home .tool-card:hover { border-color: var(--ai); }

/* 解説ページ */
.h-article { max-width: 760px; margin: 0 auto; }
.h-article h1 { font-size: clamp(1.55rem, 4.6vw, 2.1rem); line-height: 1.55; margin: 30px 0 16px; }
.h-article h2 { margin: 52px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-strong); font-size: 1.3rem; }
.h-article h3 { margin: 28px 0 6px; font-size: 1.1rem; }
.h-article table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .95rem; background: var(--surface); }
.h-article th, .h-article td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.h-article th { background: var(--surface-2); font-weight: 600; }
.h-article li { margin: 4px 0; }
.h-guide-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 18px; border-radius: var(--radius-sm); }
.h-answer { margin: 14px 0 12px; padding: 14px 18px; border-left: 4px solid var(--ai); background: var(--ai-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.h-toc { margin: 18px 0 6px; padding: 16px 20px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); }
.h-toc ol { margin: 6px 0 0; padding-left: 1.3em; }
.h-toc a { display: inline-block; padding: 6px 0; }
.h-toolcard { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; margin: 22px 0; padding: 14px 18px; border: 2px solid var(--ai); border-radius: var(--radius); background: var(--ai-tint); }
main a.h-toolcard { color: var(--text); text-decoration: none; }
.h-toolcard strong { display: block; font-size: 1.05rem; line-height: 1.5; color: var(--accent-ink); }
.h-toolcard-go { flex: none; font-size: 1.5rem; color: var(--accent-ink); }
.h-toolcard:hover, .h-toolcard:focus-visible { background: var(--ai-tint-2); }
.h-next { margin: 40px 0 18px; padding: 18px 20px; border: 1px solid var(--border); border-left: 3px solid var(--ai); background: var(--surface); border-radius: var(--radius-sm); }
.h-next ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.h-next li { max-width: none; margin: 0; }
.h-next a { display: flex; align-items: center; min-height: 52px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); text-decoration: none; }
.h-next a::after { content: "→"; margin-left: auto; padding-left: 10px; color: var(--warm); }
.h-src { margin: 28px 0 0; font-size: .88rem; color: var(--muted); }
.h-src a { display: inline-block; padding: 4px 0; }
.h-others { margin: 22px 0 0; }
.h-others a { display: inline-block; padding: 8px 0; }
@media (max-width: 520px) {
  .h-article table { font-size: .9rem; }
  .h-article th, .h-article td { padding: 8px; }
}

/* よくある質問 */
.faq details { border: 1px solid var(--border); margin: 0 0 10px; }
.faq summary { min-height: 48px; padding: 12px 16px; cursor: pointer; }
.faq details p { margin: 0; padding: 0 16px 14px; }

/* ツールのページ：「このページは」の欄 */
.h-forbox { margin: 12px 0 18px; padding: 14px 18px; border-left: 3px solid var(--warm); background: var(--warm-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .98rem; }
.h-forbox p { margin: 0; }
.h-forbox .h-forbox-next { margin-top: 6px; font-size: .95rem; color: var(--muted); }
.h-forbox a { display: inline-block; padding: 4px 0; }

/* A8 の【PR】枠（見出し・各サービスの一言・選んだ基準）2026-11-25 */
.pr-a8 .pr-head { margin: 0 0 6px; font-weight: 700; font-size: .9rem; }
.pr-a8 .pr-links li { margin: 0 0 8px; }
.pr-a8 .pr-desc { display: block; font-size: .8rem; opacity: .8; }
.pr-a8 .pr-crit { margin: 6px 0 0; font-size: .75rem; line-height: 1.6; opacity: .8; }
.pr-a8 img[width="1"] { position: absolute; }
