/* BUTURAKU — shared site styles */
:root {
  --bg: #0A0A17;
  --bg-2: #11112A;
  --navy: #28283C;
  --surface: rgba(30, 30, 56, 0.62);
  --surface-2: rgba(40, 40, 72, 0.72);
  --line: rgba(169, 155, 255, 0.14);
  --line-strong: rgba(169, 155, 255, 0.38);
  --text: #EEF0FF;
  --dim: #B7BBDC;
  --mute: #8F93B8;
  --violet: #A99BFF;
  --violet-deep: #6F5CF0;
  --cyan: #5EE6D0;
  --sky: #7FB4FF;
  --radius: 22px;
  --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Helvetica Neue', sans-serif;
  --display: 'Space Grotesk', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
html.i18n-pending body { visibility: hidden; }
.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; }
[dir="rtl"] .kicker::before { transform: scaleX(-1); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--violet); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(169, 155, 255, .35); color: #fff; }

/* ---------- Background field ---------- */
.field {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(111, 92, 240, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(94, 230, 208, .12), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(40, 40, 60, .9), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.field::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(169, 155, 255, .22) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 75%);
  opacity: .5;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 23, .62);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(111, 92, 240, .35); }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-size: 1rem; letter-spacing: .02em; }
.brand-name small { font-family: var(--display); font-size: .68rem; letter-spacing: .22em; color: var(--mute); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--dim); font-size: .88rem; padding: 8px 12px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(169, 155, 255, .1); }
.nav-links .nav-cta {
  color: #0A0A17; background: linear-gradient(135deg, var(--violet), var(--cyan));
  font-weight: 700; margin-inline-start: 6px; white-space: nowrap;
}
.nav-links .nav-cta:hover { color: #0A0A17; background: linear-gradient(135deg, #C3B9FF, #8FF0E0); }

/* ---------- Language selector ---------- */
.lang { display: none; position: relative; align-items: center; }
html.i18n-ready .lang { display: inline-flex; }
.lang svg { position: absolute; inset-inline-start: 10px; width: 15px; height: 15px; color: var(--mute); pointer-events: none; }
.lang select {
  -webkit-appearance: none; appearance: none; font: inherit; font-size: .84rem; color: var(--text);
  max-width: 150px; min-height: 36px; padding: 6px 28px 6px 32px; padding-inline: 32px 28px;
  border-radius: 10px; border: 1px solid var(--line-strong); cursor: pointer;
  background: rgba(20, 20, 42, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23B7BBDC' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat;
  background-size: 10px 6px; background-position: right 10px center;
}
[dir="rtl"] .lang select { background-position: left 10px center; }
.lang select:hover { border-color: var(--violet); }
.lang select option { color: #111; background: #fff; }
.footer .lang select { max-width: 220px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--dim);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(169, 155, 255, .06);
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(94, 230, 208, .6); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 230, 208, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(94, 230, 208, 0); } }
.grad {
  background: linear-gradient(100deg, #fff 0%, var(--violet) 45%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kicker {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 11px 20px 11px 16px; border-radius: 14px;
  background: #05050C; color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.store:hover { color: #fff; transform: translateY(-2px); border-color: var(--violet); box-shadow: 0 14px 36px rgba(111, 92, 240, .35); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: .66rem; letter-spacing: .04em; opacity: .85; }
.store b { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Generic card ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Footer ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--line); background: rgba(8, 8, 18, .55); }
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px;
  padding: 48px 0 28px;
}
.footer p { color: var(--mute); font-size: .86rem; }
.footer .brand { margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; justify-content: flex-end; align-content: flex-start; }
.footer-links a { color: var(--dim); font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 18px 0 32px; border-top: 1px solid var(--line);
  color: var(--mute); font-size: .8rem; font-family: var(--mono); letter-spacing: .02em;
}

/* ---------- Sub pages ---------- */
.page-hero { position: relative; padding: 76px 0 40px; overflow: hidden; }
.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; line-height: 1.1;
  letter-spacing: -.02em; margin: 18px 0 12px;
}
.page-hero p { color: var(--dim); }
.page-hero .motif {
  position: absolute; inset-inline-end: -40px; top: 10px; width: 520px; max-width: 70%;
  opacity: .55; pointer-events: none; z-index: -1;
}
.doc { display: grid; gap: 16px; padding-bottom: 20px; }
.doc .card { padding: 28px 30px; transition: border-color .25s, background .25s; }
.doc .card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.doc h2 { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.doc h2 .badge {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--cyan);
  background: linear-gradient(135deg, rgba(111, 92, 240, .3), rgba(94, 230, 208, .12));
  border: 1px solid var(--line-strong);
}
.doc h2 .badge svg { width: 17px; height: 17px; }
.doc p { color: var(--dim); font-size: .95rem; margin-bottom: 8px; }
.doc p:last-child { margin-bottom: 0; }
.doc strong { color: var(--text); font-weight: 700; }
.doc a { text-decoration: underline; text-decoration-color: rgba(169, 155, 255, .45); text-underline-offset: 3px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px; margin-top: 8px;
  font-weight: 700; font-size: .95rem; color: #0A0A17 !important; text-decoration: none !important;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(94, 230, 208, .25); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links .hide-sm { display: none; }
  .nav-links .nav-cta { display: none; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .nav-inner { height: 58px; gap: 8px; }
  .brand-name small { display: none; }
  .nav-links a { padding: 8px 9px; font-size: .82rem; }
  .nav-links .hide-xs { display: none; }
  .lang select { max-width: 132px; }
  .store { min-width: 0; flex: 1 1 160px; justify-content: center; }
  .doc .card { padding: 22px 20px; }
  .page-hero { padding: 56px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.page-hero .note { margin-top: 10px; font-size: .84rem; color: var(--mute); }
