/* 札: トップの一覧とことばのページの上で共通。中の大きさは札の幅（cqw）に合わせて縮む */
.fuda{position:relative;display:block;aspect-ratio:4/5;container-type:inline-size;background:var(--card);border:1px solid var(--line);border-radius:10px;color:inherit;text-decoration:none;transform:rotate(var(--tilt,0deg));box-shadow:0 16px 24px -18px rgba(35,33,29,.45);transition:transform .25s cubic-bezier(.3,.7,.3,1),box-shadow .25s}
a.fuda:hover,a.fuda:focus-visible{transform:rotate(0deg) translateY(-5px);box-shadow:0 22px 28px -18px rgba(35,33,29,.5)}
@media (prefers-reduced-motion:reduce){.fuda{transition:none}}
.fuda .no{position:absolute;z-index:2;left:8cqw;top:5.5cqw;font-family:var(--gothic);font-size:max(11px,6.6cqw);font-weight:700;letter-spacing:.12em;color:var(--sub)}
.fuda .mark{position:absolute;inset:0;overflow:hidden;border-radius:inherit}
.fuda .w{position:absolute;z-index:2;left:8cqw;right:6cqw;bottom:7.5cqw;line-height:1.32}
.fuda .w small{display:block;font-family:var(--gothic);font-size:max(11px,6.4cqw);font-weight:500;letter-spacing:.1em;color:var(--sub)}
.fuda .w b,.fuda .w h1{display:block;font-size:13.5cqw;font-weight:700;letter-spacing:.03em}

/* ことばのページの上に置く大きな札 */
.fuda.is-hero{--dot:12px;max-width:340px;margin:30px auto 0;border-radius:12px;transform:rotate(-1.4deg);box-shadow:0 20px 32px -20px rgba(35,33,29,.4)}
.is-hero .no{left:7%;top:5.5%;font-size:12.5px;letter-spacing:.14em}
.is-hero .w{line-height:1.3}
.is-hero .w small{font-size:12.5px;letter-spacing:.16em}
.is-hero .w h1{font-size:clamp(34px,10.6vw,44px);letter-spacing:.04em;white-space:nowrap}

/* 札ごとのしるし: 札そのものが、ことばの見本になる */
.m-thirds .mark{background:
  linear-gradient(to right,transparent calc(var(--third) - .5px),var(--line) calc(var(--third) - .5px) calc(var(--third) + .5px),transparent calc(var(--third) + .5px) calc(var(--two) - .5px),var(--line) calc(var(--two) - .5px) calc(var(--two) + .5px),transparent calc(var(--two) + .5px)),
  linear-gradient(to bottom,transparent calc(var(--third) - .5px),var(--line) calc(var(--third) - .5px) calc(var(--third) + .5px),transparent calc(var(--third) + .5px) calc(var(--two) - .5px),var(--line) calc(var(--two) - .5px) calc(var(--two) + .5px),transparent calc(var(--two) + .5px))}
.m-thirds .mark::after{content:"";position:absolute;left:var(--third);top:var(--two);width:var(--dot,5cqw);height:var(--dot,5cqw);margin:calc(var(--dot,5cqw) / -2);border-radius:50%;background:var(--shu)}
.m-thirds .w{left:calc(var(--third) + 6cqw);right:auto;bottom:auto;top:var(--two);transform:translateY(-50%)}
.m-thirds .w b{font-size:13cqw;white-space:nowrap}
.is-hero.m-thirds .w{left:calc(var(--third) + 20px)}

/* ビネット: 周りを暗くした真ん中の明るい所に、題字を置く */
.m-vignette .mark{background:radial-gradient(ellipse at 50% 50%,rgba(255,255,255,.16) 0%,transparent 34%,rgba(35,30,24,.55) 105%)}
@media (prefers-color-scheme:dark){.m-vignette .mark{background:radial-gradient(ellipse at 50% 50%,rgba(255,255,255,.07) 0%,transparent 34%,rgba(0,0,0,.78) 100%)}}
.m-vignette .no,.m-vignette .w small{color:var(--ink);opacity:.8}
.m-vignette .w{left:0;right:0;top:50%;bottom:auto;transform:translateY(-50%);text-align:center}

/* 題字を手で詰める（字ごとに margin-left）。札の書体は詰めの機能を持たないので */
.fuda .w .kt{letter-spacing:0}
.kt span{display:inline-block}
/* カーニング: 題字そのものが見本。上はそのまま並べた題字（薄い墨）、下は詰めた題字（.kt の字ごとの詰め） */
.m-kerning .w{top:50%;bottom:auto;transform:translateY(-50%);right:auto}
.m-kerning .w::before{content:"カーニング";content:"カーニング" / "";display:block;font-size:16cqw;font-weight:700;letter-spacing:0;white-space:nowrap;color:var(--line)}
@media (prefers-color-scheme:dark){.m-kerning .w::before{color:#5A554C}}
.m-kerning .w b,.m-kerning .w h1,.is-hero.m-kerning .w h1{font-size:16cqw;white-space:nowrap}

/* ジャンプ率: 左上にふつうの大きさの題字、右下へはみ出す「大」。その差がジャンプ率 */
.m-jump .mark::before{content:"大";position:absolute;right:-15cqw;bottom:-17cqw;font-size:96cqw;font-weight:700;line-height:1}
.m-jump .w{top:22cqw;bottom:auto}

/* 袋文字: 題字そのものを袋文字にする（地の色の字に墨のふち、朱の影） */
.m-fukuro .w{left:0;right:0;top:53%;bottom:auto;transform:translateY(-50%);display:flex;flex-direction:row-reverse;justify-content:center;align-items:flex-start;gap:1.5cqw}
.m-fukuro .w small{writing-mode:vertical-rl;letter-spacing:.2em}
.m-fukuro .w b,.m-fukuro .w h1,.is-hero.m-fukuro .w h1{writing-mode:vertical-rl;font-family:var(--gothic);font-size:29cqw;letter-spacing:0;line-height:1.05;white-space:nowrap;color:var(--card);-webkit-text-stroke:1.4cqw var(--ink);paint-order:stroke fill;filter:drop-shadow(1cqw 1cqw 0 var(--shu))}

/* イージング: ゆっくり出て、ゆっくり着く曲線。着いた先に題字 */
.m-easing .mark svg{position:absolute;left:8cqw;top:58cqw;width:84cqw;height:54.6cqw;overflow:visible}
.m-easing .w{left:auto;right:8cqw;top:auto;bottom:73cqw;text-align:right}
.m-easing .mark path{fill:none;stroke:var(--ink);stroke-width:1.6;vector-effect:non-scaling-stroke}
.m-easing .mark circle{fill:var(--shu)}

/* ケン・バーンズ効果: 札全体を 1 枚の絵（細い線の風景）にして、寄っていく先（朱の枠・札と同じ 4:5）の中に題字。破線は寄っていく道すじ */
.m-kenburns .mark svg{position:absolute;inset:0;width:100%;height:100%}
.m-kenburns .mark .pic{fill:none;stroke:var(--ink);stroke-width:1.2;vector-effect:non-scaling-stroke}
.m-kenburns .mark .way{fill:none;stroke:var(--sub);stroke-width:1;stroke-dasharray:2 3;vector-effect:non-scaling-stroke}
.m-kenburns .mark .end{fill:none;stroke:var(--shu);stroke-width:1.5;vector-effect:non-scaling-stroke}
.m-kenburns .no{background:var(--card);padding:0 1.5cqw;margin-left:-1.5cqw}
.m-kenburns .w{left:25cqw;right:auto;bottom:15cqw;line-height:1.2}
.m-kenburns .w b,.m-kenburns .w h1,.is-hero.m-kenburns .w h1{font-size:9.5cqw;white-space:nowrap}
.m-kenburns .kt br+span{margin-left:0!important}
.m-kenburns .w small{margin-top:1.5cqw;font-size:max(10px,5.2cqw);letter-spacing:.02em;white-space:nowrap}
.is-hero.m-kenburns .w small{font-size:5.2cqw}

/* ローワーサード: 札を画面に見立て、下 3 分の 1（破線から下）に名前の帯を出す */
.m-lowerthird .mark::before{content:"";position:absolute;left:0;right:0;top:83.333cqw;border-top:1px dashed var(--line)}
@media (prefers-color-scheme:dark){.m-lowerthird .mark::before{border-color:#5A554C}}
.m-lowerthird .w{left:0;right:auto;bottom:11cqw;line-height:1}
.m-lowerthird .w b,.m-lowerthird .w h1{display:block;width:fit-content;padding:2.2cqw 5cqw 2.2cqw 6cqw;border-left:2.2cqw solid var(--shu);background:var(--ink);color:var(--card);font-size:10.5cqw;white-space:nowrap}
.m-lowerthird .w small{display:block;width:fit-content;margin-left:2.2cqw;padding:1.4cqw 4cqw 1.4cqw 6cqw;background:var(--card);border:1px solid var(--line);border-left:0;font-size:max(11px,5.6cqw);line-height:1;color:var(--ink);letter-spacing:.08em}
.is-hero.m-lowerthird .w{left:0;bottom:11cqw}
.is-hero.m-lowerthird .w h1{font-size:10.5cqw;letter-spacing:0}
.is-hero.m-lowerthird .w small{font-size:5.6cqw}

/* リードルーム: 動いている丸（朱）の進む先に、広い余白をとる。題字は縦書きで丸の後ろ（左端）に */
.m-leadroom .w{left:8cqw;right:auto;top:23cqw;bottom:auto}
.m-leadroom .w b,.m-leadroom .w h1{writing-mode:vertical-rl;line-height:1.2;white-space:nowrap}
.m-leadroom .kt span{margin-left:0!important}
.m-leadroom .w small{margin-top:2cqw}
.m-leadroom .mark::before{content:"";position:absolute;left:44cqw;top:54cqw;width:8cqw;height:8cqw;border-radius:50%;background:var(--shu)}
.m-leadroom .mark::after{content:"";position:absolute;left:29cqw;top:54cqw;width:13cqw;height:8cqw;background:
  linear-gradient(var(--ink),var(--ink)) no-repeat 4.5cqw 1.8cqw / 8.5cqw 1px,
  linear-gradient(var(--ink),var(--ink)) no-repeat 0 4cqw / 13cqw 1px,
  linear-gradient(var(--ink),var(--ink)) no-repeat 6cqw 6.2cqw / 7cqw 1px}

/* リーダー: 札をお品書きに見立てる。題字が見出し、その下に品名と値段を点々（朱）でつなぐ行 */
.m-leader .w{left:9cqw;top:21cqw;bottom:auto}
.m-leader .menu{position:absolute;left:9cqw;right:9cqw;top:66cqw;letter-spacing:0;display:grid;gap:7cqw;font-family:var(--mincho);font-size:7.4cqw;font-weight:700;line-height:1}
.m-leader .menu>span{display:flex;align-items:baseline;gap:2.6cqw}
.m-leader .menu i{font-style:normal;font-variant-numeric:tabular-nums}
.m-leader .menu u{flex:1;height:1.3cqw;background:radial-gradient(circle,var(--shu) .55cqw,transparent .7cqw) 0 0 / 2.6cqw 1.3cqw space no-repeat}
