
:root {
  --indigo: #1A2047;
  --indigo-soft: #2A3160;
  --ice: #D5EAF3;
  --ice-tint: #EAF4FA;
  --cloud: #F4F9FC;
  --peach: #FFB59B;
  --text: #1A2047;
  --muted: #4C5478;
  --link: #2F5F8A;
  --line: rgba(26, 32, 71, 0.12);
  --radius: 10px;
  --maxw: 700px;
  --wide: 1120px;
  --font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  line-break: strict;
  text-autospace: normal;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #5E93B8; outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -48px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius); white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-nav { padding: 9px 20px; font-size: 14px; color: var(--indigo); border: 1.5px solid rgba(26, 32, 71, 0.28); background: transparent; }
.btn-nav:hover { background: rgba(26, 32, 71, 0.06); border-color: rgba(26, 32, 71, 0.5); }

.btn-peach { background: var(--peach); color: var(--indigo); box-shadow: 0 10px 26px rgba(255, 181, 155, 0.35); }
.btn-peach:hover { transform: translateY(-1px); }

.site-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--wide)) / 2));
  background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--indigo); text-decoration: none; }
.brand-name { font-family: var(--font-en); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px clamp(12px, 1.8vw, 22px); }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; white-space: nowrap; font-size: 14.5px; font-weight: 500; letter-spacing: 0.02em; }
.site-nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 859px) {
  .site-nav .wide { display: none; }
  .brand-name { font-size: 20px; }
}

.blog-main { padding: 40px 16px 72px; }

.crumbs { max-width: var(--wide); margin: 0 auto 20px; font-size: 13px; line-height: 1.6; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--indigo); }
.crumbs [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40em; }

.crumbs:has(~ .post-wrap) { max-width: var(--maxw); }
@media (min-width: 1120px) { .crumbs:has(~ .post-wrap.has-toc) { max-width: calc(var(--maxw) + 280px); } }
body.is-glow .crumbs a, body.is-glow .crumbs li + li::before { color: #C9D2F0; }
body.is-glow .crumbs [aria-current] { color: #fff; }

.post-wrap { max-width: var(--maxw); margin: 0 auto; }
@media (min-width: 1120px) {
  .post-wrap.has-toc { max-width: calc(var(--maxw) + 280px); display: grid; grid-template-columns: var(--maxw) 1fr; column-gap: 56px; }
}
.post-head h1, .index h1 {
  font-size: clamp(26px, 4.4vw, 34px); line-height: 1.45; margin: 0 0 14px; letter-spacing: 0.01em;
  text-wrap: balance; word-break: auto-phrase;
}
.pillar {
  display: inline-block; margin: 0 0 12px; padding: 2px 10px; border-radius: 6px;
  background: var(--ice-tint); color: var(--indigo-soft); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.8;
}
.post-head .lede { font-size: 18px; line-height: 1.8; color: var(--muted); margin: 0 0 16px; }
.post-head .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.post-head .tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.tool {
  font: inherit; font-size: 13px; letter-spacing: 0.02em; color: var(--indigo); background: #fff; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px;
}
.tool:hover { border-color: rgba(26, 32, 71, 0.4); }
.print-url { display: none; }

.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.6; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--indigo); border-left-color: var(--indigo); }
.toc-inline { margin: 0 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.toc-inline summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.toc-inline ol { margin-top: 10px; }
.toc-side { display: none; }
@media (min-width: 1120px) {
  .has-toc .toc-inline { display: none; }
  .toc-side { display: block; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; padding-top: 8px; }
  .toc-h { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
}

.prose h2 {
  font-size: 23px; line-height: 1.5; margin: 64px 0 18px; padding-bottom: 8px;
  border-bottom: 1px solid var(--indigo);
  text-wrap: balance; word-break: auto-phrase; scroll-margin-top: 16px;
}
.prose h3 { font-size: 19px; line-height: 1.6; margin: 40px 0 12px; scroll-margin-top: 16px; }
.prose h4 { font-size: 17px; margin: 28px 0 8px; }
.prose .anchor { margin-left: 8px; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 0.6; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose .code, .prose .table-wrap { margin: 0 0 24px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: 6px; }
.prose p { overflow-wrap: anywhere; }
.prose .lede { font-size: 19px; font-weight: 700; color: var(--muted); line-height: 1.7; margin: -8px 0 32px; }
.prose blockquote { border-left: 3px solid var(--ice); padding: 4px 0 4px 16px; color: var(--muted); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--ice-tint); padding: 1px 5px; border-radius: 4px; letter-spacing: 0; }
.prose .code { position: relative; }
.prose pre { margin: 0; background: var(--indigo); color: #E7EBF8; padding: 18px 84px 18px 16px; border-radius: var(--radius); overflow-x: auto; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: 14px; }
.code-copy {
  position: absolute; top: 8px; right: 8px; font: inherit; font-size: 12px; letter-spacing: 0.02em; cursor: pointer;
  color: #E7EBF8; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 6px; padding: 2px 10px;
}
.code-copy:hover { background: rgba(255, 255, 255, 0.16); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure .zoom { display: block; cursor: zoom-in; }
.prose figure img { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95em; line-height: 1.7; background: #fff; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--ice-tint); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.post-end { margin: 64px 0 0; padding: 28px; background: var(--indigo); color: #fff; border-radius: 14px; }
.post-end p { margin: 0 0 18px; font-size: 16px; line-height: 1.8; }
.post-end .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }
.post-end .text-link { color: var(--ice); font-size: 15px; }
.related { margin-top: 48px; }
.related h2 { font-size: 16px; margin: 0 0 8px; color: var(--muted); letter-spacing: 0.06em; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { border-top: 1px solid var(--line); }
.related li:last-child { border-bottom: 1px solid var(--line); }
.related a { display: grid; gap: 2px; padding: 14px 0; color: inherit; text-decoration: none; }
.related .pillar { justify-self: start; margin: 0; font-size: 12px; }
.related .t { font-weight: 700; line-height: 1.6; }
.related a:hover .t { text-decoration: underline; }

.eyecatch {
  position: relative; overflow: hidden; aspect-ratio: 1200 / 630;
  background: linear-gradient(135deg, var(--eye-hi, var(--eye)) 0%, var(--eye) 50%, var(--eye-lo, var(--eye)) 100%);
  color: #fff; display: flex; align-items: center; padding-left: 8%;
  font-size: 22px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.3;
}
.eyecatch .wm { position: absolute; left: 50%; top: -12%; height: 150%; width: auto; aspect-ratio: 1; opacity: 0.10; }

.eyecatch .wm * { stroke-width: 0.9px; }
.eyecatch .lbl { position: relative; display: flex; align-items: center; gap: 0.45em; max-width: 44%; }
.eyecatch .ic { width: 0.9em; height: 0.9em; flex: 0 0 auto; }

.eyecatch .lbl > span { word-break: keep-all; overflow-wrap: normal; }
.eyecatch:lang(ja) .lbl { max-width: none; }
.eyecatch:lang(ja) .lbl > span { white-space: nowrap; }
.eyecatch .ic * { vector-effect: non-scaling-stroke; stroke-width: 1.8px; }
.post > .eyecatch { border-radius: 14px; margin: 0 0 28px; font-size: clamp(26px, 5.4vw, 40px); }
.post > .eyecatch .wm { opacity: 0.09; }
.post > .eyecatch .ic * { stroke-width: 2.4px; }

body.is-glow { background: #151A40; }
.blog-iri { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, #151A40 0%, #1A2047 100%); }
.blog-iri .iri-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
body.is-glow .site-top, body.is-glow .blog-main, body.is-glow .site-footer { position: relative; z-index: 1; }

body.is-glow .blog-main::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 300px; pointer-events: none; z-index: -1;
  background: radial-gradient(70% 100% at 15% 0%, rgba(10, 12, 40, 0.55), rgba(10, 12, 40, 0) 70%);
}
body.is-glow .index h1 { color: #fff; margin-bottom: 10px; }
body.is-glow .index .lead { margin: 0 0 28px; color: #E8EDFF; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); font-size: 16px; line-height: 1.7; max-width: 32em; text-wrap: balance; word-break: auto-phrase; }
body.is-glow .posts { margin-top: 0; }

body.is-glow .posts a { box-shadow: 0 0 0 1px rgba(206, 228, 255, 0.45), 0 12px 32px rgba(6, 8, 30, 0.45); }
body.is-glow .posts a:hover { box-shadow: 0 0 0 1px rgba(206, 228, 255, 0.65), 0 18px 40px rgba(6, 8, 30, 0.55); }
body.is-glow .posts a:has(.eyecatch[style*="#1A2047"]) { box-shadow: 0 0 0 1px rgba(206, 228, 255, 0.7), 0 12px 32px rgba(6, 8, 30, 0.45); }

@media (max-width: 760px) {
  .blog-iri {
    background:

      radial-gradient(circle at 74% 24%, rgba(213, 234, 243, 0.8) 0 2px, transparent 7px),
      radial-gradient(circle at 80% 13%, rgba(159, 168, 218, 0.8) 0 2.5px, transparent 9px),
      radial-gradient(circle at 88% 38%, rgba(213, 234, 243, 0.7) 0 2px, transparent 7px),
      radial-gradient(circle at 30% 46%, rgba(159, 168, 218, 0.6) 0 1.5px, transparent 6px),
      radial-gradient(circle at 60% 58%, rgba(213, 234, 243, 0.7) 0 3px, transparent 11px),
      radial-gradient(circle at 8% 70%, rgba(159, 168, 218, 0.7) 0 2px, transparent 8px),
      radial-gradient(circle at 92% 76%, rgba(213, 234, 243, 0.6) 0 2px, transparent 7px),
      radial-gradient(circle at 42% 86%, rgba(159, 168, 218, 0.7) 0 2.5px, transparent 9px),
      radial-gradient(circle at 70% 95%, rgba(213, 234, 243, 0.6) 0 1.5px, transparent 6px),
      radial-gradient(circle at 22% 96%, rgba(213, 234, 243, 0.5) 0 1.5px, transparent 6px),
      radial-gradient(70% 38% at 85% 22%, rgba(132, 180, 212, 0.38), transparent 70%),
      radial-gradient(75% 40% at 15% 82%, rgba(159, 168, 218, 0.34), transparent 70%),
      linear-gradient(180deg, #151A40 0%, #1A2047 100%);
  }
}

.index { max-width: var(--wide); margin: 0 auto; }
.posts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.posts li { display: flex; }
.posts a {
  display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none;
  background: #fff; border-radius: 14px; overflow: hidden;

  box-shadow: 0 0 0 1px rgba(213, 234, 243, 0.25), 0 1px 2px rgba(26, 32, 71, 0.06), 0 10px 24px -14px rgba(26, 32, 71, 0.28);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.posts a:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(213, 234, 243, 0.3), 0 1px 2px rgba(26, 32, 71, 0.08), 0 18px 34px -16px rgba(26, 32, 71, 0.36); }
.posts .eyecatch { font-size: 22px; }
.posts .t { padding: 16px 18px 0; font-weight: 700; font-size: 16px; line-height: 1.65; text-wrap: pretty; word-break: auto-phrase; }
.posts a:hover .t { text-decoration: underline; }
.posts time { margin-top: auto; padding: 14px 18px 16px; color: var(--muted); font-size: 13px; text-align: right; }

.site-footer { background: var(--indigo); color: rgba(255, 255, 255, 0.82); padding: clamp(48px, 6vw, 70px) clamp(20px, 5vw, 40px) 40px; letter-spacing: 0; }
.footer-grid { max-width: var(--wide); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand, .site-footer .brand-name { color: #fff; }
.footer-tagline { margin: 14px 0 0; font-family: var(--font-en); font-size: 14px; color: var(--ice); letter-spacing: 0.02em; }
.footer-col h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--peach); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-cta { align-self: center; }
.footer-copy { max-width: var(--wide); margin: clamp(34px, 4vw, 48px) auto 0; padding-top: 22px; border-top: 1px solid rgba(213, 234, 243, 0.14); font-size: 13px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7); }

@page { margin: 16mm 14mm; }
@media print {
  .blog-iri { display: none !important; }
  body.is-glow { background: #fff; }
  body.is-glow .index h1 { color: #1A2047; }
  body.is-glow .index .lead { color: #4C5478; }
  body { background: #fff; font-size: 11pt; line-height: 1.7; }
  .crumbs, .site-top .site-nav, .site-footer, .skip, .tools, .toc-side, .post-end, .related, .code-copy, .prose .anchor, .post > .eyecatch { display: none !important; }
  .site-top { padding: 0 0 8pt; border-bottom: 1px solid #999; }
  .blog-main { padding: 12pt 0 0; }
  .post-wrap, .post-wrap.has-toc { display: block; max-width: none; }
  .toc-inline { display: none; }
  .print-url { display: block; margin: 0 0 12pt; font-size: 9pt; color: #555; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #555; overflow-wrap: anywhere; }
  .prose h2, .prose h3 { break-after: avoid; }
  .prose table, .prose figure, .prose .code, .prose tr { break-inside: avoid; }
  .prose .table-wrap { overflow: visible; }
  .prose pre { white-space: pre-wrap; background: #f4f4f4; color: #111; border: 1px solid #ccc; }
  .prose th { background: #e6e6e6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
