/* haraku.fujibit.com 共通スタイル（流楽と同じ作り）（scripts/build_site.py が各ページから読み込む） */
:root {
  --bg: #060a16;
  --bg-2: #0b1428;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(120, 200, 230, 0.16);
  --text: #eaf0fb;
  --muted: #a3b2cc;
  --faint: #6f7f9c;
  --accent: #00bcd4;
  --cyan: #4de3f5;
  --violet: #7c4dff;
  --radius: 20px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Noto Sans JP", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ヘッダー（すりガラス） */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 22, 0.62);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { white-space: nowrap; }
.brand small { color: var(--faint); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .lang { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; }
.nav .cta {
  white-space: nowrap; color: #fff; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.35);
}
@media (max-width: 820px) { .nav .hide-sm { display: none; } }

/* ヒーロー */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 35%, rgba(6, 10, 22, 0.92), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--bg));
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; color: var(--cyan);
  border: 1px solid rgba(77, 227, 245, 0.3); background: rgba(77, 227, 245, 0.07);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.08; font-weight: 900; letter-spacing: -0.01em;
  background: linear-gradient(120deg, #ffffff 10%, #a5f1fb 55%, #b49cff 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { margin-top: 22px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px;
  border-radius: 14px; background: #fff; color: #0b1020; font-weight: 700; min-width: 196px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(77, 227, 245, 0.25); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 0.7rem; font-weight: 600; color: #4a5672; }
.store.alt { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--border); }
.store.alt small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font-size: 0.8rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; background: var(--surface); }

/* 端末の枠 */
.device {
  position: relative; width: min(320px, 78vw); margin: 0 auto; aspect-ratio: 1320 / 2868;
  border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #2a3350, #0d1226);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(160, 200, 255, 0.18), 0 0 80px rgba(0, 188, 212, 0.25);
}
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.hero .device { transform: rotate(-4deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero .device { animation: none; } }

/* 数字の帯 */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-size: 1.9rem; font-weight: 900; background: linear-gradient(120deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* セクション */
section.block { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; color: var(--cyan); text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.25; margin-top: 10px; font-weight: 850; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* モードのカード */
.cat { display: flex; align-items: center; gap: 10px; margin: 40px 0 16px; font-weight: 800; color: var(--muted); font-size: 0.95rem; }
.cat::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.mode {
  position: relative; border-radius: var(--radius); padding: 22px 22px 24px; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.mode::before {
  content: ""; position: absolute; inset: -40% 40% 60% -20%; border-radius: 50%;
  background: radial-gradient(circle, var(--c), transparent 70%); opacity: 0.22; transition: opacity 0.25s ease;
}
.mode:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.mode:hover::before { opacity: 0.38; }
.mode .num { position: relative; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; color: var(--c); }
.mode h3 { position: relative; font-size: 1.12rem; margin: 6px 0 6px; }
.mode p { position: relative; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.badge { display: inline-block; margin-left: 8px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; color: #fff; background: linear-gradient(135deg, var(--accent), var(--violet)); border-radius: 999px; padding: 2px 9px; vertical-align: 2px; }

/* スクリーンショット */
/* 左端はほかのセクション（.wrap の内側）にそろえ、右へはみ出してスクロールする */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(260px, 70vw); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100vw - var(--max)) / 2 + 24px)); padding: 8px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 28px; scrollbar-width: thin; }
.gallery figure { scroll-snap-align: start; }
.gallery .device { width: 100%; border-radius: 38px; padding: 9px; }
.gallery .device img { border-radius: 30px; }
.gallery figcaption { margin-top: 16px; text-align: center; }
.gallery figcaption b { display: block; font-size: 1rem; }
.gallery figcaption span { font-size: 0.85rem; color: var(--muted); }

/* 特長 */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { border-radius: var(--radius); padding: 26px; background: var(--surface); border: 1px solid var(--border); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0,188,212,0.25), rgba(124,77,255,0.25)); border: 1px solid var(--border); margin-bottom: 16px; }
.feature .ico svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* 料金・広告と CTA */
.panel { border-radius: 28px; padding: 40px; background: linear-gradient(135deg, rgba(0,188,212,0.12), rgba(124,77,255,0.10)); border: 1px solid var(--border); }
.panel h2 { font-size: 1.6rem; margin-bottom: 12px; }
.panel p { color: var(--muted); max-width: 52em; }
.panel p + p { margin-top: 10px; }
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }
.cta-band .stores { justify-content: center; }

/* 下層ページ（プライバシー等） */
main.page { padding: 64px 0 96px; }
main.page .container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
h1.page { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 900; background: linear-gradient(120deg, #fff, #a5f1fb); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.subtitle { color: var(--muted); margin-bottom: 32px; font-size: 0.92rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.card h2 { font-size: 1.08rem; margin-bottom: 10px; }
.card p, .card li { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.card p { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 8px 0 8px 20px; }
.card strong { color: var(--text); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 列が細くなりすぎないよう最小幅を持たせ、狭い画面では表だけ横にスクロール */
.table-wrap table { min-width: 620px; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; color: var(--muted); }
th, td { border: 1px solid var(--border); padding: 10px; text-align: left; vertical-align: top; line-height: 1.6; }
th { color: var(--text); background: rgba(0, 188, 212, 0.08); }

/* フッター */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 56px; color: var(--faint); font-size: 0.86rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer nav a { color: var(--muted); }

/* スクロールで浮かび上がる（JS が有効なときだけ） */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero .device { width: min(260px, 68vw); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  section.block { padding: 72px 0; }
  .panel { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 12px; }
  .nav { gap: 10px; }
  .brand small { display: none; }
  .nav .cta { padding: 7px 14px; font-size: 0.85rem; }
  .nav .lang { padding: 4px 10px; }
  .store { min-width: 0; flex: 1 1 100%; justify-content: center; }
  .gallery { padding: 8px 16px 24px; scroll-padding-inline: 16px; }
}
