/* suteki.dev の入口のページだけの見た目。/familiarize/ の下は site.css を使う。
   取扱説明書の刷り方：白い紙に、墨と特色 1 色。絵は線画に番号。準備中の品は帯と一言だけ。
   字はどれも端末の標準のフォント（言葉ごとの並びは下の :lang）。フォントのファイルは配らない。 */
:root {
  color-scheme: light dark;
  --paper: #f6f7f7;
  --ink: #15181d;
  --soft: #4c535e;
  --spot: #0b55b6;
  --on-spot: #f6f7f7;
  --hair: #15181d;
  --dot: 1.05px;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic", Meiryo, "Noto Sans CJK JP", "Noto Sans JP", Osaka, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
/* 言葉ごとの本文の字。絵の中のかな（lang="ja" の SVG）と、言葉の名前の並びもこれで決まる */
:lang(ja) { --body: var(--jp); }
:lang(ko) { --body: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
:lang(zh-Hans) { --body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(zh-Hant) { --body: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; }
[lang] { font-family: var(--body); }
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d2146;
    --ink: #e8eef9;
    --soft: #b4c3de;
    --spot: #a4c6ff;
    --on-spot: #0d2146;
    --hair: #e8eef9;
    --dot: .95px;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0 auto; max-width: 54rem;
  padding: clamp(1.5rem, 6vw, 4rem) clamp(1.1rem, 5vw, 2.5rem) clamp(3rem, 8vw, 5rem);
  background: var(--paper); color: var(--ink);
  font: 1rem/1.75 var(--body);
  caret-color: var(--spot);
}
::selection { background: var(--spot); color: var(--on-spot); }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--spot); text-decoration-thickness: .12em; text-underline-offset: .28em; }
a:hover { color: var(--spot); }
a:focus-visible { outline: .16rem solid var(--spot); outline-offset: .25rem; border-radius: .2rem; }
/* 見出しの字：本文と同じ、端末の標準のゴシックの太い字 */
.dp { font-weight: 800; letter-spacing: .01em; }

/* 表紙。いちばん上は言葉の切り替え */
.langs { list-style: none; margin: 0 0 clamp(1.6rem, 6vw, 2.8rem) -.65rem; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .1rem; font-size: .88rem; line-height: 1.3; }
.langs a { display: block; padding: .38rem .65rem; border-radius: 99rem; text-decoration: none; color: var(--soft); }
.langs a:hover { color: var(--spot); }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
h1 { margin: 0; font-size: clamp(2.9rem, 14.5vw, 5.6rem); line-height: 1.08; }
h1 .dp { letter-spacing: -.01em; }
.what { margin: clamp(.5rem, 2vw, .9rem) 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .9rem; font-size: clamp(1.35rem, 5vw, 2rem); line-height: 1.2; color: var(--spot); }
.note {
  margin: clamp(1.6rem, 5vw, 2.6rem) 0 0; padding: .95rem 1.15rem; border-radius: .6rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--spot) 30%, transparent) 0 var(--dot), transparent calc(var(--dot) + .35px)) 0 0 / 5px 5px;
  max-width: 34rem;
}
.aka { font-size: .95rem; color: var(--soft); }
nav { margin-top: clamp(2rem, 6vw, 3.2rem); }

/* 小見出し：字の下に特色の線 */
.rule { margin: 0; padding-bottom: .5rem; border-bottom: .16rem solid var(--spot); display: flex; align-items: baseline; gap: .8rem; font-size: 1.3rem; line-height: 1.2; }

/* もくじ */
.toc { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: baseline; gap: .7rem; padding: .85rem 0; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--hair) 28%, transparent); }
.toc .name { font-weight: 700; font-size: 1.12rem; line-height: 1.45; }
.toc small { display: block; font-size: .84rem; font-weight: 400; color: var(--soft); }
.toc .state { text-align: right; font-size: .95rem; line-height: 1.45; white-space: nowrap; }
.toc .state:not(:empty)::before { content: none; }
.toc a .name + .state { order: 2; }
.toc a::after { content: ""; order: 1; flex: 1 1 1.5rem; min-width: 1.5rem; align-self: center; border-bottom: .16rem dotted color-mix(in srgb, var(--hair) 55%, transparent); }
.toc li:last-child a::after { visibility: hidden; }
.toc a:hover .name { color: var(--spot); }

/* 章の帯：公開中は特色のベタ、準備中は網点 */
section { margin-top: clamp(3.5rem, 11vw, 6rem); scroll-margin-top: 1.5rem; }
.band {
  margin: 0; padding: .7rem 1.25rem .75rem; border-radius: 99rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.1rem;
  background: var(--spot); color: var(--on-spot);
  font-size: clamp(1.7rem, 6.4vw, 2.3rem); line-height: 1.15;
}
.band .kind { font-size: .95rem; font-weight: 700; line-height: 1.35; }
.band .site { margin-left: auto; font-size: .95rem; font-weight: 700; line-height: 1.35; text-decoration-color: currentColor; }
.band .site:hover { color: inherit; text-decoration-thickness: .2em; }
.band .site:focus-visible { outline-color: var(--on-spot); }
.band.soon {
  color: var(--ink); border-radius: 1.6rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--spot) 42%, transparent) 0 var(--dot), transparent calc(var(--dot) + .35px)) 0 0 / 4px 4px;
}
.stamp { margin-left: auto; white-space: nowrap; padding: .3rem .8rem .35rem; border: .14rem solid currentColor; border-radius: .45rem; background: var(--paper); font-size: 1.05rem; line-height: 1.2; text-align: center; transform: rotate(-3deg); }

/* 絵と、番号の説明 */
.fig { margin: clamp(1.6rem, 5vw, 2.4rem) 0 clamp(2rem, 6vw, 3rem); display: grid; gap: 1.5rem clamp(1.5rem, 5vw, 3rem); align-items: center; }
.draw { display: block; width: 100%; height: auto; fill: none; stroke: var(--hair); stroke-width: 1.6; }
.phone { max-width: 23rem; margin: 0 auto; }
@media (min-width: 44rem) { .fig { grid-template-columns: 23rem 1fr; } }
.draw .body { stroke-width: 2.2; }
.draw .key { stroke-width: 1.1; }
.draw .panel { fill: color-mix(in srgb, var(--hair) 7%, transparent); stroke: none; }
.draw .face { fill: var(--paper); }
.draw .cut { stroke-width: 1.1; }
.draw .ico { stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.draw .dim { opacity: .55; }
.draw .fillink { fill: var(--ink); stroke: none; }
.draw .blue { fill: var(--spot); }
.draw .lat { font-size: 11px; }
.draw .sm { font-size: 11px; }
.draw .side { fill: color-mix(in srgb, var(--hair) 13%, transparent); }
.draw .spot { stroke: var(--spot); stroke-width: 2; }
.draw .t { fill: var(--ink); stroke: none; font: 500 13px var(--body); }
.draw .lead { stroke-width: 1.1; }
.draw .dot { fill: var(--hair); stroke: none; }
.mark circle { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; }
.mark text { fill: var(--paper); stroke: none; font: 700 12px var(--body); }

.legend { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 1.05rem; }
.legend li { counter-increment: n; position: relative; padding-left: 2.3rem; line-height: 1.7; }
.legend li::before { content: counter(n); position: absolute; left: 0; top: .12rem; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .85rem; line-height: 1.55rem; text-align: center; }
.legend b { display: block; font-size: 1.06rem; }
.tease { margin: clamp(1.4rem, 4vw, 2rem) 0 0; max-width: 40rem; color: var(--soft); }

/* 仕様の表 */
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem 0; border-bottom: 1px solid color-mix(in srgb, var(--hair) 28%, transparent); text-align: left; vertical-align: top; line-height: 1.7; }
th { width: 1%; padding-right: 1.4rem; font-weight: 700; white-space: nowrap; }
.get { font-weight: 700; }
.get a { display: inline-block; margin-right: 1.4rem; }
#contact { margin-top: clamp(3rem, 9vw, 4.5rem); }

@media (max-width: 34rem) {
  tr { display: block; padding: .75rem 0; border-bottom: 1px solid color-mix(in srgb, var(--hair) 28%, transparent); }
  th, td { display: block; width: auto; padding: 0; border: 0; white-space: normal; }
  th { font-size: .86rem; color: var(--soft); }
}

@media (prefers-reduced-motion: no-preference) {
  .phone .lead { stroke-dasharray: 60; animation: draw .7s cubic-bezier(.16, 1, .3, 1) .25s backwards; }
  .phone .mark { animation: land .5s cubic-bezier(.16, 1, .3, 1) backwards; transform-box: fill-box; transform-origin: center; }
}
@keyframes draw { from { stroke-dashoffset: 60; } }
@keyframes land { from { opacity: 0; transform: scale(.6); } }
