/* ============================================================
   CFHA Studio — site.css
   黒地 × 金（RUNE TOWER のロゴ色）× 青緑（ルーンの光）
   ============================================================ */

:root {
  --bg: #07090d;
  --bg-raise: #0b0f15;
  --surface: #0f141c;
  --surface-2: #151c27;
  --line: rgba(214, 226, 240, 0.09);
  --line-strong: rgba(214, 226, 240, 0.17);

  --text: #e9edf2;
  --text-2: #b4bec9;
  --text-3: #8894a2;

  --gold: #e2bf6d;
  --gold-deep: #b8893a;
  --gold-ink: #1c1407;
  --teal: #56e4cd;
  --teal-soft: rgba(86, 228, 205, 0.12);
  --violet: #b6a6ff;

  --font-sans: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-display: "Cinzel", "Noto Serif JP", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --radius: 16px;

  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 72px; } }

/* ---------- 言語切り替え（日本語 / English） ---------- */
:root:not([data-lang="en"]) [lang="en"]:not(html):not(.legal-lang),
:root[data-lang="en"] [lang="ja"]:not(html):not(.legal-lang) {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
:root[data-lang="en"] body { letter-spacing: 0; line-height: 1.7; }

img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; }
::selection { background: rgba(86, 228, 205, 0.3); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* 日本語の見出しを文節で折り返す（.wb は手動の区切り、auto-phrase は対応ブラウザのみ） */
.wb { display: inline-block; }
.display, .hero-tagline, .cl-tagline, .cta-block p, .page-hero h1,
.lead, .app-sub, .app-desc, .features h3, .features p, .check-list li, .chip,
.pillar p, .contact-panel p, .footer-brand p, .tips p, .tips li,
.info-table th, .info-table td, .prose p { word-break: auto-phrase; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.display {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.15rem + 2.3vw, 2.7rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-wrap: balance;
}
:root[data-lang="en"] .display { letter-spacing: 0; line-height: 1.22; }

.lead {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.1rem);
  line-height: 1.9;
}
:root[data-lang="en"] .lead { line-height: 1.7; }

.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }

.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(86, 228, 205, 0.35);
  background: rgba(86, 228, 205, 0.08);
  color: #c4f6ec;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
}
.chip.violet {
  border-color: rgba(182, 166, 255, 0.4);
  background: rgba(182, 166, 255, 0.1);
  color: #ddd5ff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, filter 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, #f4d68f 0%, #dcb25c 55%, #bf9141 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 28px rgba(220, 178, 92, 0.22);
}
.btn-gold:hover { filter: brightness(1.07); }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.3); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 22px 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(6, 8, 11, 0.78);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.store-btn:hover {
  background: rgba(22, 28, 37, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}
.store-btn .icon { width: 26px; height: 26px; }
.store-txt { display: flex; flex-direction: column; line-height: 1.2; letter-spacing: 0; }
.store-txt small { font-size: 0.72rem; color: var(--text-2); }
.store-txt b { font-size: 1.08rem; }

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.chip-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.chip-btn .icon { width: 15px; height: 15px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.82), rgba(7, 9, 13, 0));
  transition: border-color 0.3s;
}
/* ぼかしは疑似要素に持たせる。header 自体に backdrop-filter を付けると、
   スマホ用メニュー（position: fixed）の基準が画面ではなく header になってしまう */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 9, 13, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity 0.3s;
}
.site-header.is-scrolled,
.nav-open .site-header { border-bottom-color: var(--line); }
.site-header.is-scrolled::before,
.nav-open .site-header::before { opacity: 1; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.brand-name span {
  margin-left: 0.4em;
  color: var(--text-3);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.3);
}
.lang-toggle button {
  min-width: 40px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.lang-toggle button:hover { color: var(--text); }
.lang-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }

.menu-btn {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s;
}
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.nav-open .menu-btn span:first-child { transform: rotate(45deg); }
.nav-open .menu-btn span:last-child { transform: rotate(-45deg); }

@media (max-width: 859px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 40px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a {
    padding: 18px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--gold); }
  .nav-open { overflow: hidden; }
}
@media (max-width: 379px) {
  .brand-name span { display: none; }
}

/* ---------- Hero (RUNE TOWER) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(660px, 100svh, 980px);
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.95) 0%, rgba(7, 9, 13, 0.8) 34%, rgba(7, 9, 13, 0.3) 66%, rgba(7, 9, 13, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.55) 0%, rgba(7, 9, 13, 0) 28%, rgba(7, 9, 13, 0) 68%, var(--bg) 100%);
}
@media (max-width: 959px) {
  .hero { align-items: flex-start; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 9, 13, 0.7) 0%, rgba(7, 9, 13, 0.55) 45%, rgba(7, 9, 13, 0.35) 70%, var(--bg) 100%);
  }
}

.hero-inner { position: relative; display: grid; align-items: center; }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; }
}

.hero-copy { max-width: 600px; }
.hero-logo { margin: 0 0 14px; }
.hero-logo img {
  display: block;
  width: min(100%, 540px);
  margin-left: -2%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.65));
}
.hero .chip { margin-bottom: 22px; }
.hero-tagline {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 1.05rem + 2.3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
  text-wrap: balance;
}
:root[data-lang="en"] .hero-tagline { letter-spacing: 0; line-height: 1.25; }
.hero-lead {
  max-width: 34em;
  margin: 0 0 30px;
  color: var(--text-2);
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
  line-height: 1.9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
.hero .text-link { margin-top: 26px; }

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
}
.hero-art::before {
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: 3%;
  height: 16%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(86, 228, 205, 0.4), transparent);
  filter: blur(14px);
}
.hero-art img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7));
  animation: hero-float 7s ease-in-out infinite alternate;
}
@keyframes hero-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}
@media (max-width: 959px) {
  .hero-art { width: min(74%, 360px); margin: 28px auto -48px; }
}

/* ---------- RUNE TOWER features ---------- */
.rt-section {
  background:
    radial-gradient(ellipse 55% 45% at 88% 18%, rgba(86, 228, 205, 0.08), transparent 70%),
    var(--bg);
}

.rt-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) {
  .rt-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 64px; }
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px);
  padding-top: 28px;
}
.shots .phone:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 639px) {
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 64%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 10px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots .phone { scroll-snap-align: center; }
  .shots .phone:nth-child(2) { transform: none; }
}

.phone { margin: 0; }
.phone-frame {
  padding: 7px;
  border-radius: 26px;
  background: linear-gradient(160deg, #3b4658 0%, #131922 42%, #0a0e14 100%);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.phone-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  border-radius: 20px;
  background: #000;
}
.phone figcaption {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 0.84rem;
  text-align: center;
  line-height: 1.5;
}

.features {
  display: grid;
  gap: 26px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { position: relative; padding-left: 32px; }
.features li::before {
  content: "";
  position: absolute;
  left: 3px; top: 0.5em;
  width: 11px; height: 11px;
  transform: rotate(45deg);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 12px rgba(226, 191, 109, 0.4);
}
.features h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 700; }
.features p { margin: 0; color: var(--text-2); font-size: 0.94rem; line-height: 1.8; }

/* ---------- Jobs ---------- */
.jobs-section {
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #0a0d13 25%, #0a0d13 75%, var(--bg) 100%);
}
.jobs-section::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/rt/bg-map.webp") center / cover no-repeat;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  pointer-events: none;
}
.jobs-section > * { position: relative; }

.jobs {
  display: flex;
  gap: 14px;
  margin: 0 auto;
  padding: 0 var(--gutter) 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.jobs::-webkit-scrollbar { display: none; }
.job { flex: 0 0 148px; scroll-snap-align: start; text-align: center; }
.job-fig {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 2 / 3;
}
.job-fig::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: 0;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(86, 228, 205, 0.3), transparent);
}
.job img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.6));
  transition: transform 0.35s ease;
}
.job:hover img { transform: translateY(-5px); }
.job-name { margin-top: 10px; font-size: 0.86rem; font-weight: 700; line-height: 1.4; }
/* アビスロードは横に広いポーズ。キャラの高さをほかとそろえ、その分だけ枠を横に広げる（画像 526×600） */
.job--wide { flex-basis: 195px; }
.job--wide .job-fig { aspect-ratio: 526 / 600; }
@media (min-width: 1024px) {
  .jobs {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 30px;
    max-width: calc(var(--container) + var(--gutter) * 2);
    overflow: visible;
  }
  .job { flex-basis: calc((100% - 6 * 14px) / 7); }
  .job--wide { flex-basis: calc((100% - 6 * 14px) / 7 * 1.315); }
}

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 72px);
  text-align: center;
}
.cta-block p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 600;
}
.cta-block .store-row { justify-content: center; }

/* ---------- Corebound Labyrinth ---------- */
.cl-section {
  background:
    radial-gradient(ellipse 55% 60% at 20% 50%, rgba(118, 94, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 80%, rgba(64, 140, 255, 0.08), transparent 70%),
    var(--bg);
}
.cl-section .eyebrow { color: var(--violet); }

.cl-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .cl-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 72px; }
}

.cl-art { position: relative; justify-self: center; width: 100%; max-width: 430px; }
.cl-art .keyart {
  display: block;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(182, 166, 255, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(118, 94, 255, 0.22);
}
.cl-art .app-icon {
  position: absolute;
  left: -18px; bottom: -18px;
  width: 96px; height: 96px;
  border-radius: 22px;
  border: 3px solid #0e0b1c;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
@media (max-width: 959px) {
  .cl-art .keyart { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }
  .cl-art .app-icon { left: 14px; bottom: -26px; width: 80px; height: 80px; }
}

.cl-logo { margin: 0 0 18px; }
.cl-logo img {
  display: block;
  width: min(100%, 540px);
  margin-left: -3%;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.6));
}
.cl-tagline {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.6;
  text-wrap: balance;
}
:root[data-lang="en"] .cl-tagline { line-height: 1.4; }

.check-list { display: grid; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: var(--text-2); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.6em;
  width: 10px; height: 10px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #c9bcff, #6b8cff);
  box-shadow: 0 0 10px rgba(182, 166, 255, 0.6);
}

/* ---------- App cards ---------- */
.apps-section { background: linear-gradient(180deg, var(--bg), var(--bg-raise)); }

.group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.app-grid { display: grid; gap: 16px; margin-bottom: 44px; }
@media (min-width: 640px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .app-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color 0.2s, transform 0.2s;
}
.app-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-icon {
  flex: none;
  width: 60px; height: 60px;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.app-name { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.app-sub { margin: 2px 0 0; color: var(--text-3); font-size: 0.8rem; line-height: 1.5; }
.app-desc { flex: 1; margin: 0; color: var(--text-2); font-size: 0.9rem; line-height: 1.75; }
.app-links { display: flex; flex-wrap: wrap; gap: 6px; }

.more-link { display: flex; justify-content: center; margin-top: 8px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
}
.about-grid .lead + .text-link { margin-top: 24px; }

.pillars { display: grid; gap: 16px; }
.pillar {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.pillar h3 { margin: 0 0 8px; font-size: 1.05rem; }
.pillar p { margin: 0; color: var(--text-2); font-size: 0.94rem; }
.pillar-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pillar-icons img { width: 40px; height: 40px; border-radius: 10px; }

/* ---------- Contact band ---------- */
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 64px);
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(226, 191, 109, 0.13), transparent 70%),
    var(--surface);
  text-align: center;
}
.contact-panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}
.contact-panel p { max-width: 36em; margin: 0 auto 28px; color: var(--text-2); }
.contact-panel .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: #05070a;
  color: var(--text-2);
  font-size: 0.9rem;
}
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; } }
.footer-brand p { max-width: 26em; margin: 14px 0 0; color: var(--text-3); }
.footer-nav h2 {
  margin: 0 0 14px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-nav ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8rem;
}

/* ---------- Sub page hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 90% at 88% 0%, rgba(86, 228, 205, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 70% at 8% 10%, rgba(226, 191, 109, 0.07), transparent 70%),
    linear-gradient(180deg, #0a0e14, var(--bg));
}
.page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
}
.page-hero .lead { max-width: 40em; }
.page-hero .btn-row { margin-top: 26px; }

.page-body { padding-block: clamp(48px, 7vw, 88px); }

/* ---------- Apps page ---------- */
.app-entry {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.app-entry + .app-entry { margin-top: 20px; }
@media (min-width: 960px) {
  .app-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 48px; }
}
.app-entry .app-head { align-items: flex-start; margin-bottom: 18px; }
.app-entry .app-icon { width: 76px; height: 76px; border-radius: 18px; }
.app-entry h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); line-height: 1.35; }
.app-entry .app-desc { margin-bottom: 22px; font-size: 0.96rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.tag.note { border-color: rgba(226, 191, 109, 0.45); color: var(--gold); }

.entry-shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.entry-shots img {
  flex: none;
  width: auto;
  height: clamp(240px, 24vw, 300px);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #000;
  scroll-snap-align: start;
}
.entry-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: 16px;
  border: 1px solid rgba(182, 166, 255, 0.3);
}

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.group-block + .group-block { margin-top: clamp(48px, 6vw, 72px); }
.group-block > .group-title { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- About page ---------- */
.prose { max-width: 760px; }
.prose h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
}
.prose p { color: var(--text-2); }
.prose + .prose, .prose + .info-table, .pillars + .prose { margin-top: clamp(40px, 5vw, 56px); }

.info-table {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.info-table caption {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  font-weight: 700;
  text-align: left;
}
.info-table th, .info-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.info-table th { width: 32%; padding-right: 16px; color: var(--text-3); font-weight: 500; }

/* ---------- Contact page ---------- */
.contact-card {
  display: grid;
  gap: 22px;
  max-width: 760px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(226, 191, 109, 0.1), transparent 70%),
    var(--surface);
}
.contact-label { margin: 0; color: var(--text-3); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; }
.contact-email {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 1rem + 1.3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  word-break: break-all;
}
.contact-email:hover { color: var(--gold); }
.copy-idle, .copy-done { display: inline-flex; align-items: center; gap: 10px; }
.copy-done { display: none; }
.is-copied .copy-idle { display: none; }
.is-copied .copy-done { display: inline-flex; }

.tips {
  max-width: 760px;
  margin-top: 20px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
}
.tips h2 { margin: 0 0 8px; font-size: 1.05rem; }
.tips p { color: var(--text-2); }
.tips ul { margin: 0; padding-left: 1.3em; color: var(--text-2); }
.tips li + li { margin-top: 4px; }
.tips li::marker { color: var(--gold-deep); }

.related-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 0.92rem; }
.related-links a { color: var(--text-2); }
.related-links a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin-inline: auto; }

.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.legal-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.86rem;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.legal-tabs button:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.legal-tabs button[aria-pressed="true"] {
  border-color: rgba(86, 228, 205, 0.55);
  background: var(--teal-soft);
  color: var(--text);
  font-weight: 700;
}

.legal-lang { display: none; }
.legal-lang.is-active { display: block; }

.legal-body { color: var(--text-2); font-size: 0.97rem; line-height: 1.95; }
.legal-body h2 {
  margin: 2.4em 0 0.7em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.5;
}
.legal-body h3 { margin: 1.7em 0 0.5em; color: var(--gold); font-size: 1rem; }
.legal-body p { margin: 0 0 1em; }
.legal-body ul { margin: 0 0 1.2em; padding-left: 1.4em; }
.legal-body li { margin: 0.3em 0; }
.legal-body li::marker { color: var(--gold-deep); }
.legal-body a { color: var(--teal); word-break: break-word; }
.legal-body a[href^="mailto:"] { font-family: var(--font-mono); letter-spacing: 0; }
.legal-body .legal-date {
  display: inline-block;
  margin-bottom: 1.6em;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-3);
  font-size: 0.85rem;
}
.legal-body table { width: 100%; margin-top: 0.5em; border-collapse: collapse; }
.legal-body td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-body tr:last-child td { border-bottom: 0; }
.legal-body td:first-child { width: 34%; padding-right: 20px; color: var(--text-3); }
.legal-body td:last-child { color: var(--text); }
@media (max-width: 599px) {
  .legal-body tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .legal-body tr:last-child { border-bottom: 0; }
  .legal-body td { display: block; width: auto; padding: 0; border: 0; }
  .legal-body td:first-child { width: auto; margin-bottom: 4px; padding-right: 0; font-size: 0.85rem; }
}

/* ---------- Reveal on scroll ---------- */
.reveal-ready [data-reveal].is-pending {
  opacity: 0;
  transform: translateY(20px);
}
.reveal-ready [data-reveal] {
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
  .reveal-ready [data-reveal] { transition: none; }
  .reveal-ready [data-reveal].is-pending { opacity: 1; transform: none; }
  .btn:hover, .store-btn:hover, .app-card:hover, .job:hover img { transform: none; }
}
