/* kittakasan.com トップの Stories の節（#stories）とナビ。build_stories.py が website/stories/top.css に写す。直すのはこちら */
.sx { padding: clamp(70px, 9vw, 120px) var(--gutter) 20px; max-width: 1280px; margin: 0 auto; }
.sx-all {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); font-size: 13px; letter-spacing: .06em; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.sx-all:hover { background: var(--ink); color: #111; border-color: var(--ink); }

/* 新しい話（大きく1つ）：ふちはグラデ、左に曲のジャケット */
.sx-lead {
  position: relative; display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: center;
  padding: clamp(18px, 2.4vw, 28px); border-radius: 22px;
  background: linear-gradient(160deg, rgba(22, 22, 30, .94), rgba(12, 12, 18, .92)) padding-box, var(--grad) border-box;
  border: 1px solid transparent; transition: transform .3s, box-shadow .3s;
}
.sx-lead:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -26px rgba(255, 80, 110, .55); }
.sx-art { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #0d0d12; }
.sx-art img, .sx-art .st-noimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-noimg { background: linear-gradient(135deg, rgba(255, 61, 129, .35), rgba(255, 181, 71, .25)); }
.sx-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sx-eyebrow { font-family: "Jost", var(--body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #ff8a3d; }
.sx-title { font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif; font-weight: 600; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.4; letter-spacing: .04em; }
.sx-sum { color: var(--ink); font-size: 15px; }
.sx-ex { font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif; color: var(--ink-2); font-size: 14.5px; line-height: 1.9; }
.sx-song { font-size: 12.5px; color: var(--ink-3); }
.sx-read {
  align-self: flex-start; display: inline-flex; gap: 8px; margin-top: 6px; padding: 10px 22px; border-radius: 999px;
  background: var(--grad); color: #1a0710; font-weight: 700; font-size: 14px; letter-spacing: .08em;
}
.sx-lead rt { font-size: .5em; }

/* その次の2つ */
.sx-more { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.sx-mini { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(16, 16, 22, .8); transition: border-color .2s; }
.sx-mini:hover { border-color: rgba(255, 180, 140, .45); }
.sx-mini img, .sx-mini .st-noimg { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.sx-mini span { display: flex; flex-direction: column; min-width: 0; }
.sx-mini small { font-family: "Jost", var(--body); font-size: 11.5px; color: var(--ink-3); letter-spacing: .08em; }
.sx-mini b { font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif; font-weight: 600; font-size: 16px; line-height: 1.5; }
.sx-mini .sx-song { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 560px) {
  .nav-links a[href="#follow"] { display: none; } /* スマホは Follow を外して Stories を出す（2026-11-23 本人） */
  .sx-lead { grid-template-columns: 1fr; }
  .sx-art { max-width: 220px; }
  .sx-more { grid-template-columns: 1fr; }
}

/* 物語の絵＝扉絵（横長）にした（2026-12-01 本人「STORIESもジャケットと同じ画像だからわかりにくい」）：絵の枠を横長に */
.sx-lead.is-wide { grid-template-columns: minmax(220px, min(44%, 460px)) minmax(0, 1fr); }
.sx-lead.is-wide .sx-title { text-wrap: balance; }
.sx-lead.is-wide .sx-art { aspect-ratio: 16 / 9; border-radius: 10px; }
.sx-mini img.is-wide { width: 96px; height: 54px; }
@media (max-width: 560px) { .sx-lead.is-wide { grid-template-columns: 1fr; } .sx-lead.is-wide .sx-art { max-width: none; } }

/* ===== 箱の中の「すべての話」（2026-12-01 本人「ストーリーズも同じようにすべての話を見るボタンを目立つようにして箱の中に配置したい」） =====
   箱（.sx-lead）は入れ物。「読む」のリンクを箱いっぱいに広げて（::after）箱のどこを押しても話へ。「すべての話」はその上（z-index）。
   並び：左＝絵（2 行ぶん）／右＝説明と「読む」→ 線 →「すべての話」（Works の箱の 前の曲・次の曲・すべての曲を見る と同じ形） */
.sx-lead { grid-template-rows: 1fr auto auto 1fr; row-gap: 0; }
.sx-lead > .sx-art { grid-column: 1; grid-row: 1 / -1; align-self: center; }
.sx-lead > .sx-text { grid-column: 2; grid-row: 2; }
.sx-lead > .sx-foot { grid-column: 2; grid-row: 3; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.sx-read { position: static; }
.sx-read::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.sx-lead:focus-within { box-shadow: 0 0 0 2px rgba(255, 181, 71, .55); }
.sx-read:focus-visible { outline: none; }
.sx-foot { position: relative; z-index: 2; }
.sx-all {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px 11px 16px; border-radius: 999px; border: 1.5px solid transparent;
  background: linear-gradient(rgba(14, 14, 20, .92), rgba(14, 14, 20, .92)) padding-box, var(--grad) border-box;
  box-shadow: 0 10px 34px -14px rgba(255, 90, 110, .75);
  font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: .06em; color: var(--ink); white-space: nowrap;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.sx-all:hover { background: var(--grad) padding-box, var(--grad) border-box; color: #1a0710; border-color: transparent; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 90, 110, .9); }
.sx-all:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sx-all svg { width: 18px; height: 18px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sx-all:hover svg { stroke: currentColor; }
@media (max-width: 560px) {
  .sx-lead { grid-template-rows: auto auto auto; }
  .sx-lead > .sx-art { grid-row: 1; }
  .sx-lead > .sx-text { grid-column: 1; grid-row: 2; }
  .sx-lead > .sx-foot { grid-column: 1; grid-row: 3; margin-top: 6px; }
}
