/* 株価計算くん：専門メディアの記事のような、白地と細い罫線を基調にしたデザイン */
:root {
  --navy: #1f3550;
  --navy-dark: #172a40;
  --accent: #937f4e;
  --text: #333333;
  --muted: #777777;
  --line: #e2e2e2;
  --line-strong: #cfcfcf;
  --bg: #ffffff;
  --soft: #f7f6f2;
  --error: #b3261e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
}
a { color: var(--navy); }
.container { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.nb { display: inline-block; }
h1, h2, h3, .cta-title, .trust-list strong, .mine-head { word-break: auto-phrase; }
[hidden] { display: none !important; }
.hidden { display: none !important; }

/* ヘッダー */
.site-header { background: #fff; border-top: 4px solid var(--navy); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; padding-bottom: 14px; }
.site-title { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-size: 1.15rem; letter-spacing: .12em; }
.site-title img { width: 28px; height: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .88rem; }
.site-nav a { color: var(--text); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); }

/* 見出しエリア */
.hero { background: #fff; padding: 44px 0 30px; border-bottom: 1px solid var(--line); }
.hero h1 { margin: 0; font-size: 1.9rem; font-weight: normal; line-height: 1.6; color: var(--text); }
.hero p { margin: 14px 0 0; color: var(--muted); }
.hero-label { display: block; color: var(--accent); font-weight: bold; font-size: .9rem; letter-spacing: .1em; margin-bottom: 8px; }
.hero-inner { display: block; }
.hero-kun { display: none; }
@media (max-width: 600px) { .hero { padding: 30px 0 22px; } .hero h1 { font-size: 1.45rem; } }

main { padding: 28px 0 56px; }

/* 本文の見出し（「1｜見出し」の形） */
main { counter-reset: sec; }
h2.section-title {
  counter-increment: sec;
  font-size: 1.4rem; font-weight: bold; color: var(--accent);
  margin: 56px 0 18px; padding: 0 0 10px; border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
h2.section-title::before { content: counter(sec); font-weight: normal; color: var(--accent); margin-right: .6em; padding-right: .6em; border-right: 1px solid var(--line-strong); }
h3 { font-size: 1.08rem; color: var(--navy); margin: 28px 0 8px; }

/* 冒頭の案内 */
.mission { margin: 6px 0 30px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.mission h2 { margin: 0 0 12px; font-size: 1.2rem; color: var(--accent); }
.mission p { margin: 0 0 12px; }
.mission-list { list-style: none; padding: 0; margin: 0 0 14px; border-top: 1px solid var(--line); }
.mission-list li { padding: 10px 0 10px 1.6em; border-bottom: 1px solid var(--line); position: relative; font-size: .95rem; }
.mission-list li::before { content: ""; position: absolute; left: .3em; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.notice { font-size: .85rem; color: var(--muted); }

/* 安心ポイント */
.trust { margin: 30px 0 34px; }
.trust h2 { font-size: 1.05rem; color: var(--text); margin: 0 0 6px; text-align: left; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 32px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .trust-list { grid-template-columns: 1fr; } }
.trust-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trust-icon { flex: 0 0 auto; color: var(--accent); font-size: .95rem; font-family: Georgia, "Times New Roman", serif; line-height: 1.9; }
.trust-icon::before { content: "0"; }
.trust-list strong { color: var(--text); font-size: .95rem; }
.trust-list p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.75; }

/* 計算機 */
.card { background: #fff; border: 1px solid var(--line-strong); padding: 28px 28px 24px; }
@media (max-width: 600px) { .card { padding: 18px 14px; } }
fieldset { border: none; margin: 0 0 28px; padding: 0; }
legend { font-weight: bold; color: var(--text); font-size: 1.05rem; margin-bottom: 8px; padding: 0; width: 100%; }
legend .step { display: inline-block; color: var(--accent); font-size: .8rem; letter-spacing: .1em; margin-right: 10px; font-weight: bold; }
.opt { display: inline-block; color: var(--muted); font-size: .72rem; border: 1px solid var(--line-strong); padding: 0 6px; margin-left: 8px; vertical-align: 2px; font-weight: normal; line-height: 1.6; }

.path-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 700px) { .path-switch { grid-template-columns: 1fr; } }
.path { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-strong); padding: 12px 14px; cursor: pointer; background: #fff; }
.path input { margin-top: 7px; accent-color: var(--navy); }
.path strong { display: block; color: var(--text); font-size: .98rem; }
.path small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.6; margin-top: 2px; }
.path:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }

.field { display: grid; grid-template-columns: 1fr 230px; gap: 4px 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.field label { font-size: .95rem; }
.field label small.where { display: block; font-size: .78rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.field .hint { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.7; }
@media (max-width: 600px) { .field { grid-template-columns: 1fr; } }
.small-check { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }

.input-unit { display: flex; align-items: center; gap: 8px; }
.input-unit input, .input-unit select { flex: 1; min-width: 0; }
.input-unit span { white-space: nowrap; font-size: .88rem; color: var(--muted); min-width: 2.4em; }
input[type="text"], select, textarea {
  width: 100%; padding: 9px 10px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: 2px; background: #fff; color: var(--text);
}
input[type="text"].num { text-align: right; }
input:focus, select:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
input:disabled { background: #f2f2f2; color: #aaa; }
input.invalid { border-color: var(--error); background: #fdf6f5; }

.fcf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.fcf-grid label { font-size: .82rem; color: var(--muted); display: block; }

.pro { margin-top: 18px; }
.pro summary { cursor: pointer; font-size: .85rem; color: var(--muted); }

.guide { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.guide-title { font-weight: bold; color: var(--text); margin: 0 0 6px; }
.letter { margin: 12px 0; }
.letter summary { cursor: pointer; color: var(--navy); }
.letter pre { white-space: pre-wrap; background: var(--soft); border: 1px solid var(--line); padding: 14px; font-family: inherit; font-size: .88rem; line-height: 1.85; }

/* ボタン */
.btn {
  display: inline-block; border: 1px solid var(--navy); cursor: pointer; font-family: inherit;
  font-size: 1rem; font-weight: bold; padding: 12px 38px; border-radius: 2px;
  background: var(--navy); color: #fff; text-decoration: none; letter-spacing: .08em;
}
.btn:hover { background: var(--navy-dark); }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--line-strong); font-weight: normal; padding: 11px 22px; font-size: .92rem; letter-spacing: .02em; }
.btn-secondary:hover { background: var(--soft); }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

.errors { color: var(--error); border: 1px solid #ecc9c5; background: #fdf6f5; padding: 10px 14px; margin: 16px 0 0; display: none; font-size: .92rem; }
.errors ul { margin: 0; padding-left: 1.2em; }

/* 結果 */
.result { margin-top: 26px; }
.result .placeholder { text-align: center; color: var(--muted); margin: 0; padding: 22px; border: 1px dashed var(--line-strong); font-size: .92rem; }
.mine-card { border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); padding: 18px 0 20px; }
.mine-head { margin: 0 0 6px; font-weight: bold; font-size: 1.1rem; color: var(--text); text-align: center; }
.mine-table { width: 100%; border-collapse: collapse; }
.mine-table th, .mine-table td { padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mine-table th { text-align: left; font-weight: normal; }
.mine-table th small { display: block; font-size: .75rem; color: var(--muted); }
.mine-table td { text-align: right; font-size: 1.35rem; color: var(--navy); white-space: nowrap; }
.court-main { margin-top: 18px; background: var(--soft); padding: 18px; text-align: center; }
.court-head { margin: 0; color: var(--accent); font-weight: bold; }
.court-range { margin: 6px 0 0; font-size: 1.5rem; color: var(--text); }
.court-mid { margin: 2px 0 0; }
.court-mid strong { font-size: 1.15rem; color: var(--navy); }
.court-note, .court-tax { margin: 12px 0 0; font-size: .84rem; text-align: left; color: var(--text); line-height: 1.8; }
.court-tax { border-top: 1px solid var(--line-strong); padding-top: 10px; }
.court-missing { margin: 12px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.note { font-size: .82rem; color: var(--error); margin: 8px 0 0; }
.company { margin-top: 14px; font-size: .9rem; }
.company summary { cursor: pointer; color: var(--navy); }
.company ul { margin: 8px 0; padding-left: 1.2em; }
.assume { font-size: .78rem; color: var(--muted); }
.disclaimer { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
#result_summary_view { white-space: pre-wrap; font-size: .85rem; background: var(--soft); border: 1px solid var(--line); padding: 10px 12px; margin-top: 10px; display: none; }
@media (max-width: 600px) {
  .mine-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mine-table th, .mine-table td { display: block; border: none; padding: 0; }
  .mine-table td { font-size: 1.45rem; }
  .court-main { padding: 14px 12px; }
  .court-range { font-size: 1.3rem; }
}

/* 相談への案内 */
.cta { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; text-align: center; }
.cta-kun { display: none; }
.cta p { margin: 0 0 12px; }
.cta-title { font-size: 1.1rem; font-weight: bold; color: var(--text); margin-bottom: 4px !important; }

/* 解説 */
ol.steps { padding-left: 1.4em; }
ol.steps li, .explain li { margin-bottom: 8px; }
.explain { padding-left: 1.2em; }
.formula { background: var(--soft); border-left: 2px solid var(--accent); padding: 12px 16px; margin: 12px 0; font-size: .93rem; }

/* お問い合わせ */
.mail-address { font-size: 1.25rem; text-align: center; margin: 4px 0 10px; word-break: break-all; }
.mail-warning { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: .9rem; }
.promise { border: 1px solid var(--line); padding: 12px 16px; margin: 16px 0; font-size: .88rem; }
.promise p { margin: 0 0 4px; }
.promise ul { margin: 0 0 6px; padding-left: 1.3em; }
.check { display: flex; gap: 8px; align-items: flex-start; }

/* 下層ページのカード */
.card h3:first-child { margin-top: 0; }

/* フッター */
.site-footer { background: var(--navy-dark); color: #c9d1da; padding: 30px 0; font-size: .82rem; letter-spacing: .04em; }
.site-footer a { color: #fff; }
.site-footer p { margin: 4px 0; }

/* ===== 読みやすさの調整：やわらかい色で区切り、要点を目立たせる ===== */
:root {
  --text: #2a2a2a;
  --muted: #5f6368;
  --tint-blue: #f2f6fb;
  --tint-warm: #fbf7ee;
  --marker: #fff1b8;
}
body { font-size: 16.5px; line-height: 1.95; }

/* ロゴとキャラクター */
.site-title { font-size: 1.35rem; font-weight: bold; letter-spacing: .1em; gap: 10px; }
.site-title img { width: 48px; }
.hero { background: linear-gradient(180deg, var(--tint-blue), #fff); padding: 40px 0 34px; }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.hero-kun { display: block; width: 150px; height: auto; flex: 0 0 150px; }
.hero h1 { color: var(--navy); font-weight: bold; font-size: 2rem; }
.hero p { color: var(--text); font-size: 1.02rem; }
@media (max-width: 600px) {
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .hero-kun { width: 96px; flex-basis: auto; }
  .hero h1 { font-size: 1.55rem; }
}

/* 蛍光ペン風の強調 */
.marker { background: linear-gradient(transparent 60%, var(--marker) 60%); font-weight: bold; color: var(--text); }

/* 見出しは紺、番号だけ金茶 */
h2.section-title { color: var(--navy); }
h2.section-title::before { color: var(--accent); font-weight: bold; }
h3 { color: var(--navy); border-left: 3px solid var(--accent); padding-left: 10px; }

/* 冒頭の案内：あたたかい背景で包む */
.mission { background: var(--tint-warm); border: none; border-radius: 8px; padding: 24px 26px; margin: 8px 0 30px; }
.mission h2 { color: var(--navy); font-size: 1.25rem; }
.mission-list { border-top: none; background: #fff; border-radius: 6px; padding: 6px 16px; }
.mission-list li { border-bottom: 1px dashed var(--line); }
.mission-list li:last-child { border-bottom: none; }
.mission-list li::before { content: "✓"; width: auto; height: auto; background: none; color: var(--navy); font-weight: bold; top: 10px; left: .2em; }
@media (max-width: 600px) { .mission { padding: 18px 14px; } }

/* 安心ポイント：薄い青の面で区切る */
.trust h2 { color: var(--navy); font-size: 1.15rem; text-align: center; margin-bottom: 14px; }
.trust-list { border-top: none; gap: 10px 14px; }
.trust-list li { background: var(--tint-blue); border-bottom: none; border-radius: 6px; padding: 14px 16px; }
.trust-icon { color: var(--navy); font-weight: bold; }
.trust-list strong { color: var(--navy); font-size: 1rem; }
.trust-list p { color: var(--text); }

/* 計算機：STEPを見つけやすく */
.card { border: 1px solid #d6dee8; border-radius: 8px; box-shadow: 0 2px 10px rgba(31,53,80,.05); }
legend { font-size: 1.12rem; color: var(--navy); }
legend .step { background: var(--navy); color: #fff; border-radius: 3px; padding: 1px 9px; font-size: .78rem; vertical-align: 2px; }
.path { border-radius: 6px; }
.path:has(input:checked) { background: var(--tint-blue); }
.field label { color: var(--text); }
.field label small.where { color: #8a6d2f; }
.hint, .field .hint { color: var(--muted); }

/* 結果：大事な数字をはっきり */
.mine-card { background: #fff; border: 2px solid var(--navy); border-radius: 8px; padding: 18px 20px; }
.mine-head { color: var(--navy); font-size: 1.15rem; }
.mine-table td { font-weight: bold; }
.court-main { background: var(--tint-warm); border-radius: 6px; }
.court-head { color: var(--navy); }
.court-range { font-weight: bold; color: var(--navy); }
.court-tax { background: #fff; border-top: none; border-radius: 4px; padding: 10px 12px; }

/* 相談への案内 */
.cta { background: var(--tint-blue); border-top: none; border-radius: 8px; padding: 22px 18px; }
.cta-title { color: var(--navy); }

/* 解説の数式 */
.formula { background: var(--tint-blue); border-left-color: var(--navy); border-radius: 0 4px 4px 0; }
.mail-warning { background: var(--tint-warm); border: none; border-radius: 6px; padding: 12px 14px; }

/* 問い合わせボタン */
.mail-how { text-align: center; font-size: .88rem; color: var(--muted); margin: 14px 0 6px; }
.mail-actions .btn { padding: 12px 22px; font-size: .95rem; }
@media (max-width: 600px) { .mail-actions .btn, .actions .btn { width: 100%; text-align: center; } }

/* ===== 解説記事：記事ごとに色と挿絵を変える ===== */
.article-hero { padding: 34px 0 30px; border-bottom: none; background: var(--hero-bg, var(--tint-blue)); }
.article-hero .hero-grid { display: flex; align-items: center; gap: 28px; }
.article-hero .hero-text { flex: 1; min-width: 0; }
.article-hero h1 { font-weight: bold; color: var(--navy); font-size: 1.75rem; line-height: 1.5; }
.article-hero .hero-art { flex: 0 0 210px; }
.article-hero .hero-art svg { width: 100%; height: auto; display: block; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 12px; font-size: .82rem; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: bold; letter-spacing: .06em; background: var(--tag-bg, var(--navy)); color: var(--tag-fg, #fff); }
.article-meta .read { color: var(--muted); }
.breadcrumb a { color: var(--navy); }
.article h2 { border-bottom-color: var(--theme-line, var(--line)) !important; }
.article h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--theme, var(--accent)); margin-right: 10px; vertical-align: 2px; }
.figure { margin: 18px 0 8px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }
@media (max-width: 640px) {
  .article-hero .hero-grid { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .article-hero .hero-art { flex-basis: auto; width: 150px; }
  .article-hero h1 { font-size: 1.4rem; }
}

/* テーマ：会社に買い取ってもらう（金茶・道筋） */
.theme-kaitori { --hero-bg: linear-gradient(135deg, #fbf5e6 0%, #fffdf8 70%); --theme: #b08d3c; --theme-line: #eadcb8; --tag-bg: #b08d3c; }
/* テーマ：売渡請求が届いたら（えんじ・期限） */
.theme-uriwatashi { --hero-bg: linear-gradient(135deg, #fbecec 0%, #fffafa 70%); --theme: #b5413a; --theme-line: #efcfcc; --tag-bg: #b5413a; }

/* 記事一覧：記事ごとの色の帯 */
.article-list li { border-left: 4px solid var(--theme, var(--line)); padding-left: 16px !important; }
.article-list .tag { font-size: .72rem; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 640px) {
  .figure { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 12px; }
  .figure svg { min-width: 620px; }
  .figure figcaption::after { content: "（図は横にスクロールできます）"; }
}
/* テーマ：少数株主の株の価格（青緑・考え方） */
.theme-shosu { --hero-bg: linear-gradient(135deg, #e6f3ef 0%, #fbfefd 70%); --theme: #2f7d6d; --theme-line: #cbe5dd; --tag-bg: #2f7d6d; }

/* ===== 記事の冒頭：見出し画像を大きく（2026-11-08 差し替え） ===== */
.article-top { padding: 22px 0 6px; background: #fff; border-bottom: 1px solid var(--line); }
.article-top .breadcrumb { margin: 0 0 10px; font-size: .85rem; }
.eyecatch { display: block; width: 100%; height: auto; margin: 0 0 18px; }
.article-top h1 { font-size: 1.7rem; font-weight: bold; color: var(--navy); line-height: 1.5; margin: 6px 0 8px; }
.article-sub { color: var(--muted); margin: 0 0 14px; }
.tag { border-radius: 0 !important; }
.article-list li { display: grid; grid-template-columns: 220px 1fr; column-gap: 18px; align-items: start; }
.article-list li > * { grid-column: 2; }
.article-list li > .thumb { grid-column: 1; grid-row: 1 / span 3; }
.article-list .thumb img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .article-top h1 { font-size: 1.35rem; }
  .article-list li { grid-template-columns: 1fr; }
  .article-list li > *, .article-list li > .thumb { grid-column: 1; grid-row: auto; }
  .article-list .thumb { margin-bottom: 8px; }
}
.article-list li > .tag, .article-list li > .date { justify-self: start; }
.article-list li > .tag { grid-row: 1; }
.article-list li > .date { grid-row: 2; }
@media (max-width: 640px) {
  .article-list li { display: flex; flex-direction: column; }
  .article-list li > .thumb { order: -1; }
}
