/* ぱふす。共通スタイル（/, /videos.html, /tools/ で共有） */
:root {
  --red: #ff1a2e;
  --red-dim: #cc0016;
  --red-glow: rgba(255,26,46,0.4);
  --teal: #00e5cc;
  --orange: #ff7700;
  --dark: #0a0508;
  --card: rgba(22,9,12,0.88);
  --line: rgba(255,26,46,0.16);
  --text: #f6e4e6;
  --dim: #b08a91;
  --f-jp: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-en: 'Orbitron', 'Zen Kaku Gothic New', sans-serif;
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--dark); }
body { background: var(--dark); color: var(--text); font-family: var(--f-jp); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* atmosphere */
.grid-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255,26,46,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,26,46,0.045) 1px, transparent 1px);
  background-size: 40px 40px; }
.glow { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 40% at 15% 10%, rgba(255,26,46,0.16), transparent 70%), radial-gradient(40% 35% at 90% 85%, rgba(0,229,204,0.10), transparent 70%); }
.scanline { position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,0.14) 2px 4px); }
.corner { position: fixed; z-index: 41; pointer-events: none; width: 52px; height: 52px; }
.corner::before { content: ''; position: absolute; left: 0; top: 0; width: 36px; height: 4px; background: var(--red); opacity: .55; box-shadow: 0 0 0 0 transparent; }
.corner::after { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 36px; background: var(--red); opacity: .55; }
.c-tl { top: 0; left: 0; } .c-tr { top: 0; right: 0; transform: scaleX(-1); }
.c-bl { bottom: 0; left: 0; transform: scaleY(-1); } .c-br { bottom: 0; right: 0; transform: scale(-1); }

.wrap { position: relative; z-index: 2; max-width: 480px; margin: 0 auto; padding-inline: 16px; padding-block: 28px 56px; display: flex; flex-direction: column; gap: 28px; }

/* link groups */
.group { display: flex; flex-direction: column; gap: 10px; animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.group:nth-of-type(1) { animation-delay: .3s; } .group:nth-of-type(2) { animation-delay: .38s; } .group:nth-of-type(3) { animation-delay: .46s; } .group:nth-of-type(4) { animation-delay: .54s; }
.ghead { display: flex; align-items: center; gap: 10px; }
.ghead h2 { font-family: var(--f-en); font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--red); }
.ghead p { font-size: 12px; color: var(--dim); }
.ghead::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--red-dim), transparent); }

.link { --c: var(--red); position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); transition: border-color .25s, transform .2s; }
.link::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); transform: scaleY(0); transition: transform .25s; }
.link:hover, .link:focus-visible { border-color: var(--c); transform: translateX(4px); }
.link:hover::after, .link:focus-visible::after { transform: scaleY(1); }
.ico { flex: none; width: 38px; height: 38px; display: grid; place-items: center; color: var(--c); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%); }
.info { flex: 1; min-width: 0; }
.plat { font-family: var(--f-en); font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--c); }
.lab { margin-top: 2px; font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arr { flex: none; color: var(--dim); font-family: var(--f-en); font-size: 12px; transition: transform .25s, color .25s; }
.link:hover .arr { transform: translateX(4px); color: var(--c); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pair .link { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px; }
.pair .arr { position: absolute; right: 14px; top: 16px; }
.pair .lab { white-space: normal; }

.c-x { --c: #e7e9ea; } .c-yt { --c: #ff3355; } .c-tw { --c: #a970ff; } .c-re { --c: var(--teal); }
.c-ig { --c: #ff4d8d; } .c-shop { --c: var(--orange); } .c-works { --c: #ff6b81; } .c-tools { --c: #ffd23f; }

footer { text-align: center; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
footer a { color: var(--teal); text-decoration: none; font-weight: 700; font-size: 13px; }
footer a:hover { text-decoration: underline; }
footer small { font-family: var(--f-en); font-size: 10px; letter-spacing: .14em; color: var(--dim); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 360px) { .pair { grid-template-columns: 1fr; } }

/* page header (subpages) */
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-en); font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--dim); text-decoration: none; transition: color .2s; }
.back:hover { color: var(--red); }
.phead { display: flex; flex-direction: column; gap: 12px; animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.ptitle { font-family: var(--f-jp); font-weight: 900; font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.1; letter-spacing: .04em; color: #fff; text-shadow: 0 0 24px var(--red-glow); text-wrap: balance; }
.ptitle span { color: var(--red); }
.pkicker { font-family: var(--f-en); font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border: 1px solid currentColor; background: rgba(10,5,8,.55); }
.t-teal { color: var(--teal); } .t-orange { color: var(--orange); } .t-red { color: #ff5a68; }
.lead { font-size: 14px; line-height: 1.9; color: var(--dim); letter-spacing: .02em; }
.lead a { color: var(--teal); text-decoration: none; font-weight: 700; }
.lead a:hover { text-decoration: underline; }
.desc { display: block; margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--dim); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { --c: var(--red); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; background: var(--card); border: 1px solid var(--c);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); transition: background .2s, color .2s; }
.btn:hover, .btn:focus-visible { background: var(--c); color: var(--dark); }
.btn svg { flex: none; }
