:root {
  --bg: #070605;
  --bg-elev: #100e0c;
  --card: #14110f;
  --ink: #f6f1ea;
  --muted: #b7aea4;
  --faint: #8c837a;
  --orange: #ff6a1a;
  --orange-2: #ff8f4a;
  --orange-deep: #c2410c;
  --line: rgba(255, 122, 48, 0.28);
  --line-soft: rgba(246, 241, 234, 0.08);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", "PingFang TC", "Microsoft JhengHei", "Microsoft YaHei", "Yu Gothic UI", sans-serif;
  --header: 76px;
}

html[lang="zh-Hant"] body {
  --sans: "Outfit", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

html[lang="zh-Hans"] body {
  --sans: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[lang="ja"] body {
  --sans: "Outfit", "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(255, 106, 26, 0.16), transparent 60%),
    linear-gradient(#070605, #070605);
  z-index: -1;
}

::selection {
  background: var(--orange);
  color: #1a0c04;
}

:focus-visible {
  outline: 2px solid var(--orange-2);
  outline-offset: 3px;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--orange);
  color: #1a0c04;
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  width: 36px;
  height: 36px;
  color: var(--orange);
  flex: none;
}

.brand {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand-sub {
  display: block;
  margin: 0 0 4px;
  color: var(--orange-2);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

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

h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 12px; }
h3 { font-size: 1.7rem; margin-bottom: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #ff8a3d, var(--orange) 45%, var(--orange-deep));
  color: #1a0c04;
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(246, 241, 234, 0.18);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: white;
}

.btn-text {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-text:hover { color: var(--ink); }

.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lang-btn {
  appearance: none;
  background: transparent;
  color: var(--faint);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.82rem;
  padding: 6px 8px;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  color: #1a0c04;
  background: var(--orange);
  border-color: var(--orange);
}

.lang-btn:hover { color: var(--ink); }
.lang-btn[aria-pressed="true"]:hover { color: #1a0c04; }

#gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  position: relative;
}

.gate-glow {
  position: absolute;
  width: min(680px, 90vw);
  height: 420px;
  top: 8%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.2), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.gate-card {
  position: relative;
  width: min(36rem, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 36px 32px 22px;
  background:
    linear-gradient(180deg, rgba(22, 16, 13, 0.96), rgba(10, 8, 7, 0.96)) padding-box,
    linear-gradient(160deg, rgba(255, 154, 84, 0.95), rgba(255, 106, 26, 0.15) 42%, rgba(255, 106, 26, 0.55)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}

.gate-card .brand { font-size: 1.7rem; }
.gate-card .brand-lockup { justify-content: center; text-align: left; }

.seal {
  width: 96px;
  height: 96px;
  margin: 28px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--orange-2);
  box-shadow:
    inset 0 0 0 1px var(--orange),
    inset 0 0 0 7px rgba(255, 106, 26, 0.12),
    0 0 36px rgba(255, 106, 26, 0.22);
}

.seal span {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

#gate h1,
#gate h2 {
  text-align: center;
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin-bottom: 12px;
}

#gate .lede,
#gate p {
  text-align: center;
  margin-inline: auto;
}

.age-note {
  color: var(--orange-2);
  font-size: 0.95rem;
}

.gate-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.gate-card .lang-row {
  justify-content: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 6, 5, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-brand .brand { font-size: 1.2rem; }
.header-brand .brand-sub { margin-bottom: 2px; letter-spacing: 0.22em; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); }

.header-lang { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
}

.hero {
  position: relative;
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.wordmark {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.wordmark-sub {
  display: block;
  margin-top: 14px;
  color: var(--orange-2);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero-copy .lede { margin: 22px 0 28px; font-size: 1.15rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-width: 210px; }

.hero-frame {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 106, 26, 0.08), transparent 30%),
    var(--bg-elev);
  min-height: 460px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.frame-top {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.room {
  position: relative;
  flex: 1;
  margin-top: 16px;
  min-height: 320px;
  overflow: hidden;
  background: #0a0908;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #0a0908;
}

.sound-btn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  border: 1px solid rgba(246, 241, 234, 0.28);
  background: rgba(7, 6, 5, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  padding: 8px 12px;
  cursor: pointer;
}

.sound-btn:hover,
.sound-btn[aria-pressed="true"] {
  border-color: var(--orange);
  color: var(--orange-2);
}

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head { margin-bottom: 28px; max-width: 740px; }

.notice {
  padding: 36px 36px 28px;
  background: linear-gradient(180deg, rgba(255, 106, 26, 0.1), rgba(255, 106, 26, 0.03));
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
}

.notice-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.notice-points li {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.98rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  padding: 24px 22px 22px;
  min-height: 100%;
}

.card:hover { border-color: var(--line); }

.card-firm { border-color: var(--line); }

.card-index {
  margin: 0 0 18px;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.card p:last-child { margin-bottom: 0; color: var(--muted); }

.partner-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.partner-card:hover { border-color: var(--orange); }

.partner-card p { color: var(--muted); }

.partner-card .partner-mark { color: var(--ink); }

.partner-logo {
  display: block;
  width: fit-content;
  max-width: 100%;
  height: 64px;
  object-fit: contain;
  background: #f6f3ef;
  padding: 8px 12px;
}

.partner-shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 16px 0;
  background: #fff;
}

.partner-mark {
  display: grid;
  place-items: center;
  min-height: 168px;
  margin: 16px 0;
  border: 1px solid var(--line);
  background:
    radial-gradient(120px 80px at 70% 40%, rgba(255, 106, 26, 0.28), transparent 70%),
    #100e0c;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  letter-spacing: 0.04em;
}

.partner-go {
  margin-top: auto;
  padding-top: 18px;
  color: var(--orange-2);
  font-size: 0.92rem;
}

.ban {
  margin-top: 16px;
  padding: 20px 22px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: #120d0a;
}

.ban p {
  margin: 0;
  min-width: 9rem;
  color: var(--orange-2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.ban ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.ban li {
  position: relative;
  padding-left: 14px;
}

.ban li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

.mail-label {
  margin: 0;
  color: var(--orange-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mail-hint { color: var(--muted); margin: 8px 0 16px; }

.mail {
  display: inline-block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mail:hover { color: var(--orange-2); }

.mail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.mail-actions .btn { min-width: 96px; min-height: 40px; }

.copy-status {
  color: var(--orange-2);
  font-size: 0.9rem;
  min-height: 1.2em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}

.footer-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: start;
}

.legal {
  margin: 0;
  color: var(--faint);
  font-size: 0.92rem;
}

.to-top {
  color: var(--orange-2);
  text-decoration: none;
  white-space: nowrap;
}

.to-top:hover { color: var(--ink); }

section[id],
#studio { scroll-margin-top: 92px; }

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .notice-points,
  .footer-bar {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 40px; }
  .hero-frame { min-height: 0; }
  .room { min-height: 220px; }
  .ban { flex-direction: column; gap: 10px; }
  .footer-bar { gap: 14px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .header-bar {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 8px 12px;
  }

  .header-brand { flex: 1; min-width: 0; }
  .header-brand .brand-sub { display: none; }
  .header-lang { order: 3; width: 100%; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 20px 16px;
    flex-direction: column;
    gap: 4px;
    background: rgba(7, 6, 5, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a { padding: 10px 0; }

  .header-lang { margin-left: 0; }
}

@media (max-width: 640px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .gate-card { padding: 28px 18px 16px; }
  .notice { padding: 24px 18px 18px; }
  .hero-actions .btn,
  .mail-actions .btn { width: 100%; }
  .wordmark { font-size: clamp(2.7rem, 14vw, 4rem); }
  .header-brand .brand-sub { letter-spacing: 0.14em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary:hover { transform: none; }
}
