/* ===== Motivnavi OS - About ===== */
:root {
  --bg: #15191d;
  --bg-deep: #0f1220;
  --surface: rgba(28, 34, 48, 0.72);
  --surface-solid: #1b2130;
  --border: rgba(127, 170, 230, 0.16);
  --border-strong: rgba(127, 190, 255, 0.45);
  --text: #e8edf3;
  --muted: #9aa6b8;
  --accent: #5aa9ff;
  --accent-2: #8fd8ff;
  --glow: 0 0 24px rgba(90, 169, 255, 0.35);
  --radius: 16px;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-en: "Segoe UI", "Helvetica Neue", Arial, var(--font);
  --topbar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
strong { color: #fff; font-weight: 700; }

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* ===== トップバー ===== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(15, 18, 28, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand img { border-radius: 6px; }
.brand span { white-space: nowrap; }

.topnav { flex: none; display: flex; align-items: center; gap: 8px; }
.topnav-links { display: flex; align-items: center; gap: 8px; }
.topnav a {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  transition: color .2s, background .2s;
}
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(90, 169, 255, 0.14);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s;
}
.download-btn:hover,
.download-btn[aria-current="page"] { background: rgba(90, 169, 255, 0.26); box-shadow: var(--glow); }
.download-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ハンバーガーメニュー（入りきらない時だけ表示 / js/app.js で .is-compact を付与） */
.menu-btn {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-strong); }
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-icon-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-icon-close { display: inline; }

.topbar.is-compact .menu-btn { display: grid; }
.topbar.is-compact .download-btn { margin-left: 0; }
.topbar.is-compact .topnav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
  max-height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  background: rgba(15, 18, 28, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar.is-compact.is-open .topnav-links { display: flex; }
/* それでも入りきらない狭い画面ではダウンロードボタンをアイコンのみに */
.topbar.is-icon { gap: 10px; }
.topbar.is-icon .topnav { gap: 6px; }
.topbar.is-icon .download-label { display: none; }
.topbar.is-icon .download-btn { padding: 9px 12px; }
.topbar.is-compact .topnav-links a {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 17px;
  color: var(--text);
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--topbar-h) + 40px) 0 80px;
  background-color: var(--bg-deep);
  isolation: isolate;
  overflow: hidden;
}

/* 背景スライドショー（3秒ごとに切り替え / js/app.js） */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide--wallpaper {
  background-image: url("/images/wallpaper/wallpaper.jpg");
  background-image: image-set(url("/images/wallpaper/wallpaper.webp") type("image/webp"), url("/images/wallpaper/wallpaper.jpg") type("image/jpeg"));
  background-position: center right;
}
.hero-slide--android-auto {
  background-image: url("/images/wallpaper/android-auto.jpg");
  background-image: image-set(url("/images/wallpaper/android-auto.webp") type("image/webp"), url("/images/wallpaper/android-auto.jpg") type("image/jpeg"));
}
.hero-slide--mediablue {
  background-image: url("/images/wallpaper/mediablue.jpg");
  background-image: image-set(url("/images/wallpaper/mediablue.webp") type("image/webp"), url("/images/wallpaper/mediablue.jpg") type("image/jpeg"));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 18, 32, 0.92) 0%, rgba(15, 18, 32, 0.55) 45%, rgba(15, 18, 32, 0) 75%),
    linear-gradient(180deg, rgba(15, 18, 32, 0) 70%, var(--bg-deep) 100%);
}

.hero-inner {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 4px;
  font-family: var(--font-en);
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-shadow: 0 0 40px rgba(90, 169, 255, 0.35);
}

/* 独自機能のタイプ表示（js/app.js） */
.hero-feature {
  margin: 18px 0 0;
  font-family: var(--font-en);
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent-2);
  text-shadow: 0 0 24px rgba(90, 169, 255, 0.45);
}
.hero-feature-anim {
  display: inline-flex;
  align-items: center;
  min-height: 1.3em;
  white-space: pre;
}
.hero-feature-plus {
  margin-right: 0.4em;
  color: var(--accent);
}
.hero-feature-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 4px;
  background: var(--accent-2);
  animation: hero-cursor-blink 1s steps(1) infinite;
}
@keyframes hero-cursor-blink {
  50% { opacity: 0; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-lead {
  margin: 16px 0 36px;
  font-size: clamp(18px, 2.4vw, 26px);
  color: #cfd8e4;
  line-height: 1.6;
}
.br-sp { display: none; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 26px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(90, 169, 255, 0.12);
  text-decoration: none;
  font-size: 16px;
  transition: background .2s, box-shadow .2s;
}
.hero-cta:hover { background: rgba(90, 169, 255, 0.24); box-shadow: var(--glow); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-cta--primary {
  background: linear-gradient(135deg, rgba(90, 169, 255, 0.45), rgba(90, 169, 255, 0.2));
  color: #fff;
  font-weight: 700;
}
.hero-cta--primary:hover { background: linear-gradient(135deg, rgba(90, 169, 255, 0.6), rgba(90, 169, 255, 0.3)); }
.hero-x {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #000;
  color: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hero-x:hover { border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 0 20px rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.hero-x svg { width: 20px; height: 20px; fill: currentColor; }
.hero-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== セクション共通 ===== */
.section { padding: 96px 0; }

.section-title {
  margin: 0 0 40px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
}
.section-title .en {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== About ===== */
.about-body {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(36, 46, 68, 0.6), rgba(20, 24, 36, 0.6));
}
.about-logo {
  flex: none;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}
.about-body p { margin: 0 0 8px; font-size: 18px; }
.about-body p:last-child { margin-bottom: 0; }

.about-visual {
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--glow);
}
.about-visual img { width: 100%; height: auto; }

/* ===== 取り付けイメージ ===== */
.gallery { padding-top: 24px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-solid);
  transition: border-color .25s, box-shadow .25s;
}
.shot:hover { border-color: var(--border-strong); box-shadow: var(--glow); }

.shot-link { display: block; overflow: hidden; cursor: zoom-in; }
.shot-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}
.shot-link:hover img { transform: scale(1.03); }

.shot figcaption {
  padding: 14px 18px 16px;
  color: #c9d2de;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== スクリーンショット ===== */
.screenshots { padding-top: 24px; }

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.screenshot-grid .shot-link img { aspect-ratio: 16 / 9; }

/* 拡大表示 */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 10, 18, 0.92); }
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  border-radius: 12px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(28, 34, 48, 0.85);
  color: var(--text);
  cursor: pointer;
}
.lightbox-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ===== 機能一覧 ===== */
.features {
  background:
    radial-gradient(ellipse 50% 35% at 85% 35%, rgba(90, 169, 255, 0.07), transparent),
    var(--bg-deep);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  position: relative;
  padding: 28px 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.feature:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(90, 169, 255, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
}
.feature p { margin: 0 0 8px; color: #c9d2de; font-size: 16px; }
.feature p:last-child { margin-bottom: 0; }
.feature .note {
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(90, 169, 255, 0.07);
  color: var(--muted);
  font-size: 15px;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 90, 0.5);
  background: rgba(255, 196, 90, 0.12);
  color: #ffd38a;
  font-size: 13px;
  font-weight: 600;
  vertical-align: 3px;
}

/* ===== 動作環境 ===== */
.specs { padding-top: 24px; }

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.spec-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.6;
}
.spec-table th,
.spec-table td {
  padding: 16px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table thead th {
  font-size: 17px;
  background: rgba(90, 169, 255, 0.08);
}
.spec-table thead .spec-rec { color: var(--accent-2); }
.spec-table thead .spec-min { color: #c9d2de; }
.spec-table thead th:first-child { width: 150px; }
.spec-table tbody th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.spec-table td { color: var(--text); }
.spec-table td small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.spec-notes {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.spec-card {
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.spec-card h3 { margin: 0 0 12px; font-size: 18px; }
.spec-card ul { margin: 0; padding-left: 1.2em; color: #c9d2de; }
.spec-card li { margin-bottom: 6px; }
.spec-card li::marker { color: var(--accent); }
.spec-remark {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(90, 169, 255, 0.07);
  color: var(--muted);
  font-size: 15px;
}
.spec-card--plus h3 { color: var(--accent-2); }

/* ===== リポジトリ一覧 ===== */
.repos { padding-top: 24px; }

.repo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.repo-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.repo-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.repo-head { display: flex; align-items: center; gap: 10px; }
.repo-icon,
.repo-ext {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.repo-icon { width: 24px; height: 24px; color: var(--accent-2); }
.repo-ext { width: 18px; height: 18px; margin-left: auto; color: var(--muted); }
.repo-card:hover .repo-ext { color: var(--accent-2); }
.repo-name { font-size: 18px; font-weight: 600; line-height: 1.4; }
.repo-desc { flex: 1; color: #c9d2de; font-size: 15px; line-height: 1.7; }
.repo-path {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.badge--ext {
  border-color: rgba(154, 166, 184, 0.5);
  background: rgba(154, 166, 184, 0.12);
  color: #c9d2de;
  font-size: 12px;
}

/* ===== 製作者情報 ===== */
.author { padding-top: 24px; }

.author-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(36, 46, 68, 0.6), rgba(20, 24, 36, 0.6));
}
.author-profile { display: flex; align-items: center; gap: 20px; }
.author-avatar {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  border: 1px solid rgba(124, 214, 90, 0.35);
  box-shadow: 0 0 24px rgba(124, 214, 90, 0.18);
}
.author-head p { margin: 0; }
.author-label {
  font-size: 14px;
  color: var(--muted);
}
.author-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}
.author-msg { margin-top: 6px !important; color: #c9d2de; }

.author-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.author-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(90, 169, 255, 0.08);
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
}
.author-links a:hover { background: rgba(90, 169, 255, 0.18); box-shadow: var(--glow); }
.author-links svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.author-links span { display: flex; flex-direction: column; line-height: 1.4; font-weight: 600; }
.author-links small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ===== フッター ===== */
.footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.footer .container { display: flex; align-items: center; gap: 10px; }
.footer img { border-radius: 4px; opacity: .85; }
.footer p { margin: 0; }

/* ===== ダウンロードページ ===== */
.page-hero {
  position: relative;
  padding: calc(var(--topbar-h) + 72px) 0 64px;
  background-color: var(--bg-deep);
  background-image: url("/images/wallpaper/wallpaper.jpg");
  background-image: image-set(url("/images/wallpaper/wallpaper.webp") type("image/webp"), url("/images/wallpaper/wallpaper.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center right;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 18, 32, 0.94) 0%, rgba(15, 18, 32, 0.7) 50%, rgba(15, 18, 32, 0.35) 100%),
    linear-gradient(180deg, rgba(15, 18, 32, 0) 60%, var(--bg-deep) 100%);
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 40px rgba(90, 169, 255, 0.35);
}
.page-hero h1 .en { font-family: var(--font-en); }
.page-hero h1 span { display: inline-block; }
.page-hero .hero-lead { margin: 16px 0 0; }

.download { padding-top: 8px; }

.dl-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 32px 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(36, 46, 68, 0.75), rgba(20, 24, 36, 0.75));
  box-shadow: var(--glow);
}
.dl-logo { width: 96px; height: 96px; border-radius: 20px; }
.dl-info h2 { margin: 0 0 12px; font-family: var(--font-en); font-size: 26px; line-height: 1.3; }
.dl-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 0;
  font-size: 15px;
}
.dl-meta dt { color: var(--muted); }
.dl-meta dd { margin: 0; color: var(--text); }
.dl-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  padding: 16px 28px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(90, 169, 255, 0.45), rgba(90, 169, 255, 0.2));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.dl-btn:hover {
  background: linear-gradient(135deg, rgba(90, 169, 255, 0.6), rgba(90, 169, 255, 0.3));
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.dl-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-sub { margin: 0; color: var(--muted); font-size: 13px; }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.dl-grid .spec-card { display: flex; flex-direction: column; }
.dl-grid .spec-card ul { flex: 1; }
.dl-grid .spec-card p { margin: 0; color: #c9d2de; flex: 1; }
.spec-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}
.spec-card .card-link:hover { text-decoration: underline; }
.dl-steps { margin: 0; padding-left: 1.4em; color: #c9d2de; }
.dl-steps li { margin-bottom: 6px; }
.dl-steps li::marker { color: var(--accent); font-weight: 700; }

/* ===== 404ページ ===== */
.error-hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 89px);
  min-height: calc(100svh - 89px);
}
.error-code {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(96px, 18vw, 200px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  text-shadow: 0 0 48px rgba(90, 169, 255, 0.55);
}
.error-hero h1 { margin-top: 8px; font-size: clamp(26px, 5.5vw, 60px); }
.error-hero .hero-lead { margin: 16px 0 32px; }

/* ===== レスポンシブ ===== */
@media (max-width: 820px) {
  .feature-grid, .gallery-grid, .screenshot-grid { grid-template-columns: 1fr; }
  .spec-notes { grid-template-columns: 1fr; }
  .repo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-card { grid-template-columns: auto 1fr; }
  .dl-action { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container, .hero-inner { width: calc(100% - 32px); }
  .topbar { padding-inline: 16px; }
  .download-btn { padding: 8px 14px; font-size: 14px; }
  .hero-slide--wallpaper { background-position: 45% center; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(15, 18, 32, 0.55) 0%, rgba(15, 18, 32, 0.8) 60%, var(--bg-deep) 100%);
  }
  .br-sp { display: inline; }
  .about-body { flex-direction: column; align-items: flex-start; padding: 28px 22px; gap: 20px; }
  .about-logo { width: 88px; height: 88px; border-radius: 18px; }
  .feature { padding: 24px 20px; }
  /* スマホ：項目ごとに「推奨 / 最低」を左右に並べる */
  .spec-table { font-size: 15px; }
  .spec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .spec-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
  }
  .spec-table tbody tr:last-child { border-bottom: 0; }
  .spec-table tbody th,
  .spec-table tbody td { border-bottom: 0; }
  .spec-table tbody th {
    grid-column: 1 / -1;
    padding: 12px 16px 0;
    color: var(--text);
  }
  .spec-table tbody td { padding: 6px 16px 14px; }
  .spec-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
  }
  .spec-table tbody td[data-label="推奨"]::before { color: var(--accent-2); }
  .spec-card { padding: 22px 20px; }
  .repo-grid { grid-template-columns: 1fr; }
  .repo-card { padding: 20px; }
  .page-hero { padding: calc(var(--topbar-h) + 48px) 0 48px; }
  .hero-actions { gap: 8px; }
  .hero-actions .hero-cta { padding: 12px 16px; font-size: 15px; }
  .hero-x { width: 46px; height: 46px; }
  .page-hero::before { background: linear-gradient(180deg, rgba(15, 18, 32, 0.7) 0%, rgba(15, 18, 32, 0.85) 60%, var(--bg-deep) 100%); }
  .dl-card { grid-template-columns: 1fr; padding: 26px 22px; gap: 20px; }
  .dl-logo { width: 72px; height: 72px; border-radius: 16px; }
  .dl-btn { width: 100%; min-width: 0; }
  .author-card { padding: 28px 22px; }
  .author-avatar { width: 72px; height: 72px; border-radius: 16px; }
  .lightbox { padding: 12px; }
  .author-links { width: 100%; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-feature-cursor { animation: none; }
}
