/* 作品ごとのページの見た目（style.css のあとに読む）。
   作品ごとの色は <body class="work-page work-page--○○"> の○○で変える。新しい作品は下に1行足す */
.work-page { --work-accent: var(--shu-on-night); --mood-1: var(--night-2); --mood-2: var(--night); }
.work-page--steam { --work-accent: #d39a5c; --mood-1: #3b2a1e; --mood-2: #0d0b0a; }   /* 真鍮と煤 */
.work-page--liminal { --work-accent: #a9bfd6; --mood-1: #262c37; --mood-2: #0b0c10; } /* 夢と現の境目 */

/* ── 一番上（作品の色で染めた帯） ───────────────────────── */
.work-hero {
  position: relative; overflow: hidden;
  padding: clamp(20px, 3vw, 32px) 0 clamp(56px, 8vw, 104px);
  background: radial-gradient(110% 90% at 22% 30%, var(--mood-1), var(--mood-2) 72%);
  color: var(--night-ink);
}
.work-hero::before { /* 作品の色の斜線（ロゴの切り傷と同じ向き） */
  content: ""; position: absolute; top: -30%; right: -12%; width: 55%; height: 160%;
  background: repeating-linear-gradient(118deg, transparent 0 28px, color-mix(in srgb, var(--work-accent) 16%, transparent) 28px 29px, transparent 29px 76px);
  pointer-events: none;
}
.work-hero .wrap { position: relative; }
.work-hero .sample-tag { position: static; display: inline-block; margin: 0 0 12px; } /* 右上はメニューの場所なので、左に置く */
.crumbs { margin: 0; font-size: .8rem; letter-spacing: .08em; color: var(--night-soft); }
.crumbs a { text-decoration: none; border-bottom: 1px solid rgba(239, 233, 220, .3); }
.crumbs a:hover { color: var(--night-ink); border-color: var(--night-ink); }
.crumbs span[aria-hidden] { margin: 0 .6em; }

.work-hero-inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(20px, 3vw, 36px);
}
.kv {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; container-type: inline-size;
  background: linear-gradient(165deg, var(--mood-1), #050506 78%);
  outline: 1px solid rgba(239, 233, 220, .16);
  box-shadow: 14px 14px 0 rgba(0, 0, 0, .55);
}
.kv::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(118deg, transparent 0 34px, color-mix(in srgb, var(--work-accent) 55%, transparent) 34px 36px, transparent 36px 98px);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 60%);
          mask-image: linear-gradient(200deg, #000 0%, transparent 60%);
}
.kv .cover-title { font-size: 13cqw; }
.kv .cover-title--long { font-size: 9cqw; }

.work-hero .work-status { color: var(--work-accent); border-color: var(--work-accent); }
.work-hero h1 {
  margin: 14px 0 18px;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.6rem); letter-spacing: .06em; line-height: 1.2;
}
.work-hero-catch {
  margin: 0 0 28px; padding-left: 14px; border-left: 2px solid var(--work-accent);
  font-size: clamp(1rem, .9rem + .5vw, 1.25rem);
}
.spec--hero { margin: 0 0 32px; border-color: rgba(239, 233, 220, .55); }
.spec--hero div { border-right-color: rgba(239, 233, 220, .18); }
.spec--hero dt { color: var(--night-soft); }
.spec--hero dd { font-size: 1.25rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px;
  border: 2px solid currentColor; text-decoration: none;
  font-size: .92rem; font-weight: 700; letter-spacing: .08em;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn::after { content: "→"; transition: transform .25s var(--ease); }
.btn:hover::after, .btn:focus-visible::after { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--night-ink); border-color: var(--night-ink); color: var(--night); }
.btn--solid:hover { background: transparent; color: var(--night-ink); }
.btn--ghost { border-color: rgba(239, 233, 220, .45); color: var(--night-ink); }
.btn--ghost:hover { border-color: var(--night-ink); background: rgba(239, 233, 220, .08); }

/* ── 各節 ───────────────────────────────────────── */
.work-sec { padding-top: clamp(64px, 9vw, 112px); }
.work-sec--last { padding-bottom: clamp(64px, 9vw, 120px); }
.placeholder { color: var(--ink-soft); } /* まだ中身が無い所（作者に書いてもらう所） */
.work-hero .placeholder { color: var(--night-soft); }

/* あらすじ */
.story { max-width: 38em; font-size: clamp(1rem, .95rem + .3vw, 1.12rem); line-height: 2.1; }
.story p { margin: 0 0 1.2em; }
.story p:first-child { display: flow-root; } /* 大きな頭文字が次の段落に食い込まないように */
.story p:first-child::first-letter {
  float: left; margin: .1em .14em 0 0;
  font-family: var(--font-head); font-weight: 800; font-size: 3.1em; line-height: 1; color: var(--shu);
}

/* 基本情報 */
.info-table {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  column-gap: clamp(24px, 4vw, 48px); margin: 0;
}
.info-table div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.info-table dt { flex: none; font-size: .8rem; letter-spacing: .14em; color: var(--ink-soft); }
.info-table dd { margin: 0; font-weight: 700; text-align: right; }
.info-table .info-long { flex-direction: column; gap: 4px; grid-column: 1 / -1; } /* 内容物など長い行は横いっぱいに */
.info-table .info-long dd { text-align: left; font-weight: 500; }

/* 登場人物 */
.chars {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: clamp(24px, 3vw, 36px) clamp(16px, 2.5vw, 28px);
}
.char-portrait { /* 立ち絵が来るまでの影 */
  position: relative; overflow: hidden; aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 50% 38%, #3b3833 0 13%, transparent 13.5%),
    radial-gradient(ellipse 40% 24% at 50% 100%, #3b3833 0 97%, transparent 100%),
    linear-gradient(180deg, #25231f, #121110);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.chars li:hover .char-portrait { transform: translateY(-4px); box-shadow: 0 10px 0 -2px var(--shu); }
.char-portrait .cover-note { color: var(--night-ink); left: 10px; bottom: 10px; font-size: .66rem; }
.char-name { margin: 14px 0 2px; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.char-line { margin: 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.7; }
.sec-note { margin: 24px 0 0; font-size: .82rem; color: var(--ink-soft); }

/* 遊ぶ前に */
.notes-list { list-style: none; counter-reset: note; margin: 0; padding: 0; }
.notes-list li { counter-increment: note; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.notes-list li:first-child { padding-top: 4px; }
.notes-list li::before { content: counter(note, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--shu); }
.notes-list h3 { margin: 0 0 4px; font-size: 1.05rem; }
.notes-list p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* 手に入れる・遊ぶ */
.get-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 2vw, 24px);
}
.get-list a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px;
  border: 1.5px solid var(--ink); background: var(--paper); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.get-list a:hover, .get-list a:focus-visible { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.get-list a::after { content: "→"; margin-top: auto; padding-top: 12px; align-self: flex-end; color: var(--shu); transition: transform .25s var(--ease); }
.get-list a:hover::after { transform: translateX(5px); }
.get-kind { font-size: .72rem; font-weight: 700; letter-spacing: .24em; color: var(--shu); }
.get-name { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.get-sub { font-size: .86rem; color: var(--ink-soft); }

/* ほかの作品 */
.other-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.other-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, background-color .25s; }
.other-list a:hover, .other-list a:focus-visible { border-color: var(--ink); background: color-mix(in srgb, var(--paper-deep) 60%, transparent); }
.other-thumb { aspect-ratio: 3 / 4; background: linear-gradient(160deg, #2c2f37, var(--night) 70%); }
.other-thumb--steam { background: linear-gradient(160deg, #3b2a1e, var(--night) 70%); }
.other-title { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.other-sub { display: block; font-size: .8rem; color: var(--ink-soft); }
.back-link { display: inline-flex; gap: 8px; margin-top: 28px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.back-link::before { content: "←"; color: var(--shu); transition: transform .25s var(--ease); }
.back-link:hover::before { transform: translateX(-4px); }

@media (max-width: 760px) {
  .work-hero-inner { grid-template-columns: 1fr; }
  .kv { width: min(100%, 420px); }
  .chars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
