@charset "utf-8";
/* 雪結晶サイト共通スタイル
   既存ページ（rokka3d.html）と同じ見え方に合わせる：白地・青のリンク・
   見出しの左に青いバー・角丸の小さなボタン・青いスライダー。 */

:root{
  --ink:      #1f2328;
  --ink-sub:  #57606a;
  --line:     #e3e6ea;
  --line-2:   #cfd6dd;
  --blue:     #1f56c4;
  --blue-bar: #3b74d6;
  --blue-soft:#eaf1ff;
  --blue-dot: #2b7fff;
  --box:      #f6f8fa;
  --warn:     #e8a33d;
  --warn-bg:  #fdf9f0;
  --lav:      #a99ce6;
  --mint:     #45cf9e;
  --tang:     #f97c50;
}

*{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","Yu Gothic Medium",
              Meiryo,"Noto Sans JP",system-ui,sans-serif;
  font-size:16px;
  line-height:1.95;
  font-feature-settings:"palt" 1;
}

.wrap{ max-width:860px; margin:0 auto; padding:0 20px 90px; }

a{ color:var(--blue); }
a:hover{ color:#0d3ea0; }

/* ── 上部の細いナビ ───────────────────────────── */
.topbar{
  border-bottom:1px solid var(--line);
  background:#fff;
  font-size:13px;
}
.topbar .wrap{ padding-top:9px; padding-bottom:9px; display:flex; gap:16px; flex-wrap:wrap; align-items:baseline; }
.topbar .home{ font-weight:600; text-decoration:none; color:var(--ink); }
.topbar .home:hover{ color:var(--blue); }
.topbar .sep{ color:var(--line-2); }
.topbar .here{ color:var(--ink-sub); }

.backlink{ display:inline-block; margin:26px 0 6px; font-size:14px; }

/* ── 見出し ───────────────────────────────── */
h1{
  font-size:27px; line-height:1.5; margin:14px 0 18px;
  padding-left:14px; border-left:6px solid var(--blue-bar);
  letter-spacing:.01em;
}
h1 .eyebrow{
  display:block; font-size:13px; font-weight:600; letter-spacing:.14em;
  color:var(--ink-sub); margin-bottom:2px;
}
h2{
  font-size:20px; margin:52px 0 14px; padding-bottom:9px;
  border-bottom:1px solid var(--line);
}
h3{ font-size:17px; margin:34px 0 8px; }
h4{ font-size:15px; margin:24px 0 6px; color:var(--ink-sub); }

p{ margin:0 0 15px; }
ul,ol{ margin:0 0 16px; padding-left:1.6em; }
li{ margin-bottom:5px; }
strong{ font-weight:700; }
code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.88em; background:var(--box); padding:1px 5px; border-radius:4px;
}
hr{ border:0; border-top:1px solid var(--line); margin:44px 0; }

/* ── 目次 ─────────────────────────────────── */
.toc{
  background:var(--box); border:1px solid var(--line);
  border-radius:8px; padding:18px 22px 14px; margin:26px 0 30px;
}
.toc h2{ font-size:16px; margin:0 0 10px; padding:0; border:0; }
.toc ol{ margin:0; }
.toc li{ margin-bottom:3px; }

/* ── 注意書き ─────────────────────────────── */
.note{
  border-left:4px solid var(--warn); background:var(--warn-bg);
  padding:12px 16px; margin:22px 0; font-size:14.5px; line-height:1.85;
  border-radius:0 6px 6px 0;
}
.note p:last-child{ margin-bottom:0; }
.note .t{ font-weight:700; }

.caution{ border-left-color:#9aa4b2; background:#f7f8fa; }

/* ── 3Dモデル ─────────────────────────────── */
.model{ margin:26px 0 30px; }
.model .stage{
  width:100%; height:400px; border:1px solid var(--line); border-radius:8px;
  background:#fff; position:relative; overflow:hidden; touch-action:none;
}
.model .stage canvas{ display:block; width:100% !important; height:100% !important; }
.model .stage .hint{
  position:absolute; left:12px; bottom:10px; font-size:11.5px; color:#9aa4b2;
  pointer-events:none; letter-spacing:.02em;
}
.model .stage .readout{
  position:absolute; right:12px; top:10px; font-size:12px; color:var(--ink-sub);
  background:rgba(255,255,255,.86); border-radius:5px; padding:3px 8px;
  pointer-events:none; text-align:right; line-height:1.7;
}
.model .cap{ font-size:13.5px; color:var(--ink-sub); margin:9px 2px 0; }

.ctrl{ display:flex; gap:9px; align-items:center; flex-wrap:wrap; margin-top:11px; font-size:13.5px; }
.ctrl + .ctrl{ margin-top:8px; }
.ctrl .lab{ color:var(--ink-sub); white-space:nowrap; }

button.b{
  font:inherit; font-size:13.5px; line-height:1.5;
  padding:5px 14px; border:1px solid var(--line-2); border-radius:6px;
  background:#fff; color:var(--ink); cursor:pointer;
}
button.b:hover{ border-color:#9aa4b2; }
button.b[aria-pressed="true"]{
  border-color:var(--blue-dot); background:var(--blue-soft); color:#14459c;
}
button.b:focus-visible, a:focus-visible, input:focus-visible{
  outline:2px solid var(--blue-dot); outline-offset:2px;
}

input[type=range]{
  -webkit-appearance:none; appearance:none; accent-color:var(--blue-dot);
  height:20px; background:transparent; flex:1 1 190px; min-width:130px; cursor:pointer;
}
input[type=range]::-webkit-slider-runnable-track{ height:5px; border-radius:3px; background:#dfe3e8; }
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; width:17px; height:17px; border-radius:50%;
  background:var(--blue-dot); margin-top:-6px; border:0;
}
input[type=range]::-moz-range-track{ height:5px; border-radius:3px; background:#dfe3e8; }
input[type=range]::-moz-range-thumb{ width:17px; height:17px; border:0; border-radius:50%; background:var(--blue-dot); }
.ctrl .end{ color:var(--ink-sub); font-size:12.5px; white-space:nowrap; }

.legend{ display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:var(--ink-sub); margin-top:10px; }
.legend span{ display:inline-flex; align-items:center; gap:6px; }
.legend i{ width:11px; height:11px; border-radius:3px; display:inline-block; }

/* ── 表 ─────────────────────────────────── */
.tbl{ width:100%; border-collapse:collapse; margin:18px 0 22px; font-size:14px; }
.tbl th,.tbl td{ border-bottom:1px solid var(--line); padding:8px 11px; text-align:left; vertical-align:top; }
.tbl thead th{ border-bottom:2px solid var(--line-2); font-weight:700; white-space:nowrap; }
.tbl td.num,.tbl th.num{ text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.scroll-x{ overflow-x:auto; }

/* ── ステージ一覧（トップ） ─────────────────── */
.stages{ list-style:none; padding:0; margin:26px 0 0; border-top:1px solid var(--line); }
.stages li{ margin:0; border-bottom:1px solid var(--line); }
.stages a{
  display:grid; grid-template-columns:52px 1fr auto; gap:14px; align-items:baseline;
  padding:14px 6px; text-decoration:none; color:inherit;
}
.stages a:hover{ background:var(--box); }
.stages .no{ font-size:13px; color:var(--blue); font-weight:700; font-variant-numeric:tabular-nums; }
.stages .ti{ font-size:16px; font-weight:700; }
.stages .ti small{ display:block; font-weight:400; font-size:13.5px; color:var(--ink-sub); margin-top:1px; }
.stages .sc{ font-size:13px; color:var(--ink-sub); white-space:nowrap; font-variant-numeric:tabular-nums; }

/* ── 前後リンク ───────────────────────────── */
.pager{
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
  margin-top:56px; padding-top:18px; border-top:1px solid var(--line); font-size:14px;
}
.pager a{ text-decoration:none; }
.pager a:hover{ text-decoration:underline; }
.pager .none{ color:#b8bec6; }

footer.site{ margin-top:46px; padding-top:16px; border-top:1px solid var(--line); font-size:13px; color:var(--ink-sub); }

/* ── 用語の定義リスト ─────────────────────── */
dl.defs{ margin:16px 0 22px; }
dl.defs dt{ font-weight:700; margin-top:14px; }
dl.defs dd{ margin:2px 0 0; padding-left:0; color:var(--ink); }

.lead{ font-size:17px; line-height:1.95; }
.small{ font-size:13.5px; color:var(--ink-sub); }

@media (max-width:640px){
  body{ font-size:15.5px; }
  h1{ font-size:22px; }
  h2{ font-size:18px; }
  .model .stage{ height:320px; }
  .stages a{ grid-template-columns:40px 1fr; }
  .stages .sc{ grid-column:2; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

@media print{
  .topbar,.pager,.ctrl{ display:none; }
  .model .stage{ height:300px; }
}

/* ── 「育てる」パネル ───────────────────────── */
.growx .stage{ height:440px; }
.growx button.b.ovbtn{
  position:absolute; left:12px; z-index:3;
  font-size:12.5px; padding:5px 13px;
  background:rgba(255,255,255,.92);
}
.growx .ov1{ top:12px; } .growx .ov2{ top:51px; } .growx .ov3{ top:90px; }
.growx button.b.pausebtn{ left:auto; right:12px; top:12px; padding:5px 11px; }
.growx button.b.tourbtn{
  left:50%; transform:translateX(-50%); top:12px;
  border-radius:999px; padding:6px 17px;
}
.growx button.b.tourbtn::before{ content:"▪"; color:var(--blue-dot); margin-right:8px; }
.growx .tourbox{
  position:absolute; left:50%; transform:translateX(-50%); top:54px; z-index:4;
  width:min(560px, calc(100% - 26px));
  background:rgba(255,255,255,.97);
  border:1px solid var(--line-2); border-radius:10px;
  box-shadow:0 4px 18px rgba(31,54,86,.10);
  padding:12px 15px 10px; font-size:13.5px; line-height:1.85;
}
.growx .tourbox .tt{ color:var(--blue); font-weight:700; margin-right:.6em; font-variant-numeric:tabular-nums; }
.growx .tourbox button.b.ovbtn.gt{ position:static; margin:8px 8px 0 0; background:#fff; }

.growpanel{
  background:var(--box); border:1px solid var(--line); border-radius:8px;
  padding:15px 17px 13px; margin-top:10px;
}
.growpanel .plab{ font-size:13px; color:var(--ink-sub); letter-spacing:.03em; margin-bottom:6px; }
.growpanel input[type=range]{ width:100%; min-width:0; flex:none; display:block; }
.growpanel .srow{
  display:flex; justify-content:space-between; align-items:baseline; gap:8px;
  font-size:12.5px; color:var(--ink-sub); margin-top:3px;
}
.growpanel .sread{ color:var(--blue); font-weight:700; letter-spacing:.06em; font-size:13.5px; }
.growpanel .prow{ display:flex; gap:9px; margin-top:12px; flex-wrap:wrap; }
.growpanel button.b.gpre{ flex:1 1 150px; text-align:center; padding:8px 10px; background:#fff; }
.growpanel button.b.gpre[aria-pressed="true"]{ background:var(--blue-soft); }
.growpanel .arow{ margin-top:10px; }
.growpanel button.b.gact{ padding:9px 10px; }
.growpanel .status{
  margin-top:12px; color:var(--ink-sub); font-size:13.5px; letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
@media (max-width:640px){
  .growx .stage{ height:360px; }
  .growx button.b.tourbtn{ top:auto; bottom:12px; }
  .growx .tourbox{ top:12px; }
}

/* ── 3Dモデル内の追従ラベル ─────────────────── */
.model .stage .tag3d{
  position:absolute; transform:translate(-50%,-130%);
  background:rgba(255,255,255,.93);
  border:1px solid var(--line-2); border-radius:6px;
  padding:2px 9px; font-size:11.5px; color:var(--ink-sub);
  pointer-events:none; white-space:nowrap; z-index:2;
}
.model .stage .tag3d::after{
  content:""; position:absolute; left:50%; bottom:-9px; transform:translateX(-50%);
  width:1px; height:8px; background:var(--line-2);
}

/* ---- 外国語話者向けバナー（2026-08-06） ---- */
.i18n-banner{
  position:sticky; top:0; z-index:50;
  background:#20344a; color:#eef3f8;
  padding:10px 14px; font-size:14px; line-height:1.6;
  display:flex; flex-wrap:wrap; align-items:center; gap:6px;
}
.i18n-banner a{ color:#9fd0ff; text-decoration:underline; }
.i18n-banner .i18n-hide{
  margin-left:auto; background:transparent; color:#c9d6e4;
  border:1px solid #56708c; border-radius:6px; padding:2px 10px; cursor:pointer;
}
.i18n-banner .i18n-hide:hover{ background:#2c4460; }

/* ---- ページ日付（2026-08-06） ---- */
.pagedates{ font-size:12px; color:#9aa4b2; margin-top:10px; }


/* ── 検索者向けの短い結論（2026-08-11） ───────────── */
.quick-answer{margin:16px 0 20px;padding:15px 18px;border:1px solid #c9d9f4;border-left:5px solid var(--blue-bar);border-radius:0 8px 8px 0;background:var(--blue-soft);line-height:1.85;}
.quick-answer p{margin:0;}
.quick-answer__label{margin-bottom:4px !important;color:#14459c;font-size:13px;font-weight:800;letter-spacing:.06em;}
