/* 作品サイトの上の帯(画面設計書 2.4)。作品本体は帯の下の枠いっぱいに出す */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0b0e1a; color: #f3f4f8; font-family: system-ui, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif; }
/* スマホでは高さを「いま見えている高さ」(dvh)にして、作品の下の端がブラウザのタブの帯の裏に入らないようにする */
body { display: flex; flex-direction: column; height: 100dvh; }
.bar { flex: none; height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #07080d; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 13px; }
.bar a { color: inherit; text-decoration: none; white-space: nowrap; }
.back { font-weight: 800; }
.name { color: #a3a8bb; overflow: hidden; text-overflow: ellipsis; }
.bar a:hover { text-decoration: underline; }
.gap { flex: 1; }
.full { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #a3a8bb; cursor: pointer; font-size: 15px; }
.full:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }
.app { flex: 1; width: 100%; border: 0; display: block; background: #0b0e1a; }
.pc { position: fixed; inset: 40px 0 0; background: rgba(7,8,13,.92); display: grid; place-items: center; padding: 16px; }
.pc[hidden] { display: none; }
.pc-box { max-width: 380px; background: #141824; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 24px; }
.pc-box h1 { font-size: 18px; margin: 0 0 8px; }
.pc-box p { color: #a3a8bb; font-size: 14px; line-height: 1.7; margin: 0 0 18px; }
.pc-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-btns .go, .pc-btns .ret { padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; text-decoration: none; }
.pc-btns .go { background: linear-gradient(135deg, #8b5cf6, #22d3ee); color: #fff; border: 0; }
.pc-btns .ret { border: 1px solid rgba(255,255,255,.2); color: #f3f4f8; }
/* 帯の「ほかの作品」メニュー。作品の枠より前に出す */
.more { position: relative; }
.more-btn { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #f3f4f8; cursor: pointer; font: inherit; font-weight: 700; white-space: nowrap; }
.more-btn:hover, .more-btn[aria-expanded="true"] { background: rgba(255,255,255,.08); }
.more-panel { position: absolute; top: 36px; right: 0; z-index: 10; width: 340px; max-height: calc(100dvh - 56px); overflow-y: auto; background: #141824; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.more-panel[hidden] { display: none; }
.more-panel ul { list-style: none; margin: 0; padding: 0; }
.more-panel li a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; white-space: normal; }
.more-panel li a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.more-panel li a[aria-current="page"] { background: rgba(139,92,246,.16); }
.more-panel img { flex: none; width: 96px; height: 54px; border-radius: 6px; object-fit: cover; background: #0b0e1a; }
.more-panel b { display: block; font-size: 14px; line-height: 1.4; }
.more-panel small { display: block; color: #a3a8bb; font-size: 12px; margin-top: 2px; }
.more-all { display: block; margin-top: 4px; padding: 10px 8px 6px; border-top: 1px solid rgba(255,255,255,.09); color: #67e8f9 !important; font-weight: 700; }
/* スマホの幅では帯の下に画面いっぱいで開く。作品名は省いてボタンを優先する */
@media (max-width: 560px) {
  .bar { gap: 10px; padding: 0 10px; }
  .name { display: none; }
  .more { position: static; }
  .more-panel { position: fixed; top: 40px; left: 0; right: 0; width: auto; max-height: calc(100dvh - 40px); border-radius: 0 0 14px 14px; border-left: 0; border-right: 0; }
}
.index { max-width: 560px; margin: 0 auto; padding: 60px 16px; line-height: 1.8; }
.index a { color: #67e8f9; }
