/* 茶想 — サイト共通スタイル（夜灯） */

:root {
  --bg: #0E0D0B;
  --surface: #151310;
  --panel: #12100E;
  --text: #EDE7DB;
  --text-2: #C9C2B5;
  --muted: #A69F92;
  --line: rgba(237, 231, 219, .12);
  --line-soft: rgba(237, 231, 219, .08);
  --accent: #D4A35A;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
  --latin: 'Bodoni Moda', Didot, 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, .8, .2, 1);
  --gutter: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.7;
  word-break: auto-phrase; /* 日本語を文節の切れ目で改行する（対応ブラウザのみ） */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, blockquote { margin: 0; }
ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.it { font-family: var(--latin); font-style: italic; font-weight: 400; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.label { font-size: 15px; letter-spacing: .3em; color: var(--muted); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
main { position: relative; z-index: 2; display: block; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  padding: 12px 20px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 14px; letter-spacing: .1em; transition: top .3s;
}
.skip:focus { top: 16px; }

/* ---------- 読書灯 — 頭上に静かに灯るランプ ---------- */
.lamp {
  --lx: 34%;
  position: fixed; top: 0; left: 0; right: 0; height: 1100px;
  pointer-events: none; z-index: 1;
  animation: lamp-on 3s ease-out .3s both;
}
html.lit .lamp { animation: lamp-fade 1.4s ease .1s both; }
.lamp--center { --lx: 50%; }
@keyframes lamp-on { 0% { opacity: 0 } 6% { opacity: .5 } 10% { opacity: .16 } 17% { opacity: .72 } 23% { opacity: .48 } 100% { opacity: 1 } }
@keyframes lamp-fade { from { opacity: 0 } to { opacity: 1 } }
.lamp__pool {
  position: absolute; left: calc(var(--lx) - 720px); top: -280px; width: 1440px; height: 1200px;
  background: radial-gradient(ellipse 50% 50% at 50% 42%,
    color-mix(in oklab, var(--accent) 17%, transparent) 0%,
    color-mix(in oklab, var(--accent) 8%, transparent) 36%,
    transparent 70%);
}
.lamp__cone { position: absolute; left: calc(var(--lx) - 520px); top: -40px; width: 1040px; height: 980px; filter: blur(30px); }
.lamp__cone i {
  position: absolute; inset: 0;
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--accent) 15%, transparent),
    color-mix(in oklab, var(--accent) 4%, transparent) 58%,
    transparent 92%);
}
.lamp__src {
  position: absolute; left: calc(var(--lx) - 170px); top: -128px; width: 340px; height: 210px; border-radius: 50%;
  background: radial-gradient(ellipse at center,
    color-mix(in oklab, var(--accent) 50%, #FFF3DC) 0%,
    color-mix(in oklab, var(--accent) 20%, transparent) 32%,
    transparent 70%);
  filter: blur(6px);
}
.mote {
  position: absolute; left: calc(var(--lx) + var(--mx, 0px)); top: var(--my, 300px);
  width: var(--ms, 3px); height: var(--ms, 3px); border-radius: 50%;
  background: #F3DDB4; opacity: 0;
  animation: drift 26s linear infinite;
}
@keyframes drift {
  0% { transform: translate(0, 0); opacity: 0 }
  15% { opacity: .5 }
  50% { transform: translate(18px, -64px); opacity: .32 }
  85% { opacity: .42 }
  100% { transform: translate(-12px, -136px); opacity: 0 }
}
.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; opacity: .055; }

/* ---------- 動き ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: none } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.rise { animation: rise 1.4s var(--ease-out) var(--d, 0s) both; }
.fade { animation: fade 2.2s ease var(--d, 0s) both; }
html.lit .rise, html.lit .fade { animation-delay: calc(var(--d, 0s) - .8s); }

/* ---------- ヘッダー ---------- */
.header { position: sticky; top: 0; z-index: 50; transition: transform .6s var(--ease), background-color .5s, border-color .5s; border-bottom: 1px solid transparent; }
.header__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 30px; padding-bottom: 30px; transition: padding .5s var(--ease); }
.header.is-scrolled { background: rgba(14, 13, 11, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.header.is-scrolled .header__inner { padding-top: 12px; padding-bottom: 12px; }
.header.is-hidden { transform: translateY(-100%); }
.logo { display: flex; align-items: baseline; gap: 16px; min-height: 44px; padding-top: 6px; }
.logo__jp { font-size: 23px; font-weight: 600; letter-spacing: .22em; }
.logo__en { font-size: 18px; color: var(--muted); }
.nav { display: flex; gap: 44px; align-items: center; }
.navlink { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; letter-spacing: .22em; color: var(--muted); transition: color .4s; }
.navlink::after { content: ""; position: absolute; left: 0; right: .22em; bottom: 9px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.navlink:hover, .navlink[aria-current="page"] { color: var(--text); }
.navlink:hover::after, .navlink[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menubtn { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 20px 0 18px; border: 1px solid rgba(237, 231, 219, .18); border-radius: 999px; font-size: 13px; letter-spacing: .28em; transition: border-color .5s, background-color .5s; }
.menubtn:hover { border-color: var(--accent); background: rgba(237, 231, 219, .04); }
.dot { display: block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 3px color-mix(in oklab, var(--accent) 60%, transparent); }
.menubtn .dot { animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }

/* ---------- トップの最新作 ---------- */
.hero { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: end; min-height: 760px; padding-top: 40px; padding-bottom: 96px; }
.hero--empty { grid-template-columns: 1fr; }
.hero__main { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 30px; }
.hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; font-size: 14px; letter-spacing: .2em; color: var(--muted); }
.hero__latest { font-size: 22px; letter-spacing: 0; }
.rule { display: block; width: 56px; height: 1px; background: rgba(237, 231, 219, .3); }
.hero__kind { font-size: 15px; letter-spacing: .3em; color: var(--muted); }
.hero__title { font-size: 112px; font-weight: 500; letter-spacing: .03em; line-height: 1.12; text-wrap: balance; }
.hero__title--m { font-size: 84px; }
.hero__title--s { font-size: 64px; line-height: 1.2; }
.hero__excerpt { max-width: 560px; font-size: 18px; line-height: 2.1; letter-spacing: .04em; color: var(--text-2); text-wrap: pretty; }
.hero__deco { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.numeral { font-size: 400px; line-height: .8; color: transparent; -webkit-text-stroke: 1px color-mix(in oklab, var(--accent) 55%, transparent); letter-spacing: -.04em; user-select: none; }
.hero__cap { font-size: 18px; letter-spacing: .08em; }

.cta { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; align-self: flex-start; font-size: 15px; letter-spacing: .3em; }
.cta__circ { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--accent) 70%, transparent); transition: background-color .6s, border-color .6s, transform .8s var(--ease), color .6s; }
.cta__circ svg { transition: transform .7s var(--ease); }
.cta:hover .cta__circ { background: var(--accent); border-color: var(--accent); color: var(--bg); transform: scale(1.06); }
.cta:hover .cta__circ svg { transform: translateX(4px); }

/* ---------- セクション見出し ---------- */
.sec { position: relative; z-index: 2; padding-top: 150px; }
.sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 40px; }
.sechead__title { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.h2 { font-size: 96px; line-height: 1; letter-spacing: -.01em; }
.textlink { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 14px; letter-spacing: .2em; color: var(--muted); transition: color .4s; }
.textlink svg { transition: transform .7s var(--ease); }
.textlink:hover { color: var(--text); }
.textlink:hover svg { transform: translateX(6px); }
.listfoot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.listfoot--center { justify-content: center; margin-top: 56px; }
.listfoot .textlink { margin-left: auto; }

/* ---------- 絞り込み ---------- */
.tabs { display: flex; gap: 6px 24px; flex-wrap: wrap; }
html:not(.js) .tabs { display: none; }
.tab { position: relative; min-height: 44px; padding: 0 4px; font-size: 14px; letter-spacing: .2em; color: var(--muted); transition: color .35s; }
.tab::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .5s var(--ease); }
.tab:hover, .tab[aria-pressed="true"] { color: var(--text); }
.tab[aria-pressed="true"]::after { transform: scaleX(1); }

/* ---------- 投稿の一覧 ---------- */
.rows { border-bottom: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) 150px 44px; align-items: center; gap: 24px; min-height: 116px; padding: 18px 8px; border-top: 1px solid var(--line); transition: background-color .6s; }
.rows--kind .row { grid-template-columns: 72px 128px minmax(0, 1fr) 150px 44px; }
html.js .row.is-later { display: none; }
.row__num { font-size: 18px; color: var(--muted); transition: color .5s; }
.row__kind { font-size: 13px; letter-spacing: .24em; color: var(--muted); }
.row__main { min-width: 0; }
.row__title { display: block; font-size: 36px; font-weight: 500; letter-spacing: .05em; line-height: 1.4; transition: transform .8s var(--ease), color .5s; }
.row__sub { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .2em; color: var(--muted); transition: transform .8s var(--ease); }
.row__sub--m, .row__mkind, .row__mdate { display: none; }
.row__date { font-size: 16px; letter-spacing: .08em; color: var(--muted); text-align: right; }
.row__go { justify-self: end; color: var(--muted); transition: transform .7s var(--ease), color .5s; }
.row__thumb { position: absolute; right: 250px; top: 50%; width: 232px; height: 148px; border-radius: 2px; overflow: hidden; pointer-events: none; opacity: 0; transform: translateY(-46%) rotate(-3deg) scale(.94); transition: opacity .5s, transform .8s var(--ease); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); z-index: 3; background: #1C1915; }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.glow { position: absolute; inset: 0; background: radial-gradient(circle at var(--g, 60% 40%), color-mix(in oklab, var(--accent) 38%, transparent), transparent 62%); }
@media (hover: hover) {
  .row:hover { background: rgba(237, 231, 219, .028); }
  .row:hover .row__num { color: var(--accent); }
  .row:hover .row__title { transform: translateX(18px); color: var(--accent); }
  .row:hover .row__sub { transform: translateX(18px); }
  .row:hover .row__go { transform: translateX(6px); color: var(--text); }
  .row:hover .row__thumb { opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1); }
}

.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent); border-radius: 999px; font-size: 11px; letter-spacing: .22em; color: var(--accent); white-space: nowrap; vertical-align: middle; }
.badge--draft { margin-left: 14px; height: 22px; padding: 0 10px; border-style: dashed; font-size: 11px; letter-spacing: .16em; transform: translateY(-.2em); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 96px 0; text-align: center; color: var(--muted); font-size: 15px; letter-spacing: .2em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 3px color-mix(in oklab, var(--accent) 60%, transparent); }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 28px; border: 1px solid rgba(237, 231, 219, .22); border-radius: 999px; font-size: 14px; letter-spacing: .2em; transition: border-color .5s, background-color .5s, color .5s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--fill { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--fill:hover { background: color-mix(in oklab, var(--accent) 82%, #FFFFFF); color: var(--bg); }

/* ---------- 連載 ---------- */
.scards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 28px; }
.scard { position: relative; display: flex; flex-direction: column; gap: 30px; padding: 44px; background: var(--surface); border: 1px solid rgba(237, 231, 219, .1); border-radius: 3px; transition: border-color .6s, transform .8s var(--ease); }
.scard:hover { border-color: color-mix(in oklab, var(--accent) 50%, transparent); transform: translateY(-4px); }
.scard__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.scard__no { font-size: 20px; color: var(--accent); }
.scard__status { font-size: 13px; letter-spacing: .24em; color: var(--muted); }
.scard__title { font-size: 46px; font-weight: 500; letter-spacing: .05em; line-height: 1.25; }
.scard__title a { transition: color .5s; }
.scard__title a:hover { color: var(--accent); }
.segs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.seg { display: flex; flex-direction: column; gap: 12px; min-height: 44px; font-size: 14px; letter-spacing: .12em; color: var(--muted); transition: color .4s; }
.seg__bar { display: block; height: 2px; background: rgba(237, 231, 219, .18); transition: background-color .4s; }
.seg:hover { color: var(--text); }
.seg:hover .seg__bar { background: var(--text); }
.seg.is-latest { color: var(--text); }
.seg.is-latest .seg__bar { background: var(--accent); box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 70%, transparent); }

.chapsec { position: relative; z-index: 2; padding-top: 96px; }
.chapters { position: relative; border-top: 1px solid var(--line); }
.chapters::before { content: ""; position: absolute; left: 35px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, rgba(237, 231, 219, .18), rgba(237, 231, 219, .05)); }
.chap { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 44px; align-items: center; gap: 24px; min-height: 108px; padding: 20px 8px 20px 0; border-bottom: 1px solid var(--line-soft); transition: background-color .5s; }
.chap__dot { position: relative; z-index: 1; justify-self: center; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(237, 231, 219, .45); transition: border-color .5s; }
.chap.is-latest .chap__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px 4px color-mix(in oklab, var(--accent) 50%, transparent); }
.chap__main { min-width: 0; }
.chap__title { display: block; font-size: 30px; font-weight: 500; letter-spacing: .06em; line-height: 1.4; transition: transform .8s var(--ease), color .5s; }
.chap__meta { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .16em; color: var(--muted); }
.chap__go { justify-self: end; color: var(--muted); transition: transform .7s var(--ease); }
@media (hover: hover) {
  .chap:hover { background: rgba(237, 231, 219, .025); }
  .chap:hover .chap__title { transform: translateX(14px); color: var(--accent); }
  .chap:hover .chap__dot { border-color: var(--accent); }
  .chap:hover .chap__go { transform: translateX(6px); }
}

/* ---------- 各ページの見出し ---------- */
.phero { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; padding-top: 40px; padding-bottom: 72px; }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.crumb li { display: inline-flex; align-items: center; gap: 12px; }
.crumb li + li::before { content: ""; display: block; width: 18px; height: 1px; background: rgba(237, 231, 219, .3); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; transition: color .4s; }
.crumb a:hover { color: var(--text); }
.crumb [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
.phero__title { display: flex; align-items: baseline; gap: 12px 28px; flex-wrap: wrap; }
.ptitle { font-size: 120px; font-weight: 500; letter-spacing: .06em; line-height: 1.08; text-wrap: balance; }
.ptitle--s { font-size: 88px; }
.phero__en { font-size: 40px; }
.phero__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.phero__badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.phero__no { font-size: 22px; }
.phero__desc { max-width: 680px; font-size: 18px; line-height: 2.1; letter-spacing: .04em; color: var(--text-2); }
.phero__facts { display: flex; gap: 12px 28px; flex-wrap: wrap; }
.phero__actions { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; }
.listsec { position: relative; z-index: 2; }

/* ---------- 茶想について ---------- */
.about { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.about + .about { margin-top: 96px; padding-top: 72px; border-top: 1px solid var(--line); }
.about__label { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.about__en { font-size: 22px; }
.about__quote p { font-size: 40px; font-weight: 500; line-height: 1.95; letter-spacing: .06em; }
.about__writer { display: flex; flex-direction: column; gap: 26px; }
.about__name { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.about__jp { font-size: 44px; font-weight: 500; letter-spacing: .2em; }
.about__latin { font-size: 20px; }
.about__bio { max-width: 680px; font-size: 17px; line-height: 2.3; letter-spacing: .05em; color: var(--text-2); }

.aboutp { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 44px; padding-top: 96px; padding-bottom: 40px; text-align: center; }
.aboutp__head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.aboutp__en { font-size: 24px; }
.aboutp__quote { font-size: 52px; font-weight: 500; line-height: 1.95; letter-spacing: .08em; }
.orn { display: block; width: 56px; height: 1px; background: var(--accent); }
.writer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; padding-top: 72px; border-top: 1px solid var(--line); }
.writer__head { display: flex; flex-direction: column; gap: 10px; }
.writer__name { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.writer__jp { font-size: 64px; font-weight: 500; letter-spacing: .22em; line-height: 1.2; }
.writer__latin { font-size: 24px; }
.writer__bio { padding-top: 10px; font-size: 19px; line-height: 2.3; letter-spacing: .05em; color: var(--text-2); }
.subscribe { display: flex; justify-content: space-between; align-items: center; gap: 28px 32px; flex-wrap: wrap; padding: clamp(26px, 4vw, 48px); border: 1px solid rgba(237, 231, 219, .1); border-radius: 3px; background: var(--surface); }
.subscribe__text { display: flex; flex-direction: column; gap: 10px; }
.subscribe__title { font-size: 26px; font-weight: 500; letter-spacing: .08em; }
.subscribe__note { font-size: 14px; line-height: 1.9; letter-spacing: .06em; }

/* ---------- 404 ---------- */
.nf { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 32px; min-height: 60vh; padding-top: 120px; padding-bottom: 40px; text-align: center; }
.nf__num { font-size: 200px; line-height: .9; color: transparent; -webkit-text-stroke: 1px color-mix(in oklab, var(--accent) 60%, transparent); }
.nf__title { font-size: 24px; font-weight: 500; letter-spacing: .14em; line-height: 1.8; }

/* ---------- フッター ---------- */
.footer { position: relative; z-index: 2; margin-top: 180px; padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.giant { font-size: clamp(120px, 22vw, 320px); font-weight: 600; line-height: 1; letter-spacing: .06em; color: transparent; -webkit-text-stroke: 1px rgba(237, 231, 219, .16); user-select: none; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.footer__copy { font-size: 14px; letter-spacing: .16em; color: var(--muted); }
.footer__nav { display: flex; gap: 8px 32px; flex-wrap: wrap; }

/* ---------- メニュー ---------- */
html.menu-open { overflow: hidden; }
.menu { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; transition: visibility 0s linear .9s; }
.menu.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.menu__scrim { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(8, 7, 6, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .6s ease; cursor: pointer; }
.menu.is-open .menu__scrim { opacity: 1; }
.menu__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(580px, 100%); display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid rgba(237, 231, 219, .1); transform: translateX(100%); transition: transform .9s var(--ease-out); overflow-y: auto; overscroll-behavior: contain; }
.menu.is-open .menu__panel { transform: none; }
.pad { padding-left: 44px; padding-right: 44px; }
.menu__head { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 16px; }
.menu__title { font-size: 28px; }
.xbtn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(237, 231, 219, .18); transition: border-color .5s, transform .8s var(--ease); }
.xbtn:hover { border-color: var(--accent); transform: rotate(90deg); }
.menu__nav { display: flex; flex-direction: column; flex: 1; padding-top: 8px; padding-bottom: 8px; }
.mi { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: baseline; gap: 18px; min-height: 44px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.mi__n { font-size: 16px; color: var(--accent); }
.mi__jp { font-size: 36px; font-weight: 500; letter-spacing: .08em; transition: transform .7s var(--ease), color .4s; }
.mi__en { font-size: 17px; color: var(--muted); }
.mi::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.mi:hover .mi__jp { transform: translateX(12px); color: var(--accent); }
.mi:hover::after { transform: scaleX(1); }
.menu.is-open .mi { animation: rise 1.1s var(--ease-out) both; animation-delay: calc(.2s + var(--i) * .06s); }
.menu__foot { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; padding-bottom: 32px; }
.menu.is-open .menu__foot { animation: rise 1.1s var(--ease-out) .7s both; }
.menu__latest { display: flex; flex-direction: column; gap: 14px; }
.menu__cap { font-size: 12px; letter-spacing: .3em; color: var(--muted); }
.mlatest { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; min-height: 44px; }
.mlatest__thumb { position: relative; display: block; height: 72px; border-radius: 2px; overflow: hidden; background: #1C1915; }
.mlatest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mlatest__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mlatest__title { font-size: 20px; font-weight: 500; letter-spacing: .06em; line-height: 1.4; transition: color .4s; }
.mlatest:hover .mlatest__title { color: var(--accent); }
.mlatest__meta { font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.menu__links { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.menu__copy { font-size: 13px; letter-spacing: .16em; color: var(--muted); }

/* ---------- ページの切り替え（灯りが火種にまとまり、暗転してから次のページが浮かぶ） ---------- */
.curtain { position: fixed; inset: 0; z-index: 200; pointer-events: none; background: var(--bg); opacity: 0; visibility: hidden; }
.ember { position: absolute; left: 50%; top: 40%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 40px 14px color-mix(in oklab, var(--accent) 45%, transparent); opacity: 0; }
html.arrive .curtain { visibility: visible; animation: curtain-in 1.1s cubic-bezier(.65, 0, .35, 1) both; }
html.arrive .ember { animation: ember-in 1.1s ease both; }
html.leaving .curtain { visibility: visible; pointer-events: auto; animation: curtain-out .75s cubic-bezier(.65, 0, .35, 1) both; }
html.leaving .ember { animation: ember-out .75s ease both; }
@keyframes curtain-in { from { opacity: 1 } to { opacity: 0 } }
@keyframes curtain-out { from { opacity: 0 } to { opacity: 1 } }
@keyframes ember-in { 0% { opacity: 1; transform: scale(1) } 45% { opacity: .8 } 100% { opacity: 0; transform: scale(.2) } }
@keyframes ember-out { 0% { opacity: 0; transform: scale(7) } 55% { opacity: 1 } 100% { opacity: 1; transform: scale(1) } }

/* ---------- 画面幅に合わせた調整 ---------- */
@media (max-width: 1180px) {
  .hero__title { font-size: 88px; }
  .hero__title--m { font-size: 68px; }
  .hero__title--s { font-size: 52px; }
  .numeral { font-size: 300px; }
  .ptitle { font-size: 96px; }
}

@media (max-width: 860px) {
  :root { --gutter: 22px; }
  .header__inner { padding-top: 18px; padding-bottom: 18px; }
  .header.is-scrolled .header__inner { padding-top: 10px; padding-bottom: 10px; }
  .nav .navlink { display: none; }
  .lamp { --lx: 50%; height: 760px; }
  .lamp__pool { left: calc(var(--lx) - 460px); top: -240px; width: 920px; height: 820px; }
  .lamp__cone { left: calc(var(--lx) - 300px); width: 600px; height: 640px; filter: blur(22px); }
  .lamp__src { left: calc(var(--lx) - 120px); top: -100px; width: 240px; height: 160px; }

  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 72px; padding-bottom: 40px; }
  .hero__main { gap: 22px; }
  .hero__title { font-size: 50px; }
  .hero__title--m { font-size: 40px; }
  .hero__title--s { font-size: 32px; }
  .hero__deco { position: absolute; right: 16px; top: 0; z-index: 0; }
  .numeral { font-size: 200px; -webkit-text-stroke-color: color-mix(in oklab, var(--accent) 32%, transparent); }
  .hero__cap { display: none; }

  .sec { padding-top: 104px; }
  .h2 { font-size: 60px; }
  .sechead { gap: 16px; margin-bottom: 24px; }

  .row, .rows--kind .row { grid-template-columns: 30px minmax(0, 1fr) 24px; gap: 12px; min-height: 92px; padding: 18px 4px; }
  .row__kind, .row__date, .row__thumb { display: none; }
  .row__title { font-size: 22px; line-height: 1.45; }
  .row__sub { margin-top: 6px; font-size: 12px; letter-spacing: .14em; }
  .row__sub--m { display: block; }
  .row__mkind, .row__mdate { display: inline; }
  .badge--draft { margin-left: 10px; }

  .scard { padding: 28px 24px; gap: 22px; }
  .scard__title { font-size: 30px; }

  .chapsec { padding-top: 72px; }
  .chapters::before { left: 15px; }
  .chap { grid-template-columns: 32px minmax(0, 1fr) auto 20px; gap: 12px; min-height: 88px; padding: 16px 4px 16px 0; }
  .chap__title { font-size: 21px; }
  .chap__meta { font-size: 12px; }

  .phero { gap: 18px; padding-top: 28px; padding-bottom: 44px; }
  .ptitle { font-size: 56px; }
  .ptitle--s { font-size: 44px; }
  .phero__en { font-size: 30px; }
  .phero__desc { font-size: 16px; }
  .phero__actions { flex-direction: column; align-items: stretch; }

  .about { grid-template-columns: 1fr; gap: 18px; }
  .about + .about { margin-top: 64px; padding-top: 56px; }
  .about__label { padding-top: 0; }
  .about__quote p { font-size: 21px; line-height: 2; }
  .about__jp { font-size: 32px; }
  .about__bio { font-size: 15px; line-height: 2.2; }

  .aboutp { gap: 36px; padding-top: 72px; }
  .aboutp__quote { font-size: 24px; line-height: 2.05; }
  .writer { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; }
  .writer__jp { font-size: 40px; }
  .writer__latin { font-size: 20px; }
  .writer__bio { padding-top: 0; font-size: 15.5px; line-height: 2.2; }
  .subscribe .btn { width: 100%; }
  .subscribe__title { font-size: 22px; }

  .nf__num { font-size: 140px; }
  .nf__title { font-size: 19px; }

  .footer { margin-top: 120px; }
  .pad { padding-left: 24px; padding-right: 24px; }
  .mi { padding: 13px 0; }
  .mi__jp { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .mote { display: none; }
}
