/* 魂ストライク 公式サイト — ゲームのUI(サイバー/メタリック・ネオン)に合わせた配色 */
:root {
  --bg: #0b0816;
  --bg2: #120c24;
  --panel: rgba(22, 16, 44, 0.78);
  --line: rgba(140, 160, 200, 0.28);
  --text: #eef2ff;
  --muted: #b6bdd8;
  --pink: #ff46c8;
  --cyan: #46dcff;
  --gold: #ffc850;
  --jp: "M PLUS 1", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Orbitron", var(--jp);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--jp);
  font-weight: 500;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
strong { color: #fff; font-weight: 900; }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.section { padding: 96px 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 24px;
  background: linear-gradient(180deg, rgba(8, 5, 18, 0.92), rgba(8, 5, 18, 0.55));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-logo img { height: 40px; width: auto; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font: 600 13px/1 var(--en); letter-spacing: .12em; }
.nav nav a:hover { color: #fff; text-shadow: 0 0 10px var(--cyan); }

/* ---------- buttons (ゲームのボタンと同じく角を斜めに落とした形) ---------- */
.btn {
  --c: var(--cyan);
  display: inline-block;
  padding: 12px 28px;
  color: #fff; text-decoration: none;
  font: 800 15px/1.2 var(--jp); letter-spacing: .06em;
  background: linear-gradient(180deg, #3a4252, #1a1e28 55%, #2a303c);
  border: 2px solid #96a5b9;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: inset 4px 0 0 var(--c);
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.25); box-shadow: inset 4px 0 0 var(--c), 0 0 22px var(--c); }
.btn-main { --c: var(--pink); background: linear-gradient(180deg, #ff6fd6, #c21f8f); border-color: #ffc0ee; }
.btn-store { --c: var(--gold); background: linear-gradient(180deg, #ffd977, #c98a10); color: #1b1200; border-color: #ffe7a8; }
.btn-x { margin-left: 8px; padding: 8px 18px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100vh, 960px); display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: 70% 40%;
  animation: kv 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 4, 20, .95) 0%, rgba(8, 4, 20, .7) 38%, rgba(8, 4, 20, 0) 65%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 8, 22, 0) 22%);
}
@keyframes kv { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(-1.5%); } }
.hero-inner { position: relative; z-index: 2; padding: 120px 0 80px 6vw; max-width: 720px; }
.hero-logo { width: min(640px, 88vw); filter: drop-shadow(0 0 24px rgba(255, 70, 200, .45)); animation: pop .9s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.hero-copy {
  margin: 18px 0 4px; font-size: clamp(26px, 4.2vw, 52px); font-weight: 900; letter-spacing: .06em; white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 70, 200, .8), 0 3px 0 #2a0a3a;
}
.hero-sub { margin: 0 0 18px; color: #d8def5; font-size: clamp(15px, 1.6vw, 19px); }
.badge {
  display: inline-block; margin: 0 0 26px; padding: 4px 16px;
  font: 700 14px/1.6 var(--jp); color: var(--cyan);
  border: 1px solid var(--cyan); background: rgba(70, 220, 255, .08);
  box-shadow: 0 0 14px rgba(70, 220, 255, .35);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- headings ---------- */
.h2 { margin: 0 0 36px; font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; line-height: 1.4; }
.h2 span {
  display: block; margin-bottom: 6px;
  font: 800 14px/1 var(--en); letter-spacing: .3em; color: var(--pink);
  text-shadow: 0 0 10px var(--pink);
}
.lead { color: var(--muted); font-size: 17px; max-width: 760px; }

/* ---------- story ---------- */
.story { position: relative; padding: 120px 0; overflow: hidden; }
.story-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .32; filter: saturate(1.1); }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg), rgba(11, 8, 22, .55) 30%, rgba(11, 8, 22, .55) 70%, var(--bg)); }
.story-inner { position: relative; z-index: 2; max-width: 780px; font-size: 17px; }
.story-inner p { margin: 0 0 1.1em; text-shadow: 0 2px 8px #000; }
.story-last { font-size: 19px; font-weight: 700; color: #fff; border-left: 4px solid var(--pink); padding-left: 16px; }

/* ---------- features ---------- */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  margin-bottom: 64px; padding: 22px;
  background: var(--panel); border: 1px solid var(--line);
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
}
.feature.rev { grid-template-columns: 1fr 1.15fr; }
.feature.rev img { order: 2; }
.feature img { border: 2px solid rgba(150, 170, 200, .5); box-shadow: 0 0 30px rgba(70, 220, 255, .18); }
.feature h3 { margin: 0 0 12px; font-size: 24px; font-weight: 900; color: var(--cyan); }
.feature p { margin: 0 0 14px; color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12px; font-weight: 700; padding: 3px 10px; border: 1px solid rgba(255, 70, 200, .6); color: #ffd2f2; background: rgba(255, 70, 200, .08); }

/* ---------- dress up ---------- */
.dress { padding: 100px 0; background: radial-gradient(ellipse at 50% 40%, #2a1050, var(--bg) 70%); }
.dress-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0 18px; }
.dress-row figure {
  margin: 0; padding: 14px 10px 10px; text-align: center;
  background: linear-gradient(180deg, rgba(120, 40, 200, .22), rgba(10, 6, 22, .6));
  border: 1px solid rgba(190, 120, 255, .45);
}
.dress-row img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .3s; }
.dress-row figure:hover img { transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(255, 70, 200, .6)); }
.dress-row figcaption { font: 800 13px/1.4 var(--en); letter-spacing: .06em; color: var(--gold); }
.note { color: var(--muted); font-size: 14px; }

/* ---------- character ---------- */
.chara-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.chara {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 22px;
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--cyan);
}
.chara.rival { border-top-color: var(--pink); }
.chara img { width: 200px; aspect-ratio: 1; object-fit: contain; }
.chara-role { margin: 0; font-size: 13px; font-weight: 700; color: var(--gold); }
.chara h3 { margin: 0 0 8px; font-size: 24px; font-weight: 900; }
.chara p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- movie ---------- */
.movie { padding: 100px 0; background: linear-gradient(180deg, var(--bg), var(--bg2) 50%, var(--bg)); }
.movie-inner { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; }
.pv { width: 340px; aspect-ratio: 9 / 16; background: #000; border: 2px solid #96a5b9; box-shadow: 0 0 40px rgba(255, 70, 200, .3); }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shots a { display: block; border: 1px solid var(--line); overflow: hidden; }
.shots img { transition: transform .3s; }
.shots a:hover img { transform: scale(1.05); }
.shots a:first-child { grid-column: span 2; grid-row: span 2; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .88); cursor: zoom-out; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; border: 2px solid #96a5b9; }

/* ---------- info ---------- */
.info { width: 100%; border-collapse: collapse; background: var(--panel); }
.info th, .info td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.info th { width: 180px; color: var(--cyan); font-weight: 700; white-space: nowrap; }

/* ---------- footer ---------- */
.foot { padding: 60px 16px 40px; text-align: center; border-top: 1px solid var(--line); background: #07050f; }
.foot img { width: 260px; margin: 0 auto 18px; }
.foot-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; }
.small { color: #8088a8; font-size: 12px; margin: 6px 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-logo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- smartphone ---------- */
@media (max-width: 860px) {
  .nav { padding: 8px 16px; gap: 10px; }
  .nav nav { display: none; }
  .nav-logo img { height: 32px; }
  .btn-x { margin-left: auto; }
  .hero { min-height: min(92vh, 780px); align-items: flex-end; }
  .hero-bg { background-position: 72% 30%; }
  .hero::after { background: linear-gradient(0deg, rgba(8, 4, 20, .97) 0%, rgba(8, 4, 20, .75) 45%, rgba(8, 4, 20, .1) 75%); }
  .hero-inner { padding: 0 16px 48px; }
  .section, .story, .dress, .movie { padding: 64px 0; }
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
  .feature.rev img { order: 0; }
  .dress-row { grid-template-columns: repeat(2, 1fr); }
  .chara-grid { grid-template-columns: 1fr; }
  .chara { grid-template-columns: 110px 1fr; padding: 14px; }
  .chara img { width: 110px; }
  .movie-inner { grid-template-columns: 1fr; }
  .pv { width: min(340px, 100%); margin: 0 auto; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots a:first-child { grid-column: auto; grid-row: auto; }
  .info th { width: 96px; padding: 12px 10px; }
  .info td { padding: 12px 10px; }
}

/* ---------- devlog(開発日誌) ---------- */
.log-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.log-card { display: block; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.log-card:hover { transform: translateY(-3px); box-shadow: 0 0 22px rgba(70, 220, 255, .25); }
.log-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.log-card div { padding: 14px 16px 18px; }
.log-card h3 { margin: 4px 0 6px; font-size: 18px; line-height: 1.5; color: #fff; }
.log-card p { margin: 0; color: var(--muted); font-size: 14px; }
.log-date { font: 700 13px/1 var(--en); color: var(--gold) !important; letter-spacing: .08em; }
.log-back { margin-top: 28px; text-align: center; }
.devlog-main { padding: 110px 0 60px; }
.log-article { max-width: 780px; margin: 0 auto; font-size: 17px; }
.log-article h1 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.4; margin: 6px 0 10px; }
.log-article h2 { margin: 2em 0 .6em; padding-left: 12px; border-left: 5px solid var(--pink); font-size: 23px; }
.log-article h3 { margin: 1.6em 0 .5em; color: var(--cyan); font-size: 19px; }
.log-article p { margin: 0 0 1.2em; }
.log-article figure { margin: 1.4em 0; }
.log-article figure img { border: 1px solid var(--line); }
.log-article figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 6px; }
.log-article ul:not(.tags) { padding-left: 1.4em; margin: 0 0 1.2em; }
.log-pager { max-width: 780px; margin: 40px auto 0; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.log-article .tags { margin-bottom: 28px; }

/* FSP integration */
.fsp-home{white-space:nowrap}.fsp-footer{display:block;margin:0 auto 24px;text-decoration:none;color:#ffc850}.edition-note{position:relative;z-index:3;padding:90px 24px 20px;background:#171021;color:#d9dcef;font-size:14px;text-align:center}.edition-note a{display:inline-block;margin-left:12px}.nav{gap:14px}.nav nav{gap:14px}.nav nav a{letter-spacing:.04em}a:focus-visible,button:focus-visible{outline:3px solid #ffc850;outline-offset:4px}@media(max-width:1150px){.nav nav{gap:10px}.nav nav a{font-size:11px}.btn-x{padding:8px 12px}}@media(max-width:860px){.edition-note{padding:78px 16px 16px;text-align:left}.edition-note a{margin:8px 0 0;display:block}.nav .fsp-home{margin-left:auto}}

/* Content remains visible before scrolling and without animation. */
.reveal{opacity:1;transform:none}
