/* VoxAxis サイトの共通の外枠。記事ページ用。
   色・書体・柱の寸法・ボタン・罫線・フッター・背景・動きは index.html から取り出したもので、数値は変えていない。
   index.html 自身はこのファイルを読まない。あちらは build_site_from_svg.py の生成物で、CSS を内側に持っている。
   トップのデザインを変えたときは、このファイルも手で合わせる必要がある。 */

:root{
  --u:calc(100vw / 750);           /* 750基準の1単位。スマホは画面幅いっぱい */
  --indigo:#4F46E5;
  --fb:"Gen Interface JP","Noto Sans KR","Noto Sans TC",-apple-system,system-ui,sans-serif;
  --fd:"Gen Interface JP Display","Gen Interface JP","Noto Sans KR","Noto Sans TC",-apple-system,system-ui,sans-serif;
  --fh:250.00;                     /* フッターの高さ。スマホ */
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--indigo);font-family:var(--fb);font-weight:600;
  -webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{display:block}

/* ---------- 柱。トップと同じ 750 幅。高さだけ中身にあわせて伸びる ---------- */
/* 左余白のアプリ名と一行。スマホでは出さない（余白が無い）。PC だけ下の media query で出す */
.margin-note,.mlogo{display:none}
.page{position:relative;width:calc(750 * var(--u));margin:0 auto;background:#fff;z-index:2;isolation:isolate;
  min-height:100vh;display:flex;flex-direction:column}

/* ---------- ヘッダー。トップは空だが、記事はここから戻れるようにロゴを置く ---------- */
.hdr{position:sticky;top:0;height:calc(70 * var(--u));min-height:44px;background:#fff;z-index:8;
  display:flex;align-items:center;gap:calc(20 * var(--u));
  padding-inline:max(20px, calc(40 * var(--u)));
  border-bottom:max(1px, calc(1 * var(--u))) solid var(--indigo)}
.hdr-logo{height:max(16px, calc(22 * var(--u)));width:auto;color:var(--indigo);flex:0 0 auto}
.hdr-logo svg{height:100%;width:auto;display:block}
.hdr-back{font-size:max(12px, calc(15 * var(--u)));font-weight:400;margin-left:auto;white-space:nowrap}
@media (hover:hover){.hdr-back:hover{text-decoration:underline;text-underline-offset:.25em}}
.hdr a:focus-visible{outline:2px solid var(--indigo);outline-offset:3px}

/* ---------- 記事の本文 ---------- */
.prose{flex:1 0 auto;padding-inline:max(20px, calc(40 * var(--u)));
  padding-block:calc(56 * var(--u)) calc(90 * var(--u));
  font-weight:400;line-height:1.75;font-size:max(16px, calc(17.72 * var(--u)))}
/* 行長。スマホは画面いっぱい（20px を下限）、PC は 590px に止める（約 70 文字。これ以上長いと行を追えなくなる） */
@media (min-width:760px){ .prose{padding-inline:calc(80 * var(--u))} }

.prose h1{font-family:var(--fd);font-weight:600;line-height:1.18;letter-spacing:-.01em;
  font-size:max(28px, calc(49.6 * var(--u)));margin:0 0 calc(18 * var(--u))}
.prose h2{scroll-margin-top:68px;font-family:var(--fd);font-weight:600;line-height:1.3;
  font-size:max(20px, calc(28.4 * var(--u)));margin:2.4em 0 .5em}
.prose h3{font-family:var(--fb);font-weight:600;line-height:1.4;
  font-size:max(17px, calc(21 * var(--u)));margin:2em 0 .3em}
.prose p{margin:0 0 1.15em}
/* 目次。見出しを並べるだけ。黒丸は出さず、本文より少し小さく、行間も詰める。
   飛び先の h2 には scroll-margin-top:68px があるので、固定ヘッダの下に潜らない */
.prose .toc{margin:0 0 2.6em}
.prose .toc ul{list-style:none;padding-left:0;margin:0}
.prose .toc li{margin-bottom:.4em;line-height:1.5;font-size:max(15px, calc(16.4 * var(--u)))}

.prose strong{font-weight:600}
.prose ul,.prose ol{margin:0 0 1.3em;padding-left:1.4em}
.prose li{margin-bottom:.45em}
.prose a:not(.pill-flow){text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:max(1px, .06em)}
@media (hover:hover){.prose a:not(.pill-flow):hover{background:rgba(79,70,229,.09)}}
.prose .lede{font-size:max(17px, calc(21 * var(--u)));line-height:1.6}
.prose .meta{font-weight:400;font-size:max(12px, calc(15 * var(--u)));opacity:.72;margin:0 0 2.2em}
.prose hr{border:0;border-top:max(1px, calc(1 * var(--u))) solid var(--indigo);opacity:.3;margin:2.6em auto}
.prose blockquote{margin:0 auto 1.3em;padding-left:calc(20 * var(--u));
  border-left:max(2px, calc(3 * var(--u))) solid var(--indigo)}

/* 罫線。トップと同じ全幅1本 */
.rule{width:100%;height:max(1px, calc(1 * var(--u)));background:var(--indigo);border:0;margin:0;max-width:none}

/* ---------- ボタン。トップの .pill と同じ見た目で、流れる配置にしたもの ---------- */
.pill-flow{display:grid;place-items:center;margin:calc(34 * var(--u)) auto;
  width:calc(300 * var(--u));min-width:220px;height:calc(60 * var(--u));min-height:48px;
  border:max(1px, calc(1.5 * var(--u))) solid var(--indigo);border-radius:999px;
  font-size:max(14px, calc(17.72 * var(--u)));font-weight:600;line-height:1;white-space:nowrap;
  transition:background .15s,color .15s}
@media (hover:hover){.pill-flow:hover{background:var(--indigo);color:#fff}}
.pill-flow:focus-visible{outline:2px solid var(--indigo);outline-offset:3px}

/* ---------- フッター。トップの専用デザインをそのまま。位置だけ流れる配置に ---------- */
.ft{position:relative;left:0;width:100%;height:calc(var(--fh) * var(--u));background:#4f46e5;color:#fff;
  flex:0 0 auto;z-index:7}
.ft-v{position:absolute;inset:0}
.ft-v.vw{display:none}
.ft-art{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.ft-t{position:absolute;white-space:nowrap;line-height:1;font-family:var(--fb);font-weight:400;color:#fff;
  left:calc(var(--x) * var(--u));top:calc(var(--y) * var(--u));font-size:calc(var(--fs) * var(--u))}
@media (hover:hover){a.ft-t:hover{text-decoration:underline;text-underline-offset:.2em}}
.ft-ig{position:absolute;left:calc(var(--cx) * var(--u));top:calc(var(--cy) * var(--u));transform:translate(-50%,-50%);
  width:max(44px,calc(var(--s) * var(--u)));height:max(44px,calc(var(--s) * var(--u)));border-radius:12px}
@media (hover:hover){.ft-ig:hover{background:rgba(255,255,255,.12)}}
a.ft-t:focus-visible,.ft-ig:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* ---------- PC：柱を中央に、両脇に動く背景（760px 以上。トップと同じ条件） ---------- */
.bg,.band{display:none}
@media (min-width:760px){
  :root{--u:min(1px, calc(100vw / 1440));--fh:200.00}
  .ft-v.vw{display:block}
  .ft-v.vm{display:none}
  body{background:#fff}
  .bg{display:block;position:fixed;inset:0;z-index:0}
  .bg .g{position:absolute;inset:0;opacity:.78}
  .bg .light{background:linear-gradient(to bottom left,#B8AEFA,#7D70F0)}
  .bg .dark{background:linear-gradient(to bottom left,#4A40D9,#221A70);animation:breathe 10s ease-in-out infinite alternate}
  @keyframes breathe{from{opacity:0}to{opacity:.78}}
  .band{display:block;position:fixed;left:0;top:calc(50% - 1230px / 2);height:1230px;width:calc(2842px * 2);z-index:1;
    animation:drift 80s linear infinite;will-change:transform}
  @keyframes drift{from{transform:translateX(-2842px)}to{transform:translateX(0)}}
  .band .tile{position:absolute;top:0;left:0;width:2842px;height:100%}
  .band .tile.b{left:2842px}
  .f{position:absolute;width:36px;height:36px;animation:floaty var(--fp,6s) ease-in-out infinite alternate;animation-delay:var(--fd,0s)}
  @keyframes floaty{from{transform:translateY(-12px)}to{transform:translateY(12px)}}
  .e{width:100%;height:100%;animation:pulse var(--p,5s) ease-in-out infinite alternate;animation-delay:var(--d,0s);transform-origin:50% 50%}
  @keyframes pulse{from{transform:scale(0.85)}to{transform:scale(1.15)}}
  .page{box-shadow:0 0 0 1px rgba(79,70,229,.08)}
  /* 左余白のアプリ名と一行。トップと同じ位置・同じ座標。柱の左端を基準に置く */
  .margin-note{display:block;position:fixed;z-index:3;color:#fff;white-space:nowrap;line-height:1;
    font-family:var(--fb);font-weight:600;font-size:calc(var(--fs) * var(--u));
    left:calc((100vw - 750 * var(--u)) / 2 + var(--x) * var(--u));top:calc(var(--y) * var(--u))}
  .mlogo{display:block;position:fixed;z-index:3;pointer-events:none;
    left:calc((100vw - 750 * var(--u)) / 2 + var(--x) * var(--u));top:calc(var(--y) * var(--u));
    width:calc(var(--w) * var(--u));height:calc(var(--h) * var(--u))}
}
@media (prefers-reduced-motion:reduce){
  .band,.f,.e,.bg .dark{animation:none}
  .band{transform:translateX(calc(2842px / -2))} .bg .dark{opacity:.39}
}

/* ---------- ふわっと出る（トップと同じ：下から30、約0.8秒） ---------- */
.fx{transition:opacity .8s cubic-bezier(.45,0,.2,1) var(--fxd,0s),transform .75s cubic-bezier(.45,0,.2,1) var(--fxd,0s)}
.pill-flow.fx{transition:opacity .8s cubic-bezier(.45,0,.2,1) var(--fxd,0s),transform .75s cubic-bezier(.45,0,.2,1) var(--fxd,0s),background .15s,color .15s}
.js .fx:not(.in){opacity:0;transform:translateY(calc(30 * var(--u)))}
@media (prefers-reduced-motion:reduce){.js .fx:not(.in){opacity:1;transform:none}.fx{transition:none}}
@media print{.bg,.band,.hdr{display:none}.page{width:auto}}

/* ---------- FAQ。質問は出したまま、答えだけ畳む ----------
   details/summary なので JS は要らない。閉じていても本文は HTML に残るので、
   構造化データ（FAQPage）の答えとページの中身が一致したままになる。 */
.prose details.faq{border-top:max(1px, calc(1 * var(--u))) solid rgba(79,70,229,.25)}
.prose details.faq:last-of-type{border-bottom:max(1px, calc(1 * var(--u))) solid rgba(79,70,229,.25);margin-bottom:1.6em}
.prose details.faq summary{list-style:none;cursor:pointer;position:relative;padding:.85em 1.9em .85em 0}
.prose details.faq summary::-webkit-details-marker{display:none}
.prose details.faq summary h3{display:inline;margin:0;font-size:1em;line-height:1.45}
.prose details.faq summary::after{content:"";position:absolute;right:.4em;top:50%;margin-top:-.45em;
  width:.55em;height:.55em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg);transition:transform .2s;opacity:.6}
.prose details.faq[open] summary::after{transform:rotate(-135deg);margin-top:-.2em}
@media (hover:hover){.prose details.faq summary:hover::after{opacity:1}}
.prose details.faq > p{margin:0 0 1.2em}

/* ---------- 記事の図版 ---------- */
.prose figure{margin:2.4em 0;padding:0}
.prose figure img{width:100%;height:auto;display:block}
.prose figcaption{font-size:max(12px, calc(15 * var(--u)));line-height:1.55;opacity:.72;margin-top:.7em;text-align:center}

/* 写真。角丸はトップのカードと同じ考え方 */
.prose .photo img{border-radius:calc(18 * var(--u))}

/* 画面写真。白地なのでトップのカードと同じ枠をつける */
.prose .shot img{border:max(1px, calc(1 * var(--u))) solid var(--indigo);border-radius:calc(14 * var(--u));background:#fff}
.prose .shot.one img{max-width:min(300px, 62%);margin:0 auto}
.prose .shots{display:flex;gap:calc(18 * var(--u));justify-content:center;align-items:flex-start}
.prose .shots img{flex:1 1 0;min-width:0;border:max(1px, calc(1 * var(--u))) solid var(--indigo);border-radius:calc(14 * var(--u));background:#fff}
/* 2枚並べて、それぞれに番号を振る場合。番号を置く余白を左右に取る */
.prose .shots-wrap.callouts .shots{gap:calc(76 * var(--u))}
.prose .shots-wrap.callouts .shot-img{flex:1 1 0;min-width:0;position:relative}
.prose .shots-wrap.callouts .shot-img img{width:100%;flex:none}
@media (max-width:759px){
  .prose .shots-wrap.callouts .shots{flex-direction:column;gap:34px;align-items:center}
  .prose .shots-wrap.callouts .shot-img{width:76%;flex:none}
}

/* 図解（線画）。円や罫線と同じ 1px のインディゴ */
/* 図解は2枚組。PCでは横に並び、スマホでは縦に積む。
   1枚のSVGを縮めると文字まで小さくなるので、分けて並べ方だけ変える */
.prose .fig-pair{display:flex;gap:calc(20 * var(--u));align-items:flex-start}
.prose .fig-pair svg{flex:1 1 0;min-width:0;width:100%;height:auto;display:block}
@media (max-width:759px){
  /* 縦に積むときは flex-basis が高さに効いてしまうので、伸び縮みを切って本来の高さに戻す */
  .prose .fig-pair{flex-direction:column;gap:26px}
  .prose .fig-pair svg{flex:0 0 auto;width:100%}
}
.prose .fig .ln{fill:none;stroke:var(--indigo);stroke-width:1}
.prose .fig .ln-soft{fill:none;stroke:var(--indigo);stroke-width:1;opacity:.45}
.prose .fig .mark{fill:none;stroke:var(--indigo);stroke-width:2;stroke-linecap:round}
.prose .fig .lbl{fill:var(--indigo);font-family:var(--fb);font-weight:600;font-size:15px}
.prose .fig .sub{fill:var(--indigo);font-family:var(--fb);font-weight:400;font-size:13px;opacity:.72}

@media (max-width:759px){
  .prose .shots{gap:12px}
  .prose .shot.one img{max-width:78%}
}

/* 再生画面の図。番号は図の中、説明は本文の文字で下に置く。
   そうしないと図を縮めたときに説明まで小さくなる */
.prose .fig.player svg{max-width:380px;margin:0 auto}
.prose .fig .lead{stroke:var(--indigo);stroke-width:1;opacity:.5}
.prose .fig .hl{fill:var(--indigo);opacity:.10}
.prose .fig .dotfill{fill:var(--indigo)}
.prose .fig .tri{fill:var(--indigo)}
.prose .fig .cue{fill:var(--indigo);stroke:#fff;stroke-width:2}
.prose .fig .cue-n{fill:#fff;font-family:var(--fb);font-weight:600;font-size:13px}
.prose ol.cue-list{counter-reset:cue;list-style:none;padding-left:0;margin-top:1.6em}
.prose ol.cue-list li{counter-increment:cue;position:relative;padding-left:2.1em;margin-bottom:.9em}
/* 丸数字の上下位置。本文1行目の中心に合わせる。
   この擬似要素の font-size は .8em なので、em は全部その 0.8 倍で解決される。
   行の高さは本文の 1.75em ＝ この要素の 1.75/.8 em。丸は 1.5em。
   余りを上下で半分ずつにすると中心が揃う。行の高さを変えたらこの 1.75 も直すこと。 */
.prose ol.cue-list li::before{content:counter(cue);position:absolute;left:0;
  top:calc((1.75em / .8 - 1.5em) / 2);
  width:1.5em;height:1.5em;border-radius:50%;background:var(--indigo);color:#fff;
  display:grid;place-items:center;font-size:.8em;font-weight:600;line-height:1}

/* スクショに番号を振る。番号は画像に焼かず、位置は画像に対する割合で持つので、
   拡大しても字が潰れず、あとから位置だけ動かせる。
   番号は画像の外（左右の余白と下）に置き、引き出し線で指す。部品を隠さないため */
.prose .callouts .shot-wrap{width:min(392px,100%);margin:0 auto;padding:0 46px 26px}
.prose .callouts .shot-img{position:relative}
.prose .callouts .shot-img img{width:100%;max-width:none;display:block;
  border:max(1px, calc(1 * var(--u))) solid var(--indigo);border-radius:calc(14 * var(--u));background:#fff}
.prose .pin{position:absolute;left:calc(var(--px) * 1%);top:calc(var(--py) * 1%);transform:translate(-50%,-50%);
  width:23px;height:23px;border-radius:50%;background:var(--indigo);color:#fff;
  display:grid;place-items:center;font-family:var(--fb);font-weight:600;font-size:12.5px;line-height:1}
/* 引き出し線。長さも画像に対する割合なので、画像を縮めても指す先がずれない */
.prose .callouts .lead{position:absolute;background:var(--indigo);opacity:.4;
  left:calc(var(--x) * 1%);top:calc(var(--y) * 1%);width:calc(var(--w) * 1%);height:1px}
.prose .callouts .lead.v{width:1px;height:calc(var(--h) * 1%)}
@media (max-width:759px){ .prose .callouts .shot-wrap{padding:0 38px 26px} }

/* 番号だけの短い一覧。1行ずつ詰めて並べる */
.prose ol.cue-list.tight li{margin-bottom:.35em;padding-left:1.9em}
