/* ==========================================================================
   はじめての証券口座ノート stylesheet ― 紺＋白＋落ち着いた緑。数字のカード・チェックリスト・表が読みやすい。スマホ優先
   色・余白はすべて :root の変数で管理しています。
   ========================================================================== */

:root{
  /* --- 文字 --- */
  --ink:#15263d;        /* 見出し */
  --text:#3f5165;       /* 本文 */
  --muted:#7c8ca0;      /* 補足 */

  /* --- 面 --- */
  --white:#ffffff;
  --bg:#f5f8fc;         /* うっすら青みのある下地 */
  --line:#e3eaf3;
  --line-soft:#eef3f9;

  /* --- アクセント --- */
  --navy:#1b3768;       /* 主役の紺 */
  --navy-dark:#132a52;
  --navy-bg:#e8edf8;
  --lime:#2f9e6a;       /* 落ち着いた緑（チェック・差し色） */
  --lime-dark:#22714b;
  --lime-bg:#e7f5ee;
  --teal:#0f766e;
  --teal-bg:#e4f4f2;
  --amber:#b45309;
  --amber-bg:#fdf2e3;
  --red:#b91c1c;
  --red-bg:#fdeaea;

  /* 既存部品が参照する別名 */
  --blue:var(--navy);
  --blue-light:#3b5bb5;
  --blue-bg:var(--navy-bg);
  --teal-light:#2a9d93;
  --sun:#f2b705;
  --sun-bg:#fdf5d7;
  --coral:#e05a4a;
  --coral-bg:var(--red-bg);

  --radius:8px;
  --radius-lg:12px;
  --radius-xl:16px;

  --shadow-xs:0 1px 2px rgba(21,38,61,.05);
  --shadow:0 1px 2px rgba(21,38,61,.03), 0 10px 24px -16px rgba(21,38,61,.14);
  --shadow-lg:0 4px 10px rgba(21,38,61,.04), 0 26px 54px -30px rgba(21,38,61,.24);

  --wrap:1120px;
  --wrap-narrow:760px;
  --nav-h:68px;

  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-en: "Inter", var(--font);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

body{
  margin:0; font-family:var(--font); font-size:16px; line-height:1.9; color:var(--text);
  background:var(--white); overflow-x:hidden; font-feature-settings:"palt"; -webkit-font-smoothing:antialiased;
}

img,svg,video{ max-width:100%; height:auto; display:block; }
a{ color:var(--navy); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3,h4{ line-height:1.5; letter-spacing:.01em; color:var(--ink); margin:0; font-weight:700; }
p{ margin:0; }
ul,ol{ margin:0; padding:0; }
:focus-visible{ outline:3px solid var(--lime); outline-offset:2px; border-radius:6px; }

.skip-link{ position:absolute; left:-9999px; top:0; z-index:200; background:var(--ink); color:#fff; padding:12px 20px; border-radius:0 0 8px 0; }
.skip-link:focus{ left:0; }

/* ---------- レイアウト ---------- */
.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:20px; }
.wrap-narrow{ max-width:var(--wrap-narrow); }
.section{ padding:80px 0; }
@media (max-width:768px){ .section{ padding:56px 0; } }

.bg-white{ background:var(--white); }
.bg-soft{ background:var(--bg); }

.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:900px){ .grid-2,.grid-3{ grid-template-columns:1fr; } }

.center{ text-align:center; }
.mt-24{ margin-top:24px; } .mt-32{ margin-top:32px; } .mt-48{ margin-top:48px; } .mt-64{ margin-top:64px; }

/* ---------- ロゴ ---------- */
.logo{ display:inline-flex; align-items:center; gap:9px; text-decoration:none; line-height:1; }
.logo:hover{ text-decoration:none; }
.logo-mark svg{ width:30px; height:30px; }
.logo-text{ font-size:20px; font-weight:700; color:var(--ink); letter-spacing:.02em; }
.logo-text b{ color:var(--navy); font-weight:900; }

/* ---------- ヘッダー ---------- */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100; height:var(--nav-h);
  background:rgba(255,255,255,.92); backdrop-filter:blur(14px);
  border-bottom:1px solid transparent; transition:box-shadow .25s, border-color .25s;
}
.site-header.scrolled{ background:rgba(255,255,255,.98); border-color:var(--line); box-shadow:0 4px 20px -12px rgba(21,38,61,.3); }
.site-header .wrap{ height:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.site-nav{ display:flex; align-items:center; gap:22px; }
.site-nav a{ color:var(--text); font-size:14px; font-weight:600; text-decoration:none; transition:color .2s; white-space:nowrap; }
.site-nav a:hover{ color:var(--navy); }
.site-nav a[aria-current="page"]{ color:var(--navy); box-shadow:inset 0 -2px 0 var(--lime); }
.site-nav .btn{ box-shadow:none; }
.nav-toggle{ display:none; background:none; border:0; color:var(--ink); padding:8px; cursor:pointer; }

@media (max-width:1040px){
  .site-nav{
    position:fixed; inset:var(--nav-h) 0 auto 0; flex-direction:column; align-items:stretch; gap:0;
    background:#fff; border-bottom:1px solid var(--line); padding:8px 0 20px; box-shadow:var(--shadow);
    max-height:0; overflow:hidden; visibility:hidden; transition:max-height .28s ease, visibility .28s;
  }
  .site-nav.open{ max-height:80vh; visibility:visible; overflow:auto; }
  .site-nav a{ padding:15px 24px; font-size:16px; border-bottom:1px solid var(--line-soft); }
  .site-nav a[aria-current="page"]{ box-shadow:inset 4px 0 0 var(--lime); }
  .site-nav .btn{ margin:16px 24px 0; justify-content:center; border-bottom:0; }
  .nav-toggle{ display:block; }
}

/* ---------- ボタン ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:14px 28px; border-radius:8px; border:1.5px solid transparent;
  font-weight:700; font-size:15px; line-height:1.4; cursor:pointer; text-align:center;
  text-decoration:none; transition:transform .18s, background .18s, color .18s, box-shadow .18s, border-color .18s;
}
.btn:hover{ text-decoration:none; transform:translateY(-1px); }
.btn svg{ width:18px; height:18px; flex:0 0 auto; }
.btn-primary{ background:var(--navy); color:#fff; box-shadow:0 10px 24px -12px rgba(27,55,104,.7); }
.btn-primary:hover{ background:var(--navy-dark); color:#fff; }
.btn-lime{ background:var(--lime); color:#ffffff; }
.btn-lime:hover{ background:#278a5b; color:#ffffff; }
.btn-ink{ background:var(--ink); color:#fff; }
.btn-ink:hover{ background:#22385a; color:#fff; }
.btn-line{ background:#fff; color:var(--ink); border-color:var(--line); box-shadow:var(--shadow-xs); }
.btn-line:hover{ border-color:var(--navy); color:var(--navy); }
.btn-lg{ padding:18px 36px; font-size:16px; }
.btn-sm{ padding:10px 18px; font-size:13.5px; }

/* ---------- 見出し ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px; font-family:var(--font-en); font-size:11.5px; font-weight:800;
  letter-spacing:.22em; text-transform:uppercase; color:var(--navy); margin-bottom:14px;
}
.eyebrow::before{ content:""; width:22px; height:3px; background:var(--lime); border-radius:2px; }
.eyebrow.c-teal{ color:var(--teal); }
.h-sec{ font-size:clamp(22px,2.6vw,30px); margin-bottom:14px; }
.lead{ color:var(--text); font-size:16px; }
.sec-head{ max-width:720px; margin-inline:auto; margin-bottom:44px; text-align:center; }
.sec-head .eyebrow{ justify-content:center; }
.marker{ background:linear-gradient(transparent 60%, var(--lime-bg) 60%); padding:0 .1em; }
.sp-br{ display:inline; }
@media (max-width:640px){ .sp-br{ display:none; } }

/* ---------- ヒーロー（明るい） ---------- */
.hero{
  position:relative; overflow:hidden;
  padding:calc(var(--nav-h) + 64px) 0 72px;
  background:
    linear-gradient(180deg, rgba(227,234,243,.9) 1px, transparent 1px) 0 0/100% 44px,
    linear-gradient(170deg, #f5f8fc 0%, #ffffff 70%);
}
.hero::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:10px; background:var(--lime); }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
@media (max-width:940px){
  .hero{ padding:calc(var(--nav-h) + 40px) 0 56px; }
  .hero-grid{ grid-template-columns:1fr; gap:36px; }
}
.hero-badge{
  display:inline-flex; align-items:center; gap:9px; background:#fff; border:1px solid var(--line);
  border-radius:999px; padding:6px 16px 6px 6px; font-size:12.5px; font-weight:700; color:var(--text);
  box-shadow:var(--shadow-xs); margin-bottom:24px;
}
.hero-badge b{ background:var(--navy); color:#fff; border-radius:999px; padding:4px 12px; font-size:11.5px; }
.hero-title{ font-size:clamp(28px,4.4vw,48px); line-height:1.38; margin-bottom:22px; font-weight:900; }
.hero-title .hl{ background:linear-gradient(transparent 58%, #cdeedd 58%, #cdeedd 92%, transparent 92%); padding:0 .06em; }
.hero-sub{ font-size:clamp(15px,1.5vw,17px); color:var(--text); max-width:560px; margin-bottom:30px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.hero-note{ margin-top:18px; font-size:12.5px; color:var(--muted); }

/* ヒーロー右のチェックリスト */
.hero-check{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-xl); box-shadow:var(--shadow-lg); padding:22px 24px 20px; max-width:420px; margin-inline:auto; transform:rotate(-1.2deg); }
.hc-head{ font-weight:900; color:var(--ink); font-size:15px; margin-bottom:12px; padding-bottom:10px; border-bottom:2px solid var(--line); display:flex; align-items:center; gap:8px; }
.hc-head::before{ content:""; width:10px; height:10px; border-radius:50%; background:var(--lime); }
.hero-check ul{ list-style:none; }
.hero-check li{ position:relative; padding:9px 0 9px 36px; font-size:14px; color:var(--ink); border-bottom:1px dashed var(--line); }
.hero-check li:last-child{ border-bottom:0; }
.hero-check li::before{ content:""; position:absolute; left:2px; top:11px; width:22px; height:22px; border-radius:6px; border:2px solid #c7d2e3; background:#fff; }
.hero-check li.done{ color:var(--muted); text-decoration:line-through; text-decoration-color:#c7d2e3; }
.hero-check li.done::before{ background:var(--lime) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.3l2.4 2.4L9.6 3.9'/%3E%3C/svg%3E") center/13px no-repeat; border-color:var(--lime); }

/* ---------- カード ---------- */
.card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); padding:30px; box-shadow:var(--shadow-xs); }
.card h3{ font-size:18px; margin-bottom:10px; }
.card p{ font-size:14.8px; color:var(--text); }

/* チェックリスト（文中） */
.checklist{ list-style:none; }
.checklist li{ position:relative; padding-left:30px; font-size:14.8px; color:var(--text); }
.checklist li + li{ margin-top:12px; }
.checklist li::before{
  content:""; position:absolute; left:0; top:.42em; width:19px; height:19px; border-radius:5px;
  background:var(--lime-bg) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%234d7c0f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.3l2.4 2.4L9.6 3.9'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- あなたは今どこ？ ---------- */
.where-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:980px){ .where-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .where-grid{ grid-template-columns:1fr; } }
.where{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:var(--radius-xl); padding:26px 24px 22px; text-decoration:none; color:inherit; transition:transform .22s, box-shadow .22s, border-color .22s; }
.where:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:#c7d2e3; text-decoration:none; }
.w-no{ width:36px; height:36px; border-radius:10px; display:grid; place-items:center; color:#fff; font-family:var(--font-en); font-weight:800; font-size:16px; margin-bottom:14px; }
.where h3{ font-size:17.5px; margin-bottom:8px; }
.where p{ font-size:14px; color:var(--text); }
.where .more{ margin-top:auto; padding-top:16px; font-size:13.5px; font-weight:700; color:var(--navy); }

/* ---------- 新着 ---------- */
.upd{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-xl); padding:26px 28px 22px; box-shadow:var(--shadow-xs); display:flex; flex-direction:column; }
.upd-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.upd-head h3{ font-size:18px; }
.upd-head h3 small{ font-size:12.5px; color:var(--muted); font-weight:600; margin-left:6px; }
.upd-head a{ font-size:13px; font-weight:700; white-space:nowrap; }
.upd ul{ list-style:none; display:grid; }
.upd li{ display:grid; grid-template-columns:6em 1fr; gap:12px; align-items:baseline; padding:13px 0; border-top:1px solid var(--line-soft); font-size:15px; }
.upd li:first-child{ border-top:0; }
.upd time{ font-family:var(--font-en); font-size:12.5px; color:var(--muted); font-weight:600; }
.upd li a{ color:var(--ink); font-weight:600; line-height:1.6; }
.upd li a:hover{ color:var(--navy); text-decoration:none; }
.upd .tag{ display:inline-block; font-size:11px; font-weight:700; color:#fff; border-radius:4px; padding:2px 8px; margin-right:8px; vertical-align:middle; }
.upd-foot{ margin-top:auto; padding-top:16px; border-top:1px solid var(--line-soft); }
@media (max-width:560px){ .upd li{ grid-template-columns:1fr; gap:4px; } }

/* ---------- 流れ ---------- */
.flow-svg{ width:100%; height:auto; }
@media (max-width:640px){ .flow-svg{ display:none; } }
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; counter-reset:s; }
@media (max-width:980px){ .steps, .steps[style]{ grid-template-columns:repeat(2,1fr) !important; } }
@media (max-width:520px){ .steps, .steps[style]{ grid-template-columns:1fr !important; } }
.step{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:24px 20px; box-shadow:var(--shadow-xs); position:relative; text-decoration:none; color:inherit; }
.step::before{
  counter-increment:s; content:counter(s,decimal-leading-zero);
  font-family:var(--font-en); font-size:30px; font-weight:800; color:var(--navy-bg); line-height:1;
  position:absolute; top:16px; right:18px;
}
.step h3{ font-size:16px; margin:0 0 8px; position:relative; }
.step p{ font-size:13.5px; color:var(--text); }
.step-link:hover{ border-color:var(--navy); text-decoration:none; transform:translateY(-2px); transition:.2s; }

/* 会計ソフトのミニ比較 */
.compare-mini{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-xl); padding:22px; box-shadow:var(--shadow); }
.cm-row{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:6px; padding:11px 6px; border-bottom:1px solid var(--line-soft); font-size:14px; text-align:center; align-items:center; }
.cm-row span:first-child{ text-align:left; font-weight:700; color:var(--ink); }
.cm-row span:not(:first-child){ color:var(--lime-dark); font-weight:800; }
.cm-head span{ color:var(--muted) !important; font-size:12px; font-weight:700 !important; }
.cm-row:last-of-type{ border-bottom:0; }

/* ---------- 写真＋文章の2カラム ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.split.narrow-text{ grid-template-columns:1.1fr .9fr; }
@media (max-width:900px){ .split,.split.narrow-text{ grid-template-columns:1fr; gap:32px; } }

.note{ font-size:12px; color:var(--muted); line-height:1.9; }

/* ---------- 記事一覧 ---------- */
.post-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
@media (max-width:960px){ .post-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .post-grid{ grid-template-columns:1fr; } }

.post-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; transition:transform .22s, box-shadow .22s; }
.post-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.post-card .thumb{ display:block; aspect-ratio:16/9; background:var(--bg); overflow:hidden; }
.post-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.post-card .body{ padding:20px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.post-card h3{ font-size:16.5px; line-height:1.65; }
.post-card h3 a{ color:var(--ink); text-decoration:none; }
.post-card h3 a:hover{ color:var(--navy); }
.post-card .excerpt{ font-size:13.5px; color:var(--muted); line-height:1.85; margin-top:auto; }

.post-meta{ display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); flex-wrap:wrap; }
.post-meta time{ font-family:var(--font-en); }
.post-meta .checked{ color:var(--lime-dark); font-weight:600; }
.cat{ display:inline-block; padding:4px 11px; border-radius:4px; font-size:11.5px; font-weight:700; color:#fff; }
.pr-mini{ display:inline-block; font-family:var(--font-en); font-size:10px; font-weight:800; letter-spacing:.08em; color:var(--muted); border:1px solid var(--line); border-radius:3px; padding:1px 5px; }

/* ---------- 記事本文 ---------- */
.post-header{ padding:calc(var(--nav-h) + 44px) 0 36px; background:linear-gradient(170deg,var(--bg),#ffffff); }
.post-header h1{ font-size:clamp(24px,3.4vw,36px); margin:16px 0 12px; line-height:1.5; font-weight:900; }
.post-header .byline{ font-size:13px; color:var(--muted); }
.post-hero{ margin-bottom:-40px; position:relative; z-index:2; }
.post-hero img{ width:100%; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); border:1px solid var(--line); }

.pr-note{ font-size:12.5px; color:var(--muted); background:var(--line-soft); border-radius:6px; padding:8px 14px; margin-bottom:20px; display:inline-block; }

.prose{ font-size:16.5px; line-height:2.05; color:var(--text); }
.prose > * + *{ margin-top:1.5em; }
.prose h2{ font-size:23px; margin-top:2.8em; padding:0 0 12px 0; position:relative; color:var(--ink); border-bottom:2px solid var(--line); }
.prose h2::after{ content:""; position:absolute; left:0; bottom:-2px; width:70px; height:2px; background:var(--lime); }
.prose h3{ font-size:19px; margin-top:2.3em; padding-left:14px; border-left:4px solid var(--navy); border-radius:2px; }
.prose h4{ font-size:17px; margin-top:2em; color:var(--ink); }
.prose ul,.prose ol{ padding-left:1.6em; }
.prose li + li{ margin-top:.55em; }
.prose ul{ list-style:disc; }
.prose ol{ list-style:decimal; }
.prose strong{ font-weight:700; color:var(--ink); background:linear-gradient(transparent 62%, var(--lime-bg) 62%); }
.prose blockquote{ margin-inline:0; padding:18px 24px; background:var(--navy-bg); border-left:4px solid var(--navy); border-radius:0 12px 12px 0; color:var(--text); font-size:15.5px; }
.prose blockquote > * + *{ margin-top:.8em; }
.prose code{ background:var(--line-soft); border:1px solid var(--line); border-radius:5px; padding:.16em .48em; font-size:.9em; font-family:ui-monospace,Menlo,Consolas,monospace; color:var(--navy); font-weight:600; }
.prose pre{ background:var(--ink); color:#e6eef7; padding:22px; border-radius:14px; overflow-x:auto; font-size:14px; line-height:1.75; }
.prose pre code{ background:none; border:0; padding:0; color:inherit; font-weight:400; }
.prose hr{ border:0; border-top:1px solid var(--line); margin:2.8em 0; }
.prose img{ border-radius:14px; }
.prose figure{ margin:0; }
.prose figcaption{ font-size:12.5px; color:var(--muted); text-align:center; margin-top:10px; }
.prose .table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.prose table{ width:100%; border-collapse:collapse; font-size:14.5px; min-width:460px; }
.prose th,.prose td{ border:1px solid var(--line); padding:11px 14px; text-align:left; vertical-align:top; }
.prose th{ background:var(--bg); font-weight:700; color:var(--ink); }
.prose tbody tr:nth-child(even){ background:#fbfdff; }
/* 文中のチェックボックス風リスト： - [ ] 形式は使えないので ☐ ☑ を書く想定 */
.prose ul.check{ list-style:none; padding-left:0; }

.toc{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius-lg); padding:24px 28px; }
.toc > strong{ display:flex; align-items:center; gap:9px; font-size:14.5px; color:var(--ink); margin-bottom:12px; }
.toc > strong::before{ content:""; width:18px; height:3px; background:var(--lime); border-radius:2px; }
.toc ol{ list-style:none; font-size:14.2px; counter-reset:t; }
.toc li{ counter-increment:t; }
.toc li.lv2::before{ content:counter(t) ". "; color:var(--navy); font-weight:700; font-family:var(--font-en); }
.toc li + li{ margin-top:8px; }
.toc li.lv3{ padding-left:22px; font-size:13.5px; counter-increment:none; }
.toc a{ color:var(--text); text-decoration:none; }
.toc a:hover{ color:var(--navy); }

.disclaimer{ margin-top:40px; background:var(--amber-bg); border-radius:var(--radius-lg); padding:18px 22px; font-size:13.5px; color:#6b4a14; line-height:1.9; }
.disclaimer strong{ display:block; color:#6b4a14; margin-bottom:4px; }

.post-nav{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.post-nav a{ font-size:14px; font-weight:700; max-width:46%; }
@media (max-width:640px){ .post-nav a{ max-width:100%; } }

.pager{ display:flex; gap:8px; justify-content:center; align-items:center; flex-wrap:wrap; }
.pager a,.pager span{ min-width:44px; height:44px; display:grid; place-items:center; padding:0 13px; border-radius:8px; border:1px solid var(--line); background:#fff; font-size:14px; font-weight:700; color:var(--text); text-decoration:none; }
.pager a:hover{ border-color:var(--navy); color:var(--navy); }
.pager .now{ background:var(--navy); border-color:var(--navy); color:#fff; }

.filter{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.filter a{ padding:9px 18px; border-radius:999px; border:1px solid var(--line); background:#fff; font-size:13px; font-weight:700; color:var(--text); text-decoration:none; transition:.18s; }
.filter a:hover{ border-color:var(--navy); color:var(--navy); text-decoration:none; }
.filter a.on{ background:var(--navy); border-color:var(--navy); color:#fff; }

/* ---------- 広告ボタン（PR） ---------- */
.aff-box{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:1.5em; padding:22px 18px; background:var(--bg); border:1px dashed #c7d2e3; border-radius:var(--radius-lg); }
.aff-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 26px; border-radius:10px; font-weight:700; font-size:15px; line-height:1.4; text-align:center;
  background:var(--lime); color:#ffffff; text-decoration:none; border:1.5px solid var(--lime);
  box-shadow:0 10px 22px -12px rgba(34,113,75,.7); transition:transform .18s, background .18s;
}
.aff-btn:hover{ background:#278a5b; transform:translateY(-1px); text-decoration:none; color:#ffffff; }
.aff-btn .pr{ font-family:var(--font-en); font-size:10px; font-weight:800; letter-spacing:.1em; background:rgba(0,0,0,.14); color:#ffffff; border-radius:3px; padding:2px 6px; }
.aff-btn.aff-soon{ background:#fff; color:var(--muted); border-color:var(--line); box-shadow:none; cursor:default; }
.prose .aff-btn{ color:#ffffff; }
.prose .aff-btn.aff-soon{ color:var(--muted); }

/* ==========================================================================
   記事内の図解パーツ（Excel風の表・手順・注意枠）
   ========================================================================== */
.xl{ border:1px solid #c8c6c4; border-radius:4px; overflow:hidden; background:#fff; box-shadow:0 1px 3px rgba(21,38,61,.10); margin-top:1.6em; font-family:"Segoe UI","Yu Gothic UI","Noto Sans JP",sans-serif; }
.xl-bar{ display:flex; align-items:stretch; background:#fff; border-bottom:1px solid #d0cece; }
.xl-name{ flex:0 0 92px; display:flex; align-items:center; padding:0 10px; height:30px; font-size:12px; color:#201f1e; border-right:1px solid #d0cece; background:#fff; }
.xl-fx{ flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:34px; font-style:italic; font-weight:600; font-size:12.5px; color:#605e5c; border-right:1px solid #d0cece; }
.xl-formula{ flex:1 1 auto; display:flex; align-items:center; padding:0 10px; min-width:0; font-family:ui-monospace,Consolas,"Courier New",monospace; font-size:12.5px; color:#201f1e; overflow-x:auto; white-space:nowrap; }
.xl-scroll{ overflow-x:auto; background:#fff; }
table.xl-grid{ border-collapse:separate; border-spacing:0; width:100%; min-width:520px; font-size:12.5px; }
table.xl-grid th, table.xl-grid td{ border-right:1px solid #d4d4d4; border-bottom:1px solid #d4d4d4; padding:0 7px; height:23px; line-height:21px; text-align:left; white-space:nowrap; color:#201f1e; background:#fff; font-weight:400; }
table.xl-grid thead th{ background:#f3f2f1; color:#605e5c; font-weight:400; text-align:center; height:21px; line-height:19px; border-bottom:1px solid #b7b5b3; font-size:11.5px; }
table.xl-grid thead th:first-child{ width:34px; min-width:34px; background:#f3f2f1; }
table.xl-grid tbody th{ background:#f3f2f1; color:#605e5c; font-weight:400; text-align:center; width:34px; min-width:34px; border-right:1px solid #b7b5b3; font-size:11.5px; }
table.xl-grid thead th.act, table.xl-grid tbody th.act{ background:#d3e8dd; color:#0b6a3a; font-weight:600; }
table.xl-grid td{ min-width:104px; }
table.xl-grid td.num{ text-align:right; font-variant-numeric:tabular-nums; }
table.xl-grid td.hd{ background:#f2f2f2; font-weight:600; color:#201f1e; }
table.xl-grid td.mark{ background:#fff2cc; }
table.xl-grid td.ok{ background:#e2efda; color:#1e6b41; font-weight:600; }
table.xl-grid td.ng{ background:#fce4e4; color:#b02418; font-weight:600; }
table.xl-grid td.dim{ color:#a6a6a6; background:#fafafa; }
table.xl-grid td.sel{ position:relative; background:#fff; }
table.xl-grid td.sel::after{ content:""; position:absolute; left:-1px; top:-1px; right:-1px; bottom:-1px; border:2px solid #107c41; pointer-events:none; z-index:2; }
table.xl-grid td.sel::before{ content:""; position:absolute; right:-3px; bottom:-3px; width:6px; height:6px; background:#107c41; border:1px solid #fff; z-index:3; }
table.xl-grid td.sel.mark{ background:#fff2cc; }
table.xl-grid td.sel.ok{ background:#e2efda; }
.xl-tabs{ display:flex; align-items:stretch; background:#f3f2f1; border-top:1px solid #d0cece; height:26px; }
.xl-tabs .tab{ display:flex; align-items:center; padding:0 16px; font-size:11.5px; color:#605e5c; border-right:1px solid #d0cece; }
.xl-tabs .tab.on{ background:#fff; color:#107c41; font-weight:600; box-shadow:inset 0 -2px 0 #107c41; }
.prose .xl-cap, .xl-cap{ font-size:12.5px; color:var(--muted); padding:11px 14px; background:#fafcfe; border-top:1px solid #eef2f7; line-height:1.8; font-family:var(--font); text-align:left; }
.xl-cap b,.xl-cap strong{ color:var(--ink); }

.syntax{ background:var(--ink); border-radius:14px; padding:24px 26px; margin-top:1.5em; overflow-x:auto; }
.syntax .line{ font-family:ui-monospace,Consolas,monospace; font-size:16px; color:#fff; white-space:nowrap; letter-spacing:.02em; }
.syntax .line .fn{ color:var(--lime); font-weight:700; }
.syntax .line .arg{ padding:2px 4px; border-radius:4px; }
.syntax .a1{ background:rgba(79,179,247,.28); color:#bfe3ff; }
.syntax .a2{ background:rgba(47,158,106,.24); color:#bfe8d2; }
.syntax .a3{ background:rgba(255,176,32,.24); color:#ffdb9b; }
.syntax .a4{ background:rgba(255,122,102,.24); color:#ffcabf; }
.syntax ol{ list-style:none; margin-top:18px; font-size:13.5px; color:#c3d2e2; }
.syntax ol li{ display:flex; gap:11px; align-items:flex-start; }
.syntax ol li + li{ margin-top:10px; }
.syntax ol .k{ flex:0 0 auto; font-family:ui-monospace,Consolas,monospace; font-size:12px; padding:2px 8px; border-radius:5px; font-weight:700; }
.syntax ol .k.a1{ background:rgba(79,179,247,.28); color:#bfe3ff; }
.syntax ol .k.a2{ background:rgba(47,158,106,.24); color:#bfe8d2; }
.syntax ol .k.a3{ background:rgba(255,176,32,.24); color:#ffdb9b; }
.syntax ol .k.a4{ background:rgba(255,122,102,.24); color:#ffcabf; }

/* 手順ステップ（記事内） */
.howto{ list-style:none; counter-reset:h; margin-top:1.5em; }
.howto > li{ position:relative; padding-left:52px; }
.howto > li + li{ margin-top:26px; }
.howto > li::before{
  counter-increment:h; content:"STEP " counter(h);
  position:absolute; left:0; top:.2em; width:38px; height:38px; border-radius:11px;
  background:var(--navy); color:#fff; font-family:var(--font-en); font-size:9.5px; font-weight:800;
  display:grid; place-items:center; text-align:center; line-height:1.15; letter-spacing:.04em;
}
.howto > li > strong:first-child{ display:block; color:var(--ink); font-size:17px; background:none; margin-bottom:8px; }

/* 注意・ポイント枠 */
.callout{ border-radius:14px; padding:20px 24px; margin-top:1.5em; font-size:14.8px; display:flex; gap:14px; align-items:flex-start; }
.callout .ci{ flex:0 0 auto; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:14px; margin-top:.1em; }
.callout > div > * + *{ margin-top:.7em; }
.callout-tip{ background:var(--lime-bg); color:#1d5a3d; } .callout-tip .ci{ background:var(--lime); color:#ffffff; }
.callout-warn{ background:var(--amber-bg); color:#7a4a08; } .callout-warn .ci{ background:var(--amber); color:#fff; }
.callout-ng{ background:var(--red-bg); color:#8f1d1d; } .callout-ng .ci{ background:var(--red); color:#fff; }
.callout b,.callout strong{ background:none; color:inherit; font-weight:700; }

kbd{ display:inline-block; font-family:var(--font-en); font-size:12px; font-weight:700; line-height:1; padding:5px 9px; border-radius:6px; background:#fff; color:var(--ink); border:1px solid #c9d5e2; border-bottom-width:2.5px; margin:0 2px; vertical-align:1px; }

/* ---------- フォーム ---------- */
.form-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-xl); padding:40px; box-shadow:var(--shadow); }
@media (max-width:640px){ .form-card{ padding:24px; } }
.field + .field{ margin-top:22px; }
.field label{ display:block; font-size:14px; font-weight:700; color:var(--ink); margin-bottom:8px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:640px){ .field-row{ grid-template-columns:1fr; } }
.req{ display:inline-block; background:var(--red-bg); color:var(--red); font-size:10.5px; font-weight:700; padding:3px 8px; border-radius:5px; margin-left:8px; vertical-align:2px; }
.input{ width:100%; padding:14px 16px; font-size:16px; font-family:inherit; line-height:1.6; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--ink); transition:border-color .2s, background .2s, box-shadow .2s; }
.input::placeholder{ color:#a8b6c6; }
.input:focus{ outline:none; border-color:var(--navy); background:#fff; box-shadow:0 0 0 4px rgba(27,55,104,.12); }
textarea.input{ resize:vertical; min-height:160px; }
select.input{ appearance:none; cursor:pointer; background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%237c8ca0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 16px center; background-size:12px; padding-right:44px; }
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; overflow:hidden; }
.consent{ display:flex; gap:12px; align-items:flex-start; font-size:13.8px; color:var(--text); line-height:1.8; }
.consent input{ margin-top:.5em; width:18px; height:18px; accent-color:var(--navy); flex:0 0 auto; }

/* ---------- CTA ---------- */
.cta{ border-radius:var(--radius-xl); position:relative; overflow:hidden; background:var(--navy); border:0; }
.cta::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0/100% 40px; }
.cta::after{ content:""; position:absolute; left:0; top:0; bottom:0; width:10px; background:var(--lime); }
.cta .cta-in{ position:relative; z-index:2; padding:64px 40px; text-align:center; }
.cta h2{ color:#fff; font-size:clamp(22px,2.6vw,30px); margin-bottom:14px; }
.cta p{ color:rgba(255,255,255,.82); font-size:15.5px; max-width:600px; margin:0 auto 28px; }
.cta .eyebrow{ color:#bfe8d2; }
.cta-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.cta .btn-primary{ background:var(--lime); color:#ffffff; box-shadow:none; }
.cta .btn-primary:hover{ background:#278a5b; }
.cta .btn-line{ background:transparent; color:#fff; border-color:rgba(255,255,255,.4); }
.cta .btn-line:hover{ border-color:#fff; color:#fff; }
@media (max-width:640px){ .cta .cta-in{ padding:44px 22px; } }

/* ---------- フッター ---------- */
.site-footer{ background:var(--bg); border-top:1px solid var(--line); color:var(--text); padding:56px 0 28px; font-size:14px; }
.site-footer a{ color:var(--text); text-decoration:none; }
.site-footer a:hover{ color:var(--navy); }
.footer-top{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; margin-bottom:36px; }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; font-size:13.5px; font-weight:600; max-width:600px; }
.footer-bottom{ border-top:1px solid var(--line); padding-top:22px; display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.footer-bottom a{ text-decoration:underline; }

/* ---------- パンくず ---------- */
.crumbs{ font-size:12.5px; color:var(--muted); display:flex; flex-wrap:wrap; gap:8px; align-items:center; list-style:none; }
.crumbs a{ color:var(--muted); }
.crumbs a:hover{ color:var(--navy); }
.crumbs li::after{ content:"›"; margin-left:8px; color:#c2cedd; }
.crumbs li:last-child::after{ content:""; }

/* ---------- 下層ページのヘッダー（紺＋罫線。写真は使わない） ---------- */
.page-header{
  position:relative; overflow:hidden; background:var(--navy); padding:calc(var(--nav-h) + 52px) 0 56px;
  background-image:linear-gradient(180deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size:100% 40px;
}
.page-header::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:10px; background:var(--lime); }
.page-header .wrap{ position:relative; z-index:2; }
.page-header h1{ color:#fff; font-size:clamp(24px,3.2vw,36px); margin:12px 0 14px; font-weight:900; }
.page-header p{ color:rgba(255,255,255,.82); max-width:680px; font-size:15.5px; }
.page-header .eyebrow{ color:#bfe8d2; }
.page-header .crumbs, .page-header .crumbs a{ color:rgba(255,255,255,.62); }
.page-header .crumbs a:hover{ color:#fff; }
.page-header .crumbs li::after{ color:rgba(255,255,255,.35); }

/* ---------- 出現アニメ ---------- */
.reveal{ opacity:0; transform:translateY(20px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } }

/* ==========================================================================
   証券口座ノートで足した部品
   ========================================================================== */

/* 広告ボタンの下に添える「投資にはリスクがあります」 */
.aff-wrap{ margin-top:1.5em; }
.aff-wrap .aff-box{ margin-top:0; }
.risk-note{ margin:8px 0 0; font-size:12px !important; line-height:1.7; color:var(--muted); text-align:center; }

/* 金融の注意書き（記事末尾。build.mjs が自動で入れる） */
.fin-disclaimer{ margin-top:24px; background:var(--navy-bg); border-left:4px solid var(--navy); border-radius:var(--radius-lg); padding:16px 20px; font-size:13.5px; color:var(--ink); line-height:1.9; }
.fin-disclaimer strong{ display:block; margin-bottom:4px; }

/* 数字のカード（```nums ブロック） */
.nums{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin:1.6em 0; }
.num-card{ background:#fff; border:1px solid var(--line); border-top:4px solid var(--navy); border-radius:var(--radius-lg); padding:16px 16px 14px; box-shadow:var(--shadow-xs); }
.num-card:nth-child(2n){ border-top-color:var(--lime); }
.num-card .n-label{ display:block; font-size:12.5px; color:var(--muted); font-weight:600; }
.num-card .n-value{ display:block; font-family:var(--font-en); font-size:24px; font-weight:800; color:var(--ink); line-height:1.35; margin-top:4px; }
.prose .num-card span{ margin:0; }
@media (max-width:560px){ .num-card .n-value{ font-size:20px; } .num-card{ padding:14px 12px 12px; } }
.num-card .n-note{ display:block; font-size:12px; color:var(--text); margin-top:4px; line-height:1.6; }
.nums-src{ font-size:12px !important; color:var(--muted); margin-top:-.8em !important; }

/* チェックリスト（```check ブロック） */
.checkbox-list{ margin:1.4em 0; padding:18px 20px; background:var(--lime-bg); border-radius:var(--radius-lg); }
.prose .checkbox-list ul, .checkbox-list ul{ list-style:none; margin:0; padding:0; }
.prose .checkbox-list li{ margin:0; }
.checkbox-list li{ position:relative; padding:8px 0 8px 34px; border-bottom:1px dashed rgba(34,113,75,.25); color:var(--ink); }
.checkbox-list li:last-child{ border-bottom:0; }
.checkbox-list li::before{ content:""; position:absolute; left:2px; top:11px; width:20px; height:20px; border-radius:5px; border:2px solid var(--lime-dark); background:#fff; }
.checkbox-list .cl-title{ display:block; font-weight:800; color:var(--lime-dark); margin-bottom:4px; }

/* トップ：リスクの話 */
.risk-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; }
.risk-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:22px 20px; }
.risk-card h3{ font-size:16px; margin-bottom:8px; color:var(--ink); }
.risk-card p{ font-size:14px; color:var(--text); }
.risk-card .r-no{ display:inline-block; font-family:var(--font-en); font-weight:800; color:var(--lime-dark); margin-bottom:6px; }

/* A8の計測用1x1画像（2026-10-25） */
.aff-px{position:absolute;width:1px;height:1px;border:0;opacity:0}

/* ヘッダーのボタン文字がナビの文字色に上書きされていたのを直す（2026-10-25） */
header a.btn-primary, header a.btn-primary:hover{color:#fff}
