/* kittakasan.com / Stories（build_stories.py がこのファイルを website/stories/ に写す。直すのはこちら） */
:root {
  color-scheme: dark;
  --bg: #08080c;
  --ink: #f5f3f7;
  --ink-2: #b9b4c4;
  --ink-3: #7d7889;
  --line: rgba(255, 255, 255, .10);
  --pink: #ff3d81;
  --amber: #ffb547;
  --grad: linear-gradient(100deg, var(--pink) 0%, #ff7a5c 45%, var(--amber) 100%);
  --display: "Unbounded", "Zen Kaku Gothic New", system-ui, sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;
  --story: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--body);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* 読んでいる途中の題名（題名が画面の上へ抜けたら、ナビの下に細い帯で出す・2026-11-23 本人） */
.st-nav { flex-wrap: wrap; }
.st-now { flex-basis: 100%; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s, opacity .3s, padding .3s; }
.st-now span { display: block; font-family: var(--story); font-weight: 600; font-size: 14px; letter-spacing: .06em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.st-now rt { font-size: .5em; }
.is-reading .st-now { max-height: 40px; opacity: 1; padding-top: 8px; }
.is-reading .st-nav { background: rgba(8, 8, 12, .92); border-bottom: 1px solid var(--line); }

/* 背景：トップと同じ淡い光を右上に */
.st-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70vmax 70vmax at 110% -10%, rgba(255, 90, 110, .16) 0%, rgba(255, 61, 129, .05) 35%, transparent 60%); }

/* ナビ（ロゴ字はトップと同じ＝K の斜めの一本とドットが #FF8A3D） */
.st-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); background: linear-gradient(to bottom, rgba(8, 8, 12, .9), rgba(8, 8, 12, 0)); backdrop-filter: blur(6px); }
.st-logo { font-family: var(--display); font-weight: 300; font-size: 17px; letter-spacing: .03em; }
.st-logo .k1 {
  background: linear-gradient(129.7deg, transparent .52em, #ff8a3d .52em, #ff8a3d .627em, transparent .627em) .185em 0 / 2em 100% no-repeat, var(--ink);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.st-logo .dot { color: #ff8a3d; }
.st-navlink { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.st-navlink:hover { color: var(--ink); }

.st-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 64px; }
.st-read { max-width: 680px; }

/* 見出し */
.st-head { margin-bottom: 48px; }
.st-eyebrow { margin: 0 0 14px; font-family: "Jost", var(--body); font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.st-title { margin: 0; font-family: var(--story); font-weight: 600; font-size: clamp(26px, 5vw, 38px); line-height: 1.45; letter-spacing: .04em; }
.st-big { font-family: var(--display); font-weight: 300; font-size: clamp(36px, 8vw, 64px); letter-spacing: .02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-lead { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }
.st-meta { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.st-head::after { content: ""; display: block; width: 56px; height: 1px; margin-top: 28px; background: var(--grad); }
.st-draft, .st-badge { display: inline-block; padding: 2px 10px; border: 1px solid var(--amber); border-radius: 999px; color: var(--amber); font-size: 11px; letter-spacing: .08em; }
.st-draft { margin: 0 0 14px; }
.st-badge { margin-left: 10px; vertical-align: 3px; }

/* 本文 */
.st-body { font-family: var(--story); font-size: clamp(16px, 2.4vw, 17.5px); line-height: 2.05; letter-spacing: .05em; color: #ece8f0; }
.st-body p { margin: 0; text-indent: 1em; }
.st-body p.ni { text-indent: 0; }
.st-body p.gap { height: 2.05em; }
.st-body hr.scene { border: 0; margin: 2.6em 0; text-align: center; height: auto; }
.st-body hr.scene::before { content: "◇"; color: var(--ink-3); font-size: 13px; letter-spacing: 0; }
.st-body rt { font-size: .5em; letter-spacing: 0; color: var(--ink-2); }
.st-body em.bouten { font-style: normal; text-emphasis: filled sesame; -webkit-text-emphasis: filled sesame; text-emphasis-position: over right; }
/* 扉絵（2026-11-30 本人「物語ページの頭」）＝題名を兼ねる絵。題名の字（h1）は読み上げ・検索用に残して見た目は隠す */
.st-tobira { margin: 4px 0 0; }
.st-tobira img { width: 100%; height: auto; box-shadow: 0 12px 44px rgba(0, 0, 0, .6); }
.st-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 節の頭の挿絵（2026-11-30 本人「ラノベみたいに…各節の印象的な1シーンを1枚絵で」）＝16:9 の場面の 1 枚絵を本文の幅で。区切り（◇）の代わりに出す */
.st-body figure.st-cut { width: 100%; margin: 3.2em 0 2.8em; }
.st-body figure.st-cut:first-child { margin-top: .6em; }
.st-cut img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 14px 44px rgba(0, 0, 0, .6); }
/* 節の番号（2026-12-01 本人「節の頭の漢数字の一とか二とかは残しておこうか」＝コメント欄から来た人が続きの節を見つけやすく）。#s1・#s2… で飛べる */
.st-body h2.st-no { margin: 2.8em 0 1.3em; text-align: left;  /* 2026-12-01 本人「漢数字も左寄せに」 */ font-family: var(--story); font-weight: 400; font-size: 16px; line-height: 1.6; letter-spacing: 0; color: var(--ink-2); scroll-margin-top: 80px; }
.st-body h2.st-no:first-child { margin-top: 0; }
.st-body figure.st-cut + h2.st-no { margin-top: 0; }
.st-end { margin: 3.2em 0 0; text-align: center; font-family: var(--story); color: var(--ink-3); letter-spacing: .3em; font-size: 13px; }
.st-end span { display: inline-block; white-space: nowrap; }
.st-end .fin { margin-left: 1.4em; font-size: 12px; letter-spacing: .34em; }

/* この話の曲 */
.st-song { display: flex; align-items: center; gap: 16px; margin: 48px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .03); transition: border-color .2s, background .2s; }
.st-song + .st-song { margin-top: 12px; }
.st-song:hover { border-color: rgba(255, 138, 61, .6); background: rgba(255, 255, 255, .05); }
.st-song img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; }
.st-song small { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .08em; }
.st-song b { font-weight: 500; }

/* つながる話（links に書いた話＋同じ曲の話） */
.st-rel { margin: 56px 0 0; }
.st-rel h2 { margin: 0 0 14px; font-family: "Jost", var(--body); font-weight: 400; font-size: 12px; letter-spacing: .22em; color: var(--ink-3); }
.st-rel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.st-rel a { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.st-rel a:hover { border-color: rgba(255, 255, 255, .3); }
.st-rel img, .st-rel .st-noimg { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; }
.st-rel b { display: block; font-family: var(--story); font-weight: 600; font-size: 15px; line-height: 1.5; }
.st-rel small { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.st-noimg { display: block; background: linear-gradient(135deg, rgba(255, 61, 129, .35), rgba(255, 181, 71, .25)); }
.st-back { margin: 40px 0 0; text-align: center; font-size: 13px; }
.st-back a { color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.st-back a:hover { color: var(--ink); }

/* 一覧（新しい順・曲のジャケット付き） */
.st-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.st-list li { border-bottom: 1px solid var(--line); }
.st-list a { display: flex; gap: 20px; align-items: flex-start; padding: 22px 4px; transition: background .2s; }
.st-list a:hover { background: rgba(255, 255, 255, .03); }
.st-list img, .st-list .st-noimg { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; }
.st-item { display: flex; flex-direction: column; min-width: 0; }
.st-list time { font-family: "Jost", var(--body); font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }
.st-name { font-family: var(--story); font-size: 19px; font-weight: 600; letter-spacing: .04em; line-height: 1.5; }
.st-sum { margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }
.st-songs { margin-top: 6px; font-size: 12px; color: #ff8a3d; }
.st-empty { color: var(--ink-3); font-family: "Jost", var(--body); letter-spacing: .1em; }

.st-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px var(--gutter) 34px; border-top: 1px solid var(--line);
  font-family: var(--display); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }

@media (max-width: 560px) {
  .st-logo { font-size: 15px; }
  .st-main { padding-top: 28px; }
  .st-list a { gap: 14px; }
  .st-list img, .st-list .st-noimg { width: 64px; height: 64px; }
  .st-name { font-size: 17px; }
  .st-foot { justify-content: center; }
}

/* ===== 上の帯をトップと同じに（2026-12-01 本人「STORIES画面でも上のタブみたいなやつトップと同じように表示残しておいて」） =====
   News・Works・Stories・Artists・Follow・言語の切り替え。字の形・大きさ・色はトップの .nav-links と同じ。スマホの隠し方もトップと同じ
   （560px 以下＝News と Follow を隠す・350px 以下＝Works も隠す・420px 以下＝言語は地球のマークだけ） */
.st-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.st-links > a { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: color .2s; }
.st-links > a:hover, .st-links > a[aria-current] { color: var(--ink); }
.st-now { order: 3; }
@media (max-width: 560px) {
  .st-nav { padding-top: 12px; padding-bottom: 12px; }
  .st-links { gap: 12px; }
  .st-links > a { font-size: 11px; letter-spacing: .04em; }
  .st-links > a:nth-child(1), .st-links > a[href="../#follow"] { display: none; }
}
@media (max-width: 350px) { .st-links > a:nth-child(2) { display: none; } }

/* 言語の切り替え（トップと同じ形） */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); transition: color .2s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); }
.lang-menu summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; flex: none; }
.lang-menu ul { position: absolute; right: -8px; top: calc(100% + 14px); z-index: 20; margin: 0; padding: 6px; list-style: none; min-width: 156px;
  border-radius: 14px; background: rgba(14, 14, 20, .96); border: 1px solid var(--line); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .85); }
.lang-menu li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 9px;
  font-family: var(--body); font-size: 13.5px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); }
.lang-menu li a:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.lang-menu li a[aria-current="page"] { color: var(--ink); }
.lang-menu li a[aria-current="page"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@media (max-width: 420px) { .lang-menu summary span { display: none; } }

/* ===== 外国語の Stories（2026-12-01 本人「STORIESの多言語訳にも対応して。必ず先頭に機械翻訳です。って注意書きを入れておいて」） ===== */
/* 先頭の「機械翻訳です」：目に入るが本文の邪魔をしない（橙のふち・小さめ） */
.st-mt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 22px; padding: 11px 16px; border-radius: 12px;
  border: 1px solid rgba(255, 138, 61, .55); background: rgba(255, 138, 61, .08); font-size: 13px; line-height: 1.6; color: var(--ink); }
.st-mt a { color: #ff8a3d; border-bottom: 1px solid rgba(255, 138, 61, .5); white-space: nowrap; }
.st-mt a:hover { color: var(--ink); border-color: var(--ink); }
.st-titlesub { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; letter-spacing: .02em; }
.st-songsub { margin-top: 2px; }
/* 字：英・西＝Noto Serif、韓＝Noto Serif KR、繁＝TC、簡＝SC（外国語のページの <head> にだけ読み込みがある） */
html[lang="en"], html[lang="es"] { --story: "Noto Serif", Georgia, serif; }
html[lang="ko"] { --story: "Noto Serif KR", serif; --body: "Noto Sans KR", "Zen Kaku Gothic New", system-ui, sans-serif; }
html[lang="zh-Hant"] { --story: "Noto Serif TC", serif; --body: "Noto Sans TC", "Zen Kaku Gothic New", system-ui, sans-serif; }
html[lang="zh-Hans"] { --story: "Noto Serif SC", serif; --body: "Noto Sans SC", "Zen Kaku Gothic New", system-ui, sans-serif; }
/* 本文：英・西・韓は字下げなし＋段落の間を空ける（横書きの欧文の習い）。中は 2 字下げ。題（日本語）は明朝のまま */
html[lang="en"] .st-body, html[lang="es"] .st-body { letter-spacing: .005em; line-height: 1.85; }
html[lang="en"] .st-body p, html[lang="es"] .st-body p, html[lang="ko"] .st-body p { text-indent: 0; margin: 0 0 1.05em; }
html[lang="ko"] .st-body { letter-spacing: 0; line-height: 1.95; word-break: keep-all; }
html[lang="zh-Hant"] .st-body p, html[lang="zh-Hans"] .st-body p { text-indent: 2em; }
html[lang="zh-Hant"] .st-body p.ni, html[lang="zh-Hans"] .st-body p.ni { text-indent: 0; }
html[lang="en"] .st-body em.bouten, html[lang="es"] .st-body em.bouten { text-emphasis: none; -webkit-text-emphasis: none; font-style: italic; }
html:not([lang="ja"]) .st-title, html:not([lang="ja"]) .st-name, html:not([lang="ja"]) .st-end span:first-child, html:not([lang="ja"]) .st-now span,
html:not([lang="ja"]) .st-rel b { font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif; }
/* トップと同じ詰め方（400px 以下は詰める・370px 以下は Works を隠す）。帯の中でリンクは右に寄せ、ロゴとの間は 10px を保つ */
.st-nav { column-gap: 10px; }
.st-links { margin-left: auto; }
@media (max-width: 400px) { .st-links { gap: 9px; } .st-links > a { letter-spacing: .02em; } }
@media (max-width: 370px) { .st-links > a:nth-child(2) { display: none; } }
/* 外国語のページの題（扉絵の字は日本語なので、訳した題を扉絵の下に題として見せる・2026-12-01 本人「翻訳言語に置き換えて」） */
.st-titlesub { margin: 18px 0 0; font-family: var(--story); font-weight: 600; font-size: clamp(22px, 4vw, 30px); line-height: 1.4; letter-spacing: .01em; color: var(--ink); }

/* 一覧の絵＝物語の扉絵（横長）（2026-12-01） */
.st-list img.is-wide { width: 128px; height: 72px; }
@media (max-width: 560px) { .st-list img.is-wide { width: 96px; height: 54px; } }
