/* 山本凡サイト｜Fable版の試作
   紙（平らな色）とインク、同じ太さの棒、棒の中を流れる作品の映像。 */

:root {
  --paper: #e8e4d7;
  --paper-2: #dfdbcd;
  --ink: #211f1b;
  --ink-2: rgba(33, 31, 27, .64);
  --ink-3: rgba(33, 31, 27, .4);
  --line: rgba(33, 31, 27, .17);
  --red: #dc4426;
  --cyan: #1c9bd1;
  --magenta: #dd2a7b;
  --yellow: #f2c81e;

  --f-min: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --f-got: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(20px, 3.4vw, 52px);
  --bar: 28px;               /* ロゴの棒の太さ。JSが実寸に合わせて書き換える */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
  /* 画面より右へはみ出したものがあっても、ページが横へ動かないようにする（スマホで、二本指で右へずらせた。
     「映像を見る」の右の線が 5px はみ出していた。2026-12-03） */
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-got);
  font-size: 15px;
  font-weight: 300;
  line-height: 2.05;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html.lock, html.lock body { overflow: hidden; }

[hidden] { display: none !important; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
strong { font-weight: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 1px; }
::selection { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* ナビを押したときに止まる位置：どの欄も、欄の名前の札（About・Making など）が、画面の上から 85px に来る（Drift と同じ高さ）。
   前は、欄の上の余白（画面の高さの 14〜16%）がまるごと見える位置で止まっていて、札が上から 200px ほどにあり、
   上の端には、前の欄の終わりがのぞいていた。止まる位置 ＝ scroll-padding-top（72px）＋ ここの値 ＋ 欄の上の余白 */
.letter { scroll-margin-top: calc(13px - clamp(70px, 14vh, 160px)); }
.unknown { scroll-margin-top: calc(1px - clamp(70px, 14vh, 160px)); }   /* 札の上に 1.1em（12px ほど）の空きがあるので、そのぶん上へ */
.about { scroll-margin-top: calc(24px - clamp(70px, 14vh, 160px)); }    /* About の見出しは、上から 96px に貼りつく作り（.about-head）なので、札は 96px に来る。そこに合わせる */
.making { scroll-margin-top: calc(13px - clamp(80px, 16vh, 180px)); }

.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.label {
  font: 400 11.5px/1.5 var(--f-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.h-min {
  font-family: var(--f-min);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 68px);
  line-height: 1.34;
  letter-spacing: .02em;
  font-feature-settings: "palt";
}

/* ───────── 映像を描くキャンバス（紙の上・文字の下） ───────── */
.film {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
main, .end { position: relative; z-index: 1; }

/* ───────── ナビ ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  /* 下にあるものとの「差」で描く：紙の上では墨色、映像の上では自動で読める色になる */
  color: #fffff2;
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav.solid {
  color: var(--ink); mix-blend-mode: normal; background: var(--paper);
  transition: background .3s;
}
/* 下へ読み進めるあいだ：帯とロゴとリンクは引っこめて、音のスイッチ（と、せまい画面の Menu）だけを右上に残す */
.nav.solid .nav-brand, .nav.solid .nav-links { transition: transform .45s var(--ease), opacity .3s; }
.nav.solid .nav-sound, .nav.solid .nav-menu { transition: transform .45s var(--ease), background .3s, padding .45s var(--ease), box-shadow .3s; }
.nav.solid.hide { background: transparent; }
.nav.solid.hide .nav-brand, .nav.solid.hide .nav-links { transform: translateY(-72px); opacity: 0; pointer-events: none; }
.nav.solid.hide .nav-sound { transform: translate(var(--tuck-x, 0px), var(--tuck-y, 0px)); }   /* --tuck-y … Making の欄の上の帯が上の端に止まっているあいだ、帯のまん中の高さへ寄せる（js/main.js） */
.nav.solid.hide .nav-menu { transform: translateY(var(--tuck-y, 0px)); }   /* せまい画面の Menu も、音のスイッチと同じ高さへ寄せる（寄せないと、Menu だけが下にずれる）。横へは動かさない */
.nav.solid.hide .nav-sound, .nav.solid.hide .nav-menu { background: var(--paper); padding: 8px 12px; box-shadow: 0 0 0 1px var(--line); }
/* 引っこめているあいだ、右の入れもの（.nav-right）は、見えないのに、下のもの（Making の欄のルーレットのリンクなど）へのクリックを受けてしまう。
   クリックを受けるのは、残っている音のスイッチと Menu だけにする（2026-12-02） */
.nav.solid.hide .nav-right { pointer-events: none; }
.nav.solid.hide .nav-sound, .nav.solid.hide .nav-menu { pointer-events: auto; }
/* キーボード（Tab）で、引っこめたナビの中へ移ったときは、ナビをぜんぶ戻す。マウスで押したあとに残る印（フォーカス）では戻さない。
   Chrome は、マウスで押したボタンやリンクにも印を残すので、前は、押したあとに引っこめても、ナビがすぐに戻って、
   Making の欄のルーレットのリンクなどを隠していた（2026-12-02） */
.nav.solid.hide:has(:focus-visible) .nav-right { pointer-events: auto; }
.nav.solid.hide:has(:focus-visible) { background: var(--paper); }
.nav.solid.hide:has(:focus-visible) .nav-brand, .nav.solid.hide:has(:focus-visible) .nav-links { transform: none; opacity: 1; pointer-events: auto; }
.nav.solid.hide:has(:focus-visible) .nav-sound, .nav.solid.hide:has(:focus-visible) .nav-menu { transform: none; }
.nav.solid.hide:has(:focus-visible) .nav-sound, .nav.solid.hide:has(:focus-visible) .nav-menu { background: transparent; padding: 8px 0; box-shadow: none; }
/* Making の欄の上の帯が、画面の上の端の近くまで来ているあいだだけ、右をあけて、残っている音のスイッチをよける（near … js/main.js が付ける）。
   帯がまだ下にあるときは、あけない（あけると、ルーレットのリンクが、右の端から半端に離れる。2026-12-02） */
html.nav-tucked .mk-tools.near { padding-right: 190px; }
.nav-brand { display: block; padding: 6px 0; }
.nav-logo { width: 76px; height: auto; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .5s var(--ease); }
.nav-logo polygon { fill: currentColor; }
.nav.show-logo .nav-logo { opacity: 1; transform: none; }

.nav-right {
  display: flex; align-items: center; gap: clamp(14px, 2.1vw, 32px);
  font: 400 11.5px/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 32px); }
.nav-links a { text-decoration: none; padding: 8px 0; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a span { margin-left: 2px; }

.nav-sound { display: inline-flex; align-items: center; gap: 9px; padding: 8px 0; letter-spacing: inherit; text-transform: inherit; }
.plates { display: inline-flex; gap: 5px; }
.plates i { font-style: normal; opacity: calc(.28 + var(--v, 0) * .72); }

.nav-menu { display: none; }

/* ───────── 冒頭：紙の上のロゴ → 棒の中へ → リール ───────── */
.scene { position: relative; height: 380vh; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

.hero {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(96px, 1fr) auto clamp(28px, 6.5vh, 72px) auto minmax(64px, .8fr);
  column-gap: clamp(12px, 1.6vw, 24px);
  padding: 0 var(--pad);
  opacity: var(--hero, 1);
}
.hero-logo {
  grid-column: 1 / span 7; grid-row: 2;
  width: 100%; max-width: 880px;
  aspect-ratio: 684 / 233;
  position: relative;
}
.hero-logo-svg { width: 100%; height: 100%; }
.hero-logo-svg polygon, .end-logo-svg polygon { fill: var(--ink); }
html.gl .hero-logo-svg, html.gl .end-logo-svg { visibility: hidden; }

.hero-copy {
  grid-column: 1 / -1; grid-row: 4;
  display: grid; grid-template-columns: subgrid;
  align-items: start;
  transform: translateY(calc((1 - var(--hero, 1)) * -28px));
}
.hero-copy.off { visibility: hidden; }   /* --hero が 0 のあいだだけ（js/main.js）。消えきった見えないボタンとリンクを、押せない・Tab で止まらないようにする。すでに透明なので、見た目は変わらない */
.hero-copy > .label { grid-column: 1 / -1; margin-bottom: 18px; color: var(--ink-2); }
.hero-tag {
  grid-column: 1 / span 6; grid-row: 2;
  font: 500 clamp(26px, 3.05vw, 46px)/1.5 var(--f-min);
  letter-spacing: .05em;
}
.hero-play {
  grid-column: 1 / span 6; grid-row: 3; justify-self: start; margin-top: clamp(18px, 3.4vh, 34px);
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 13.5px/1 var(--f-got); letter-spacing: .06em;
  padding: 13px 18px 13px 14px; border: 1px solid var(--ink);
  transition: background .2s, color .2s;
}
.hero-play:hover { background: var(--ink); color: var(--paper); }
/* ボタンの右の端の動き（js/playwave.js）：キックの瞬間に、ボタンの右の外に縦の線が 3 本いっぺんに出て、外がわから 1 本ずつ消える。線は動かない。高さは、ボタンの枠の線をふくめた高さ */
.hero-play { position: relative; }
.hero-play-wave { position: absolute; left: 100%; top: -1px; height: calc(100% + 2px); max-width: none; pointer-events: none; }   /* max-width: none … canvas の幅は、ふつうは親（ボタン）の幅までに切られるので、外す */
.hero-play-mark { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hero-play .label { opacity: .6; font-variant-numeric: tabular-nums; line-height: 1; transform: translateY(.5px); }
.hero-desc {
  grid-column: 8 / -1; grid-row: 2;
  font-size: 13.5px; line-height: 2.1;
  padding-top: .5em;
}
.hero-links {
  grid-column: 8 / -1; grid-row: 3; align-self: end; margin-top: 22px;
  display: flex; gap: 28px;
  font: 400 11.5px/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase;
}
.hero-links a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.hero-links a:hover { border-color: currentColor; }
.hero-links a span { display: inline-block; margin-left: 6px; transition: transform .3s var(--ease); }
.hero-links a:hover span { transform: translateX(4px); }

.hero-scroll {
  position: absolute; right: var(--pad); bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-2);
}
.hero-scroll i { display: block; width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--ink);
  animation: drip 1.2s var(--ease-io) infinite;
}
@keyframes drip { from { transform: translateY(-16px); } to { transform: translateY(44px); } }

/* 最初の組み上がりのあいだ、文字は拍に合わせて出す */
.hero [data-in] { opacity: 0; }
.hero [data-in].in { opacity: 1; }

/* ───────── リール（全画面の映像の上にのる文字） ───────── */
.reel {
  position: absolute; inset: 0;
  color: var(--paper);
  opacity: var(--reel, 0);
  visibility: hidden;
}
.reel.on { visibility: visible; }
.reel.tone-light { color: var(--ink); }

.reel-word {
  position: absolute; left: 50%; top: 50%;
  font: 500 clamp(21px, 2.55vw, 42px)/1.25 var(--f-min);
  letter-spacing: .07em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* 言葉のうしろだけ、ピントを外す（レンズのぼけ）。箱は置かない */
.reel-word, .reel-label { text-shadow: 0 0 .7em rgba(0, 0, 0, .42); }
.reel.tone-light .reel-word, .reel.tone-light .reel-label { text-shadow: 0 0 .22em var(--paper), 0 0 .6em var(--paper); }
.reel-word::before, .reel-label::before {
  content: ""; position: absolute; inset: -1.25em -2.3em; z-index: -1;
  -webkit-backdrop-filter: blur(11px) brightness(.76) saturate(1.05);
  backdrop-filter: blur(11px) brightness(.76) saturate(1.05);
  -webkit-mask-image: radial-gradient(closest-side, #000 46%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 46%, transparent 100%);
}
.reel.tone-light .reel-word::before, .reel.tone-light .reel-label::before {
  -webkit-backdrop-filter: blur(11px) brightness(1.24) contrast(.62);
  backdrop-filter: blur(11px) brightness(1.24) contrast(.62);
}
.reel-word:empty::before, .reel-label:empty::before, .reel-word.card::before { display: none; }
.reel-word[data-anchor="l"] { transform: translate(0, -50%); }
.reel-word[data-anchor="r"] { transform: translate(-100%, -50%); }
.reel-word.card { font-weight: 700; font-size: clamp(34px, 6.2vw, 104px); letter-spacing: 0; text-shadow: none !important; }

.reel-label {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font: 500 clamp(11.5px, .95vw, 14.5px)/1 var(--f-mono), var(--f-got);
  letter-spacing: .1em;
  white-space: nowrap;
  pointer-events: none;
}
.reel-label i { font-style: normal; opacity: .62; margin: 0 .9em; }

.reel-ui {
  position: fixed; left: var(--pad); right: var(--pad); bottom: 22px; z-index: 25;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 24px;
  font: 400 11.5px/1.5 var(--f-mono), var(--f-got); letter-spacing: .09em;
  color: #fffff2;
  mix-blend-mode: difference;
  opacity: var(--reel-ui, 0);
  visibility: hidden;
}
.reel-ui.on { visibility: visible; }
.reel-open { display: inline-flex; align-items: baseline; gap: 18px; text-align: left; padding: 8px 0; justify-self: start; max-width: 100%; }
.reel-count { opacity: .7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel-cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-go { opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--ease); white-space: nowrap; }
.reel-open:not(:disabled):hover .reel-go, .reel-open:focus-visible .reel-go { opacity: 1; transform: none; }
@media (hover: none) { .reel-open:not(:disabled) .reel-go { opacity: 1; transform: none; } }   /* 指で見る端末では、マウスを乗せられないので、いつも出しておく（2026-12-03） */
/* 作品につながっていないカット（怪怪酒家のカットや、終わりのカードなど）では、ボタンを押せない（js/main.js の showCut）。
   そのときは、指しても「ワープする →」を出さず、カーソルも矢印のままにする */
.reel-open:disabled { cursor: default; }
.reel-next { padding: 8px 0; text-transform: uppercase; letter-spacing: .09em; }
.reel-next::after { content: "↓"; display: inline-block; margin-left: 9px; }
.reel-line { grid-column: 1 / -1; display: flex; gap: 2px; height: 16px; cursor: pointer; }
.reel-line i { flex: var(--b, 1) 1 0; position: relative; }
.reel-line i::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; opacity: .26; transition: height .15s var(--ease), opacity .15s;
}
.reel-line i.is-past::after { opacity: .5; }
.reel-line i.is-now::after { opacity: 1; height: 9px; }
.reel-line:hover i::after { height: 5px; }
.reel-line:hover i.is-now::after { height: 12px; }
.reel-line i:hover::after { opacity: 1; }

/* ───────── なんもまとまらへん。 ───────── */
.statement {
  padding: clamp(110px, 24vh, 260px) var(--pad) clamp(90px, 18vh, 200px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 1.6vw, 24px);
}
.st-main {
  grid-column: 1 / -1;
  font: 700 min(9.25vw, 176px)/1.08 var(--f-min);
  letter-spacing: -.012em;
  white-space: nowrap;
  opacity: var(--st, 1);
}
.st-main span { display: inline-block; will-change: transform; }
.st-br { display: none; }
.st-strip { grid-column: 1 / -1; height: var(--bar); margin: clamp(30px, 6vh, 64px) 0 clamp(26px, 5vh, 52px); }
html:not(.gl) .st-strip { background: var(--ink); }
.st-sub {
  grid-column: 7 / -1;
  font: 500 clamp(21px, 2.75vw, 42px)/1.5 var(--f-min);
  letter-spacing: .04em;
  opacity: var(--st, 1);
}

/* ───────── About ───────── */
.about {
  padding: clamp(70px, 14vh, 160px) var(--pad);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 1.6vw, 24px);
  position: relative;
}
.about-rule { grid-column: 1; grid-row: 1; width: var(--bar); min-height: 100%; }
html:not(.gl) .about-rule { background: var(--ink); }
.about-head { grid-column: 2 / span 5; grid-row: 1; position: sticky; top: 96px; align-self: start; }
.about-head .label { color: var(--ink-2); margin-bottom: 22px; }
.about-body { grid-column: 8 / -1; grid-row: 1; display: grid; gap: 2.6em; max-width: 34em; }
.about-voice { font: 500 clamp(17px, 1.42vw, 21px)/2.15 var(--f-min); letter-spacing: .05em; }
.about-profile { padding-top: 2.2em; border-top: 1px solid var(--line); font-size: 13.5px; }
.about-profile .label { color: var(--ink-2); margin-bottom: 12px; }
/* About の右のかたまりを、画面に入ってきたら、ふわっと出す（印は js/main.js が付ける） */
.about .rise { opacity: 0; transform: translateY(12px); transition: opacity 1.2s ease-out, transform 1.2s var(--ease); }
.about .rise.in { opacity: 1; transform: none; }
/* About の見出しは、言葉ごとに出す動き（[data-words] .w）を使わない。かたまりごと、上の .rise で出す */
.about-head [data-words] .w, .about-head [data-words] .w.in { opacity: 1; transform: none; transition: none; }

/* ───────── つくりちらかす山本 ───────── */
.making { padding: clamp(80px, 16vh, 180px) var(--pad) clamp(70px, 12vh, 140px); }
.mk-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 1.6vw, 24px); align-items: end;
  padding-bottom: clamp(36px, 7vh, 72px);
}
.mk-head > div:first-child { grid-column: 1 / span 7; }
.mk-head .label { color: var(--ink-2); margin-bottom: 22px; }
.mk-lead { grid-column: 8 / -1; font-size: 13.5px; }
.mk-sub { font: 500 clamp(16px, 1.3vw, 19px)/1.9 var(--f-min); letter-spacing: .05em; margin-bottom: .5em; }

.mk-tools {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 13px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
  position: sticky; top: var(--nav-off, 0px); z-index: 5; background: var(--paper);
  transition: top .45s var(--ease), padding-right .45s var(--ease);
}
.mk-count { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

.mk-body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 1.6vw, 24px); align-items: start;
}
.mk-pane {
  grid-column: 1 / span 5;
  position: sticky; top: calc(var(--mk-tools-h, 48px) + var(--nav-off, 0px));
  height: calc(100vh - var(--mk-tools-h, 48px) - var(--nav-off, 0px)); height: calc(100svh - var(--mk-tools-h, 48px) - var(--nav-off, 0px));
  padding: 26px 0 30px;
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 20px;
  transition: top .45s var(--ease), height .45s var(--ease);
}
.mk-gate { position: relative; min-height: 0; }
.mk-gate-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; object-position: left top; mix-blend-mode: multiply; }
.mk-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: start; }
.mk-cap-meta { display: flex; flex-wrap: wrap; gap: 0 18px; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.mk-cap .btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; position: relative; }   /* position … 拍の線（js/playwave.js）を、ボタンの右の外に出すため。線は、右の一覧とのあいだの空きに出る */
.mk-cap-title { grid-column: 1; font: 600 clamp(17px, 1.5vw, 21px)/1.6 var(--f-got); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-cap-text { grid-column: 1 / -1; font-size: 13px; line-height: 1.95; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; height: 3.9em; max-width: 34em; }

.btn {
  justify-self: start; margin-top: 8px;
  font: 400 11.5px/1 var(--f-mono); letter-spacing: .09em;
  padding: 13px 18px 12px; border: 1px solid var(--ink);
  transition: background .2s, color .2s;
}
.btn span { display: inline-block; margin-left: 8px; transition: transform .3s var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover span { transform: translateX(4px); }

.mk-list { grid-column: 7 / -1; padding-bottom: 12vh; }
.mk-work { border-bottom: 1px solid var(--line); padding: 16px 0 20px; transition: opacity .25s; }
.mk-all-link, .mk-all, .mk-frame.mk-more, a.btn { text-decoration: none; color: inherit; }
.mk-all-link { font: 400 11.5px/1 var(--f-mono); letter-spacing: .07em; padding: 7px 0; white-space: nowrap; }
.mk-all-link span { display: inline-block; margin-left: 6px; transition: transform .3s var(--ease); }
.mk-all-link:hover span { transform: translateX(4px); }
.mk-all-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.mk-all-link .mk-all-long, .mk-all-link .mk-all-short, .mk-all-link:hover .mk-all-long, .mk-all-link:hover .mk-all-short { margin-left: 0; transform: none; }
.mk-all-link .mk-all-short { display: none; }   /* せまい画面で出す、短い名前（下の max-width: 900px の所） */
.making.is-spin .mk-all-link { pointer-events: none; }   /* ルーレットが回っているあいだは、押せない */
/* リンクの頭の、小さな数字の札（js/making.js）。いつも、墨の地に紙の色の字。数字は、左に大きく出している絵の番号（No.）。
   リンクを指しているあいだは、32分音符ごとに、ほかの絵の番号に替わる。ルーレットが回っているあいだは、いま出している絵の番号 */
.mk-all-link .mk-roll, .mk-all-link:hover .mk-roll {
  margin: 0 10px 0 0; padding: 4px 5px 3px; transform: none; transition: none;
  background: var(--ink); color: var(--paper); font-variant-numeric: tabular-nums;
  min-width: 2.9em; text-align: center;
}
.mk-frame.mk-more { display: grid; place-items: center; font: 400 11.5px/1 var(--f-mono); letter-spacing: .05em; color: var(--ink-2); transition: background .2s, color .2s; }
.mk-frame.mk-more:hover { background: var(--ink); color: var(--paper); }
.mk-all { display: grid; gap: 14px; padding: 34px 0 40px; border-bottom: 1px solid var(--ink); }
.mk-all-meta { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mk-all-title { font: 500 clamp(18px, 1.9vw, 27px)/1.7 var(--f-min); letter-spacing: .05em; }
.mk-all-title i { display: inline-block; font-style: normal; margin-left: 14px; transition: transform .3s var(--ease); }
.mk-all:hover .mk-all-title i { transform: translateX(8px); }
a.mk-work-head { color: inherit; text-decoration: none; }
.mk-work-head {
  display: grid; grid-template-columns: 6.6em minmax(0, 1fr) auto auto; gap: 0 16px; align-items: baseline;
  width: 100%; text-align: left; padding: 4px 0 12px;
}
.mk-work-date, .mk-work-ext, .mk-work-n { font: 400 11.5px/1.6 var(--f-mono); letter-spacing: .07em; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .2s; }
.mk-work-title { font: 600 15px/1.7 var(--f-got); letter-spacing: .02em; color: var(--ink-2); transition: color .2s; }
.mk-work-n { min-width: 2.2em; text-align: right; }
.mk-work.cur .mk-work-title { color: var(--ink); }
.mk-work.cur .mk-work-date, .mk-work.cur .mk-work-ext, .mk-work.cur .mk-work-n { color: var(--ink); }
.mk-work.cur .mk-work-title::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--red); border-radius: 50%; transform: translateY(-1px); }

.mk-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(52px, 5.2vw, 78px), 1fr)); gap: 4px; }
.mk-frame { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.mk-frame img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(.92);
  opacity: .5;
  transition: filter .25s, opacity .25s;
}
.mk-work.cur .mk-frame img { filter: none; opacity: 1; }
.mk-frame.sel { outline: 1.5px solid var(--ink); outline-offset: 2px; z-index: 1; }
.mk-frame.sel img { filter: none; opacity: 1; }

/* ───────── Drift（class は .now） ───────── */
/* 欄の地と字の色は、変数で決める。夜の町の空を受けているあいだは、js/now.js が、この欄の中だけ、変数を入れ替える
   （地が墨、字が紙）。窓は地を塗らないので、窓の地は、欄の地と同じ色になる */
.now {
  padding: clamp(70px, 14vh, 160px) var(--pad);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px);
  background: var(--paper); color: var(--ink);
  --now-bleed: min(36px, calc(var(--pad) - 6px));    /* 窓を、左右へこれだけ広げる（へりを薄くするぶん） */
}
.now-head { grid-column: 1 / span 3; display: flex; flex-direction: row; justify-content: space-between; gap: 6px; padding-right: clamp(12px, 2vw, 40px); color: var(--ink-2); position: sticky; top: 96px; align-self: start; }
.now-head .label:first-child { color: var(--ink); }
.now-list { grid-column: 4 / -1; grid-row: 1; border-top: 1px solid var(--ink); }
.now-head { grid-row: 1; }
/* 言葉の動く窓（js/nowfield.js）と、その下の数値。ことばの在庫が空のときの形（左に縦長の窓）。C 案の並べ方は、下の .now--c */
.now-mon { grid-column: 1 / span 3; padding-right: clamp(12px, 2vw, 40px); grid-row: 1; align-self: start; position: sticky; top: 132px; margin-top: 36px; color: var(--ink-2); }
.now-mon-read { margin-top: 4px; color: var(--ink-3); font-variant-numeric: tabular-nums; line-height: 1.7; }
/* 窓は縦長。画面に入りきる高さまで */
.now-mon-gate { height: min(74vh, 720px); height: min(74svh, 720px); min-height: 320px; margin-bottom: 10px; }
.now-credit { color: inherit; text-underline-offset: 3px; }
.now-wire { display: block; margin-top: 10px; color: var(--ink-2); min-height: 1.6em; }
/* 窓は、左右へ少し広げて描く。へりに近い字は、薄く、小さくなる（js/nowfield.js）。広げたぶんは、その薄い所にあたる */
.now-mon-gate canvas { display: block; width: calc(100% + var(--now-bleed) * 2); max-width: none; height: 100%; margin-left: calc(var(--now-bleed) * -1); }
.now-row {
  display: grid; grid-template-columns: minmax(7em, 3fr) minmax(0, 6fr); column-gap: clamp(12px, 1.6vw, 24px);
  align-items: baseline;
  padding: clamp(18px, 3.2vh, 30px) 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.now-row dt { color: var(--ink-2); }
.now-row dd { font: 500 clamp(18px, 1.85vw, 27px)/1.75 var(--f-min); letter-spacing: .04em; }

/* ───── Drift：C 案（2026-12-01 に、ぼんちゃんが選んだ。中身は js/now.js の buildAuto が組む） ─────
   窓を横いっぱいの帯にして、欄ぜんたいを、画面の高さにちょうど収める（ナビの「Drift」を押すと、欄ぜんぶが 1 画面で見える）。
   上から順に：題（Drift）と Sky ／ 窓（残りの高さをぜんぶ使う）と、その下の 1 行（Head / Weather・About・計算の数値）／ Word と Recent。
   窓の高さは「画面の高さから、ほかの行を引いた残り」。ほかの行の高さが、町やことばが替わるたびに変わると、窓の大きさも変わって、
   窓の模様が、はじめから組み直しになる。そこで、どの行も、行数を決めてある（Sky は 1 行、Word は 2 行ぶん、Recent は 1 個 1 行）。
   骨組みだけで、飾りは入れていない。ことばの在庫が空のときは、前の形（左に窓、右に Thinking などの行）のまま */
.now-about { margin: 0; font: 300 12.5px/1.7 var(--f-got); color: var(--ink-2); letter-spacing: 0; }
/* About の字の枠（js/scramble.js）。1 字ずつ幅をそろえて、文字化けのあいだも行の長さが動かないようにする */
.now-about .slot { display: inline-block; width: 1em; text-align: center; vertical-align: baseline; white-space: pre; }
.now-about .slot.is-narrow { width: .6em; }
.now-about .slot.is-space { width: .34em; }
.now-about .slot.is-empty { color: transparent; }
.now-about .slot.is-mask { font-size: .88em; }
.now-word-date { margin-left: 14px; color: var(--ink-3); }   /* Word の見出しの横に出す、そのことばを言った日 */
.now-log { list-style: none; margin: 0; padding: 0; font: 300 13px/1.8 var(--f-got); letter-spacing: 0; color: var(--ink-2); }
.now-log li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); column-gap: 10px; padding: 2px 0; }
.now-log li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* 長いことばは、1 行で切る */
.now-log .label { color: var(--ink-3); padding-top: .2em; }
.now-row--recent dd { font: inherit; letter-spacing: 0; }
.now-sky { margin: 0; }
.now-sky dt { display: none; }                         /* 題（Drift）の横に、空だけを置く */
.now-sky dd { margin: 0; font: 500 clamp(19px, min(2.2vw, 4vh), 32px)/1.5 var(--f-min); letter-spacing: .04em; }
.now-sky .now-wire { margin-top: 6px; }
/* 窓の下の札「Head / Weather」：マーカーのように、字のうしろに、地と反対の色を引く（夜は、色が入れ替わる） */
.now-tag { display: inline-block; padding: 1px 7px 0; background: var(--ink); color: var(--paper); }
.now-cap { display: flex; align-items: baseline; gap: 2px 16px; }
.now-cap > * { flex: 0 0 auto; margin: 0; }
.now-cap .now-mon-read { flex: 0 1 auto; min-width: 0; margin: 0 0 0 auto; padding-left: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.now--c {
  scroll-margin-top: -72px;                            /* ナビの「Drift」で、欄の上の端が、画面の上の端に来る（html の scroll-padding-top を打ち消す） */
  min-height: 100vh; min-height: 100svh;               /* 画面の高さちょうど。中身が入りきらないほど低い画面では、欄のほうが伸びる */
  padding-top: 78px; padding-bottom: clamp(16px, 3vh, 30px);   /* 上は、ナビと音のスイッチのぶんを空ける */
  grid-template-rows: auto 1fr auto;
}
.now--c .now-head { grid-column: 1 / span 1; grid-row: 1; position: static; align-self: start; padding-top: .45em; }
.now--c .now-head .label:nth-child(2) { display: none; }   /* 題の横の日付は出さない（ことばを言った日は、Recent の横に出している。2026-12-01） */
.now--c .now-list { border-top-color: color-mix(in srgb, var(--ink) 50%, transparent); }   /* 窓と Word のあいだの罫線は、字の色の半分の濃さ（ぼんちゃんの指示。太さは 1px のまま） */
.now--c .now-log { line-height: 23px; }                        /* 上下の余白 1px ずつと合わせて、1 行 25px */
.now--c .now-log li { padding: 1px 0; }                        /* Recent の行のあいだを、少しせまく（ぼんちゃんの指示） */
.now--c .now-sky { grid-column: 2 / -1; grid-row: 1; min-width: 0; }
.now--c .now-sky-line, .now--c .now-sky .now-wire { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now--c .now-mon { grid-column: 1 / -1; grid-row: 2; position: static; align-self: stretch; margin-top: clamp(8px, 2vh, 22px); padding-right: 0; display: flex; flex-direction: column; }
.now--c .now-mon-gate { position: relative; flex: 1 1 auto; height: auto; min-height: 200px; margin-bottom: 8px; }
.now--c .now-mon-gate canvas { position: absolute; top: 0; left: calc(var(--now-bleed) * -1); margin-left: 0; height: 100%; }
.now--c .now-list { grid-column: 1 / -1; grid-row: 3; margin-top: clamp(8px, 1.8vh, 18px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.now--c .now-row { grid-template-columns: 1fr; row-gap: 6px; border-bottom: 0; padding: clamp(10px, 1.8vh, 18px) 0 0; }
.now--c .now-row--word { grid-column: 1 / span 7; }
.now--c .now-row--word dd { font-size: clamp(19px, min(2.2vw, 4vh), 32px); line-height: 1.5; }
.now--c .now-word { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 3em; }   /* Word は、いつも 2 行ぶんの高さ */
.now--c .now-row--recent { grid-column: 9 / span 4; }
/* Word の入れ替え：ぼやけながら消えて、次のことばが、ぼやけた所から出てくる（ぼんちゃんの指示。js/now.js の next）。
   ぼかしは、ことばの外がわの dd にかける（ことばの枠は、2 行で切るために overflow: hidden なので、そこにかけると、ぼけの端が切れる） */
/* is-swap は、町がはじめて替わるとき（天気が届いたとき。ふつうは、ページを開いてすぐで、欄が画面に入るより前）に js（now.js の next）が付けて、そのあとは外さない。
   そのため、ふだんは、欄が画面に入るとき、Word のことば（dd）だけが、ほかの行と違って、下の 1.3 秒の動き（待たずに、透明から少しずつ）で出てくる。
   見出しの「Word」と日付、それに Recent は、ほかの行と同じく、0.2 秒めにぱっと出る。
   is-swap が付くより前に欄が画面に入ったとき（天気が届かなかったとき、動きを減らす設定のとき、天気が届く前に Drift まで来たとき）は、ほかの行と同じ出方になる。
   セレクタを長くしてあるのは、欄が画面に入るときの決まり（[data-print] .now-row.in > *）に負けないため */
.now--c .now-list .now-row--word dd.is-swap { transition: opacity 1.3s ease-out, filter 1.3s ease-out; }
.now--c .now-list .now-row--word dd.is-swap.is-out { opacity: 0; filter: blur(14px); transition: opacity .9s ease-in, filter .9s ease-in; }
/* Word の字のゆらぎ：ぼかしが、字の大きさの 1.9% から 3.75% まで（字が 32px のとき、0.6px から 1.2px）を、不ぞろいに行き来する（0 にはしない。ぼんちゃんの指示） */
.now--c .now-word { animation: now-waver 11s ease-in-out infinite; }
@keyframes now-waver {
  0%, 100% { filter: blur(.019em); }
  14% { filter: blur(.028em); }
  27% { filter: blur(.022em); }
  46% { filter: blur(.0375em); }
  61% { filter: blur(.024em); }
  78% { filter: blur(.033em); }
  90% { filter: blur(.019em); }
}
@media (prefers-reduced-motion: reduce) { .now--c .now-word { animation: none; } }
.now--c .now-word-date { transition: opacity .9s ease; }
.now--c .now-word-date.is-out { opacity: 0; }
/* Recent の数は、画面の高さに合わせる（高さが足りないときは、窓をつぶさずに、Recent を減らす） */
@media (min-width: 901px) and (max-height: 780px) { .now--c .now-log li:nth-child(n+4) { display: none; } }
@media (min-width: 901px) and (max-height: 680px) { .now--c .now-log li:nth-child(n+3) { display: none; } }
@media (max-width: 900px) {
  /* せまい画面：上から 1 列に。窓は、残りの高さを使う（正方形にはしない）。
     高さが足りない画面では、欄が 1 画面より長くなって、Recent が下へ続く */
  .now--c { padding-top: 68px; grid-template-rows: auto auto 1fr auto; }
  .now--c .now-head, .now--c .now-sky, .now--c .now-mon, .now--c .now-list { grid-column: 1 / -1; grid-row: auto; }
  .now--c .now-head { margin-bottom: 6px; padding-top: 0; }
  /* Sky は 2 行：1 行めに町の名前、2 行めに時刻と天気（町の名前が長くても短くても、行数が変わらない） */
  .now--c .now-sky-line { white-space: normal; overflow: visible; }
  .now--c .now-sky-name, .now--c .now-sky-rest { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .now--c .now-sky-sep { display: none; }
  .now--c .now-sky .now-wire { white-space: normal; overflow: visible; }
  .now--c .now-credit:not([hidden]) { display: block; }   /* 天気の出どころは、いつも次の行に */
  .now--c .now-mon { margin: 10px 0 0; }
  /* 窓の高さの下限。高さの足りない画面でも、最初の 1 画面に Word までが入るように、画面の高さから決める（200〜250px）。
     408px は、窓のほかに、Word までの行が使う高さ（幅 390px の画面で測った値に、下の余白を足したもの） */
  .now--c .now-mon-gate { aspect-ratio: auto; min-height: max(200px, min(250px, calc(100vh - 408px))); min-height: max(200px, min(250px, calc(100svh - 408px))); }
  .now--c .now-cap { flex-wrap: wrap; }
  /* せまい画面の添え書き。文を短くして 1 行に収まるようにしたので（2026-12-03）、高さは 1 行ぶんにする（前は 2 行ぶんを取っていて、下の Word とのあいだが空きすぎた）。
     上の札（Head / Weather）とのあいだは、少し空ける（ぼんちゃんの指示）。幅 375px より せまい画面では 2 行になるが、2 つの文は同じ字数なので、高さは変わらない */
  .now--c .now-about { flex: 1 1 100%; min-height: 1.7em; margin-top: 7px; }
  .now--c .now-mon-read { display: none; }             /* 計算の数値は、せまい画面では出さない */
  .now--c .now-list { display: block; margin-top: 12px; }
  .now--c .now-row { padding-top: 10px; }
  .now--c .now-log li:nth-child(n+4) { display: none; }
}
@media (max-width: 560px) { .now--c .now-word { -webkit-line-clamp: 3; min-height: 4.5em; } }   /* スマホの幅では、Word は 3 行ぶん */
.now-row::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; bottom: -1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}
[data-print] .now-row > * { opacity: 0; }
[data-print] .now-row.in > * { opacity: 1; transition: opacity 0s .2s; }
[data-print] .now-row.in::after { animation: wipe .56s var(--ease-io) both; }
@keyframes wipe {
  0% { transform: scaleX(0); transform-origin: left; }
  36% { transform: scaleX(1); transform-origin: left; }
  37% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ───────── Unknown ───────── */
.unknown { padding: clamp(70px, 14vh, 160px) var(--pad); }
.un-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); margin-bottom: clamp(40px, 8vh, 84px); }
.un-head .label { grid-column: 1 / span 3; color: var(--ink-2); padding-top: 1.1em; }
.un-head h2 { grid-column: 4 / -1; }
.un-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 6vh, 64px) clamp(12px, 1.6vw, 24px); }
.un-link { display: block; text-decoration: none; }
.un-gate { aspect-ratio: 16 / 10; margin-bottom: 16px; }
html:not(.gl) .un-gate { background: var(--paper-2); }
.un-canvas { display: block; width: 100%; height: 100%; }   /* 枠の中の絵（js/unknown.js） */
.un-meta { display: flex; justify-content: space-between; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.un-title { font: 500 clamp(17px, 1.5vw, 22px)/1.6 var(--f-min); letter-spacing: .04em; }
.un-text { font-size: 13px; line-height: 1.95; color: var(--ink-2); margin-top: 6px; }
.un-link:hover .un-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ───────── Letter ───────── */
.letter {
  padding: clamp(70px, 14vh, 160px) var(--pad) clamp(90px, 18vh, 200px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px);
}
.le-head { grid-column: 1 / span 6; }
.le-head .label { color: var(--ink-2); margin-bottom: 22px; }
/* 題にマウスを乗せると、字が化けながら別の文に替わる（js/lettertitle.js）。乗せたと数えるのは、字のある幅だけ */
.le-head h2 { width: fit-content; cursor: default; }
.le-head h2 .slot { display: inline-block; text-align: center; white-space: pre; }
.le-head h2 .slot.is-empty { color: transparent; }
.le-body { grid-column: 8 / -1; padding-top: 2.4em; max-width: 30em; }
.le-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 16px; margin-top: 2.6em; }
.le-field { display: grid; position: relative; }
.le-field .label { color: var(--ink-2); }
.le-field input {
  appearance: none; width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--ink);
  font: 400 16px/1.4 var(--f-mono); letter-spacing: .03em; padding: 12px 0 14px; outline: none;
}
.le-line { display: block; height: 3px; transition: height .25s var(--ease); }
html:not(.gl) .le-line { background: var(--ink); }
.le-field:focus-within .le-line { height: 9px; }
.le-send { width: 46px; height: 46px; border: 1px solid var(--ink); font: 400 16px/1 var(--f-mono); transition: background .2s, color .2s; }
.le-send:hover { background: var(--ink); color: var(--paper); }
.le-note { min-height: 2em; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.le-links { display: flex; gap: 26px; margin-top: 26px; }
.le-links a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.le-links a:hover { border-color: currentColor; }

/* ───────── おわり ───────── */
.end { padding: clamp(60px, 12vh, 140px) var(--pad) 28px; }
.end-logo { width: min(100%, 1200px); aspect-ratio: 684 / 233; margin-bottom: clamp(48px, 10vh, 110px); }
.end-logo-svg { width: 100%; height: 100%; }
.end-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 18px; border-top: 1px solid var(--ink); color: var(--ink-2); }
.end-row nav { display: flex; gap: 26px; }
.end-row a { text-decoration: none; padding: 6px 0; }
.end-row a:hover { color: var(--ink); }

/* ───────── 見出しを拍ごとに出す ───────── */
[data-words] .w { display: inline-block; opacity: 0; transform: translateY(.18em); }
[data-words] .w.in { opacity: 1; transform: none; transition: transform .5s var(--ease); }

.noscript { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; padding: 12px var(--pad); background: var(--ink); color: var(--paper); font-size: 13px; }

/* ───────── せまい画面 ───────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu { display: inline-block; padding: 8px 0; letter-spacing: inherit; text-transform: inherit; }
  .nav.menu-open { color: var(--ink); mix-blend-mode: normal; }
  .nav.menu-open .nav-links {
    display: flex; position: fixed; inset: 0; z-index: -1; background: var(--paper);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 var(--pad);
  }
  .nav.menu-open .nav-links a { font: 500 30px/1.75 var(--f-min); letter-spacing: .04em; text-transform: none; }
  .nav.menu-open .nav-links a::after { display: none; }

  .hero { grid-template-rows: minmax(88px, .9fr) auto clamp(26px, 5vh, 48px) auto minmax(72px, 1fr); }
  .hero-logo { grid-column: 1 / -1; }
  .hero-tag, .hero-desc, .hero-links, .hero-play { grid-column: 1 / -1; grid-row: auto; }
  .hero-desc { margin-top: 16px; }
  .hero-play { order: 5; margin-top: 22px; }
  .hero-links { order: 4; margin-top: 16px; }
  .hero-desc br { display: none; }
  .hero-scroll span { display: none; }

  .reel-word { font-size: clamp(20px, 5.6vw, 30px); }
  .reel-ui { bottom: 14px; }
  .reel-go { display: none; }
  .reel-ui { gap: 6px 14px; }
  .reel-open { gap: 12px; min-width: 0; }
  .reel-next { padding: 8px 0 8px 12px; white-space: nowrap; }

  .statement { padding-top: 16vh; }
  .st-main { font-size: min(12.6vw, 96px); line-height: 1.2; }
  .st-br { display: inline; }
  .st-sub { grid-column: 1 / -1; }

  .about-rule { display: none; }
  .about-head { grid-column: 1 / -1; position: static; margin-bottom: 36px; }
  .about-body { grid-column: 1 / -1; grid-row: 2; }

  .mk-head > div:first-child, .mk-lead { grid-column: 1 / -1; }
  .mk-lead { margin-top: 20px; }
  .mk-count { display: none; }
  .mk-body { display: block; }
  .mk-tools { margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); justify-content: flex-start; }
  /* せまい画面では、ナビを引っこめたあとも、右上に Sound と Menu が残る。ルーレットのリンクが右にあると、その下に隠れるので、
     名前を短くして、左に寄せる（2026-12-03。ぼんちゃんがスマホで見つけた） */
  .mk-all-link .mk-all-long { display: none; }
  .mk-all-link .mk-all-short { display: inline-block; }
  .mk-pane {
    top: calc(var(--mk-tools-h, 41px) + var(--nav-off, 0px)); height: auto; z-index: 4; background: var(--paper);
    margin: 0 calc(var(--pad) * -1); padding: 10px var(--pad) 12px;
    grid-template-rows: auto auto; gap: 8px; border-bottom: 1px solid var(--ink);
  }
  .mk-gate { height: 27vh; height: 27svh; }
  .mk-cap { gap: 2px 12px; }
  .mk-cap-text { display: none; }
  .mk-cap .btn { padding: 10px 12px 9px; }
  .mk-cap-title { font-size: 15px; }
  .mk-work-head { grid-template-columns: minmax(0, 1fr) auto auto; }
  .mk-work-date { grid-column: 1 / -1; }
  .mk-frames { grid-template-columns: repeat(5, 1fr); }

  .now-head { grid-column: 1 / -1; position: static; flex-direction: row; justify-content: space-between; margin-bottom: 14px; }
  .now-list { grid-column: 1 / -1; grid-row: auto; }
  .now-head { grid-row: auto; }
  .now-mon { grid-column: 1 / -1; grid-row: auto; position: static; margin: 0 0 22px; }
  .now-mon-gate { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .now-row { grid-template-columns: 1fr; row-gap: 6px; }

  .un-head .label, .un-head h2 { grid-column: 1 / -1; }
  .un-head .label { padding: 0 0 18px; }
  .un-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .un-title { font-size: 16px; }

  .le-head, .le-body { grid-column: 1 / -1; }

  .end-row { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll i::after { animation: none; }
  [data-words] .w, [data-words] .w.in { transition: none; transform: none; }
  [data-print] .now-row.in::after { animation: none; }
  [data-print] .now-row.in > * { transition: none; }
  /* 動きを減らす設定のときは、ナビと、Making の欄の上の帯と左の拡大も、スクロールの向きが変わるたびに、すべらせずに、すぐ切り替える */
  .nav.solid .nav-brand, .nav.solid .nav-links, .nav.solid .nav-sound, .nav.solid .nav-menu, .nav-logo, .mk-tools, .mk-pane { transition: none; }
}

/* 映像が使えない環境：リールはふつうの画像で出す */
.reel-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* となりのサイトから演出つきで移ってきたとき：最初のひとコマから墨色で覆う（js/enter.js が印を付け、js/transit.js が開ける） */
/* まんなかに、行き先の名前の絵も出しておく（前のページが作った絵を、js/enter.js が渡す。js/transit.js が出す絵と、同じ絵・同じ位置）。
   字ではなく絵にしてあるのは、書体が届いた瞬間に字がずれるのを避けるため。スクロールバーは、はじめから出しておく
   （あとから出ると、そのぶん、まんなかがずれる）。2026-12-03 */
html.is-entering::before {
  content: ""; position: fixed; inset: 0; z-index: 2147483000;
  background: #211f1b var(--enter-label, none) center / var(--enter-label-size, auto) no-repeat;
}
html.is-entering { overflow-y: scroll; }
