/* 転生不動産（vacant-house.com）共通スタイル。簡素・スマホ優先。外部フォント・外部JSは使わない */
:root {
  --ink: #222;
  --muted: #666;
  --line: #ddd;
  --bg: #fff;
  --soft: #f6f4ef;
  --accent: #b5532a;
  --accent-ink: #fff;
  --pending-bg: #fff4c2;
  --pending-line: #d4a400;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ヘッダ */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.site-name { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* 本文 */
main { padding: 24px 0 40px; }
h1 { font-size: 24px; line-height: 1.4; margin: 8px 0 16px; }
h2 { font-size: 19px; line-height: 1.4; margin: 32px 0 10px; padding-left: 10px; border-left: 4px solid var(--accent); }
p { margin: 0 0 12px; }
.lead { font-size: 17px; }
section { margin: 0; }

/* 診断の枠とボタン */
.box-cta { background: var(--soft); border-radius: 8px; padding: 4px 16px 16px; margin: 24px 0; }
.box-cta h2 { border-left: 0; padding-left: 0; }
.cta { text-align: center; margin: 16px 0 4px; }
.btn {
  display: inline-block; min-width: 260px; max-width: 100%;
  padding: 14px 20px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none; text-align: center;
}
.btn:hover, .btn:focus { opacity: .9; }

/* 表：スマホでは1行を縦に積む */
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
th { background: var(--soft); }
@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; }
  table.stack td { border: 0; border-bottom: 1px solid var(--line); }
  table.stack td:last-child { border-bottom: 0; }
  table.stack td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .btn { min-width: 0; width: 100%; }
}

/* 記事一覧・記事 */
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.article-meta { color: var(--muted); font-size: 13px; }

/* 軽い出口（放置コスト計算・5問診断）2026-10-16 */
.tool fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 14px; padding: 8px 14px 12px; }
.tool legend { font-weight: 700; padding: 0 6px; line-height: 1.5; }
.tool .opt { display: flex; align-items: flex-start; gap: 8px; padding: 8px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.tool .opt:last-of-type { border-bottom: 0; }
.tool .opt input { margin-top: 6px; flex: none; width: 18px; height: 18px; }
.tool .num input { width: 11em; max-width: 70%; font-size: 18px; padding: 8px 10px; border: 1px solid #999; border-radius: 6px; }
.tool select { font-size: 16px; padding: 6px 8px; border: 1px solid #999; border-radius: 6px; background: var(--bg); color: var(--ink); }
.tool .sel { display: block; padding: 8px 4px; }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
button.btn { border: 0; font-size: 16px; font-family: inherit; cursor: pointer; }
.error { color: #b00020; font-weight: 700; }
.result { border: 2px solid var(--accent); border-radius: 8px; padding: 4px 16px 16px; margin: 24px 0; }
.result h2:first-child { border-left: 0; padding-left: 0; }
.result .big { font-size: 18px; margin: 4px 0; }
.result .big strong { font-size: 22px; color: var(--accent); }
.note { font-size: 14px; color: var(--muted); }
/* 出口のカード（設楽の案 2026-10-16 §1-3。横並び・スマホは縦） */
.exits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.exit { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--bg); }
.exit p { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.exit-title { display: block; font-weight: 700; line-height: 1.5; }
.exit-1 { grid-column: 1 / -1; background: var(--soft); border-color: var(--soft); }
.exit-1 .btn { min-width: 0; }

/* 検証版だけに出す「未入力」の枠（公開版の組み立てでは、これが残っていると止まる） */
.pending {
  display: inline-block; margin: 4px 0; padding: 2px 8px;
  background: var(--pending-bg); border: 1px dashed var(--pending-line);
  font-size: 13px; color: #6b5200;
}
.draft-banner { background: var(--pending-bg); border-bottom: 1px solid var(--pending-line); font-size: 13px; text-align: center; padding: 4px 8px; }

/* フッタ */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); font-size: 13px; color: var(--muted); }
.site-footer .wrap { padding-top: 16px; padding-bottom: 24px; }
.site-footer ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-footer a { color: var(--muted); }
