/*
 * NextTune ホームページの共通スタイル（#362）。
 * 合意デザイン（docs/design/362-homepage/*.dc.html）のインラインスタイルをクラスに移したもの。
 * CSP（style-src 'self'）のため、HTML には style 属性・<style> を置かず、すべてここに書く。
 */

:root {
  color-scheme: dark;

  --bg: #07070d;
  --card: #101725;
  --card-hi: #1e2a44;
  --text: #f3f1fa;
  --muted: #c9c5dc;
  --faint: #9b96b3;
  --body-text: #d8d4e8;
  --link: #ffb4c6;
  --ink: #120d1f;
  --pink: #ff9e9e;
  --rose: #ff6fb1;
  --violet: #a78bfa;
  --line: rgba(255, 255, 255, 0.08);
  --grad: linear-gradient(100deg, #ff9e9e 0%, #ff6fb1 45%, #a78bfa 100%);
  --grad-2: linear-gradient(100deg, #ff9e9e, #a78bfa);

  --font-body: 'Zen Kaku Gothic New', system-ui, sans-serif;
  --font-display: 'Unbounded Variable', 'Zen Kaku Gothic New', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

a:hover {
  color: #ffffff;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ページ全体の枠。装飾の光（.glow）がはみ出しても横スクロールを出さない */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.glow--top-violet {
  top: -260px;
  right: -220px;
  width: 820px;
  height: 820px;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.42), rgba(167, 139, 250, 0) 70%);
}

/* トップの左とサポートの右上で使うローズの光。位置は .glow--side-rose / .glow--support */
.glow--rose {
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, rgba(255, 111, 177, 0.26), rgba(255, 111, 177, 0) 70%);
}

.glow--side-rose {
  top: 380px;
  left: -300px;
}

.glow--legal {
  top: -320px;
  left: 50%;
  margin-left: -500px;
  width: 1000px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.3), rgba(167, 139, 250, 0) 70%);
}

.glow--support {
  top: -300px;
  right: -200px;
}

/* 共通の横幅。左右の余白 24px はスマホでも 16px 以上を保つ */
.wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--violet);
}

.eyebrow--pink {
  color: var(--pink);
}

.eyebrow--hero {
  font-size: 14px;
}

/* ---------- ヘッダ / フッタ ---------- */

.site-header {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: #ffffff;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.brand--lg .brand-name {
  font-size: 22px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.navlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.navlink:hover,
.navlink[aria-current='page'] {
  color: #ffffff;
}

/* 角丸のボタン（.btn-nav / .btn-grad はグラデーション、.btn-dark は CTA 上の暗色）の共通部分 */
.btn-nav,
.btn-grad,
.btn-dark {
  align-items: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn-nav,
.btn-grad {
  background: var(--grad-2);
  color: var(--ink);
  font-size: 15px;
}

.btn-nav:hover,
.btn-grad:hover {
  color: var(--ink);
}

.btn-nav {
  display: inline-flex;
  min-height: 44px;
  padding: 12px 22px;
}

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  padding-top: 40px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.copyright {
  font-size: 13px;
  color: var(--faint);
}

/* ---------- トップ: ヒーロー ---------- */

.hero {
  padding-top: 72px;
  padding-bottom: 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-title {
  font-size: clamp(36px, 9vw, 64px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-lead {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--muted);
}

/* ストア公開まではリンクにしない「近日公開」の表示（公開時に公式バッジへ差し替える） */
.store-soon {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  background: #ffffff;
  color: #0b0b14;
}

.store-badge--outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge-label {
  font-size: 11px;
}

.store-badge--outline .store-badge-label {
  color: var(--muted);
}

.store-badge-name {
  font-size: 17px;
  font-weight: 700;
}

.store-note {
  font-size: 13px;
  color: var(--faint);
}

.hero-visual {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero-emblem {
  position: relative;
  width: 440px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
}

.ring {
  position: absolute;
  border-radius: 50%;
}

.ring--halo {
  inset: 0;
  background: radial-gradient(
    closest-side,
    rgba(255, 111, 177, 0.3),
    rgba(167, 139, 250, 0.2) 55%,
    rgba(7, 7, 13, 0) 100%
  );
}

.ring--outer {
  inset: 6%;
  border: 1px solid rgba(255, 158, 158, 0.22);
}

.ring--middle {
  inset: 17%;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.ring--inner {
  inset: 28%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.hero-arrows {
  position: absolute;
  inset: 14%;
  width: 72%;
  height: 72%;
  overflow: visible;
}

/* 13 本のバーは index.html の <svg> の <rect>（高さは viewBox 56 に対する %） */
.eq {
  position: absolute;
  left: 50%;
  bottom: 4%;
  margin-left: -110px;
  width: 220px;
  height: 56px;
  opacity: 0.85;
}

/* ---------- トップ: セクション ---------- */

.section {
  padding-top: 40px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: clamp(28px, 6.5vw, 40px);
  font-weight: 700;
  line-height: 1.35;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step {
  border-radius: 24px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(30, 42, 68, 0.9), rgba(16, 23, 37, 0.9));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
}

.step-title {
  font-size: 22px;
}

.step-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature {
  flex: 1 1 340px;
  min-width: 0;
  border-radius: 28px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 機能カードと問い合わせカードの右上の光。色は各カードの --tint、枠は --edge */
.feature,
.contact-card {
  background:
    radial-gradient(120% 120% at 100% 0%, var(--tint), rgba(16, 23, 37, 0) 60%), var(--card);
  border: 1px solid var(--edge);
}

.feature--public {
  --tint: rgba(255, 111, 177, 0.28);
  --edge: rgba(255, 158, 158, 0.25);
}

.feature--private {
  --tint: rgba(167, 139, 250, 0.32);
  --edge: rgba(167, 139, 250, 0.3);
}

.feature--ranking {
  --tint: rgba(255, 158, 158, 0.22);
  --edge: rgba(255, 255, 255, 0.1);
}

.feature-title {
  font-size: 26px;
}

.feature-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.cta-section {
  padding-bottom: 120px;
}

.cta {
  border-radius: 36px;
  padding: 72px 40px;
  text-align: center;
  background: linear-gradient(120deg, #ff9e9e 0%, #ff6fb1 45%, #a78bfa 100%);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-title {
  font-size: clamp(26px, 6.5vw, 44px);
  font-weight: 700;
  line-height: 1.3;
}

.btn-dark {
  display: inline-flex;
  min-height: 56px;
  padding: 0 32px;
  background: var(--bg);
  color: #ffffff;
  font-size: 17px;
}

.btn-dark:hover {
  color: var(--link);
}

/* ---------- 規約ページ（利用規約 / プライバシーポリシー共通） ---------- */

/* 規約・サポートのページ見出し。サポートは .support-head で下の余白だけ広げる */
.page-head {
  padding-top: 56px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-title {
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 700;
  line-height: 1.25;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.pill {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #ddd6fe;
}

.legal-layout {
  padding-top: 24px;
  padding-bottom: 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.toc {
  flex: 1 1 240px;
  border-radius: 20px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
}

.toc-link {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
}

.toc-link:hover {
  color: #ffffff;
}

.legal-body {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-size: 16px;
  line-height: 2;
  color: var(--body-text);
}

/* #358 が差し込む本文の要素（条 = section、見出し = h2、段落・箇条書き） */
.legal-body section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-body h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
}

.legal-body ol,
.legal-body ul {
  margin: 0;
  padding-left: 1.4em;
}

/* ---------- サポート ---------- */

.support-head {
  padding-bottom: 40px;
}

.support-lead {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
}

.support-layout {
  padding-bottom: 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}

.faq {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-title {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 700;
}

.faq details {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}

.faq details[open] {
  border-color: rgba(167, 139, 250, 0.45);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 24px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  color: var(--violet);
  font-size: 20px;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 24px 24px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.support-aside {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  --tint: rgba(167, 139, 250, 0.34);
  --edge: rgba(167, 139, 250, 0.3);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-title {
  font-size: 22px;
  font-weight: 700;
}

.contact-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.contact-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--faint);
}

.btn-grad {
  display: flex;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  overflow-wrap: anywhere;
  text-align: center;
}

.link-card {
  border-radius: 24px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-card .navlink {
  padding: 10px 0;
}

/* ---------- 404 ---------- */

.notfound {
  padding-top: 56px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.notfound .btn-grad {
  padding: 0 32px;
}
