/* KINRAKU website — shared stylesheet (generated pages use this file). */
:root {
  --bg: #070b16;
  --bg-2: #0b1222;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef3f8;
  --muted: #9aa7bb;
  --accent: #26c6a4;
  --accent-2: #7ff5d9;
  --violet: #8b6cff;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans", "Noto Sans JP",
    "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Thai", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f8fa;
    --bg-2: #ffffff;
    --panel: rgba(10, 30, 50, 0.035);
    --panel-strong: rgba(10, 30, 50, 0.06);
    --border: rgba(10, 30, 50, 0.1);
    --text: #0d1a26;
    --muted: #5a6b7d;
    --accent: #0fa587;
    --accent-2: #0b8a71;
    --shadow: 0 20px 50px rgba(15, 40, 60, 0.14);
    color-scheme: light;
  }
}

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

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

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

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }

/* ---------- background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-orbs span:nth-child(1) { width: 520px; height: 520px; background: #0f7d68; top: -160px; inset-inline-start: -120px; }
.bg-orbs span:nth-child(2) { width: 460px; height: 460px; background: #3b2a8f; top: 30%; inset-inline-end: -160px; animation-duration: 28s; }
.bg-orbs span:nth-child(3) { width: 380px; height: 380px; background: #0d4f7a; bottom: -140px; inset-inline-start: 30%; animation-duration: 32s; }
@media (prefers-color-scheme: light) { .bg-orbs span { opacity: 0.18; } }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 0.06em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang-select {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
  color: var(--muted);
}
.lang-select svg { width: 16px; height: 16px; flex: none; }
.lang-select select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 0.85rem; max-width: 150px; cursor: pointer; outline: none;
}
.lang-select select option { color: #111; }
@media (max-width: 760px) {
  .nav { display: none; }
  .lang-select { margin-inline-start: auto; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-2); font-size: 0.85rem; font-weight: 700;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem); line-height: 1.12; letter-spacing: -0.02em;
  margin: 20px 0 18px; font-weight: 850;
  text-wrap: balance; word-break: auto-phrase;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #34e0bd 0%, #4fc3f7 45%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 34em; margin: 0 0 28px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; min-width: 176px;
  padding: 10px 18px; border-radius: 14px; color: #fff; background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22); transition: transform 0.18s, box-shadow 0.18s;
}
.store-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(38, 198, 164, 0.25); }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store-btn small { font-size: 0.68rem; opacity: 0.85; }
.store-btn strong { font-size: 1.15rem; font-weight: 700; }

.stats { list-style: none; display: flex; gap: 28px; padding: 0; margin: 32px 0 0; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.stats span { color: var(--muted); font-size: 0.85rem; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  margin: 0; border-radius: 34px; padding: 8px; background: linear-gradient(160deg, #2a3350, #11182b);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 27px; width: 100%; height: auto; }
.phone-hero { width: min(300px, 78vw); transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-3deg) translateY(-12px); } }
.float-card {
  position: absolute; padding: 10px 14px; border-radius: 14px; font-weight: 700; font-size: 0.9rem;
  background: color-mix(in srgb, var(--bg-2) 75%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.fc1 { top: 14%; inset-inline-start: 0; animation: float2 6s ease-in-out infinite; }
.fc2 { bottom: 16%; inset-inline-end: 0; animation: float2 8s ease-in-out infinite reverse; }
@keyframes float2 { 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .store-buttons, .stats { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .fc1 { inset-inline-start: 4%; }
  .fc2 { inset-inline-end: 4%; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--panel) 20%, var(--panel) 80%, transparent); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { text-wrap: balance; word-break: auto-phrase; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; }

.mode-group + .mode-group { margin-top: 44px; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 16px; }
.group-title span { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.group-title em { font-style: normal; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mode-card {
  position: relative; padding: 22px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--border); transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.mode-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: var(--panel-strong); }
.mode-icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem;
  background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  margin-bottom: 14px;
}
.mode-card h4 { margin: 0 0 6px; font-size: 1.05rem; }
.mode-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.badge-new {
  position: absolute; top: 18px; inset-inline-end: 18px; padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(90deg, #ff5252, #ff4081); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
}

.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.hl-card { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.hl-num {
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.hl-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(16px, calc((100% - 1120px) / 2)) 32px;
  scrollbar-width: thin;
}
.gallery .phone { flex: 0 0 auto; width: 230px; scroll-snap-align: center; }

.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: var(--panel); padding: 0 20px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--muted); }

.cta-band {
  text-align: center; padding: 56px 24px; border-radius: 32px; border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 0% 0%, rgba(38, 198, 164, 0.28), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(139, 108, 255, 0.28), transparent 55%), var(--panel);
}
.cta-band img { margin: 0 auto 18px; border-radius: 22px; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 8px; }
.cta-band p { color: var(--muted); margin: 0 0 26px; }
.cta-band .store-buttons { justify-content: center; }

/* ---------- documents (support / privacy / terms) ---------- */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 8px; letter-spacing: -0.01em; }
.doc h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.doc .updated, .doc .muted { color: var(--muted); font-size: 0.9rem; }
.doc .intro { color: var(--muted); font-size: 1.05rem; }
.doc section p, .doc .card p, .doc li { color: color-mix(in srgb, var(--text) 82%, transparent); }
.card { margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.card h2 { margin-top: 0; }
.mail-btn {
  display: inline-block; margin-top: 6px; padding: 12px 20px; border-radius: 12px; font-weight: 700;
  background: var(--accent); color: #04211b;
}
.mail-btn:hover { text-decoration: none; filter: brightness(1.08); }
.card .store-buttons { margin-top: 16px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.06em; }
.footer-brand img { border-radius: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-inline-start: auto; }
.site-footer nav a { color: var(--muted); font-size: 0.9rem; }
.copy { width: 100%; margin: 0; color: var(--muted); font-size: 0.82rem; }

/* ---------- language suggestion ---------- */
.lang-suggest {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 30; margin-inline: auto; max-width: 520px;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: 0.92rem;
}
.lang-suggest[hidden] { display: none; }
.lang-suggest a { font-weight: 700; }
.lang-suggest button {
  margin-inline-start: auto; border: 0; background: var(--panel-strong); color: var(--text);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
