/* Straight Theater — 濃い色＋金色のダークテーマ */
:root {
  --bg: #0b0c0f; --panel: #15171c; --panel2: #1e2128; --ink: #f1efe9; --muted: #9a9ea6; --line: #2a2e36;
  --accent: #d4a24a; --accent2: #f0d28a; --accent-ink: #14161a; --ok: #5fbf86; --warn: #e0a03a; --err: #f2867c;
  --stage: #000; --gut: clamp(16px, 4vw, 56px);
  --serif: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; line-height: 1.6; }
body { min-height: 100vh; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.err { color: var(--err); min-height: 1.4em; }
a { color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

/* ---------- 上のバー ---------- */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px var(--gut);
  background: linear-gradient(rgba(8,9,11,.96), rgba(8,9,11,.82)); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.bar h1 { font-size: 17px; margin: 0; letter-spacing: .02em; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent2); font-family: var(--serif); font-weight: 700; letter-spacing: .16em; font-size: 17px; white-space: nowrap; }
.logo img { height: 32px; width: auto; display: block; }
.acct { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bal { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; font-size: 14px; }
.navbtn { background: none; border: 0; color: #cfcdc6; font-size: 13px; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.navbtn:hover { color: #fff; background: rgba(255,255,255,.08); }
.addbtn { background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 8px 18px; font-weight: 700; font-size: 14.5px; white-space: nowrap; cursor: pointer; transition: filter .15s, transform .15s; }
.addbtn:hover { filter: brightness(1.1); transform: translateY(-1px); }
a.btn { display: inline-block; text-decoration: none; }
.ghost.btn { color: var(--ink); }
.acct .ghost { font-size: 13px; padding: 4px 12px; white-space: nowrap; border-radius: 99px; }
@media (max-width: 720px) { .logo span { display: none; } #logout { display: none; } .acct { gap: 6px; } }
@media (max-width: 420px) { #buy { display: none; } }

/* ---------- 共通の部品 ---------- */
main { padding: 0 var(--gut) 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; max-width: 460px; margin: 40px auto; }
.card h2 { margin: 0 0 6px; font-size: 18px; }
.primary { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 700; transition: filter .15s; }
.primary:hover { filter: brightness(1.1); }
.primary.big { padding: 13px 30px; font-size: 16px; border-radius: 10px; }
.ghost { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; transition: border-color .15s, background .15s; }
.ghost:hover { border-color: var(--accent); background: rgba(255,255,255,.04); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font-size: inherit; }
.note { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
.foot { text-align: center; margin-top: 28px; line-height: 2; } .foot .sep, .gate-links .sep { margin: 0 6px; opacity: .5; }
.gate-links { margin-top: 26px; line-height: 2; } .gate-links a, .foot a { color: var(--muted); } .gate-links a:hover, .foot a:hover { color: var(--accent); }
.envnote { background: color-mix(in srgb, var(--warn) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); border-radius: 10px; padding: 10px 14px; margin: 14px 0; font-size: 13px; line-height: 1.7; }

/* ---------- ログイン前 ---------- */
#home > .gate { margin: 0 calc(-1 * var(--gut)); min-height: calc(100vh - 54px); display: grid; place-items: center; padding: 40px var(--gut);
  background: radial-gradient(ellipse at 50% 0%, rgba(212,162,74,.20), transparent 60%), radial-gradient(ellipse at 50% 120%, rgba(212,162,74,.10), transparent 55%); }
.gate-in { max-width: 760px; text-align: center; animation: rise .7s ease both; }
.gate-emblem { height: 96px; width: auto; filter: drop-shadow(0 6px 24px rgba(212,162,74,.35)); }
.gate-name { font-family: var(--serif); font-weight: 700; letter-spacing: .22em; color: var(--accent2); font-size: clamp(20px, 3.4vw, 30px); margin: 10px 0 18px; }
#home > .gate h2 { font-size: clamp(19px, 3vw, 28px); line-height: 1.6; margin: 0 0 22px; font-weight: 700; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; margin-bottom: 26px; }
.pillar { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px 18px; }
.pillar b { color: var(--accent2); font-size: 15px; }
.pillar p { margin: 6px 0 0; font-size: 14px; color: #cfcdc6; }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 看板 ---------- */
.hero { position: relative; margin: 0 calc(-1 * var(--gut)); height: clamp(300px, 50vh, 520px); overflow: hidden; display: flex; align-items: flex-end; animation: fadein .5s ease both; }
.hero-bg { position: absolute; inset: -40px; background: #17130d center / cover no-repeat; filter: blur(36px) brightness(.55) saturate(1.2); }
.hero-art { position: absolute; right: 0; top: 0; bottom: 0; width: min(68%, 920px); background: #000;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%); }
.hero-art img, .hero-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art img:not([src]) { display: none; }
.hero-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, var(--bg) 0, transparent 34%), linear-gradient(180deg, rgba(8,9,11,.55) 0, transparent 22%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,15,.92) 0, rgba(11,12,15,.6) 36%, transparent 66%), linear-gradient(0deg, var(--bg) 0, transparent 30%); pointer-events: none; }
.hero-body { position: relative; z-index: 3; padding: 0 var(--gut) clamp(22px, 5vh, 46px); max-width: 720px; }
.hero-kick { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.hero-title { margin: 4px 0 8px; font-size: clamp(22px, 3.4vw, 40px); line-height: 1.25; text-shadow: 0 2px 18px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta, .d-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: #d6d3cb; }
.tag { border: 1px solid var(--muted); color: #d6d3cb; border-radius: 4px; padding: 0 6px; font-size: 11px; font-weight: 700; }
.tag.ok { border-color: var(--ok); color: var(--ok); } .tag.run { border-color: var(--warn); color: var(--warn); } .tag.fail { border-color: var(--err); color: var(--err); }
.hero-prog { height: 4px; background: rgba(255,255,255,.22); border-radius: 9px; max-width: 380px; margin: 12px 0 2px; overflow: hidden; }
.hero-prog i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero-play { background: #fff; color: #111; border: 0; border-radius: 8px; padding: 10px 24px; font-weight: 700; font-size: 15px; transition: transform .15s, background .15s; }
.hero-play:hover { background: var(--accent2); transform: scale(1.03); }
.hero-info { background: rgba(255,255,255,.16); color: #fff; border: 0; border-radius: 8px; padding: 10px 20px; font-weight: 600; font-size: 15px; backdrop-filter: blur(6px); transition: background .15s; }
.hero-info:hover { background: rgba(255,255,255,.26); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) { .hero-art { width: 100%; -webkit-mask-image: none; mask-image: none; opacity: .55; } }

/* ---------- 動画を入れる枠（いつも出しておく） ---------- */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; margin: 28px auto 8px; max-width: 760px;
  border: 2px dashed #5b5340; border-radius: 18px; padding: 54px 20px; background: radial-gradient(ellipse at 50% 0, rgba(212,162,74,.12), transparent 70%), var(--panel); cursor: pointer; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.drop:hover, .drop.over { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(212,162,74,.12); }
.drop-icon { font-size: 26px; color: var(--accent-ink); background: var(--accent); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; line-height: 1; margin-bottom: 6px; flex: none; animation: dropbob 2.6s ease-in-out infinite; }
@keyframes dropbob { 50% { transform: translateY(-4px); } }
.drop-main { font-weight: 700; font-size: 18px; }
.drop-sub { color: var(--muted); font-size: 13px; }
.drop-btn { margin-top: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 8px; padding: 9px 22px; font-size: 14px; white-space: nowrap; }
/* 動画が入ったあとは、横長の帯にして棚の上に置く */
.drop.compact { flex-direction: row; text-align: left; gap: 14px; max-width: none; margin: 18px 0 6px; padding: 14px 18px; border-radius: 14px; }
.drop.compact .drop-icon { width: 40px; height: 40px; font-size: 20px; margin: 0; }
.drop.compact .drop-text { flex: 1; min-width: 0; }
.drop.compact .drop-main { font-size: 15.5px; }
.drop.compact .drop-btn { margin: 0; }
@media (max-width: 560px) { .drop.compact .drop-btn { display: none; } }
.dragveil { position: fixed; inset: 0; z-index: 90; background: rgba(8,9,11,.84); display: grid; place-items: center; pointer-events: none; }
.dragveil::before { content: ""; position: absolute; inset: 16px; border: 3px dashed var(--accent); border-radius: 22px; animation: holepulse2 1.4s ease-in-out infinite; }
@keyframes holepulse2 { 50% { opacity: .45; } }
.dv-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 36px; margin: 0 auto 14px; }
.dragveil > div { border: 2px dashed var(--accent); border-radius: 18px; padding: 40px 50px; font-size: 18px; font-weight: 700; color: var(--accent2); }

/* ---------- 検索・絞り込み ---------- */
.libtools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 18px 0 2px; }
.libtools input[type=search] { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); min-width: 0; width: 240px; transition: border-color .15s, width .2s; }
.libtools input[type=search]:focus { border-color: var(--accent); outline: 0; width: 300px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 4px 13px; font-size: 13px; color: #cfcdc6; transition: all .15s; }
.chip:hover { border-color: var(--accent); color: #fff; }
.chip.on { background: var(--ink); color: #111; border-color: var(--ink); font-weight: 700; }

/* ---------- 棚 ---------- */
.shelf { position: relative; margin-top: 10px; }
.shelf h3, .grid-h { font-size: 17px; margin: 14px 0 0; display: flex; align-items: baseline; gap: 8px; }
.shelf h3 span { color: var(--muted); font-weight: 400; font-size: 12px; }
.shelf-row { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 12px var(--gut) 18px; margin: 0 calc(-1 * var(--gut)); scroll-snap-type: x proximity; scroll-padding: 0 var(--gut); scrollbar-width: none; scroll-behavior: smooth; }
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row .vcard { flex: 0 0 clamp(190px, 17.5vw, 290px); scroll-snap-align: start; }
.sh-nav { position: absolute; top: 44px; bottom: 18px; width: var(--gut); min-width: 34px; border: 0; z-index: 5; color: #fff; font-size: 26px; opacity: 0; transition: opacity .2s; display: grid; place-items: center; }
.sh-nav.prev { left: calc(-1 * var(--gut)); background: linear-gradient(90deg, rgba(11,12,15,.95), transparent); }
.sh-nav.next { right: calc(-1 * var(--gut)); background: linear-gradient(270deg, rgba(11,12,15,.95), transparent); }
.shelf:hover .sh-nav:not([disabled]) { opacity: 1; }
.sh-nav[disabled] { pointer-events: none; }
@media (hover: none) { .sh-nav { display: none; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 12px; margin-top: 12px; }

/* ---------- 動画カード ---------- */
.vcard { min-width: 0; position: relative; border-radius: 10px; transition: transform .22s ease, background .22s, box-shadow .22s; }
.anim .vcard { animation: cardin .4s ease both; }
@keyframes cardin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.poster { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a2317, #121318); border-radius: 10px; overflow: hidden; display: grid; place-items: center; transition: border-radius .22s; }
.vcard.playable .poster, .vcard.playable .ctitle { cursor: pointer; }
.poster img, .poster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster video, .hero-art video, .d-art video { opacity: 0; transition: opacity .4s; z-index: 1; pointer-events: none; }
.poster video.on, .hero-art video.on, .d-art video.on { opacity: 1; }
.poster .ph, .d-art .ph { color: rgba(255,255,255,.3); font-size: 28px; }
.poster img:not([hidden]) + .ph, .d-art img:not([hidden]) + .ph { display: none; }
.badge { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.7); color: #fff; backdrop-filter: blur(4px); }
.badge.done { background: color-mix(in srgb, var(--ok) 85%, #000); color: #06140b; }
.badge.plain { background: rgba(0,0,0,.6); color: #d6d3cb; }
.badge.run, .badge.wait { background: var(--warn); color: #1c1203; }
.badge.fail { background: var(--err); color: #2a0806; }
.marks { position: absolute; right: 8px; top: 8px; z-index: 2; display: flex; gap: 4px; }
.marks span { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.68); display: grid; place-items: center; font-size: 12px; }
.mk-fav { color: #ff7b8a; } .mk-seen { color: var(--ok); }
.len { position: absolute; right: 8px; bottom: 8px; z-index: 2; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.75); color: #fff; font-variant-numeric: tabular-nums; }
.watch { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px; background: rgba(255,255,255,.25); }
.watch > div { height: 100%; background: var(--accent); }
.cbody { padding: 8px 6px 6px; }
.ctitle { font-weight: 600; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cinfo { min-height: 1.3em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.pbar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .4s; position: relative; }
.pbar > div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 1.4s linear infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.stages { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.stages span.on { color: var(--accent2); } .stages span.fin { color: var(--ok); }
.cact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.cact button { font-size: 12.5px; padding: 5px 11px; }
.cact .sub { background: transparent; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); font-weight: 600; }
.cact .sub:hover { background: var(--accent); color: var(--accent-ink); }
.cact:not(:has(button:not([hidden]))) { display: none; }
.vcard .links { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.vcard .links .linkbtn { color: var(--muted); font-size: 12px; margin-left: 6px; text-decoration: none; }
.vcard .links .linkbtn:hover { color: var(--accent); text-decoration: underline; }
.ibtn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.04); color: #e6e3db; font-size: 13px; display: grid; place-items: center; padding: 0; transition: all .15s; }
.ibtn:hover { border-color: #fff; background: rgba(255,255,255,.14); transform: scale(1.1); }
.ibtn.on.fav { color: #ff7b8a; border-color: #ff7b8a; } .ibtn.on.seen { color: var(--ok); border-color: var(--ok); }
@media (hover: hover) and (pointer: fine) {
  .vcard:hover, .vcard:focus-within { transform: scale(1.06); z-index: 4; background: var(--panel2); box-shadow: 0 16px 44px rgba(0,0,0,.7); }
  .vcard:hover .poster, .vcard:focus-within .poster { border-radius: 10px 10px 0 0; }
  .shelf-row .vcard:first-child:hover { transform-origin: left center; }
  .vcard .links { opacity: 0; transition: opacity .2s; }
  .vcard:hover .links, .vcard:focus-within .links { opacity: 1; }
}
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } .libtools input[type=search], .libtools input[type=search]:focus { width: 100%; } .shelf-row .vcard { flex-basis: 62vw; } }
.lib-foot { margin-top: 30px; text-align: center; } .lib-foot .sep { margin: 0 4px; }

/* ---------- 確認ダイアログ ---------- */
.dlg { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); max-width: min(480px, calc(100vw - 32px)); padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.dlg[open], .detail[open] { animation: pop .22s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg::backdrop, .detail::backdrop { background: rgba(4,5,6,.72); backdrop-filter: blur(3px); }
.dlg p { margin: 0 0 10px; }
.dlg-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.dlg-btns a { text-decoration: none; }
.dlg-btns button:disabled { opacity: .45; cursor: not-allowed; }
.dlg .dlg-btns a.primary { color: var(--accent-ink); }
.dlg .dlg-btns a.ghost { color: var(--ink); }
.fld { display: grid; gap: 4px; font-size: 13px; color: var(--muted); margin: 12px 0 2px; }
.fld input { font: inherit; font-size: 15px; color: var(--ink); padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.fld input:focus { border-color: var(--accent); outline: 0; }
.chk { display: flex; gap: 8px; align-items: flex-start; margin: 9px 0; font-size: 14px; cursor: pointer; }
.chk input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.rep-box { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.warnbox { background: color-mix(in srgb, var(--err) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--err) 40%, var(--line)); border-radius: 8px; padding: 10px 12px; }
.okbox { background: color-mix(in srgb, var(--ok) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.busy { margin: 6px 4px; }
.busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #f1efe9; color: #14161a; padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 150; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 動画の詳細 ---------- */
.detail { border: 0; border-radius: 16px; background: var(--panel); color: var(--ink); padding: 0; width: min(780px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 90px rgba(0,0,0,.8); }
.d-close { position: absolute; right: 12px; top: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 15px; }
.d-close:hover { background: #000; }
.d-art { position: relative; aspect-ratio: 16 / 9; max-height: 48vh; width: 100%; background: linear-gradient(135deg, #2a2317, #121318); display: grid; place-items: center; overflow: hidden; }
.d-art img, .d-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, var(--panel) 0, rgba(21,23,28,.5) 34%, transparent 62%); }
.d-head { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 24px 16px; }
.d-title { margin: 0 0 10px; font-size: clamp(19px, 3vw, 28px); line-height: 1.3; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.d-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.d-btns .ghost { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.4); padding: 9px 14px; }
.rbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.4); color: #fff; font-size: 16px; display: grid; place-items: center; padding: 0; transition: all .15s; }
.rbtn:hover { border-color: #fff; transform: scale(1.08); }
.rbtn.on.d-fav { color: #ff7b8a; border-color: #ff7b8a; } .rbtn.on.d-seen { color: var(--ok); border-color: var(--ok); }
.d-body { padding: 14px 24px 22px; }
.d-state { margin: 12px 0 0; font-size: 14px; }
.d-state .pbar { height: 6px; margin: 8px 0 2px; }
.d-state .stages { font-size: 13px; }
.d-list { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 12px 0 0; font-size: 14px; }
.d-list dt { color: var(--muted); } .d-list dd { margin: 0; }
.d-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.d-where { margin: 14px 0 0; }

/* ---------- 完成のお知らせ ---------- */
.donecard { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 140; width: min(560px, calc(100vw - 24px)); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
  background: linear-gradient(135deg, #23262e, #15171c); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 16px; padding: 18px 20px; box-shadow: 0 24px 70px rgba(0,0,0,.75), 0 0 0 1px rgba(212,162,74,.15); animation: doneup .45s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes doneup { from { opacity: 0; transform: translateX(-50%) translateY(30px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
.dc-check { width: 48px; height: 48px; border-radius: 50%; background: var(--ok); color: #06140b; font-size: 26px; font-weight: 700; display: grid; place-items: center; animation: checkpop .5s .15s cubic-bezier(.2,.9,.3,1.5) both; }
@keyframes checkpop { from { transform: scale(0); } to { transform: scale(1); } }
.dc-title { font-size: 16px; display: block; }
.dc-text { font-size: 14px; color: #d6d3cb; }
.dc-refund { margin-top: 6px; font-size: 14px; color: var(--accent2); background: rgba(212,162,74,.12); border: 1px solid rgba(212,162,74,.35); border-radius: 8px; padding: 6px 10px; }
.dc-refund b { font-size: 16px; }
.dc-btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ---------- プレーヤー ---------- */
#player { padding: 12px var(--gut) 40px; max-width: 1640px; margin: 0 auto; animation: fadein .3s ease both; }
.player-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.p-title { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.player-main { min-width: 0; }
.stage { position: relative; background: var(--stage); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.vwrap { position: relative; background: #000; display: flex; justify-content: center; }
.stage video { display: block; width: 100%; max-height: calc(100vh - 330px); min-height: 180px; object-fit: contain; background: #000; cursor: pointer; transition: transform .25s; }
.stage video.mirror { transform: scaleX(-1); }
.vflash { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); background: rgba(0,0,0,.72); color: #fff; font-weight: 700; font-size: 18px; padding: 10px 20px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; }
.vflash.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.subs { position: absolute; left: 0; right: 0; bottom: 104px; text-align: center; pointer-events: none; padding: 0 5%; z-index: 2; }
.subs > div { display: inline; }
.subs .sub-ja, .subs .sub-en { display: table; margin: 2px auto; padding: 2px 10px; border-radius: 4px; background: rgba(0,0,0,.72); color: #fff; }
.subs .sub-ja { font-weight: 600; }
.subs .sub-en { color: #e6d6a8; font-size: .72em; }
.subs .sub-ja:empty, .subs .sub-en:empty { display: none; }
.subs.size-s { font-size: clamp(13px, 2.2vw, 20px); } .subs.size-m { font-size: clamp(15px, 2.6vw, 27px); } .subs.size-l { font-size: clamp(18px, 3.4vw, 36px); }
.stage:fullscreen .subs.size-s { font-size: 2.4vw; } .stage:fullscreen .subs.size-m { font-size: 3.2vw; } .stage:fullscreen .subs.size-l { font-size: 4.2vw; }
/* 字幕を動画の下の黒い帯に出す（初期設定）。動画に重ならないので手元が見える */
.stage.band .subs { position: static; background: #000; padding: 8px 4% 10px; min-height: calc(2 * 1.55em + 18px); display: flex; flex-direction: column; justify-content: center; }
.stage.band .subs .sub-ja, .stage.band .subs .sub-en { background: transparent; padding: 0 6px; }
.stage:fullscreen { background: #000; border-radius: 0; }
.stage:fullscreen .vwrap { flex: 1; min-height: 0; }
.stage:fullscreen video { max-height: none; height: 100%; }
.stage.band:fullscreen .subs { flex: none; }
.stage:fullscreen.idle { cursor: none; }
.stage:fullscreen.idle .vbar { opacity: 0; }
/* 自前の操作バー */
.vbar { background: #000; color: #fff; padding: 2px 12px 8px; transition: opacity .35s; }
.seekrow { position: relative; height: 22px; display: flex; align-items: center; }
.vseek { width: 100%; margin: 0; height: 5px; cursor: pointer; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, var(--accent) var(--p, 0%), rgba(255,255,255,.25) var(--p, 0%)); border-radius: 9px; transition: height .15s; position: relative; z-index: 2; }
.seekrow:hover .vseek { height: 8px; }
.vseek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(212,162,74,.35); }
.vseek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.abmark { position: absolute; top: 2px; bottom: 2px; z-index: 1; background: rgba(95,191,134,.35); border-left: 3px solid var(--ok); border-right: 3px solid var(--ok); border-radius: 3px; pointer-events: none; }
.abmark.open { border-right-color: transparent; background: linear-gradient(90deg, rgba(95,191,134,.35), transparent); }
.vrow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vbtn { background: transparent; border: 0; color: #fff; font-size: 17px; min-width: 34px; height: 32px; border-radius: 6px; display: grid; place-items: center; padding: 0 6px; transition: background .15s; }
.vbtn:hover { background: rgba(255,255,255,.14); }
.vbtn.play { font-size: 19px; width: 40px; }
.vbtn.txt { font-size: 12.5px; padding: 0 9px; white-space: nowrap; color: #e6e3db; }
.vbtn.on { color: var(--ok); background: rgba(95,191,134,.14); }
.vbtn.arm { color: var(--warn); background: rgba(224,160,58,.16); }
.vlbl { font-size: 11px; color: #aaa; margin: 0 -4px; }
.vtime { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; color: #ddd; margin: 0 6px; }
.vsp { flex: 1; }
.vvol { width: 84px; flex: none; accent-color: #fff; cursor: pointer; }
@media (max-width: 480px) { .vvol { width: 56px; } .vlbl { display: none; } }
.p-status { font-size: 13px; color: var(--warn); min-height: 1.4em; margin: 8px 2px; }
#pStatus .primary { margin-left: 8px; padding: 6px 14px; font-size: 13px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lbl { font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 5px 10px; font-size: 13.5px; transition: background .15s; }
.seg button:hover { background: rgba(255,255,255,.07); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.fbbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.fb-q { font-size: 14px; margin-right: 4px; }
.fb-btn.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 600; }
.keys { margin: 12px 2px 0; line-height: 1.8; }
@media (hover: none) { .keys { display: none; } }
/* 字幕の一覧 */
.transcript { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow: hidden; }
.tr-head { padding: 10px 14px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); }
.tr-empty { padding: 14px; margin: 0; }
.transcript ol { list-style: none; padding: 0; margin: 0; overflow: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #3a3f49 transparent; position: relative; }
.transcript li { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; font-size: 13.5px; transition: background .15s; }
.transcript li:hover { background: rgba(255,255,255,.05); }
.transcript li.cur { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 3px 0 var(--accent); }
.transcript .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 2px; }
.transcript .en { display: block; color: var(--muted); font-size: 12px; }
.transcript .rep { color: var(--muted); font-size: 11.5px; align-self: start; padding-top: 2px; text-decoration: none; opacity: 0; }
.transcript li:hover .rep, .transcript li.cur .rep { opacity: 1; }
.transcript .rep:hover { color: var(--accent); text-decoration: underline; }
@media (hover: none) { .transcript .rep { opacity: 1; } }
@media (max-width: 1020px) {
  .player-grid { grid-template-columns: minmax(0, 1fr); }
  .transcript { position: static; max-height: 46vh; }
  .stage video { max-height: 56vh; }
}

/* ---------- はじめのフォルダー作り ---------- */
.setup { max-width: 580px; margin: 28px auto 24px; }
.setup p { margin: 6px 0; }
.steps { margin: 10px 0 14px; padding-left: 1.4em; }
.steps li { margin: 4px 0; }
.mock { --m-bg: #ffffff; --m-ink: #1f1f1f; --m-line: #d9d9d9; --m-soft: #f3f3f3; --m-hl: #d93025;
  background: var(--m-bg); color: var(--m-ink); border: 1px solid var(--m-line); border-radius: 8px; margin: 12px 0; font-size: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.mock-title { padding: 6px 10px; background: var(--m-soft); border-bottom: 1px solid var(--m-line); }
.mock-bar { padding: 6px 10px; border-bottom: 1px solid var(--m-line); }
.mock-path { display: inline-block; border: 1px solid var(--m-line); border-radius: 4px; padding: 1px 8px; }
.mock-tools { display: flex; gap: 16px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--m-line); }
.mock-body { display: flex; gap: 18px; padding: 12px 14px; min-height: 64px; }
.mock-folder { position: relative; display: grid; justify-items: center; gap: 4px; width: 150px; word-break: keep-all; text-align: center; padding: 4px; border-radius: 4px; color: #555; }
.mock-folder.sel { background: #cce8ff; color: var(--m-ink); outline: 1px solid #99d1ff; }
.mock-ficon { width: 42px; height: 30px; background: #f7c948; border-radius: 3px 3px 4px 4px; position: relative; }
.mock-ficon::before { content: ""; position: absolute; left: 0; top: -5px; width: 18px; height: 7px; background: #f0b429; border-radius: 3px 3px 0 0; }
.mock-foot { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--m-line); background: var(--m-soft); }
.mock-input { flex: 1; border: 1px dashed #999; border-radius: 3px; padding: 2px 8px; color: #888; background: #fff; }
.mock-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 6px 10px 10px; background: var(--m-soft); }
.mock-btns > span { border: 1px solid var(--m-line); border-radius: 4px; padding: 3px 12px; background: #fff; }
.mock .mock-hl { position: relative; outline: 2px solid var(--m-hl); outline-offset: 2px; border-radius: 4px; font-weight: 700; }
.mock i { position: absolute; top: -10px; right: -12px; width: 18px; height: 18px; border-radius: 50%; background: var(--m-hl); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.mock-folder.sel i { top: -6px; right: -6px; }
@media (max-width: 480px) { .mock-body { gap: 8px; } .mock-folder { width: 120px; } }
.mock-then { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.mock-ask { max-width: 380px; }
.mock-ask-t { padding: 10px 12px 2px; font-weight: 700; font-size: 13px; }
.mock-ask-b { padding: 2px 12px 8px; color: #555; }
.mock-ask .mock-btns { background: var(--m-bg); }
.mock .mock-dark { background: #0b57d0; color: #fff; border-color: #0b57d0; }

/* ---------- 使い方の案内（チュートリアル） ---------- */
.tour-stage { position: fixed; inset: 0; z-index: 200; background: var(--bg); overflow: auto; }
.tour-stage .bar { position: sticky; }
.tour-stage main, .tour-stage .t-player { padding: 0 var(--gut) 180px; }
.tour-stage .t-player { padding-top: 12px; }
.tour-stage * { pointer-events: none; }
.tour-block { position: fixed; inset: 0; z-index: 205; }
.tour-hole { position: fixed; z-index: 210; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(4,5,6,.74), 0 0 0 3px var(--accent), 0 0 30px 8px rgba(212,162,74,.55); transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease; animation: holepulse 1.8s ease-in-out infinite; }
.tour-hole.none { box-shadow: 0 0 0 9999px rgba(4,5,6,.8); animation: none; width: 0 !important; height: 0 !important; }
@keyframes holepulse { 50% { box-shadow: 0 0 0 9999px rgba(4,5,6,.74), 0 0 0 3px var(--accent2), 0 0 44px 14px rgba(240,210,138,.6); } }
.tour-tip { position: fixed; z-index: 220; width: min(380px, calc(100vw - 24px)); background: #fbfaf7; color: #1d1f23; border-radius: 14px; padding: 16px 18px 14px; font-size: 14px; line-height: 1.7; box-shadow: 0 20px 60px rgba(0,0,0,.6); transition: left .35s ease, top .35s ease; }
.tour-tip.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 24px)); text-align: center; padding: 26px 26px 20px; }
.tour-tip .tt-step { color: #8a6a1f; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; }
.tour-tip .tt-title { display: block; font-size: 17px; font-weight: 700; margin: 2px 0 6px; }
.tour-tip.center .tt-title { font-size: 21px; }
.tour-tip .tt-text b { color: #8a6a1f; }
.tour-tip .tt-emblem { height: 60px; display: block; margin: 0 auto 8px; }
.tour-tip .tt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; margin: 12px 0 2px; }
.tour-tip .tt-two div { background: #f1ede2; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.tour-tip .tt-two b { display: block; color: #8a6a1f; }
.tt-dots { display: flex; gap: 3px; margin: 12px 0 0; }
.tt-dots i { flex: 1; max-width: 22px; height: 4px; border-radius: 9px; background: #ddd8cb; }
.tt-dots i.on { background: #b8862b; }
.tour-tip.center .tt-dots { justify-content: center; }
.tt-btns { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.tt-btns .tt-skip { margin-right: auto; background: none; border: 0; color: #777; font-size: 12.5px; padding: 4px 0; text-decoration: underline; }
.tt-btns .tt-back { background: none; border: 1px solid #cfc9b8; border-radius: 8px; padding: 7px 14px; color: #444; font-size: 13.5px; }
.tt-btns .tt-next { background: #b8862b; color: #fff; border: 0; border-radius: 8px; padding: 8px 22px; font-weight: 700; font-size: 14px; }
.tt-btns .tt-next:hover { background: #a37522; }
.tour-tip.center .tt-btns { justify-content: center; } .tour-tip.center .tt-skip { margin-right: 12px; }
.t-dlgwrap { display: grid; place-items: start center; padding: 40px 12px 220px; min-height: 100%; background: rgba(4,5,6,.5); }
.t-dlgwrap .dlg { position: static; display: block; margin: 0; }
.t-fakevideo { aspect-ratio: 16 / 9; max-height: 42vh; width: 100%; background: radial-gradient(circle at 50% 60%, #4a3418, #0d0b0a 72%); display: grid; place-items: center; color: rgba(255,255,255,.4); font-size: 64px; }
.t-sample { font-size: 10.5px; background: #000a; color: #fff; border-radius: 99px; padding: 1px 8px; position: absolute; left: 8px; top: 8px; z-index: 2; }
@media (max-width: 560px) { .tour-tip .tt-two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; transition-duration: .01s !important; } }

/* ---------- 追加：フォルダー作りの案内（押す順に光る）・取り込み・チケット ---------- */
.setup { max-width: 640px; }
.setup-kick { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 4px; }
.setup h2 { font-size: 21px; }
.setup-help { text-align: center; }
.setup #mkFolder { display: block; margin: 16px auto 6px; }
.ostabs { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; margin: 10px 0 2px; }
.ostabs button { background: none; border: 0; color: var(--muted); border-radius: 99px; padding: 5px 16px; font-size: 13px; }
.ostabs button.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.guide, .setup .steps { display: none; }
#folderSetup[data-os="win"] .guide[data-os="win"], #folderSetup[data-os="mac"] .guide[data-os="mac"] { display: block; position: relative; }
#folderSetup[data-os="win"] .steps[data-os="win"], #folderSetup[data-os="mac"] .steps[data-os="mac"] { display: block; }
.steps li { padding: 4px 8px; border-radius: 8px; transition: background .3s; }
.steps li.now { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.mock .mock-hl, .mock .newf { transition: box-shadow .3s, transform .3s, opacity .4s; }
.mock [data-s].now { box-shadow: 0 0 0 4px rgba(217,48,37,.28), 0 0 18px 4px rgba(217,48,37,.35); transform: scale(1.06); z-index: 2; }
#folderSetup[data-step="1"] .newf { opacity: 0; }
.mock.mac { border-radius: 12px; }
.mock.mac .mock-bar { display: flex; align-items: center; gap: 12px; background: var(--m-soft); }
.mock-dots { display: inline-flex; gap: 5px; } .mock-dots b { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .mock-dots b:nth-child(2) { background: #febc2e; } .mock-dots b:nth-child(3) { background: #28c840; }
.mock-btns.mac { justify-content: flex-start; } .mock-sp { flex: 1; border: 0 !important; background: none !important; padding: 0 !important; }
.gcursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5; pointer-events: none; transition: transform .8s cubic-bezier(.3,.7,.3,1);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11h-7.5l4 8-3 1.5-4-8L4 19z' fill='%23111' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.gcursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--m-hl, #d93025); opacity: 0; }
.gcursor.click::after { animation: gclick .7s ease-out; }
@keyframes gclick { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }
.namelist { max-height: 38vh; overflow: auto; margin: 0 0 8px; padding-right: 4px; } .namelist .fld { margin: 6px 0; } .namelist-h { margin: 0 !important; }
.dlg:has(.menu-mark) .dlg-btns { flex-direction: column; align-items: stretch; } .dlg:has(.menu-mark) .dlg-btns button { padding: 11px 14px; text-align: left; }
.dlg:has(.menu-mark) .dlg-btns button.ghost:last-child { text-align: center; border: 0; color: var(--muted); }
.p-status .tk { display: inline-flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-left: 8px; font-size: 13px; color: var(--muted); }
.p-status .tk-bal { color: var(--accent); font-weight: 700; } .p-status .tk-buy { color: var(--ink); }
.envnote .linkbtn { margin-top: 4px; }
.tour-tip .tt-gift { background: #fff6dc; border: 1px solid #e6c873; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; font-size: 13.5px; text-align: left; }
.tour-tip .tt-gift b { color: #8a6a1f; }
.tour-stage .poster img { display: block; }

/* ---------- 追加：文字起こしだけ・セリフで検索 ---------- */
.badge.done.tr { background: rgba(60,110,160,.85); }
.cact { flex-wrap: wrap; } .cact .tronly { font-size: 12.5px; padding: 6px 10px; }
.hits { margin: 6px 0 18px; }
.hit-g { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.hit-v { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .hit-v img { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; } .hit-v b { font-size: 14.5px; }
.hit { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: start; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.06); color: var(--ink); padding: 8px 6px; border-radius: 6px; font-size: 14px; }
.hit:hover { background: rgba(255,255,255,.06); } .hit .t { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; padding-top: 1px; }
.hit .en { display: block; color: var(--muted); font-size: 12.5px; } .hit .go { color: var(--muted); font-size: 12px; white-space: nowrap; opacity: 0; } .hit:hover .go { opacity: 1; color: var(--accent); }
.hit mark { background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; border-radius: 3px; padding: 0 2px; }
.hit-more { margin: 6px 6px 2px; font-size: 13px; }
.p-status .pTr { font-size: 13px; }

/* 【5】チュートリアルのあと、動画を入れる枠を目立たせる */
.drop-attn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid var(--accent); color: var(--ink); font-size: 14px; }
.drop-attn .da-arrow { font-size: 20px; color: var(--accent); animation: da-bob 1s ease-in-out infinite; }
.drop-attn .da-gift { font-size: 13px; color: var(--muted); flex-basis: 100%; }
.drop-attn .da-close { margin-left: auto; font-size: 12px; }
.drop.attn { border-color: var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); animation: da-glow 1.6s ease-in-out infinite; }
@keyframes da-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes da-glow { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); } 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 28px color-mix(in srgb, var(--accent) 50%, transparent); } }
@media (prefers-reduced-motion: reduce) { .drop-attn .da-arrow, .drop.attn { animation: none; } }
.fbbar #reportNow { margin-left: 4px; }

/* ---------- 追加：ログイン前の画面の背景（動画の壁） ---------- */
#home > .gate { position: relative; overflow: hidden; isolation: isolate; }
.gate-wall { position: absolute; inset: -16% -9%; z-index: -2; transform: perspective(1600px) rotateX(10deg) rotateZ(-6deg); animation: walldrift 46s ease-in-out infinite alternate; }
.gate-wall video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
@keyframes walldrift { from { translate: -2% -1.5%; } to { translate: 2% 1.5%; } }
.gate-veil { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(8,9,11,.93) 0%, rgba(8,9,11,.80) 55%, rgba(8,9,11,.50) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(212,162,74,.22), transparent 60%), linear-gradient(rgba(8,9,11,.35), rgba(8,9,11,.0) 30%, rgba(8,9,11,.75)); }
#home > .gate .pillar { background: rgba(20,21,26,.78); backdrop-filter: blur(8px); }
#home > .gate h2, .gate-name { text-shadow: 0 2px 18px rgba(0,0,0,.8); }
/* スマートフォン：動画は流さず、同じ絵を並べた静止画にする */
@media (max-width: 720px), (hover: none) { .gate-wall { inset: -8% -30%; transform: rotateZ(-6deg); animation: none; background: url(brand/pv-wall.jpg) center / 100% auto repeat-y; } .gate-wall video { display: none; } }

/* 【14】【17】【18】チュートリアルの囲み */
.tour-tip .tt-env { margin-top: 12px; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.7; background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.12); color: #444; }
.tour-tip .tt-env.strong { background: #fff4e5; border-color: #e0a03a; color: #5a3a00; font-size: 13.5px; }
.tour-tip .tt-warn { margin-top: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; line-height: 1.7; background: #fff4e5; border: 1px solid #e0a03a; color: #5a3a00; }
.tour-tip .tt-note { display: block; margin-top: 8px; font-size: 12px; color: #777; }
.tour-tip .tt-gift { margin: 10px 0; }
/* 【19】文字起こしだけ：何の10分の1かを添える */
.trnote { font-size: 12px; color: var(--muted); margin-left: 4px; }
button .trsub { display: block; font-size: 10.5px; opacity: .75; font-weight: 400; line-height: 1.3; }
