/* TICKMARK — editorial finance theme */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #141b24;
  --text: #2a323c;
  --muted: #6c7480;
  --line: #e3dfd6;
  --line-strong: #cfc9bd;
  --accent: #1d6b55;
  --accent-ink: #12483a;
  --accent-soft: #e5efe9;
  --gold: #b08a3e;
  --cta: #e2622d;
  --cta-hover: #c9521f;
  --warn: #fbf3e4;
  --warn-line: #d59a2b;
  --dark: #0f1720;
  --dark-text: #c9cfd6;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Manrope", "Noto Sans JP", sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141a; --surface: #161d25; --ink: #f1f3f5; --text: #d5dae0; --muted: #8c96a2;
    --line: #26303b; --line-strong: #35414e; --accent: #5cc3a0; --accent-ink: #8fdcc0; --accent-soft: #17302a;
    --warn: #2b2416; --dark: #0a0e13;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141a; --surface: #161d25; --ink: #f1f3f5; --text: #d5dae0; --muted: #8c96a2;
  --line: #26303b; --line-strong: #35414e; --accent: #5cc3a0; --accent-ink: #8fdcc0; --accent-soft: #17302a;
  --warn: #2b2416; --dark: #0a0e13;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 2; letter-spacing: .03em;
  font-feature-settings: "palt" 0; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--latin); font-weight: 800; font-size: 1.05rem; letter-spacing: .22em; }
.logo-mark { width: 26px; height: 26px; flex-shrink: 0; }
.logo-mark rect { fill: var(--accent); }
.logo-mark path { fill: none; stroke: #fff; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 28px; white-space: nowrap; }
.nav a { font-family: var(--latin); font-weight: 700; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--bg), transparent 30%, transparent 70%, var(--bg)),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px);
}
.hero::after { /* 大きな透かしのチェック印 */
  content: ""; position: absolute; right: -60px; bottom: -90px; width: 420px; height: 420px; opacity: .07;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 17l7.5 7.5L27 8' fill='none' stroke='%231d6b55' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  font-family: var(--latin); font-weight: 700; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line-strong); background: var(--surface); padding: 6px 14px 6px 8px; border-radius: 999px; }
.eyebrow .logo-mark { width: 18px; height: 18px; }
.hero h1 { font-family: var(--serif); color: var(--ink); font-weight: 700; margin: 0;
  font-size: clamp(2.1rem, 5.6vw, 3.9rem); line-height: 1.35; letter-spacing: .06em; }
.nb { display: inline-block; }
.hero-sub { color: var(--muted); margin: 18px 0 0; font-size: 1.02rem; }
.pillars { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.pillars li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; font-size: .86rem; color: var(--text); line-height: 1.5; }
.pillars b { display: block; font-family: var(--latin); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); }

/* ---------- article list ---------- */
.section { padding-top: 72px; padding-bottom: 96px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px;
  border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.section-head h2 { margin: 0; font-family: var(--latin); font-weight: 800; color: var(--ink);
  font-size: 1.5rem; letter-spacing: .04em; }
.section-head p { margin: 0; color: var(--muted); font-size: .85rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px;
  text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong);
  box-shadow: 0 14px 30px -18px rgba(20, 27, 36, .35); }
.card-no { position: absolute; top: 18px; right: 22px; font-family: var(--latin); font-weight: 800;
  font-size: 1.9rem; color: var(--line-strong); line-height: 1; }
.card h3 { font-family: var(--serif); color: var(--ink); font-size: 1.22rem; line-height: 1.6; margin: 10px 0 10px; }
.card-desc { font-size: .88rem; color: var(--muted); line-height: 1.85; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin: auto 0 0; display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px; }
.card-arrow { font-family: var(--latin); font-weight: 700; color: var(--accent); letter-spacing: .08em; }

.chip { display: inline-block; margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; line-height: 1.6; }

/* ---------- article ---------- */
.article-head { border-bottom: 1px solid var(--line); padding: 72px 0 40px;
  background: repeating-linear-gradient(0deg, transparent 0 39px, color-mix(in srgb, var(--line) 60%, transparent) 39px 40px); }
.article-head h1 { font-family: var(--serif); color: var(--ink); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.35rem); line-height: 1.55; letter-spacing: .04em; margin: 16px 0 18px; }
.page-head { padding: 64px 0 32px; }
.page-head h1 { margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: .8rem; color: var(--muted); }
.meta span + span::before { content: "／"; margin-right: 18px; color: var(--line-strong); margin-left: -6px; }

.article { padding-top: 32px; padding-bottom: 96px; }
.pr-label { font-size: .78rem; line-height: 1.7; color: var(--muted); margin: 0 0 28px; }
.pr-label span { display: inline-block; font-family: var(--latin); font-weight: 800; font-size: .66rem; letter-spacing: .1em;
  border: 1px solid var(--muted); border-radius: 4px; padding: 0 6px; margin-right: 10px; }
.lead { font-size: 1.05rem; color: var(--ink); line-height: 2; margin: 0 0 32px; padding-left: 18px;
  border-left: 2px solid var(--gold); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; margin: 0 0 48px; }
.toc-title { font-family: var(--latin); font-weight: 800; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 8px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 14px; padding: 7px 0; border-top: 1px dashed var(--line); line-height: 1.6; }
.toc li:first-child { border-top: 0; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--latin); font-weight: 700; color: var(--accent); font-size: .85rem; padding-top: 1px; }
.toc a { color: var(--text); text-decoration: none; font-size: .94rem; }
.toc a:hover { color: var(--accent); }

.prose { counter-reset: h2; }
.prose h2 { counter-increment: h2; font-family: var(--serif); color: var(--ink); font-weight: 700;
  font-size: 1.55rem; line-height: 1.6; letter-spacing: .03em; margin: 72px 0 22px; padding-top: 22px; border-top: 1px solid var(--ink); }
.prose h2::before { content: counter(h2, decimal-leading-zero); display: block; font-family: var(--latin); font-weight: 800;
  font-size: .8rem; letter-spacing: .2em; color: var(--accent); margin-bottom: 4px; }
.page-head + .article .prose h2::before { content: none; }
.prose h3 { font-size: 1.12rem; color: var(--ink); margin: 40px 0 10px; padding-left: 14px; position: relative; }
.prose h3::before { content: ""; position: absolute; left: 0; top: .5em; width: 4px; height: 1.1em; background: var(--accent); border-radius: 2px; }
.prose p { margin: 0 0 1.3em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li { margin: 4px 0; }
.prose ul li::marker { color: var(--accent); }
.prose strong { color: var(--ink); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 28%, transparent) 62%); }

.table-wrap { overflow-x: auto; margin: 26px 0 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.7; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: .78rem; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--bg); white-space: nowrap; }
td:first-child { color: var(--ink); font-weight: 500; }
td strong { background: none; color: var(--accent-ink); }

.box { position: relative; border-radius: 12px; padding: 18px 22px 16px 54px; margin: 28px 0; background: var(--surface); border: 1px solid var(--line); }
.box::before { content: ""; position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 17l6 6L25 10' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.box-point { background: var(--accent-soft); border-color: transparent; }
.box-warn { background: var(--warn); border-color: transparent; }
.box-warn::before { background: var(--warn-line) no-repeat center / 4px 12px
  linear-gradient(#fff, #fff); }
.box-title { font-weight: 700; color: var(--ink); margin: 0 0 4px !important; }
.box p { margin: 4px 0; font-size: .95rem; }
.box ul, .box ol { margin: 4px 0; font-size: .95rem; }
.box strong { background: none; }

.cta { text-align: center; margin: 36px 0; }
.cta-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--cta); color: #fff; font-weight: 700;
  text-decoration: none; padding: 16px 36px; border-radius: 999px; letter-spacing: .06em;
  box-shadow: 0 10px 24px -12px var(--cta); transition: background .2s, transform .2s; }
.cta-btn::after { content: "→"; font-family: var(--latin); }
.cta-btn:hover { background: var(--cta-hover); transform: translateY(-1px); }

.author-box { display: flex; gap: 18px; margin-top: 64px; padding: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; line-height: 1.85; }
.author-mark .logo-mark { width: 44px; height: 44px; }
.author-label { margin: 0; font-family: var(--latin); font-weight: 700; font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); }
.author-name { margin: 0 0 6px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.author-box p { margin: 0 0 4px; }

code { font-size: .88em; background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 56px 0 32px; font-size: .84rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1); }
.logo-footer { color: #fff; }
.footer-tag { margin: 10px 0 0; color: #8b95a1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; max-width: 460px; }
.footer-links a { color: var(--dark-text); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; color: #7d8793; font-size: .76rem; line-height: 1.8; }
.footer-bottom p { margin: 0 0 4px; }
.copy { font-family: var(--latin); letter-spacing: .08em; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { padding: 0 16px; }
  .header-inner { height: 56px; }
  .logo { font-size: .95rem; letter-spacing: .18em; }
  .nav { gap: 18px; }
  .hero-inner { padding-top: 64px; padding-bottom: 60px; }
  .hero h1 { font-size: 1.8rem; letter-spacing: .04em; }
  .hero::after { width: 260px; height: 260px; right: -50px; bottom: -60px; }
  .pillars li { flex: 1 1 100%; }
  .section { padding-top: 52px; padding-bottom: 64px; }
  .cards { grid-template-columns: 1fr; }
  .article-head { padding: 44px 0 28px; }
  .prose h2 { font-size: 1.3rem; margin-top: 56px; }
  .toc { padding: 18px 20px; }
  .box { padding: 16px 18px 14px 48px; }
  .box::before { left: 14px; top: 18px; }
  .author-box { flex-direction: column; gap: 10px; }
}
