@charset "UTF-8";
/* CITRINE 共通スタイル（トップページ・記事一覧・記事本文） */
:root {
  --accent: #D9A21B;
  --accent-soft: #F3D47A;
  --accent-text: #8f6500;
  --text: #222;
  --muted: #625e55;
  --line: #d9d2c1;
  --node: #faf8f2;
  --bg: #f1eee6;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.9; font-size: 16px;
}
main { max-width: 720px; margin: 0 auto; padding: 56px 20px 96px; }
p { margin: 0 0 1.2em; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
code, pre, time, .triple { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---- header / footer ---- */
header.site { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 56px; }
header.site.home { margin-bottom: 4px; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: .18em; margin: 0; }
.logo a { text-decoration: none; }
/* ロゴの結晶: 面の描画と回転は _layouts/default.html のスクリプトが行う */
.logo .gem { width: 1em; height: 1em; margin-right: .35em; vertical-align: -0.14em; overflow: visible; }
.logo .gem polygon { fill: var(--accent); stroke-width: .04; stroke-linejoin: round; }
nav.site { display: flex; gap: 24px; font-size: .85rem; letter-spacing: .12em; }
nav.site a { text-decoration: none; color: var(--muted); padding-bottom: 4px; }
nav.site a:hover { color: var(--text); }
nav.site a[aria-current] { color: var(--text); border-bottom: 2px solid var(--accent); }
.tagline { color: var(--muted); margin: 0 0 40px; font-size: .9rem; letter-spacing: .04em; }
footer.site { margin-top: 80px; color: var(--muted); font-size: .85rem; }

/* ===================== トップページ ===================== */

/* graph hero */
.graph { width: 100%; height: auto; display: block; margin: 0 0 48px; overflow: visible; }
.graph .edge { stroke: var(--line); stroke-width: 1.5; fill: none; }
.graph .edge.main { stroke: var(--accent); stroke-width: 2; }
.graph .edge-label { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; fill: var(--muted); }
.graph .node circle { fill: var(--node); stroke: var(--text); stroke-width: 1.5; }
.graph .node.center circle { fill: var(--accent); stroke: var(--accent); }
.graph .node.center text { fill: #1a1a1a; font-weight: 700; letter-spacing: .12em; }
.graph .node.minor circle { stroke: var(--line); stroke-width: 1.5; }
.graph .node.minor text { fill: var(--muted); font-size: 11px; }
.graph .node text { font-family: "Noto Sans JP", system-ui, sans-serif; font-size: 13px; fill: var(--text); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.graph a.node { cursor: pointer; text-decoration: none; }
.graph a.node:hover circle { stroke: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .float.d1 { animation-delay: -2s; } .float.d2 { animation-delay: -4s; } .float.d3 { animation-delay: -5.5s; }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
}

/* copy */
h1 { font-size: 1.8rem; line-height: 1.5; margin: 0 0 .8em; }
h1.en { font-size: 2.1rem; line-height: 1.3; letter-spacing: .01em; }
.lead { font-size: 1.05rem; max-width: 36em; }

/* ---- トップページのホワイトペーパーへのバナー ---- */
.wp-banner {
  position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: center;
  margin-top: 56px; padding: 26px 30px; background: #0b1f3a; color: #fff; text-decoration: none;
  border-radius: 6px; overflow: hidden;
}
.wp-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 20%, rgba(217, 162, 27, .22), transparent 55%);
}
.wp-banner > * { position: relative; grid-column: 1; }
.wp-banner-kicker { font-size: .72rem; letter-spacing: .18em; color: var(--accent-soft); }
.wp-banner strong { font-size: 1.45rem; line-height: 1.5; letter-spacing: .04em; margin-top: .15em; }
.wp-banner-sub { font-size: .88rem; color: rgba(255, 255, 255, .72); }
.wp-banner-arrow {
  grid-column: 2; grid-row: 1 / span 3; width: 28px; height: 28px;
  fill: none; stroke: var(--accent-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
.wp-banner:hover .wp-banner-arrow, .wp-banner:focus-visible .wp-banner-arrow { transform: translateX(4px); }
.wp-banner:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 520px) {
  .wp-banner { padding: 20px; column-gap: 12px; }
  .wp-banner strong { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .wp-banner-arrow { transition: none; } }

/* spine: sections as nodes along a vertical edge */
.spine { margin-top: 64px; border-left: 1.5px solid var(--line); padding-left: 32px; }
.spine section { position: relative; padding-bottom: 56px; scroll-margin-top: 24px; }
.spine section:last-child { padding-bottom: 0; }
.spine h2 { font-size: .9rem; letter-spacing: .16em; color: var(--muted); font-weight: 700; margin: 0 0 1.2em; }
.spine h2::before {
  content: ""; position: absolute; left: -39px; top: .55em;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--node); border: 1.5px solid var(--text);
}
.spine section.accent h2::before { background: var(--accent); border-color: var(--accent); }

ul.services { list-style: none; padding: 0; margin: 0; }
ul.services li { padding: 18px 0; border-top: 1px solid var(--line); }
ul.services li:last-child { border-bottom: 1px solid var(--line); }
.triple { display: block; font-size: .75rem; color: var(--muted); margin-bottom: .3em; }
.triple b { font-weight: 400; color: var(--accent-text); }
ul.services strong { display: block; font-size: 1.05rem; }
ul.services span { color: var(--muted); }

.more { display: inline-block; margin-top: 20px; font-size: .9rem; }

/* 新着記事: 縦線の外に、画像とタイトルのカードを横に3列。カード全体がリンク */
.latest { margin-top: 80px; scroll-margin-top: 24px; }
.latest-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 20px; }
.latest-head h2 { font-size: .9rem; letter-spacing: .16em; color: var(--muted); font-weight: 700; margin: 0; }
.latest-head a { font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  background: var(--node); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .15s;
}
.card:hover, .card:focus-within { border-color: var(--accent); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { padding: 12px 16px 14px; }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; line-height: 1.6; }
.card time { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
/* 外部サイト（Qiita など）の記事に付ける印 */
.source { font-size: .72rem; letter-spacing: .04em; color: var(--accent-text); white-space: nowrap; }
.card h3 { font-size: .98rem; line-height: 1.6; margin: .2em 0 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.card h3 a:focus-visible { outline: none; }
.card h3 a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }

.profile { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.profile .avatar {
  flex: none; width: 88px; height: 88px; border-radius: 50%;
  background: var(--node); border: 1.5px dashed var(--muted);
  display: grid; place-items: center; color: var(--muted); font-size: .75rem; letter-spacing: .08em;
}
.profile p { margin: 0; }
.profile .name { font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.profile .name small { font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: .6em; letter-spacing: .04em; }
.profile .role { color: var(--muted); font-size: .9rem; }
.bio { max-width: 36em; }

.spine table { width: 100%; border-collapse: collapse; }
.spine th, .spine td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spine th { width: 7em; font-weight: 400; color: var(--muted); }
ol.biz { margin: 0; padding-left: 1.4em; }
ol.biz li { padding-left: .2em; }

/* ===================== タグ ===================== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags a {
  display: block; font-size: .72rem; letter-spacing: .04em; line-height: 1;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--node); color: var(--muted); text-decoration: none;
}
.tags a:hover { border-color: var(--accent); color: var(--text); }

/* ===================== 記事一覧 ===================== */
.page-title { font-size: 2.1rem; line-height: 1.3; letter-spacing: .01em; margin: 0 0 .4em; }
.page-lead { color: var(--muted); margin: 0 0 56px; max-width: 36em; }
.empty { color: var(--muted); }

/* 記事 = 縦のエッジ上のノード */
.posts { list-style: none; margin: 0; padding: 0 0 0 32px; border-left: 1.5px solid var(--line); }
.posts > li { position: relative; padding-bottom: 48px; }
.posts > li:last-child { padding-bottom: 0; }
.posts > li::before {
  content: ""; position: absolute; left: -39px; top: .5em;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--node); border: 1.5px solid var(--text);
}
.posts > li:first-child::before { background: var(--accent); border-color: var(--accent); }
.post-meta-line { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.posts .post-meta-line { margin: 0; line-height: 1.6; }
.posts time { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.posts h3 { font-size: 1.25rem; line-height: 1.6; margin: .2em 0 .4em; }
.posts h3 a { text-decoration: none; }
.posts h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.posts p { margin: 0 0 .9em; color: var(--muted); font-size: .95rem; line-height: 1.8; }

/* トップページ内の新着記事: すでに縦線の中なので線とノードは付けない */
.posts.plain { padding-left: 0; border-left: 0; }
.posts.plain > li { padding: 18px 0; border-top: 1px solid var(--line); }
.posts.plain > li:last-child { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.posts.plain > li::before { content: none; }
.posts.plain h3 { font-size: 1.05rem; }

/* タグ別一覧 */
.tag-group { margin-top: 40px; scroll-margin-top: 24px; }
.tag-group h2 { position: relative; font-size: 1.1rem; margin: 0 0 .6em; padding-left: 22px; }
.tag-group h2::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 11px; height: 11px; border-radius: 50%; background: var(--node); border: 1.5px solid var(--text);
}
.tag-group:target h2::before { background: var(--accent); border-color: var(--accent); }
.tag-group ul { list-style: none; margin: 0; padding: 0; }
.tag-group li { display: flex; gap: 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.tag-group li:last-child { border-bottom: 1px solid var(--line); }
.tag-group time { flex: none; font-size: .75rem; color: var(--muted); }
.tag-group a { text-decoration: none; }
.tag-group .source { margin-left: auto; }
.tag-group a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* ===================== 記事本文 ===================== */
.back { display: inline-block; font-size: .85rem; color: var(--muted); text-decoration: none; margin-bottom: 32px; }
.back:hover { color: var(--text); }

.post-head { margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-head time { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.post-head h1 { font-size: 1.9rem; line-height: 1.5; margin: .3em 0 .7em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.byline { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.byline .avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--node); border: 1.5px dashed var(--muted);
}

.post-body p { margin: 0 0 1.5em; }
.post-body h2 { position: relative; font-size: 1.4rem; line-height: 1.5; margin: 2.6em 0 1em; padding-left: 22px; }
.post-body h2::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 11px; height: 11px; border-radius: 50%; background: var(--accent);
}
.post-body h3 { font-size: 1.1rem; margin: 2.2em 0 .8em; }
.post-body ul, .post-body ol { margin: 0 0 1.5em; padding-left: 1.5em; }
.post-body li { margin-bottom: .3em; }
.post-body strong { font-weight: 700; background: linear-gradient(transparent 65%, rgba(217,162,27,.28) 65%); }
.post-body blockquote { margin: 0 0 1.5em; padding: 2px 0 2px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code {
  font-size: .86em; padding: .15em .4em; border-radius: 4px;
  background: var(--node); border: 1px solid var(--line);
}
.post-body pre {
  margin: 0 0 1.5em; padding: 18px 20px; overflow-x: auto;
  background: var(--node); border: 1px solid var(--line); border-radius: 6px;
  font-size: .82rem; line-height: 1.7;
}
.post-body pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.post-body img { max-width: 100%; height: auto; border-radius: 6px; }
.post-body figure { margin: 0 0 1.5em; }
.post-body figcaption { margin-top: .6em; font-size: .8rem; color: var(--muted); text-align: center; }
.post-body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 1.5em; }
.post-body th, .post-body td { text-align: left; padding: 10px 24px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { font-weight: 700; border-bottom: 1.5px solid var(--text); white-space: nowrap; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }

/* コードの色分け (rouge) */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .cp { color: var(--muted); }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt,
.highlight .nt, .highlight .nd, .highlight .ow { color: var(--accent-text); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sr, .highlight .ss { color: #3d6a4b; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .kc { color: #7a4b2a; }
.highlight .err { color: inherit; background: none; }

/* 前後の記事 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; }
.post-nav a {
  display: block; padding: 16px 18px; text-decoration: none;
  background: var(--node); border: 1px solid var(--line); border-radius: 6px;
}
.post-nav a:hover { border-color: var(--accent); }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav small { display: block; font-size: .72rem; letter-spacing: .12em; color: var(--muted); }
.post-nav span { display: block; font-size: .92rem; font-weight: 700; line-height: 1.6; margin-top: .2em; }

/* ===================== スマホ幅 ===================== */
@media (max-width: 520px) {
  header.site { margin-bottom: 40px; }
  nav.site { gap: 18px; }
  h1.en { font-size: 1.7rem; }
  .lead br { display: none; }
  .graph .minor, .graph .desk, .graph .edge:not(.main) { display: none; }
  .graph .node text { font-size: 14px; }
  .graph a.node circle { r: 42px; }
  .graph .edge-label { font-size: 12px; }
  .spine { padding-left: 24px; }
  .spine h2::before { left: -31px; }
  .page-title { font-size: 1.7rem; }
  .posts { padding-left: 24px; }
  .posts > li::before { left: -31px; }
  .posts.plain { padding-left: 0; }
  .latest { margin-top: 64px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { display: flex; align-items: center; }
  .card img { flex: none; width: 38%; border-bottom: 0; border-right: 1px solid var(--line); }
  .post-head h1 { font-size: 1.5rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; grid-column: 1; }
}

/* ===================== ホワイトペーパー ===================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* トップページの案内 */
.wp-link { margin: 0; line-height: 1.7; }
.wp-link span { color: var(--muted); font-size: .95rem; }

/* ホワイトペーパーのページだけ、サイト本体とは別のデザインにする:
   白地、紺、明朝の見出し、幅の広い紙面（_layouts/default.html が body に .wp-page を付ける） */
.wp-page {
  --wp-ink: #0b1f3a;
  --wp-text: #1c2533;
  --wp-muted: #5a6577;
  --wp-rule: #d6dbe3;
  --wp-soft: #f4f6f9;
  /* 明朝は題と数字だけに使う。読み込めないときはゴシックに落とす（OS標準の明朝は使わない） */
  --wp-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Noto Sans JP", sans-serif;
  --wp-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --wp-mono: "JetBrains Mono", ui-monospace, monospace;
  background: #fff; color: var(--wp-text); font-family: var(--wp-sans);
}
.wp-page main { max-width: none; padding: 0; }
.wp-wrap, .wp-page header.site, .wp-page footer.site { max-width: 1160px; margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; }
/* ヘッダーも紺にして表紙とひと続きにする（左右は画面の端まで塗る） */
.wp-page header.site { margin-bottom: 0; padding-top: 24px; padding-bottom: 24px; background: var(--wp-ink); box-shadow: 0 0 0 100vmax var(--wp-ink); clip-path: inset(0 -100vmax); color: #fff; }
.wp-page nav.site a { color: #a9b5c8; }
.wp-page nav.site a:hover { color: #fff; }
.wp-page footer.site { margin-top: 0; padding-top: 28px; padding-bottom: 48px; color: var(--wp-muted); }

/* 表紙: 画面の幅いっぱいの紺の帯 */
.wp-hero { position: relative; overflow: hidden; margin-top: -1px; background: var(--wp-ink); color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wp-hero .wp-wrap { position: relative; padding-top: 96px; padding-bottom: 36px; }
.wp-hero-art { position: absolute; right: -30px; top: 50%; transform: translateY(-54%); width: 500px; height: auto; opacity: .5; pointer-events: none; }
.wp-hero-art .e { stroke: #6f83a3; stroke-width: .8; }
.wp-hero-art .n circle { fill: var(--wp-ink); stroke: #6f83a3; stroke-width: .8; }
.wp-hero-art .c { fill: var(--accent); }
.wp-kicker { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 30px; font-family: var(--wp-mono); font-size: .78rem; letter-spacing: .3em; color: var(--accent-soft); }
.wp-kicker::before { content: ""; width: 40px; height: 2px; background: var(--accent); }
.wp-hero h1 { position: relative; max-width: 12em; margin: 0 0 .4em; font-family: var(--wp-serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.3; letter-spacing: .06em; }
.wp-subtitle { position: relative; max-width: 28em; margin: 0; font-size: 1.2rem; line-height: 1.7; color: #cdd5e2; }
.wp-issuer { position: relative; display: flex; gap: 32px; margin: 88px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); font-size: .8rem; letter-spacing: .1em; color: #a9b5c8; }

/* 本文の共通 */
.wp-body { padding: 72px 0 96px; font-size: 1.02rem; line-height: 1.8; }
.wp-body strong { background: none; }
.wp-body a { text-decoration-color: var(--wp-muted); }
.wp-body h2::before { content: none; }

/* ---- 入口ページ: 左に概要、右に申し込み欄。申し込み欄は表紙の帯に重ねる ---- */
.wp-entry { --wp-hero-h: 500px; --wp-gate-w: 420px; }
.wp-hero { background-image: radial-gradient(55% 50% at 78% 50%, #1a3a66 0%, var(--wp-ink) 100%); }
.wp-entry .wp-hero .wp-wrap { display: flex; flex-direction: column; min-height: var(--wp-hero-h); padding-top: 72px; }
.wp-entry .wp-hero .wp-wrap > * { max-width: calc(100% - var(--wp-gate-w) - 64px); }
.wp-entry .wp-issuer { margin-top: auto; }
.wp-entry .wp-hero-art { display: none; }

.wp-landing { display: grid; grid-template-columns: minmax(0, 1fr) var(--wp-gate-w); column-gap: 88px; align-items: start; }
.wp-landing-main { grid-column: 1; grid-row: 1; }
.wp-body .wp-lead { margin: 0 0 56px; font-size: 1.14rem; line-height: 1.85; color: var(--wp-ink); }
.wp-landing-main section + section { margin-top: 72px; }
.wp-landing-main h2 { margin: 0 0 8px; padding: 0 0 18px; border-bottom: 1px solid var(--wp-ink); font-size: 1.4rem; line-height: 1.4; letter-spacing: .04em; color: var(--wp-ink); }
.wp-landing-main h2 span { display: block; margin-bottom: 8px; font-family: var(--wp-mono); font-size: .72rem; font-weight: 400; letter-spacing: .28em; color: var(--accent-text); }

/* 資料の概要: 表紙の見本と、発行元などの一覧 */
.wp-about { display: grid; grid-template-columns: 190px 1fr; gap: 40px; align-items: center; padding: 32px 36px; background: var(--wp-soft); }
.wp-mock {
  position: relative; display: flex; flex-direction: column; aspect-ratio: 210 / 297; padding: 18px 16px 14px; overflow: hidden;
  background: var(--wp-ink); color: #fff; border-top: 4px solid var(--accent);
  box-shadow: 0 1px 2px rgba(11,31,58,.2), 0 18px 36px -12px rgba(11,31,58,.45), 6px 6px 0 -1px #fff, 6px 6px 0 0 var(--wp-rule);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.wp-mock svg { position: absolute; right: -34%; bottom: 6%; width: 120%; opacity: .5; }
.wp-mock .e { stroke: #6f83a3; stroke-width: 1.2; }
.wp-mock .n circle { fill: var(--wp-ink); stroke: #6f83a3; stroke-width: 1.2; }
.wp-mock .c { fill: var(--accent); }
.wp-mock-kicker { position: relative; font-family: var(--wp-mono); font-size: .5rem; letter-spacing: .26em; color: var(--accent-soft); }
.wp-mock b { position: relative; margin-top: 16px; font-family: var(--wp-serif); font-weight: 600; font-size: 1.08rem; line-height: 1.4; letter-spacing: .04em; }
.wp-mock small { position: relative; margin-top: 8px; font-size: .52rem; line-height: 1.6; color: #cdd5e2; }
.wp-mock i { position: relative; margin-top: auto; font-style: normal; font-size: .55rem; font-weight: 700; letter-spacing: .22em; }
.wp-spec { margin: 0; }
.wp-spec div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--wp-rule); font-size: .92rem; line-height: 1.7; }
.wp-spec div:last-child { border-bottom: 1px solid var(--wp-rule); }
.wp-spec dt { font-size: .8rem; letter-spacing: .08em; color: var(--wp-muted); padding-top: .1em; }
.wp-spec dd { margin: 0; color: var(--wp-ink); }

.wp-body ol.keypoints, .wp-body ol.wp-contents { list-style: none; margin: 0; padding: 0; }
.wp-body ol.keypoints { counter-reset: kp; }
.keypoints li { counter-increment: kp; display: grid; grid-template-columns: 4.2rem 1fr; align-items: center; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--wp-rule); line-height: 1.7; }
.keypoints li::before { content: counter(kp, decimal-leading-zero); font-family: var(--wp-serif); font-weight: 500; font-size: 2rem; line-height: 1; color: var(--accent); }
.wp-body ol.wp-contents { counter-reset: toc; }
.wp-contents li { counter-increment: toc; display: grid; grid-template-columns: 4.2rem 1fr; align-items: baseline; margin: 0; padding: 15px 0; border-bottom: 1px solid var(--wp-rule); font-size: .98rem; line-height: 1.7; color: var(--wp-ink); }
.wp-contents li::before { content: counter(toc, decimal-leading-zero); font-family: var(--wp-mono); font-size: .78rem; font-weight: 400; color: var(--wp-muted); }

/* 申し込み欄: 白いカードを表紙の帯に重ね、スクロールに追従させる */
.wp-gate {
  grid-column: 2; grid-row: 1; position: sticky; top: 28px; z-index: 1;
  margin-top: calc(-72px - var(--wp-hero-h) + 56px); padding: 40px 36px 32px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11,31,58,.08), 0 24px 56px -16px rgba(11,31,58,.32);
}
.wp-body .wp-gate .wp-gate-kicker { margin: 0 0 10px; font-family: var(--wp-mono); font-size: .72rem; letter-spacing: .28em; color: var(--accent-text); }
.wp-body .wp-gate h2 { margin: 0 0 16px; padding: 0; font-size: 1.6rem; line-height: 1.4; letter-spacing: .04em; color: var(--wp-ink); }
.wp-body .wp-gate p { margin-bottom: 26px; font-size: .92rem; line-height: 1.75; }
.wp-form { display: grid; gap: 10px; margin: 0 0 8px; }
.wp-form label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--wp-ink); }
.wp-form input[type="email"] { width: 100%; height: 54px; padding: 0 16px; font: inherit; color: var(--wp-text); background: #fff; border: 1px solid #aab3c2; }
.wp-form input[type="email"]::placeholder { color: #98a2b3; }
.wp-form input[type="email"]:focus-visible { outline: 2px solid var(--wp-ink); outline-offset: 1px; }
.wp-form input[aria-invalid="true"] { border-color: #b3392a; }
.wp-form button, .wp-print, .wp-cta a {
  font: inherit; font-weight: 700; letter-spacing: .1em; cursor: pointer; text-decoration: none;
  color: #fff; background: var(--wp-ink); border: 0; transition: background .15s;
}
.wp-form button, .wp-cta a { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-top: 6px; padding: 0 22px; }
.wp-form button::after, .wp-cta a::after { content: "→"; font-size: 1.1rem; color: var(--accent-soft); transition: transform .15s; }
.wp-form button:hover::after, .wp-cta a:hover::after { transform: translateX(4px); }
.wp-form button:hover, .wp-print:hover, .wp-cta a:hover { background: #17345f; }
.wp-form button:focus-visible, .wp-print:focus-visible, .wp-cta a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wp-form button:disabled { opacity: .5; cursor: default; }
.wp-body .wp-gate .wp-msg { min-height: 1.9em; margin: 0 0 6px; font-size: .86rem; line-height: 1.7; color: #b3392a; }
.wp-body .wp-gate .wp-msg:empty { min-height: 12px; margin: 0; }
.wp-body .wp-gate .wp-note { margin: 0; padding-top: 18px; border-top: 1px solid var(--wp-rule); font-size: .76rem; line-height: 1.7; color: var(--wp-muted); }
/* 画面が狭いときだけ出す、申し込み欄へ戻るボタン */
.wp-body .wp-cta { display: none; margin: 56px 0 0; }

/* ---- 全文ページ: 左に追従する目次、右に本文 ---- */
.wp-paper .wp-body { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: space-between; counter-reset: sec; }
.wp-paper .wp-body > * { grid-column: 2; }
.wp-paper .wp-body > .wp-toc { grid-column: 1; grid-row: 1 / span 500; align-self: start; position: sticky; top: 32px; max-height: calc(100vh - 64px); overflow-y: auto; }

.wp-body .wp-toc-title { margin: 0; padding: 14px 0 12px; border-top: 2px solid var(--wp-ink); font-family: var(--wp-mono); font-size: .75rem; letter-spacing: .26em; color: var(--wp-ink); }
.wp-body .wp-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.wp-toc li { counter-increment: toc; margin: 0; border-top: 1px solid var(--wp-rule); }
.wp-toc li a { display: grid; grid-template-columns: 2.2rem 1fr; padding: 10px 0 10px 10px; border-left: 2px solid transparent; font-size: .82rem; line-height: 1.65; color: var(--wp-muted); text-decoration: none; }
.wp-toc li a::before { content: counter(toc, decimal-leading-zero); font-family: var(--wp-mono); font-size: .72rem; padding-top: .15em; }
.wp-toc li a:hover { color: var(--wp-ink); }
.wp-toc li a[aria-current] { color: var(--wp-ink); font-weight: 700; border-left-color: var(--accent); }

/* 章見出し: 番号と明朝の大きな見出し（グリッドの中では上下の余白が相殺されないので控えめに） */
.wp-paper .wp-body h2 {
  counter-increment: sec; margin: 2.4em 0 1em; padding: 22px 0 0; border-top: 1px solid var(--wp-ink);
  font-size: 1.7rem; line-height: 1.5; letter-spacing: .02em; color: var(--wp-ink); scroll-margin-top: 24px;
}
.wp-paper .wp-body h2:first-of-type { margin-top: 0; }
.wp-paper .wp-body h2::before {
  content: counter(sec, decimal-leading-zero); position: static; display: block; width: auto; height: auto; background: none;
  margin-bottom: .5em; font-family: var(--wp-mono); font-size: .8rem; font-weight: 400; letter-spacing: .16em; color: var(--accent-text);
}
.wp-paper .wp-body h3 { margin: 1.4em 0 .7em; font-size: 1.15rem; line-height: 1.6; color: var(--wp-ink); }

/* 出典: 章番号を振らない小さめの見出しと一覧 */
.wp-paper .wp-body h2.wp-refs-title { counter-increment: none; font-size: 1.15rem; }
.wp-paper .wp-body h2.wp-refs-title::before { content: none; }
.wp-body ul.wp-refs { list-style: none; margin: 0; padding: 0; font-size: .86rem; line-height: 1.7; color: var(--wp-muted); }
.wp-refs li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--wp-rule); overflow-wrap: anywhere; }

/* 全文ページの要点: 淡い地の囲み */
.wp-paper .wp-body ol.keypoints { margin: .4em 0 1.5em; padding: 6px 28px; background: var(--wp-soft); }
.wp-paper .keypoints li:last-child { border-bottom: 0; }
.wp-paper .keypoints li { grid-template-columns: 3.6rem 1fr; padding: 18px 0; }
.wp-paper .keypoints li::before { font-size: 1.6rem; }

/* 章の結論にあたる一文: 淡い地の囲みに金の縦線。本文と同じ大きさの太字にして、見出しや引用と紛れないようにする */
.wp-body .callout {
  margin: 1.8em 0 1.6em; padding: 22px 28px 22px 26px; background: var(--wp-soft);
  border-left: 4px solid var(--accent);
  font-weight: 700; font-size: 1.05rem; line-height: 1.75; color: var(--wp-ink);
}
.wp-body blockquote { margin: 1.2em 0 2.2em; padding: 6px 0 6px 28px; border-left: 3px solid var(--accent); font-family: var(--wp-serif); font-size: 1.3rem; line-height: 1.7; color: var(--wp-ink); }

/* 記述例（コード） */
.wp-body pre { margin: 1.2em 0 2.4em; padding: 22px 28px; background: var(--wp-soft); border: 0; border-radius: 0; font-size: .8rem; line-height: 1.75; color: var(--wp-ink); }
.wp-body pre code { font-family: var(--wp-mono), "Noto Sans JP", sans-serif; }

/* 図の出典 */
.wp-body .wp-fig .wp-fig-src { margin: 14px 0 0; font-size: .76rem; line-height: 1.6; color: var(--wp-muted); }

/* 引用の出典 */
.wp-body blockquote cite { display: block; font-family: var(--wp-sans); font-style: normal; font-size: .82rem; line-height: 1.6; letter-spacing: .02em; color: var(--wp-muted); }
.wp-body blockquote p:has(cite) { margin-top: -.9em; }

/* 図: 淡い地の囲みの中に、題と図 */
/* 歴史的な図版（著作権の切れた古い図）。下に短い説明を付ける */
.wp-body .wp-plate { margin: 1.2em 0 2.4em; padding: 28px; background: var(--wp-soft); }
.wp-body .wp-plate img { display: block; width: 100%; height: auto; margin: 0 auto; border: 0; border-radius: 0; }
.wp-body .wp-plate.narrow img { max-width: 440px; }
.wp-body .wp-plate figcaption { margin: 16px 0 0; font-size: .76rem; line-height: 1.7; text-align: left; color: var(--wp-muted); }
.wp-body .wp-fig { display: flex; flex-direction: column; margin: 1.2em 0 2.4em; padding: 22px 28px 26px; background: var(--wp-soft); overflow-x: auto; }
.wp-body .wp-fig figcaption { order: -1; margin: 0 0 14px; font-size: .88rem; font-weight: 700; text-align: left; color: var(--wp-ink); }
.wp-fig svg { display: block; width: 100%; min-width: 540px; height: auto; }
.wp-fig text { font-family: "Noto Sans JP", system-ui, sans-serif; font-size: 13px; fill: var(--wp-text); text-anchor: middle; dominant-baseline: central; }
.wp-fig .concept rect { fill: #fff; stroke: var(--wp-ink); stroke-width: 1.2; }
.wp-fig .concept.main rect { fill: var(--wp-ink); }
.wp-fig .concept.main text { fill: #fff; font-weight: 700; }
.wp-fig .attr rect { fill: #fff; stroke: #aab3c2; }
.wp-fig .attr text { font-size: 12px; }
.wp-fig .edge { stroke: var(--wp-muted); stroke-width: 1.2; }
.wp-fig .edge.thin { stroke: #aab3c2; stroke-width: 1; }
.wp-fig marker path { fill: var(--wp-muted); }
.wp-fig .label text { font-size: 11px; fill: var(--wp-muted); text-anchor: start; }

/* 数字: 3枚の淡い地のカード */
.wp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.2em 0 2.4em; }
.wp-stats div { padding: 22px 22px 20px; background: var(--wp-soft); }
.wp-stats b { display: block; font-family: var(--wp-serif); font-weight: 600; font-size: 2.1rem; line-height: 1.25; color: var(--wp-ink); white-space: nowrap; }
.wp-stats small { font-family: var(--wp-sans); font-size: .85rem; margin-left: .25em; }
.wp-stats span { display: block; margin-top: .6em; font-size: .8rem; line-height: 1.6; color: var(--wp-muted); }

/* 奥付 */
.wp-end { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 72px; padding-top: 28px; border-top: 2px solid var(--wp-ink); font-size: .88rem; color: var(--wp-muted); }
.wp-end p { margin: 0; }
.wp-end .wp-end-name { font-size: 1.05rem; font-weight: 700; color: var(--wp-ink); letter-spacing: .06em; }
.wp-print { padding: 12px 22px; font-size: .85rem; }

/* 画面が狭いとき: 1列にする */
@media (max-width: 960px) {
  .wp-entry .wp-hero .wp-wrap { min-height: 0; padding-bottom: 120px; }
  .wp-entry .wp-hero .wp-wrap > * { max-width: none; }
  .wp-entry .wp-issuer { margin-top: 56px; }
  .wp-landing { grid-template-columns: 1fr; row-gap: 64px; }
  .wp-landing-main, .wp-gate { grid-column: 1; grid-row: auto; }
  .wp-gate { position: static; margin-top: -160px; }
  .wp-body .wp-cta { display: block; }
  .wp-hero-art, .wp-entry .wp-hero-art { width: 380px; right: -110px; opacity: .3; }
  .wp-paper .wp-body { display: block; }
  .wp-paper .wp-body > .wp-toc { position: static; max-height: none; margin-bottom: 64px; }
  .wp-paper .wp-body h2 { margin-top: 3em; }
}
@media (max-width: 520px) {
  .wp-wrap, .wp-page header.site, .wp-page footer.site { padding-left: 20px; padding-right: 20px; }
  .wp-hero .wp-wrap { padding-top: 56px; padding-bottom: 24px; }
  .wp-entry .wp-hero .wp-wrap { padding-top: 40px; }
  .wp-hero-art { display: none; }
  .wp-subtitle { font-size: 1rem; }
  .wp-issuer { margin-top: 48px; }
  .wp-body { padding: 48px 0 64px; }
  .wp-body .wp-lead { font-size: 1.15rem; }
  .wp-gate { padding: 32px 24px 26px; }
  .wp-body .wp-gate p br { display: none; }
  .wp-about { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  .wp-mock { width: 180px; margin: 0 auto; }
  .wp-mock b { font-size: .98rem; letter-spacing: .02em; }
  .wp-landing-main h2 { font-size: 1.3rem; }
  .keypoints li::before { font-size: 1.6rem; }
  .wp-paper .wp-body h2 { font-size: 1.5rem; }
  .wp-body .callout { padding: 18px 20px; font-size: 1rem; }
  .wp-body blockquote { font-size: 1.15rem; }
  .wp-paper .wp-body ol.keypoints { padding: 4px 18px; }
  .wp-body .wp-fig { padding: 18px 18px 20px; }
  .keypoints li { grid-template-columns: 2.6rem 1fr; }
  .wp-stats { grid-template-columns: 1fr; }
}

/* 印刷・PDF保存 */
@media print {
  @page { margin: 16mm 15mm; }
  .wp-page { font-size: 11pt; }
  .wp-wrap { max-width: none; padding-left: 0; padding-right: 0; }
  .wp-hero .wp-wrap { padding: 48px 32px 24px; }
  header.site, footer.site, .wp-print, .wp-gate, .wp-cta { display: none; }
  .wp-body { padding: 32px 0; }
  .wp-paper .wp-body { display: block; }
  .wp-paper .wp-body > .wp-toc { position: static; max-height: none; margin-bottom: 40px; }
  .wp-toc, .wp-fig, .callout, .wp-stats, .keypoints li { break-inside: avoid; }
  .wp-paper .wp-body h2, .wp-paper .wp-body h3 { break-after: avoid; }
  .wp-fig svg { min-width: 0; }
}
