/* ==========================================================================
   herosoundiy — 共通スタイル
   外部CDN不使用（フォント・アイコンとも自己完結）。
   プライバシーを重視するアプリの公式サイトとして、
   閲覧者の情報が第三者へ渡らないようにする方針。
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #1a1d21;
  --text-muted: #5c636b;
  --brand: #3d5afe;
  --brand-soft: rgba(61, 90, 254, 0.08);
  --menou: #00838f;
  --pakapako: #f0a500;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 2px 4px rgba(16, 24, 40, 0.06), 0 16px 40px rgba(16, 24, 40, 0.1);
  --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --bg-soft: #141920;
    --surface: #171d26;
    --border: #262e3a;
    --text: #e8eaed;
    --text-muted: #9aa4b2;
    --brand: #7c92ff;
    --brand-soft: rgba(124, 146, 255, 0.12);
    --menou: #4dd0e1;
    --pakapako: #ffc65c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { opacity: 0.75; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }

/* ---------- ヒーロー ---------- */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(1000px 400px at 50% -120px, var(--brand-soft), transparent 70%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.03rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- セクション ---------- */
.section { padding: 56px 0; }

.section-head { margin-bottom: 28px; }

.section-head h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ---------- 製品カード ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent, var(--brand)) 40%, var(--border));
}

.product-mark {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent, var(--brand)) 10%, var(--bg-soft));
  border-bottom: 1px solid var(--border);
}

.product-mark svg { width: 60px; height: 60px; }

.product-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }

.product-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.product-body p.desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 14px 0 18px;
  flex-grow: 1;
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; }

.tag {
  font-size: 0.73rem;
  line-height: 1.6;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-soft);
}

.badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--brand)) 14%, transparent);
  color: var(--accent, var(--brand));
  border: 1px solid color-mix(in srgb, var(--accent, var(--brand)) 30%, transparent);
  white-space: nowrap;
}

/* ---------- ボタン ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent, var(--brand)); color: #fff; }
.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { background: var(--bg-soft); }

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 34px 0;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- 準備中の注記 ---------- */
.notice {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  .hero { padding: 56px 0 44px; }
  .section { padding: 40px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; font-size: 0.82rem; }
  /* 狭い画面ではページ内アンカーを省いてヘッダーの窮屈さを避ける */
  .site-nav .nav-anchor { display: none; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   言語切替
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1;
}

.lang-switch a,
.lang-switch span {
  padding: 6px 11px;
  text-decoration: none;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.lang-switch a:hover { background: var(--bg-soft); color: var(--text); }

.lang-switch [aria-current="true"] {
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

/* ==========================================================================
   機能リスト（LP）
   ========================================================================== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature p { color: var(--text-muted); font-size: 0.89rem; }

/* ゲーム一覧（チップ） */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
}

.chip small { color: var(--text-muted); font-size: 0.8em; margin-left: 6px; }

/* ==========================================================================
   規約・ポリシー
   ========================================================================== */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 0 8px; }

.legal .doc-head { margin-bottom: 28px; }

.legal .doc-head h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal .doc-head .doc-app {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.legal .doc-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.legal h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 26px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent, var(--brand)) 45%, transparent);
}

.legal h2:first-child { margin-top: 0; }

.legal p { font-size: 0.93rem; margin-bottom: 10px; }

.legal ul { padding-left: 20px; margin: 8px 0 12px; }

.legal li { font-size: 0.93rem; margin-bottom: 5px; }

.legal .important {
  background: color-mix(in srgb, var(--accent, var(--brand)) 9%, transparent);
  border-left: 3px solid var(--accent, var(--brand));
  border-radius: 6px;
  padding: 12px 14px;
  font-weight: 600;
  margin: 12px 0;
}

.legal .doc-date {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: right;
}

.legal .doc-note {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* パンくず */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 26px;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 640px) {
  .legal { padding-top: 28px; }
  .legal .doc-body { padding: 22px 18px; }
}
