/*
Theme Name: Mizuma Press
Theme URI: https://mizumapress.com/
Author: Mizuma Press
Description: Bilingual (English / 日本語) theme for Masanori Mizuma's archive, blog, videos and PDF books. Indigo washi, sumi ink, one vermilion seal. Works with WooCommerce and the Mizuma Press Tools plugin.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mizuma-press
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
  --paper: #EEEEE8;
  --paper-2: #E3E4DC;
  --card: #F8F8F3;
  --ink: #17203A;
  --ink-soft: #4B546E;
  --line: #CBCDC3;
  --ai: #233B6E;
  --ai-ink: #F4F2EA;
  --shu: #BF3A2A;
  --shu-ink: #FFF6F2;
  --notice: #DDE3F0;
  --sumi: #121829;
  --sumi-ink: #ECEAE0;
  --gold: #B08A3E;

  --f-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-xs: .8125rem; --s-sm: .9375rem; --s-md: 1.0625rem; --s-lg: 1.375rem; --s-xl: clamp(1.7rem, 3.4vw, 2.3rem); --s-2xl: clamp(2.3rem, 5.6vw, 4.1rem);
  --radius: 4px;
  --wrap: 1180px;
  --read: 740px;
  --read-size: 18px;
  --shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 34px -22px rgba(10,16,32,.45);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.12 0 0 0 0 0.22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1424; --paper-2: #141C31; --card: #19223B;
    --ink: #E8E6DC; --ink-soft: #A3AAC0; --line: #2C3654;
    --ai: #93AADF; --ai-ink: #0E1424; --shu: #E0604C; --shu-ink: #1A0B08; --notice: #1D2847;
    --sumi: #080C17; --sumi-ink: #ECEAE0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1424; --paper-2: #141C31; --card: #19223B;
  --ink: #E8E6DC; --ink-soft: #A3AAC0; --line: #2C3654;
  --ai: #93AADF; --ai-ink: #0E1424; --shu: #E0604C; --shu-ink: #1A0B08; --notice: #1D2847;
  --sumi: #080C17; --sumi-ink: #ECEAE0;
  color-scheme: dark;
}

/* language switch: both languages are printed, CSS shows one */
html[data-lang="en"] .l-ja { display: none !important; }
html[data-lang="ja"] .l-en { display: none !important; }

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s-md);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.3; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--ai); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--shu) 25%, transparent); }
.eyebrow { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--shu); box-shadow: 0 0 0 0 color-mix(in srgb, var(--shu) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--shu) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* reveal on scroll (JS adds .in) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 40ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Ticker
   ========================================================= */
.ticker { display: flex; align-items: stretch; background: var(--sumi); color: var(--sumi-ink); font-size: .82rem; height: 34px; overflow: hidden; position: relative; z-index: 31; }
.ticker-label { flex: none; display: grid; place-items: center; padding: 0 14px; background: var(--shu); color: var(--shu-ink); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; font-weight: 500; }
.ticker-track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
.ticker-move { display: inline-flex; white-space: nowrap; gap: 40px; padding-left: 24px; height: 100%; align-items: center; animation: tick 70s linear infinite; }
.ticker:hover .ticker-move, .ticker:focus-within .ticker-move { animation-play-state: paused; }
.ticker a { color: var(--sumi-ink); text-decoration: none; display: inline-flex; gap: 10px; align-items: baseline; }
.ticker a:hover { color: #fff; text-decoration: underline; }
.ticker .tdate { font-family: var(--f-mono); font-size: .72rem; color: #E0604C; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   Header
   ========================================================= */
header.site { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
header.site.scrolled { box-shadow: 0 8px 24px -18px rgba(10,16,32,.5); }
.admin-bar header.site { top: 32px; }
@media (max-width: 782px) { .admin-bar header.site { top: 0; } }
header.site > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 11px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand .mark { flex: none; width: 36px; height: 36px; background: var(--shu); color: var(--shu-ink); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 20px; border-radius: 4px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--shu-ink) 25%, transparent); transform: rotate(-3deg); transition: transform .3s ease; }
.brand:hover .mark { transform: rotate(3deg) scale(1.05); }
.brand .name { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; line-height: 1.05; white-space: nowrap; }
.brand .kana { display: block; font-family: var(--f-body); font-size: .66rem; color: var(--ink-soft); letter-spacing: .24em; font-weight: 500; margin-top: 3px; }
nav.main { display: flex; align-items: center; gap: 12px; font-size: var(--s-sm); }
nav.main .links { display: flex; gap: 4px; align-items: center; }
nav.main .links a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 999px; transition: background-color .15s ease, color .15s ease; }
nav.main .links a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
nav.main a[aria-current="page"] { color: var(--shu); }
.cartlink .count { font-family: var(--f-mono); font-size: .66rem; background: var(--shu); color: var(--shu-ink); border-radius: 999px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink-soft); }
.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; flex: none; background: var(--card); }
.langsw button { font: inherit; font-size: var(--s-xs); border: 0; background: none; color: var(--ink-soft); padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.langsw button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-btn span:nth-child(1) { top: 13px; } .menu-btn span:nth-child(2) { top: 18px; } .menu-btn span:nth-child(3) { top: 23px; }
header.site.open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
header.site.open .menu-btn span:nth-child(2) { opacity: 0; }
header.site.open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.searchbox { border-top: 1px solid var(--line); background: var(--paper); }
.searchbox form { display: flex; gap: 8px; padding-block: 14px; }
.searchbox input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 12px 16px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  nav.main .links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.4); }
  nav.main .links a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  header.site.open nav.main .links { display: flex; }
}
@media (max-width: 520px) { .brand .kana { display: none; } .brand .name { font-size: 1.08rem; } .langsw button { padding: 5px 8px; } nav.main { gap: 8px; } }

/* =========================================================
   Buttons
   ========================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: var(--s-sm); font-weight: 700; padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; line-height: 1.3; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ai); color: var(--ai-ink); box-shadow: 0 10px 20px -14px var(--ai); }
.btn.primary:hover { background: color-mix(in srgb, var(--ai) 85%, var(--ink)); transform: translateY(-1px); }
.btn.shu { background: var(--shu); color: var(--shu-ink); }
.btn.shu:hover { background: color-mix(in srgb, var(--shu) 85%, #000); }
.btn.ghost { background: color-mix(in srgb, var(--card) 60%, transparent); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-soft); }
.btn.sm { padding: 7px 13px; font-size: var(--s-xs); }
.btn.lg { padding: 14px 24px; font-size: 1rem; }

/* =========================================================
   Hero
   ========================================================= */
.hero2 { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(1200px 500px at 85% 20%, color-mix(in srgb, var(--notice) 70%, transparent), transparent 70%); }
.hero2 .watermark { position: absolute; right: -2vw; top: -10px; writing-mode: vertical-rl; font-family: var(--f-display); font-weight: 800; font-size: clamp(8rem, 22vw, 20rem); line-height: 1; color: var(--ink); opacity: .035; letter-spacing: .05em; z-index: 0; pointer-events: none; user-select: none; }
.hero2 > .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; padding-block: 72px 64px; }
.hero2 h1 { font-size: var(--s-2xl); font-weight: 800; letter-spacing: -.01em; margin-top: 14px; line-height: 1.12; }
.hero2 h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--shu) 22%, transparent) 62%); }
html[data-lang="ja"] .hero2 h1 { letter-spacing: .02em; line-height: 1.3; }
.hero2 .lede { margin-top: 22px; max-width: 56ch; color: var(--ink-soft); font-size: 1.12rem; }
.hero2 .actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 38px; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats dt { font-size: var(--s-xs); color: var(--ink-soft); }

/* newspaper clipping */
.clipping { position: relative; display: flex; flex-direction: column; gap: 12px; background: #FBFAF4; color: #1B1E2A; text-decoration: none; padding: 26px 26px 24px; border-radius: 2px; transform: rotate(1.4deg); box-shadow: 0 2px 0 rgba(0,0,0,.05), 0 30px 50px -28px rgba(10,16,32,.7); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; background-image: var(--grain); border: 1px solid #E4E2D6; }
.clipping:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 2px 0 rgba(0,0,0,.05), 0 40px 60px -28px rgba(10,16,32,.75); }
.clip-tape { position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: color-mix(in srgb, #E9D9A6 80%, transparent); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.clip-head { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #6B6E78; border-bottom: 3px double #2A2E3A; padding-bottom: 8px; flex-wrap: wrap; }
.clip-head span:first-child { color: #BF3A2A; font-weight: 500; }
.clip-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #E9E7DD; filter: grayscale(.25) contrast(1.05); }
.clip-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-title { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; line-height: 1.45; }
.clip-ex { font-size: .92rem; color: #4A4E5C; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.clip-more { font-weight: 700; font-size: .9rem; color: #233B6E; }
.clip-seal { position: absolute; right: 18px; bottom: 16px; width: 58px; height: 58px; border: 3px solid #BF3A2A; color: #BF3A2A; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: .95rem; transform: rotate(-12deg); opacity: .85; animation: stamp .7s cubic-bezier(.2,1.6,.4,1) .6s both; }
@keyframes stamp { from { transform: scale(1.9) rotate(-24deg); opacity: 0; } to { transform: scale(1) rotate(-12deg); opacity: .85; } }
@media (max-width: 900px) {
  .hero2 > .wrap { grid-template-columns: 1fr; padding-block: 44px 48px; gap: 44px; }
  .clipping { transform: rotate(.8deg); }
}

/* =========================================================
   Sections
   ========================================================= */
section.block { padding-block: 76px; position: relative; }
section.block + section.block { border-top: 1px solid var(--line); }
section.block.tint { background: color-mix(in srgb, var(--paper-2) 80%, transparent); }
section.block.ink { background: var(--sumi) var(--grain); color: var(--sumi-ink); border-top: 0 !important; }
section.block.ink .eyebrow, section.block.ink .note { color: #A3AAC0; }
section.block.ink a.more { color: #C9D4F2; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.head h2 { font-size: var(--s-xl); margin-top: 6px; }
.head .note { color: var(--ink-soft); font-size: var(--s-sm); max-width: 46ch; }
.head .more { font-size: var(--s-sm); white-space: nowrap; font-weight: 700; }
.mt-hint { font-size: var(--s-xs); color: var(--ink-soft); margin: -20px 0 20px; }

/* =========================================================
   Blog cards
   ========================================================= */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.mag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mag .pcard.big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .mag { grid-template-columns: 1fr 1fr; } .mag .pcard.big { grid-column: span 2; grid-row: auto; } }
@media (max-width: 580px) { .mag { grid-template-columns: 1fr; } .mag .pcard.big { grid-column: auto; } }
.pcard { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: border-color .2s ease, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; }
.pcard:hover { border-color: color-mix(in srgb, var(--ink-soft) 60%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .thumb img { transform: scale(1.04); }
.pcard .thumb.paper { display: grid; place-items: center; padding: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--ai) 92%, #000), color-mix(in srgb, var(--ai) 70%, var(--sumi))); }
.pcard .thumb.paper span { font-family: var(--f-display); font-weight: 800; color: #F4F2EA; font-size: 1.35rem; line-height: 1.4; text-align: center; letter-spacing: .06em; opacity: .92; }
.pcard .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .date { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; }
.pcard .date .era { color: var(--shu); }
.pcard h3 { font-size: 1.08rem; line-height: 1.55; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard .ex { font-size: var(--s-sm); color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard.big h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.pcard.big .ex { -webkit-line-clamp: 5; font-size: 1rem; }
.pcard.big .thumb { aspect-ratio: 16 / 8.5; }
.pcard .tags { margin-top: auto; padding-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span, .tags a { font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ai) 10%, transparent); color: var(--ai); text-decoration: none; position: relative; z-index: 2; }
.tags a:hover { background: var(--ai); color: var(--ai-ink); }
.pcard .new, .new { position: absolute; top: 12px; right: 12px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; background: var(--shu); color: var(--shu-ink); padding: 2px 8px; border-radius: 3px; z-index: 2; }

/* =========================================================
   Topics
   ========================================================= */
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topic { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--s-sm); transition: all .2s ease; }
.topic:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.topic .tcount { font-family: var(--f-mono); font-size: .7rem; background: color-mix(in srgb, var(--shu) 14%, transparent); color: var(--shu); padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.topic:hover .tcount { background: var(--shu); color: var(--shu-ink); }

/* =========================================================
   Timeline
   ========================================================= */
.timeline { overflow-x: auto; padding: 8px 0 22px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.timeline ol { list-style: none; margin: 0; padding: 0 max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); display: flex; gap: 0; position: relative; width: max-content; }
.timeline ol::before { content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: linear-gradient(90deg, transparent, var(--ink) 4%, var(--ink) 96%, transparent); opacity: .25; }
.timeline li { scroll-snap-align: start; width: 200px; flex: none; }
.timeline a { display: flex; flex-direction: column; gap: 6px; padding: 0 18px 0 0; text-decoration: none; color: var(--ink); position: relative; }
.timeline .yr { font-family: var(--f-display); font-weight: 800; font-size: 1.75rem; line-height: 1; padding-bottom: 22px; position: relative; }
.timeline .yr::after { content: ""; position: absolute; left: 2px; bottom: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--shu); transition: transform .2s ease, background-color .2s ease; }
.timeline a:hover .yr::after { transform: scale(1.3); background: var(--shu); }
.timeline .ev { font-size: var(--s-sm); font-weight: 700; line-height: 1.5; margin-top: 8px; }
.timeline .go { font-size: .74rem; color: var(--ai); opacity: 0; transform: translateY(-4px); transition: all .2s ease; }
.timeline a:hover .go, .timeline a:focus-visible .go { opacity: 1; transform: none; }

/* =========================================================
   Videos
   ========================================================= */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vcard { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vcard.first { grid-column: span 2; grid-row: span 2; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, opacity .3s ease; opacity: .9; }
.vcard:hover .vthumb img { transform: scale(1.04); opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: color-mix(in srgb, var(--shu) 92%, transparent); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); transition: transform .2s ease; }
.play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.vcard:hover .play { transform: scale(1.1); }
.vcard.first .play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.vcard.first .play::after { left: 34px; top: 26px; border-left-width: 24px; border-top-width: 16px; border-bottom-width: 16px; }
.vtitle { font-weight: 700; font-size: var(--s-sm); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--sumi-ink); }
.vcard.first .vtitle { font-family: var(--f-display); font-size: 1.25rem; }
.vdate { font-family: var(--f-mono); font-size: .7rem; color: #A3AAC0; margin-top: -6px; }
.vcard:focus-visible .vthumb { outline: 3px solid var(--shu); outline-offset: 3px; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr 1fr; } .vcard.first { grid-column: span 2; grid-row: auto; } }

/* =========================================================
   Bookshelf
   ========================================================= */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 44px 30px; align-items: end; perspective: 1200px; }
.book { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.book .cover { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 2px 6px 6px 2px; overflow: hidden; background: var(--paper-2); box-shadow: 6px 8px 0 -2px color-mix(in srgb, var(--ink) 12%, transparent), 0 24px 30px -18px rgba(10,16,32,.7); transform-origin: left center; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
.book .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book .cover .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.18) 40%, transparent); }
.book .cover:hover { transform: rotateY(-14deg) translateY(-6px); box-shadow: 16px 14px 0 -4px color-mix(in srgb, var(--ink) 14%, transparent), 0 34px 40px -18px rgba(10,16,32,.75); }
.book .cover .noimg { height: 100%; display: grid; place-items: center; font-family: var(--f-display); font-size: 3rem; color: var(--shu); }
.book h3 { font-size: 1.02rem; }
.book h3 a { color: var(--ink); text-decoration: none; }
.book .sub { font-size: var(--s-xs); color: var(--ink-soft); }
.book .buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.price { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.book .price del { font-size: .8em; color: var(--ink-soft); }
.shelf-board { height: 14px; margin-top: 18px; border-radius: 3px; background: linear-gradient(180deg, #7A5A3A, #5C4129); box-shadow: 0 10px 16px -8px rgba(0,0,0,.5); opacity: .9; }
@media (max-width: 560px) { .shelf { grid-template-columns: 1fr 1fr; gap: 32px 16px; } .book .buy { flex-direction: column; align-items: stretch; } }

/* =========================================================
   Spread + follow
   ========================================================= */
.spread2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
.spread-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 34px 32px; overflow: hidden; }
.spread-card .big { position: absolute; right: 18px; top: 10px; font-family: var(--f-display); font-weight: 800; font-size: 5.5rem; color: var(--shu); opacity: .12; writing-mode: vertical-rl; line-height: 1; letter-spacing: .1em; }
.spread-card h3 { font-size: 1.5rem; position: relative; }
.spread-card p { color: var(--ink-soft); margin-top: 10px; max-width: 48ch; position: relative; }
.follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fcard { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: all .2s ease; }
.fcard:hover { transform: translateY(-2px); border-color: var(--ink-soft); box-shadow: var(--shadow); }
.fcard .fi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--ink); }
.fcard.f-youtube .fi { background: #D52B1E; }
.fcard.f-x .fi { background: #111; }
.fcard.f-nico .fi { background: #3A3A3A; }
.fcard.f-note .fi { background: #1FAB89; }
.fcard.f-blog .fi { background: var(--ai); }
.fcard b { display: block; font-size: var(--s-sm); line-height: 1.3; }
.fcard small { display: block; font-size: .75rem; color: var(--ink-soft); }
.fcard .arr { color: var(--ink-soft); }
.fcard:first-child { grid-column: span 2; }
@media (max-width: 860px) { .spread2 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .follow-grid { grid-template-columns: 1fr; } .fcard:first-child { grid-column: auto; } }

.share { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: relative; }
.share .lbl { font-family: var(--f-display); font-weight: 800; color: var(--shu); margin-right: 4px; font-size: 1.05rem; }
.share a, .share button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: var(--s-xs); font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: all .15s ease; }
.share a:hover, .share button:hover { transform: translateY(-1px); }
.share .s-x:hover { background: #111; color: #fff; border-color: #111; }
.share .s-line:hover { background: #06C755; color: #fff; border-color: #06C755; }
.share .s-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share .s-hb:hover { background: #00A4DE; color: #fff; border-color: #00A4DE; }
.share .s-hb b { font-family: Arial, sans-serif; }
.ico { flex: none; }

/* =========================================================
   About
   ========================================================= */
.about { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.portrait { aspect-ratio: 4 / 5; width: 100%; background: linear-gradient(160deg, var(--ai), var(--sumi)); display: grid; place-items: center; overflow: hidden; border-radius: 4px; box-shadow: var(--shadow); position: relative; }
.portrait::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.25); pointer-events: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { font-family: var(--f-display); font-weight: 800; font-size: 4.2rem; color: #F4F2EA; line-height: 1.1; text-align: center; }
.about .text { display: flex; flex-direction: column; gap: 14px; max-width: 66ch; min-width: 0; }
.yomi { font-family: var(--f-body); font-size: .9rem; color: var(--ink-soft); font-weight: 500; margin-left: 8px; }
.motto { margin: 4px 0; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--shu); border-left: 4px solid var(--shu); padding-left: 16px; }
.follow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.follow a { font-size: var(--s-xs); font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.follow a:hover { border-color: var(--shu); color: var(--shu); }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 220px; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 8px 0 0; font-size: var(--s-sm); }
.facts dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; color: var(--ink-soft); padding-top: 3px; }
.facts dd { margin: 0; }

/* how + faq */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; min-width: 0; }
.steps li::before { content: counter(step, cjk-ideographic); grid-row: span 2; font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; color: var(--shu); line-height: 1; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-soft); font-size: var(--s-sm); grid-column: 2; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.faq { display: flex; flex-direction: column; max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--ink-soft); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); max-width: 65ch; }

/* =========================================================
   Blog list page
   ========================================================= */
.listhead { border-bottom: 1px solid var(--line); background: radial-gradient(900px 300px at 90% 0%, color-mix(in srgb, var(--notice) 70%, transparent), transparent 70%); }
.listhead .wrap { padding-block: 48px 26px; }
.listhead h1 { font-size: var(--s-2xl); margin-top: 8px; }
.listhead .count { color: var(--ink-soft); font-size: var(--s-sm); margin-top: 6px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.search { display: flex; gap: 6px; flex: 1 1 280px; max-width: 520px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: var(--s-sm); padding: 10px 14px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); }
.archive-select { font: inherit; font-size: var(--s-sm); padding: 10px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font-size: var(--s-xs); font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--ink-soft); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 44px; font-family: var(--f-mono); font-size: var(--s-sm); }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .dots { border: 0; background: none; }

/* =========================================================
   Single post
   ========================================================= */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--shu); z-index: 60; }
.article { max-width: var(--read); margin-inline: auto; padding: 44px 20px 24px; }
.crumbs { font-size: var(--s-xs); color: var(--ink-soft); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-soft); }
.crumbs .era { color: var(--shu); }
.art-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.art-date { text-align: center; border: 2px solid var(--ink); border-radius: 4px; padding: 8px 10px 6px; min-width: 70px; background: var(--card); }
.art-date b { display: block; font-family: var(--f-display); font-size: 2rem; line-height: 1; }
.art-date span { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-soft); }
.article h1 { font-size: clamp(1.55rem, 3.8vw, 2.25rem); line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 14px; font-size: var(--s-sm); color: var(--ink-soft); }
.byline .who { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.byline .who .mark { width: 26px; height: 26px; background: var(--shu); color: var(--shu-ink); display: grid; place-items: center; font-family: var(--f-display); font-size: 14px; border-radius: 3px; }
@media (max-width: 520px) { .art-head { grid-template-columns: 1fr; } .art-date { display: none; } }
.article > .tags { margin-top: 18px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 18px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; width: fit-content; background: var(--card); }
.tools .tl { font-size: .72rem; color: var(--ink-soft); padding: 0 6px; }
.tools button { font: inherit; font-size: .8rem; font-weight: 700; border: 0; background: none; color: var(--ink); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.tools button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.mtnote { margin-top: 18px; background: var(--notice); border-radius: 8px; padding: 12px 16px; font-size: var(--s-xs); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mtnote button { font: inherit; font-weight: 700; background: var(--card); border: 1px solid var(--ink-soft); color: var(--ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.entry { margin-top: 30px; font-size: var(--read-size); line-height: 2; overflow-wrap: anywhere; }
.entry p, .entry ul, .entry ol, .entry blockquote, .entry figure, .entry table { margin: 0 0 1.2em; }
.entry img { border-radius: 3px; cursor: zoom-in; box-shadow: 0 10px 24px -18px rgba(0,0,0,.6); transition: transform .2s ease; }
.entry img:hover { transform: scale(1.01); }
.entry a { overflow-wrap: anywhere; }
.entry blockquote { border-left: 3px solid var(--shu); padding: 4px 0 4px 18px; color: var(--ink-soft); }
.entry h2, .entry h3 { margin: 1.6em 0 .6em; }
.entry iframe { max-width: 100%; border: 0; }
.entry iframe[src*="youtube"], .entry iframe[src*="nicovideo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; }
.entry table { border-collapse: collapse; display: block; overflow-x: auto; }
.entry td, .entry th { border: 1px solid var(--line); padding: 6px 10px; }
.entry font[color="red"], .entry font[color="#ff0000"], .entry font[color="#FF0000"] { color: var(--shu) !important; }
/* 縦書き mode (Japanese) */
html.tate-mode[data-lang="ja"] .entry { writing-mode: vertical-rl; height: min(78vh, 760px); overflow-x: auto; overflow-y: hidden; line-height: 1.9; padding: 10px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-family: var(--f-display); letter-spacing: .05em; }
html.tate-mode[data-lang="ja"] .entry img { max-height: 70vh; width: auto; }
.source { margin-top: 30px; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 8px; font-size: var(--s-sm); color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.related { padding: 56px 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 70%, transparent); margin-top: 30px; }
.related h2 { font-size: 1.5rem; margin-bottom: 22px; }
.postnav { max-width: var(--read); margin: 30px auto 0; padding: 0 20px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.postnav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-size: var(--s-sm); line-height: 1.55; background: var(--card); transition: all .2s ease; height: 100%; }
.postnav a:hover { border-color: var(--ink-soft); transform: translateY(-2px); }
.postnav small { display: block; font-family: var(--f-mono); color: var(--shu); font-size: .7rem; letter-spacing: .08em; margin-bottom: 4px; }
.postnav .next { text-align: right; }
@media (max-width: 560px) { .postnav { grid-template-columns: 1fr; } }

/* generic page */
.page-wrap { max-width: 900px; margin-inline: auto; padding: 48px 20px 72px; }
.page-wrap > h1 { font-size: var(--s-xl); margin-bottom: 24px; }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding-block: 64px 48px; }
.hero h1 { font-size: var(--s-2xl); font-weight: 800; margin-top: 12px; }
.hero .lede { margin-top: 20px; max-width: 58ch; color: var(--ink-soft); font-size: 1.1rem; }
.vert { display: flex; gap: 18px; align-items: flex-start; }
.vert .seal { align-self: flex-end; }
.tate { writing-mode: vertical-rl; text-orientation: upright; font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: .18em; color: var(--ink); line-height: 1.15; }
.tate.sub { font-size: var(--s-md); font-weight: 500; letter-spacing: .3em; color: var(--ink-soft); }
.seal { width: 58px; height: 58px; border: 3px solid var(--shu); color: var(--shu); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 30px; border-radius: 6px; transform: rotate(-4deg); }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 40px 32px; } .vert { display: none; } }
.spread { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.spread .big { width: 1.1em; font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; color: var(--shu); writing-mode: vertical-rl; letter-spacing: .15em; line-height: 1; }
.spread h3 { font-size: 1.3rem; }
.spread p { color: var(--ink-soft); font-size: var(--s-sm); margin-top: 6px; }
@media (max-width: 560px) { .spread { grid-template-columns: 1fr; } .spread .big { writing-mode: horizontal-tb; width: auto; } }

/* =========================================================
   Footer
   ========================================================= */
footer.site { background: var(--sumi) var(--grain); color: var(--sumi-ink); position: relative; overflow: hidden; margin-top: 0; }
footer.site > .wrap { padding-block: 56px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 40px; position: relative; }
footer.site .brand { color: var(--sumi-ink); }
footer.site .brand .kana { color: #A3AAC0; }
footer.site h4 { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #A3AAC0; margin-bottom: 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--s-sm); }
footer.site a { color: var(--sumi-ink); text-decoration: none; }
footer.site a:hover { color: #E0604C; }
footer.site .about-mini { font-size: var(--s-sm); color: #A3AAC0; margin-top: 14px; max-width: 42ch; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); color: var(--sumi-ink); transition: all .2s ease; }
.socials a:hover { background: var(--shu); border-color: var(--shu); color: #fff; transform: translateY(-2px); }
footer.site .sig { writing-mode: vertical-rl; font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; letter-spacing: .25em; color: rgba(236,234,224,.14); line-height: 1; }
footer.site .fine { grid-column: 1 / -1; font-size: var(--s-xs); color: #8C93A8; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { footer.site > .wrap { grid-template-columns: 1fr 1fr; } footer.site .col-brand { grid-column: 1 / -1; } footer.site .sig { display: none; } }

.legal-table { width: 100%; border-collapse: collapse; font-size: var(--s-sm); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.legal-table th { width: 34%; color: var(--ink-soft); font-weight: 500; }
@media (max-width: 560px) { .legal-table th, .legal-table td { display: block; width: 100%; padding: 4px 0; } .legal-table th { padding-top: 14px; border: 0; } }

/* =========================================================
   Floating bits, modals
   ========================================================= */
.totop { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--shu); color: var(--shu-ink); font-size: 1.2rem; font-weight: 700; cursor: pointer; box-shadow: 0 12px 24px -10px rgba(0,0,0,.5); opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .25s ease; z-index: 40; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: var(--s-sm); opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 90; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(6,9,18,.9); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 2; }
.lb-stage { max-width: 96vw; max-height: 86vh; overflow: auto; }
.lb-stage img { display: block; max-width: 96vw; max-height: 86vh; cursor: zoom-in; border-radius: 3px; }
.lb-stage.zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: .78rem; }
.vm-frame { width: min(1100px, 96vw); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.vm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   WooCommerce
   ========================================================= */
.woo-wrap { padding-block: 44px 72px; }
.woocommerce-breadcrumb { font-size: var(--s-xs); color: var(--ink-soft); margin-bottom: 20px; }
.woocommerce-breadcrumb a { color: var(--ink-soft); }
.woocommerce ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 28px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; gap: 8px; }
.woocommerce ul.products li.product img { aspect-ratio: 3/4; object-fit: cover; border-radius: 2px 6px 6px 2px; box-shadow: 0 24px 30px -18px rgba(10,16,32,.7); margin: 0 0 10px !important; transition: transform .4s ease; }
.woocommerce ul.products li.product a:hover img { transform: translateY(-5px) rotate(-.6deg); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--f-display); font-size: 1.05rem !important; color: var(--ink); padding: 0 !important; }
.woocommerce ul.products li.product a { text-decoration: none; }
.woocommerce ul.products li.product .price { color: var(--ink) !important; font-family: var(--f-display); font-weight: 800; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) {
  background: var(--ai) !important; color: var(--ai-ink) !important; border-radius: var(--radius) !important; font-family: var(--f-body) !important; font-weight: 700 !important; padding: 11px 18px !important; border: 0 !important; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-checkout-place-order-button { background: var(--shu) !important; color: var(--shu-ink) !important; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 48px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { border-radius: 2px 6px 6px 2px; box-shadow: 0 30px 44px -22px rgba(10,16,32,.7); }
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink) !important; font-family: var(--f-display); font-size: 1.7rem !important; font-weight: 800; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--paper-2) !important; border-color: var(--line) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--card) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--ink) !important; }
.woocommerce div.product form.cart .quantity { display: none; }
.woocommerce div.product form.cart .button { padding: 14px 28px !important; font-size: 1rem !important; background: var(--shu) !important; color: var(--shu-ink) !important; }
@media (max-width: 760px) { .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; } }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--card) !important; color: var(--ink) !important; border-top-color: var(--shu) !important; }
.woocommerce .onsale { background: var(--shu) !important; }
.mz-ja-desc { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--s-sm); }
.woocommerce-result-count, .woocommerce-ordering { font-size: var(--s-xs); color: var(--ink-soft); margin-bottom: 20px !important; }
.woocommerce-ordering select { font: inherit; padding: 6px 8px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); }

/* Google Translate: hide its toolbar */
body { top: 0 !important; }
.skiptranslate iframe, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
#google_translate_element { display: none; }
font { background: none !important; box-shadow: none !important; }

/* misc */
.empty { padding: 32px; border: 1px dashed var(--line); border-radius: 8px; color: var(--ink-soft); text-align: center; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }

/* print */
@media print {
  .ticker, header.site, footer.site, .share, .tools, .mtnote, .postnav, .related, .totop, .progress, .crumbs, .source a { display: none !important; }
  body { background: #fff; color: #000; }
  .article { max-width: none; padding: 0; }
  .entry { font-size: 12pt; }
}
