/* =========================================================
   魔神少女コネクト！ 公式サイト — styles
   ポータル（/top/）と同じライトテーマ。アクセントはゲームの紫・金
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-2: #f6f3fb;
  --bg-3: #ece7f5;
  --panel: #ffffff;
  --line: rgba(28, 20, 48, 0.12);
  --text: #1c1430;
  --muted: #5c5470;
  --dim: #8a8299;
  --accent: #7a4bd6;      /* ゲームの紫 */
  --accent-2: #ff3d9a;    /* シリーズ共通のマゼンタ */
  --gold: #c9930a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 28px rgba(60, 30, 110, 0.16);
  --font-latin: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --nav-h: 64px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp), var(--font-latin);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body[data-lang="en"] { font-family: var(--font-latin), var(--font-jp); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(14px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav__icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.nav__name { display: flex; flex-direction: column; line-height: 1.15; }
.nav__name-main { font-weight: 900; font-size: 1.02rem; letter-spacing: .02em; }
.nav__name-sub { font-family: var(--font-latin); font-weight: 600; font-size: .68rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--muted);
  transition: background .15s, color .15s;
}
.nav__links a:hover { background: var(--bg-3); color: var(--text); }
.lang { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang__btn {
  border: 0; background: transparent; color: var(--muted); padding: 5px 12px; border-radius: 999px;
  font-weight: 700; font-size: .85rem; cursor: pointer;
}
.lang__btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.nav__toggle {
  display: none; margin-left: 6px; width: 40px; height: 40px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 40px) clamp(48px, 6vw, 80px);
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("assets/img/title_bg.jpg") center 35% / cover no-repeat;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(40, 16, 70, .82) 0%, rgba(70, 30, 120, .66) 55%, rgba(30, 10, 60, .78) 100%);
}
.hero__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero__text, .hero__phone { min-width: 0; }
.hero__kicker { font-weight: 700; letter-spacing: .12em; font-size: .82rem; opacity: .85; margin-bottom: 14px; }
.hero__title { margin: 0 0 18px; }
.hero__logo { width: min(100%, 560px); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.hero__title-text { display: none; }
.hero__lead { max-width: 560px; font-size: 1.02rem; line-height: 1.9; opacity: .95; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.hero__facts li {
  padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
}
.hero__phone { display: flex; justify-content: center; }
.phone {
  width: min(100%, 300px); aspect-ratio: 9 / 16; border-radius: 34px; padding: 10px;
  background: #16111f; box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.08);
  transform: rotate(-3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }

/* ---------- STORE BADGES ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: inline-flex; border-radius: 8px; transition: transform .15s; }
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 56px; width: auto; }
.stores--big { justify-content: center; }
.stores--big img { height: 68px; }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 40px); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--alt { background: var(--bg-2); }
.section-head { margin-bottom: clamp(22px, 3vw, 36px); }
.eyebrow {
  display: inline-block; font-family: var(--font-latin); font-weight: 700; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; line-height: 1.35; }
.section-note { color: var(--muted); margin-top: 8px; }

/* about */
.about { display: grid; gap: 18px; }
.about__lead { font-size: 1.02rem; max-width: 820px; text-wrap: pretty; }
.hero__lead, .news p, .link p { text-wrap: pretty; }
.about__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.about__facts li {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-align: center; display: grid; gap: 2px;
}
.about__facts strong { font-family: var(--font-latin); font-size: 1.9rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.about__facts span { color: var(--muted); font-size: .9rem; }

/* screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, calc((100% - 64px) / 5)); gap: 16px;
  overflow-x: auto; padding: 6px 0 18px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots img {
  scroll-snap-align: start; border-radius: 18px; box-shadow: var(--shadow); background: #000;
  aspect-ratio: 9 / 16; width: 100%; height: auto; object-fit: cover;
}

.grid { display: grid; gap: 18px; }

/* news */
.news { display: grid; gap: 10px; }
.news li {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
}
.news time { font-family: var(--font-latin); font-weight: 700; color: var(--accent); font-size: .92rem; padding-top: 2px; }
.news h3 { font-size: 1rem; font-weight: 800; }
.news p { color: var(--muted); font-size: .92rem; margin-top: 2px; }

/* download */
.section--download { text-align: center; }
.req { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.req > div {
  display: grid; gap: 2px; min-width: 200px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 18px;
}
.req dt { font-family: var(--font-latin); font-weight: 700; color: var(--accent); font-size: .85rem; letter-spacing: .06em; }
.req dd { font-size: .95rem; }

/* links */
.grid--links { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: transform .15s, box-shadow .15s;
}
.link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.link h3 { font-size: 1rem; font-weight: 800; }
.link p { color: var(--muted); font-size: .86rem; }
.link__arrow { color: var(--dim); font-family: var(--font-latin); font-weight: 700; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 32px clamp(16px, 4vw, 40px) 40px; text-align: center; color: var(--muted); font-size: .88rem; }
.footer__brand { font-weight: 800; color: var(--text); }
.footer__copy { margin-top: 4px; }
.footer__legal { margin-top: 10px; font-size: .74rem; color: var(--dim); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero__lead { margin: 0 auto; }
  .hero__facts, .stores { justify-content: center; }
  .hero__phone { order: -1; }
  .phone { width: min(70%, 240px); transform: none; }
  .grid--links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nav { gap: 10px; }
  .nav__brand { flex: 1 1 auto; min-width: 0; }
  .nav__name { min-width: 0; }
  .nav__name-main { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav__name-sub { display: none; }
  .nav__links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; padding: 10px 14px 16px; background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; flex: 0 0 auto; }
  .lang { flex: 0 0 auto; margin-left: auto; }
  .lang__btn { padding: 4px 9px; font-size: .8rem; }
  .hero__logo { width: 100%; }
  .news li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stores img { height: 50px; }
  .stores--big img { height: 56px; }
}
