/* ============================================================
   Utawave 公式サイト 共通スタイル v2
   宇宙/星雲 × DAW モチーフのダークデザイン / レスポンシブ対応
   ============================================================ */

:root {
  --bg:        #0a0c12;
  --bg-2:      #0d1019;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text:      #eef1f6;
  --muted:     #9aa3b2;
  --accent:    #f97c1d;
  --accent-2:  #ffa14e;
  --ice:       #6fb6ff;
  --radius:    16px;
  --maxw:      1120px;
  --font-disp: "Space Grotesk", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
               "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; }

/* キーボード操作時のフォーカスリング (マウス操作では出さない・WCAG 2.4.7) */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
.btn:focus-visible { outline-offset: 4px; }
.btn-primary:focus-visible { outline-color: #fff; }

/* スキップリンク (キーボードでフォーカスした時だけ表示・WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 1000;
  background: var(--bg-2);
  color: var(--text);
  padding: 10px 18px;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }
#main:focus { outline: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

::selection { background: rgba(249, 124, 29, 0.35); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- ヘッダー / ナビ ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-disp);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: #fff; }
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  filter: drop-shadow(0 0 10px rgba(111, 182, 255, 0.35));
}

.site-nav { display: flex; gap: 2px; align-items: center; }
.site-nav a {
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}
.site-nav a.active { color: var(--accent-2); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---- 言語切替ドロップダウン (details/summary・JS 無しで開閉) ---- */
.lang-switch { position: relative; margin-left: 6px; }
.lang-switch > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::marker { content: ''; }
.lang-switch > summary:hover { color: var(--accent-2); border-color: var(--accent-2); background: var(--surface-2); }
.lang-switch .globe { width: 16px; height: 16px; flex: none; }
.lang-switch .caret { font-size: 10px; opacity: 0.7; transition: transform 0.15s ease; }
.lang-switch[open] > summary .caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 164px;
  background: rgba(16, 19, 28, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.lang-menu a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.lang-menu a.active { color: var(--accent-2); font-weight: 700; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  padding: 10px 14px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12, 14, 21, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 10px 18px 20px;
    gap: 2px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  /* モバイルでは言語メニューを inline 展開 (絶対配置をやめてナビ内に押し出す) */
  .lang-switch { margin-left: 0; margin-top: 4px; }
  .lang-switch > summary { justify-content: space-between; padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  .lang-menu {
    position: static;
    min-width: 0;
    margin-top: 4px;
    padding: 4px 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .lang-menu a { padding: 12px; font-size: 15px; }
}

/* ---------------- ヒーロー ---------------- */

.hero {
  position: relative;
  padding: 96px 0 0;
  text-align: center;
  overflow: hidden;
}

/* 背景: タイムライン風グリッド + 星雲グロー */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.028) 0 1px,
    transparent 1px 88px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
}
.hero::before {
  content: "";
  position: absolute;
  top: -340px;
  left: 50%;
  transform: translateX(-72%);
  width: 980px;
  height: 760px;
  background: radial-gradient(closest-side, rgba(249, 124, 29, 0.16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(8%);
  width: 920px;
  height: 820px;
  background: radial-gradient(closest-side, rgba(89, 142, 255, 0.13), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  padding: 7px 18px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.22;
  letter-spacing: 0.005em;
  font-weight: 900;
  margin: 0 0 24px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #ffb36b 10%, var(--accent) 55%, #ff6a3d 95%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.hero .lead {
  color: var(--muted);
  font-size: clamp(15px, 2.3vw, 17.5px);
  max-width: 620px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
              border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #ff8e2e, #f0691e);
  /* 明るいオレンジ上で白文字は AA 不合格 (約2.3:1)。濃色文字でコントラストを確保
     (明側 7.5:1 / 暗側 5.6:1)。ブランドの鮮やかなオレンジは維持する。 */
  color: #2a1606;
  box-shadow: 0 10px 34px rgba(240, 105, 30, 0.38),
              inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 14px 44px rgba(240, 105, 30, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  border: 1px solid var(--border-hi);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); }
.btn-sub { display: block; font-size: 11.5px; font-weight: 500; opacity: 0.85; margin-top: 2px; }

/* 「近日公開」用の無効ボタン (まだ配布していない期間の表示) */
.btn-soon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-hi);
  color: var(--muted);
  cursor: default;
}
.btn-soon:hover { transform: none; }
.btn-soon .btn-sub { opacity: 0.7; }

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
}
.hero-meta li { display: flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent-2); flex: none; }

/* 波形 + プレイヘッド (装飾) */
.wave-strip {
  position: relative;
  height: 130px;
  margin-top: 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 4vw;
}
.wave span {
  flex: 1;
  min-width: 2px;
  height: calc(var(--h) * 1%);
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(249, 124, 29, 0.55), rgba(111, 182, 255, 0.22));
  opacity: 0.5;
}
.playhead {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-2), transparent);
  box-shadow: 0 0 14px rgba(249, 124, 29, 0.9);
  animation: sweep 13s linear infinite;
}
@keyframes sweep {
  from { left: 0; }
  to   { left: 100%; }
}

/* スクリーンショット */
.hero-shot {
  position: relative;
  z-index: 2;
  margin: -64px auto 0;
  max-width: 1000px;
  padding: 0 24px 84px;
}
.hero-shot img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border-hi);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.65),
              0 0 0 1px rgba(0, 0, 0, 0.4),
              0 0 90px rgba(249, 124, 29, 0.10);
}
.hero-shot .shot-placeholder {
  display: none;
  border: 1px dashed var(--border-hi);
  border-radius: 18px;
  padding: 90px 20px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}
.hero-shot.noimg img { display: none; }
.hero-shot.noimg .shot-placeholder { display: block; }

@media (max-width: 720px) {
  .hero { padding-top: 64px; }
  .wave-strip { height: 90px; }
  .hero-shot { margin-top: -42px; padding-bottom: 56px; }
}

/* ---------------- スクリーンショット ショーケース ---------------- */

.shots { display: flex; flex-direction: column; gap: 30px; }
.shot-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px 48px;
  align-items: center;
}
.shot-row:nth-child(even) .shot-figure { order: 2; }
.shot-figure { margin: 0; min-width: 0; }
.shot-figure img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border-hi);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(249, 124, 29, 0.06);
}
.shot-figure.portrait img { max-width: 380px; margin: 0 auto; }
.shot-text h3 {
  font-family: var(--font-disp);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}
.shot-text p { margin: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 760px) {
  .shot-row { grid-template-columns: 1fr; gap: 16px; }
  .shot-row:nth-child(even) .shot-figure { order: 0; }
  .shot-figure.portrait img { max-width: 300px; }
}

/* ---------------- セクション共通 ---------------- */

.section { position: relative; padding: 96px 0; }
.section.alt {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(89, 142, 255, 0.05), transparent 70%),
    radial-gradient(900px 420px at 88% 100%, rgba(249, 124, 29, 0.05), transparent 70%),
    var(--bg-2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sec-head { text-align: center; margin-bottom: 52px; }
.sec-eyebrow {
  display: inline-block;
  font-family: var(--font-disp);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.section h2 {
  font-family: var(--font-disp);
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0 0 14px;
}
.section .section-lead {
  color: var(--muted);
  margin: 0 auto;
  max-width: 620px;
  font-size: 15.5px;
}

/* ---------------- 機能カード ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.feature {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 124, 29, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 50px rgba(249, 124, 29, 0.07);
}
.feature .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(249, 124, 29, 0.20), rgba(249, 124, 29, 0.05));
  border: 1px solid rgba(249, 124, 29, 0.30);
  color: var(--accent-2);
  margin-bottom: 16px;
}
.feature .icon svg { width: 23px; height: 23px; }
.feature h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.9; }

/* 安心セクションのカードは氷色アクセント */
.feature.cool .icon {
  background: linear-gradient(135deg, rgba(111, 182, 255, 0.18), rgba(111, 182, 255, 0.04));
  border-color: rgba(111, 182, 255, 0.28);
  color: var(--ice);
}
.feature.cool:hover {
  border-color: rgba(111, 182, 255, 0.38);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 50px rgba(111, 182, 255, 0.06);
}

/* ---------------- 支援セクション ---------------- */

.support-box {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 36px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  overflow: hidden;
}
.support-box::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 280px;
  background: radial-gradient(closest-side, rgba(249, 124, 29, 0.14), transparent 70%);
  pointer-events: none;
}
.support-box h2 { position: relative; }
.support-box p { position: relative; color: var(--muted); }
.support-box .cta-row { position: relative; margin-top: 28px; }

/* ---------------- 記事系ページ ---------------- */

.page {
  position: relative;
  padding: 72px 0 88px;
  max-width: 780px;
  margin: 0 auto;
}
/* 記事本文中の図版 (スクリーンショット + キャプション) */
.page figure { margin: 28px 0; }
.page figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-hi);
}
.page figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* 記事ページの可視パンくず (BreadcrumbList 構造化データと対応) */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--text); }
.page h1 {
  font-family: var(--font-disp);
  font-size: clamp(30px, 4.6vw, 42px);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}
.page .page-lead { color: var(--muted); margin: 0 0 44px; font-size: 15.5px; }
.page h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 56px 0 16px;
  padding-left: 16px;
  position: relative;
}
.page h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  bottom: 0.32em;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px rgba(249, 124, 29, 0.45);
}
.page h3 { font-size: 16.5px; margin: 30px 0 8px; font-weight: 700; }
.page ul, .page ol { padding-left: 1.4em; }
.page li { margin: 6px 0; }
.page li::marker { color: var(--accent-2); }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 18px 0;
}

.page-figure { margin: 8px 0 30px; }
.page-figure img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border-hi);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(249, 124, 29, 0.06);
}
.page-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.note {
  background: rgba(249, 124, 29, 0.06);
  border: 1px solid rgba(249, 124, 29, 0.22);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 20px;
  margin: 20px 0;
  font-size: 14.5px;
  color: var(--muted);
}
.note strong { color: var(--text); }

.notice {
  background: rgba(111, 182, 255, 0.06);
  border: 1px solid rgba(111, 182, 255, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
}

/* テーブル */

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
}
th, td {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  text-align: left;
  vertical-align: top;
}
tr:last-child th, tr:last-child td { border-bottom: none; }
th {
  background: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
td code, li code, p code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--accent-2);
}
kbd {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-hi);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 9px;
  font-size: 0.86em;
  font-family: inherit;
  white-space: nowrap;
}

/* ダウンロードカード */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.dl-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 26px 30px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.dl-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}
.dl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 124, 29, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 50px rgba(249, 124, 29, 0.07);
}
.dl-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-disp);
  font-size: 21px;
  font-weight: 700;
}
.dl-card .req { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }

/* FAQ */

details.faq {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 10px 0;
  padding: 0 22px;
  transition: border-color 0.2s ease;
}
details.faq:hover { border-color: var(--border-hi); }
details.faq[open] { border-color: rgba(249, 124, 29, 0.35); }
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-2);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { content: "−"; }
details.faq .faq-body {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
}

/* 更新履歴 */

.release {
  position: relative;
  border-left: 2px solid rgba(249, 124, 29, 0.4);
  padding: 2px 0 10px 26px;
  margin: 32px 0;
}
.release::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(249, 124, 29, 0.8);
}
.release h2 {
  margin: 0 0 2px;
  padding: 0;
  font-family: var(--font-disp);
  font-size: 22px;
}
.release h2::before { display: none; }
.release .date { color: var(--muted); font-size: 13.5px; }
.release-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 2px;
}
.release-head h2 { margin: 0; }
.release .dl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-hi);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.dl-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(249, 124, 29, 0.55);
}
.dl-link svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.92; }
.dl-link .ext { color: var(--muted); font-weight: 500; font-size: 11px; }

/* 更新履歴ページ下部の固定リンク（最新版DL / 過去版アーカイブ）。版別リンクは置かずここに集約する */
.changelog-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---------------- フッター ---------------- */

.site-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 52px 0 56px;
  margin-top: 56px;
  background: var(--bg-2);
  font-size: 14px;
  overflow: hidden;
}
.site-footer::after {
  content: "UTAWAVE";
  position: absolute;
  left: 50%;
  bottom: -0.42em;
  transform: translateX(-50%);
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: clamp(90px, 16vw, 210px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.022);
  white-space: nowrap;
  pointer-events: none;
}
.footer-cols {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-cols nav { display: flex; gap: 6px 26px; flex-wrap: wrap; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--text); }
.copyright {
  position: relative;
  z-index: 1;
  color: var(--muted);
  margin-top: 24px;
  font-size: 13px;
  opacity: 0.8;
}

/* ---------------- スクロール出現アニメーション ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--d, 0s);
  }
  .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .playhead { animation: none; display: none; }
}
