/* Hallmark · genre: luxury（atmospheric） · macrostructure: Lobby（大きな特集1本＋部屋の扉＋棚） · theme: custom（A案「動画」の黒×深紅×金を継ぐ）
 * display: Noto Serif JP · body: Noto Sans JP · nav: N9 edge-aligned minimal · footer: Ft1 mast-headed
 * 公式画像: object-fit: contain のみ。角丸・フィルター・透明度・変形・重ね表示なし。ラベルと番号は画像の外。
 * pre-emit critique: P4 H4 E4 S4 R4 V4 */
:root {
  --c-bg: #0b0a0c;
  --c-bg-deep: #070608;
  --c-surface: #16131a;
  --c-frame: #131016;
  --c-line: rgba(201, 164, 92, 0.26);
  --c-line-soft: rgba(236, 230, 220, 0.1);
  --c-text: #ece6dc;
  --c-text-2: #b8ae9f;
  --c-text-3: #9a9185;
  --c-gold: #c9a45c;
  --c-gold-hi: #e3c788;
  --c-on-gold: #1a1206;
  --c-crimson: #9e1b32;
  --c-crimson-text: #e06a7c;
  --c-backdrop: #0b0a0c;
  --f-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; background: var(--c-bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip; background: var(--c-bg); color: var(--c-text);
  font-family: var(--f-sans); font-size: 15px; line-height: 1.75; letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; line-break: strict;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
a:hover { color: var(--c-gold-hi); }
:focus-visible { outline: 2px solid var(--c-gold-hi); outline-offset: 3px; }
main:focus { outline: none; }
html.js:not(.age-ok) main { visibility: hidden; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 50; padding: 10px 16px; background: var(--c-gold); color: var(--c-on-gold); font-weight: 700; }
.skip-link:focus { top: 8px; }

/* PR 表記と見出し */
.pr-bar { background: var(--c-bg-deep); border-bottom: 1px solid var(--c-line-soft); }
.pr-bar p { padding: 6px var(--gutter); font-size: 13px; line-height: 1.5; color: var(--c-text-2); text-align: center; }
.hd { border-bottom: 1px solid var(--c-line-soft); }
.hd__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.brand__name { font-family: var(--f-serif); font-weight: 700; font-size: 24px; letter-spacing: 0.08em; color: var(--c-gold); white-space: nowrap; }
.brand__sub { font-size: 13px; color: var(--c-text-2); white-space: nowrap; }
.hd__nav ul { display: flex; gap: 28px; }
.hd__nav a { font-size: 14px; color: var(--c-text-2); white-space: nowrap; }
@media (max-width: 760px) { .hd__nav { display: none; } }

/* 公式画像の枠（縦横比を保って収めるだけ） */
.fr { display: block; position: relative; background: var(--c-frame); border: 1px solid var(--c-line-soft); transition: border-color 0.2s var(--ease); }
.fr--portrait { aspect-ratio: 147 / 200; }
.fr--landscape { aspect-ratio: 800 / 538; }
.fr--dl { aspect-ratio: 4 / 3; }
.fr picture { display: block; width: 100%; height: 100%; }
.fr img { width: 100%; height: 100%; object-fit: contain; }
a:hover .fr, a:focus-visible .fr { border-color: var(--c-gold); }

/* 玄関（初回表示）: 左に特集の一本、右に三つの間 */
.lobby { display: grid; gap: 28px; padding-top: 20px; }
@media (min-width: 1024px) {
  .lobby { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "feature doors" "future doors"; gap: 0 40px; align-items: start; padding-top: 24px; }
  .feature { grid-area: feature; }
  .doors { grid-area: doors; }
  .lobby > .future { grid-area: future; }
}
.feature__media { display: block; }
.feature__media .fr { border-color: var(--c-line); }
.feature__body { padding-top: 14px; }
.feature__kicker { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--c-gold); }
.feature__kicker span { font-weight: 400; color: var(--c-text-3); letter-spacing: 0.04em; }
.feature__title { margin-top: 6px; font-family: var(--f-serif); font-weight: 600; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; word-break: auto-phrase; text-wrap: pretty; }
.feature__blurb { margin-top: 8px; color: var(--c-text-2); font-size: 14.5px; }
.feature__meta { margin-top: 6px; font-size: 13px; color: var(--c-text-3); }
.feature__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px;
  border: 1px solid var(--c-gold); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
}
.btn--gold { background: var(--c-gold); color: var(--c-on-gold); }
.btn--gold:hover { background: var(--c-gold-hi); border-color: var(--c-gold-hi); color: var(--c-on-gold); }
.btn--line { color: var(--c-gold); }
.btn--line:hover { background: var(--c-surface); }
.buy { display: inline-flex; flex-direction: column; gap: 6px; }
.buy__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--c-text-3); }
.pr-mark { display: inline-block; padding: 0 6px; border: 1px solid var(--c-line); font-size: 13px; line-height: 1.6; color: var(--c-gold); }
.future { margin-top: 18px; padding: 10px 14px; border: 1px dashed var(--c-line); }
@media (max-width: 639px) {
  .feature__blurb { display: none; }
  .feature__actions { display: grid; grid-template-columns: max-content max-content; gap: 8px 10px; margin-top: 12px; }
  .feature__actions .buy { display: contents; }
  .feature__actions .buy__meta { grid-column: 1 / -1; }
  .btn { padding: 10px 16px; font-size: 14px; }
  .lobby { gap: 20px; }
}
.future__label { font-size: 13px; font-weight: 700; color: var(--c-gold); }
.future__text { font-size: 13px; color: var(--c-text-3); }

.doors__title { font-family: var(--f-serif); font-weight: 600; font-size: 17px; letter-spacing: 0.12em; color: var(--c-gold); }
.doors__list { margin-top: 6px; }
.door { padding: 12px 0 14px; border-top: 1px solid var(--c-line); }
.door__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.door__title { display: flex; flex-direction: column; min-width: 0; }
.door__label { color: var(--c-gold); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; }
.door__name { font-family: var(--f-serif); font-weight: 600; font-size: 20px; white-space: nowrap; }
.door__head:hover .door__name { color: var(--c-gold-hi); }
.door__count { font-size: 13px; color: var(--c-text-3); white-space: nowrap; }
.door__desc { margin-top: 2px; font-size: 13.5px; color: var(--c-text-2); }
.door__shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.door--doujin .door__shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.door__shelf:hover .fr { border-color: var(--c-gold); }
@media (max-width: 639px) {
  .door--video .door__shelf, .door--journal .door__shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .door--video .door__shelf > :nth-child(5), .door--journal .door__shelf > :nth-child(5) { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .doors__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .door__shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .door--doujin .door__shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .door__shelf > :nth-child(n + 4) { display: none; }
  .door--doujin .door__shelf > :nth-child(n + 3) { display: none; }
}

/* 下の棚 */
.band { margin-top: clamp(56px, 8vw, 88px); }
.band__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.band__head h2 { font-family: var(--f-serif); font-weight: 600; font-size: clamp(19px, 2.4vw, 24px); }
.band__head p { font-size: 13px; color: var(--c-text-3); }
.band__head a { margin-left: auto; font-size: 14px; color: var(--c-gold); white-space: nowrap; }
.shelf { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px 16px; }
.shelf__item a { display: block; }
.shelf__date { display: block; margin-top: 8px; font-size: 12px; color: var(--c-gold); }
.shelf__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 2px; font-size: 13px; line-height: 1.6; }
.shelf__cast { display: block; margin-top: 4px; font-size: 12px; color: var(--c-text-3); }
@media (max-width: 1023px) {
  .shelf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 128px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 8px; }
  .shelf__item { scroll-snap-align: start; }
}
.tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px 14px; }
.tiles--dl { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile a { display: block; }
.tile__name { display: block; margin-top: 8px; font-family: var(--f-serif); font-weight: 600; font-size: 15px; white-space: nowrap; }
.tile__count { display: block; font-size: 12px; color: var(--c-text-3); }
@media (max-width: 1023px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tiles--dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .tiles--dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile__name { font-size: 14px; white-space: normal; } }
.about { margin-top: clamp(56px, 8vw, 88px); }
.about__text { max-width: 760px; }
.about h2 { font-family: var(--f-serif); font-weight: 600; font-size: 18px; color: var(--c-gold); }
.about p { margin-top: 8px; font-size: 14px; color: var(--c-text-2); }

/* フッター（Ft1 mast-headed） */
.ft { margin-top: 72px; padding: 40px 0 48px; background: var(--c-bg-deep); border-top: 1px solid var(--c-line); }
.ft__in { display: grid; gap: 18px; }
.ft__brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ft__brand a { font-family: var(--f-serif); font-weight: 700; font-size: 22px; color: var(--c-gold); letter-spacing: 0.08em; }
.ft__brand span { font-size: 13px; color: var(--c-text-2); }
.ft__rooms ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ft__rooms a { font-size: 14px; color: var(--c-text); white-space: nowrap; }
.footer-nav a { font-size: 13px; color: var(--c-text-2); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 0.25em; }
.footer-notes { display: grid; gap: 6px; }
.footer-notes p { font-size: 13px; line-height: 1.7; color: var(--c-text-3); }
.credits img { width: 88px; height: 31px; object-fit: contain; }
.ft__mock { font-size: 12px; color: var(--c-text-3); }

/* 年齢確認 */
.age-gate { width: min(92vw, 460px); padding: 0; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); }
.age-gate::backdrop { background: var(--c-backdrop); }
.age-gate__inner { padding: 36px 28px 28px; text-align: center; }
.age-gate__mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--c-gold); font-family: var(--f-serif); font-size: 24px; color: var(--c-gold); }
.age-gate__title { margin-top: 16px; font-family: var(--f-serif); font-weight: 600; font-size: 22px; line-height: 1.6; }
.age-gate__desc { margin-top: 10px; font-size: 14px; color: var(--c-text-2); }
.age-gate__actions { display: grid; gap: 10px; margin-top: 22px; }
.age-gate__yes, .age-gate__no { display: flex; flex-direction: column; align-items: center; min-height: 56px; padding: 8px 16px; border: 1px solid var(--c-gold); font: inherit; font-weight: 700; cursor: pointer; }
.age-gate__yes { background: var(--c-gold); color: var(--c-on-gold); }
.age-gate__no { background: transparent; color: var(--c-text-2); border-color: var(--c-line); }
.age-gate__yes span, .age-gate__no span { font-size: 12px; font-weight: 400; }
.age-gate__note { margin-top: 16px; font-size: 13px; color: var(--c-text-3); }
html.is-gated { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; } }
