/* Hajime Sorayama Estate — full site (staging) · light · transparency · reflection */
:root {
  --bg-deep: oklch(0.05 0.008 260);
  --ink: oklch(0.95 0.01 95);
  --muted: oklch(0.72 0.02 250);
  --faint: oklch(0.63 0.015 250);
  --primary: oklch(0.86 0.06 90);
  --line: oklch(0.32 0.02 250 / 0.7);
  --line-soft: oklch(0.3 0.02 250 / 0.4);
  --surface: oklch(0.14 0.02 250 / 0.5);
  --surface-2: oklch(0.16 0.02 250 / 0.7);
  --glow-blue: oklch(0.55 0.14 250 / 0.3);
  --glow-gold: oklch(0.7 0.12 85 / 0.18);

  --font-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans SC", sans-serif;
  --font-ui: "Manrope", "Helvetica Neue", system-ui, sans-serif;

  --measure: 52rem;
  --pad-x: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 4rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .orb { display: none !important; }
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body[data-lang="en"], body[data-lang="es"] {
  font-family: var(--font-ui);
  line-height: 1.7;
  letter-spacing: 0.01em;
}
body[data-lang="zh"] { font-family: var(--font-zh); line-height: 1.85; }

/* ── Ambient stage ── */
.stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, oklch(0.28 0.06 250 / 0.4), transparent 60%),
    radial-gradient(ellipse 45% 40% at 100% 100%, oklch(0.25 0.05 85 / 0.1), transparent 55%),
    var(--bg-deep);
}
.stage-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, transparent 30%, oklch(0.05 0.01 260 / 0.7) 100%);
}
.orb { position: absolute; border-radius: 50%; opacity: 0.85; }
.orb-a {
  width: min(46vw, 26rem); height: min(46vw, 26rem); top: 2%; left: 6%;
  background: radial-gradient(circle at 40% 40%, oklch(0.45 0.1 250 / 0.32) 0%, transparent 70%);
}
.orb-b {
  width: min(38vw, 22rem); height: min(38vw, 22rem); bottom: 6%; right: 4%;
  background: radial-gradient(circle at 50% 50%, oklch(0.55 0.08 85 / 0.2) 0%, transparent 70%);
}
body[data-fx="off"] .orb { display: none; }

/* ── Header: floating pill nav ── */
.site-header { position: sticky; top: 0; z-index: 50; padding: 0.85rem var(--pad-x) 0; }
.nav-bar {
  display: flex; align-items: center; gap: 0.75rem;
  max-width: 60rem; margin: 0 auto;
  padding: 0.4rem 0.45rem 0.4rem 1.25rem;
  background: oklch(0.15 0.02 255 / 0.32);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid oklch(1 0 0 / 0.09); border-radius: 1.1rem;
  box-shadow: 0 10px 40px oklch(0 0 0 / 0.35), inset 0 1px 0 oklch(1 0 0 / 0.06);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 1.4rem; width: auto; display: block; filter: drop-shadow(0 0 8px oklch(0.65 0.08 230 / 0.25)); }
.primary-nav { flex: 1; display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.25rem); }
.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0 auto; padding: 0; }
.nav-link {
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: 0.55rem 1rem; border-radius: 0.7rem;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.nav-link:hover { color: var(--ink); background: oklch(1 0 0 / 0.06); }
.nav-link.is-current { color: oklch(0.14 0.02 260); background: linear-gradient(125deg, oklch(0.9 0.03 95), oklch(0.82 0.04 85), oklch(0.84 0.04 230)); }
.nav-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-actions { display: flex; align-items: center; gap: 0.7rem; }
.nav-cta {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-decoration: none; white-space: nowrap; color: oklch(0.14 0.02 260);
  padding: 0.62rem 1.3rem; border-radius: 0.7rem;
  background: linear-gradient(125deg, oklch(0.92 0.03 95), oklch(0.82 0.05 85), oklch(0.84 0.05 230));
  box-shadow: 0 0 16px oklch(0.7 0.06 90 / 0.22);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px oklch(0.7 0.06 90 / 0.35); }
.nav-cta.is-current { outline: 1.5px solid oklch(1 0 0 / 0.55); outline-offset: 2px; }
.nav-cta:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.lang-switch { display: inline-flex; align-items: center; gap: 0.1rem; padding: 0.15rem; border: 1px solid var(--line); border-radius: 999px; background: oklch(0.1 0.015 250 / 0.5); }
.lang-btn { appearance: none; border: 0; margin: 0; cursor: pointer; font-family: var(--font-ui); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); background: transparent; padding: 0.3rem 0.5rem; border-radius: 999px; transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out); }
.lang-btn:hover { color: var(--ink); }
.lang-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lang-btn.is-active { color: oklch(0.14 0.02 260); background: linear-gradient(125deg, oklch(0.9 0.03 95), oklch(0.82 0.04 85), oklch(0.84 0.04 230)); }
.lang-sep { width: 1px; height: 0.65rem; background: var(--line); opacity: 0.5; }
.nav-toggle { display: none; appearance: none; border: 0; background: transparent; cursor: pointer; width: 2.4rem; height: 2.4rem; padding: 0.55rem; border-radius: 0.6rem; flex-direction: column; justify-content: center; gap: 0.3rem; margin-left: auto; }
.nav-toggle-bar { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(0.45rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-0.45rem) rotate(-45deg); }
@media (max-width: 62rem) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; left: var(--pad-x); right: var(--pad-x); top: calc(100% + 0.5rem);
    flex: none; flex-direction: column; align-items: stretch; gap: 0.5rem; padding: 1rem;
    background: oklch(0.12 0.02 255 / 0.98); backdrop-filter: blur(20px);
    border: 1px solid oklch(1 0 0 / 0.09); border-radius: 1rem;
    box-shadow: 0 14px 44px oklch(0 0 0 / 0.5);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  }
  .primary-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0.1rem; margin: 0; }
  .nav-link { padding: 0.85rem 0.9rem; font-size: 0.92rem; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 0.7rem; margin-top: 0.4rem; }
  .nav-cta { text-align: center; padding: 0.85rem; font-size: 0.85rem; }
  .lang-switch { align-self: center; }
}

/* ── Main / sections ── */
.main { position: relative; z-index: 2; flex: 1 0 auto; }
.section {
  width: min(100% - 2 * var(--pad-x), var(--measure));
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  scroll-margin-top: var(--header-h);
}
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 2.75rem); }
.section-eyebrow {
  display: block; font-family: var(--font-ui);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-ui); font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  letter-spacing: 0.08em; margin: 0; color: var(--primary);
  text-shadow: 0 0 30px oklch(0.7 0.08 90 / 0.2);
}
.section-title.small { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem); letter-spacing: 0.05em; }
.section-flare {
  display: block; width: min(9rem, 40%); height: 2px; margin: 1rem auto 0; border-radius: 999px;
  background: linear-gradient(90deg, transparent, oklch(0.75 0.06 230 / 0.5), oklch(0.9 0.05 95), transparent);
  box-shadow: 0 0 14px oklch(0.7 0.08 90 / 0.3);
}

/* ── Hero / home ── */
.hero-section { text-align: center; padding-top: clamp(2.5rem, 6vw, 4rem); border-top: 0; }
.logo-stage {
  position: relative; display: inline-block; max-width: min(100%, 40rem);
  padding: 0.25rem 0; margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  background: radial-gradient(ellipse 70% 55% at 50% 50%, oklch(0.55 0.06 230 / 0.1) 0%, transparent 68%);
}
.logo { display: block; width: 100%; height: auto; }
.intro { max-width: 40rem; margin-inline: auto; text-align: left; }
.intro p { margin: 0 0 1.2rem; text-wrap: pretty; }
.intro p:last-child { margin-bottom: 0; }

/* ── Services grid ── */
.svc-grid { display: grid; gap: 1rem; max-width: 46rem; margin-inline: auto; }
.svc-card {
  padding: clamp(1.3rem, 3vw, 1.85rem);
  border: 1px solid var(--line-soft); border-radius: 0.5rem;
  background: var(--surface);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.svc-card:hover { border-color: oklch(0.6 0.05 90 / 0.4); background: var(--surface-2); transform: translateY(-2px); }
.svc-title {
  font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em;
  margin: 0 0 0.75rem; color: var(--primary);
}
.svc-body p { margin: 0 0 0.75rem; font-size: 0.95rem; line-height: 1.75; color: var(--ink); }
.svc-body p:last-child { margin-bottom: 0; }
body[data-lang="ja"] .svc-body p { line-height: 1.95; }

/* ── Company table ── */
.company-table { margin: 0 auto; max-width: 42rem; display: grid; gap: 0; }
.company-row {
  display: grid; grid-template-columns: 10rem 1fr; gap: 1rem;
  padding: 1rem 0.25rem; border-bottom: 1px solid var(--line-soft);
}
.company-row:first-child { border-top: 1px solid var(--line-soft); }
.company-row dt {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.company-row dd { margin: 0; font-size: 0.95rem; }
.co-sub { display: block; font-family: var(--font-ui); font-size: 0.8rem; color: var(--faint); margin-top: 0.1rem; }
.biz-list { margin: 0; padding-left: 1.1rem; }
.biz-list li { margin-bottom: 0.35rem; font-size: 0.92rem; }
.biz-list li::marker { color: var(--primary); }
@media (max-width: 33rem) { .company-row { grid-template-columns: 1fr; gap: 0.35rem; } }

/* ── News ── */
.news-item {
  max-width: 42rem; margin-inline: auto;
  padding: clamp(1.3rem, 3vw, 1.85rem);
  border: 1px solid var(--line-soft); border-radius: 0.5rem; background: var(--surface);
}
.news-date { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--faint); margin: 0 0 0.4rem; }
.news-title { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; margin: 0 0 0.85rem; color: var(--primary); }
.news-body p { margin: 0 0 0.8rem; font-size: 0.95rem; }
.news-body p:last-child { margin-bottom: 0; }

/* ── Contact ── */
.contact-intro { max-width: 40rem; margin: 0 auto 1.75rem; text-align: center; }
.contact-cats { max-width: 40rem; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.contact-cats li {
  padding: 1rem 1.15rem; border: 1px solid var(--line-soft); border-radius: 0.45rem; background: var(--surface);
}
.cat-name {
  display: block; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; color: var(--primary); margin-bottom: 0.2rem;
}
.cat-desc { display: block; font-size: 0.9rem; color: var(--muted); }
.contact-email-line {
  text-align: center; max-width: 40rem; margin: 1.75rem auto 0;
  padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 0.4rem;
  background: oklch(0.14 0.015 250 / 0.45);
}
.email-link {
  font-family: var(--font-ui); font-size: 0.98rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--primary); text-decoration: none; border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.email-link:hover { color: oklch(0.92 0.05 90); border-bottom-color: oklch(0.72 0.05 90 / 0.55); }
.email-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.contact-note {
  max-width: 40rem; margin: 1.5rem auto 0; text-align: center;
  font-size: 0.82rem; line-height: 1.7; color: var(--faint);
}

/* ── Legal ── */
.legal { max-width: min(100% - 2 * var(--pad-x), 46rem); }
.legal-body { font-size: 0.9rem; line-height: 1.8; color: var(--muted); max-width: 38rem; }
.legal-body h3 {
  font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; color: var(--ink);
  margin: 1.5rem 0 0.4rem; letter-spacing: 0.01em;
}
.legal-body p { margin: 0 0 0.9rem; }

/* ── Footer ── */
.site-footer {
  position: relative; z-index: 2; flex-shrink: 0; text-align: center;
  padding: clamp(2rem, 5vw, 3rem) var(--pad-x);
  border-top: 1px solid var(--line-soft);
}
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.2rem;
  font-family: var(--font-ui); font-size: 0.78rem; margin-bottom: 0.7rem;
}
.footer-nav a { color: var(--muted); text-decoration: none; padding: 0.2rem 0.35rem; transition: color 0.25s var(--ease-out); }
.footer-nav a:hover { color: var(--primary); }
.footer-nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.footer-dot { color: var(--faint); opacity: 0.6; }
.footer-copy { margin: 0; font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--faint); }

/* ── Utilities ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
::selection { background: oklch(0.55 0.1 230 / 0.45); color: oklch(0.98 0.01 95); }

/* ── Reveal ── */
[data-reveal].is-pending { opacity: 0; transform: translateY(16px); }
[data-reveal].is-in { animation: rise 0.8s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── Mobile nav ── */
@media (max-width: 52rem) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--pad-x) 1.5rem;
    background: oklch(0.07 0.012 260 / 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-120%); transition: transform 0.35s var(--ease-out);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-link { display: block; padding: 0.95rem 0.25rem; font-size: 0.85rem; }
  .nav-link::after { display: none; }
  .lang-switch { margin-top: 1rem; align-self: center; }
}


/* ── Home (announcement) page ── */
.section.home { max-width: min(100% - 2 * var(--pad-x), 46rem); min-height: calc(100svh - 8.5rem); display: flex; flex-direction: column; justify-content: center; }
.home-hero { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.home-hero .logo-stage { margin-bottom: 0; }
.company-intro { margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }

.notice { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem); overflow: visible; }
.chrome-frame { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.notice-pool {
  position: absolute; inset: 6% 4%; border-radius: 40% / 28%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, oklch(0.28 0.04 250 / 0.35), transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 70%, oklch(0.3 0.05 85 / 0.12), transparent 65%);
  filter: blur(2px); opacity: 0.9;
}
.chrome-corner { position: absolute; width: 2.4rem; height: 2.4rem; }
.chrome-corner::before, .chrome-corner::after {
  content: ""; position: absolute;
  background: linear-gradient(90deg, oklch(0.92 0.03 95), oklch(0.72 0.05 85), oklch(0.78 0.06 230), oklch(0.55 0.03 250 / 0.3));
  box-shadow: 0 0 12px oklch(0.7 0.06 90 / 0.35);
}
.chrome-corner.tl { top: 0; left: 0; }
.chrome-corner.tr { top: 0; right: 0; transform: scaleX(-1); }
.chrome-corner.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.chrome-corner.br { bottom: 0; right: 0; transform: scale(-1); }
.chrome-corner::before { top: 0; left: 0; width: 100%; height: 2px; border-radius: 2px; }
.chrome-corner::after {
  top: 0; left: 0; width: 2px; height: 100%; border-radius: 2px;
  background: linear-gradient(180deg, oklch(0.92 0.03 95), oklch(0.72 0.05 85), oklch(0.78 0.06 230), oklch(0.55 0.03 250 / 0.3));
}
.notice-title {
  position: relative; z-index: 1; margin: 0 0 0.65rem; font-family: var(--font-jp);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); font-weight: 600; line-height: 1.4;
  letter-spacing: 0.08em; text-align: center; text-wrap: balance; color: var(--primary);
  text-shadow: 0 0 30px oklch(0.7 0.08 90 / 0.25);
}
body[data-lang="en"] .notice-title, body[data-lang="es"] .notice-title { letter-spacing: 0.04em; font-family: var(--font-ui); font-weight: 500; }
body[data-lang="zh"] .notice-title { letter-spacing: 0.06em; font-family: var(--font-zh); }
.title-flare {
  position: relative; z-index: 1; width: min(14rem, 55%); height: 2px; margin: 0 auto 1.75rem; border-radius: 999px;
  background: linear-gradient(90deg, transparent, oklch(0.75 0.06 230 / 0.5), oklch(0.9 0.05 95), oklch(0.75 0.06 85 / 0.55), transparent);
  box-shadow: 0 0 16px oklch(0.7 0.08 90 / 0.35);
}
.notice-body { position: relative; z-index: 1; max-width: 38rem; margin-inline: auto; }
.notice-body p { margin: 0 0 1.3rem; color: var(--ink); text-wrap: pretty; }
.notice-body p:last-child { margin-bottom: 0; }
.notice-email-line {
  text-align: center; margin: 1.5rem 0 !important; padding: 0.95rem 1.15rem;
  border: 1px solid var(--line); border-radius: 0.35rem; background: oklch(0.14 0.015 250 / 0.45);
}
.sign-off { margin-top: 1.85rem !important; text-align: right; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; }

.contact-row { display: grid; gap: 0.85rem; }
.home-cta { max-width: 40rem; margin: 1.5rem auto 0; }
.cta {
  display: flex; flex-direction: column; justify-content: center; gap: 0.35rem;
  padding: 1.15rem 1.35rem; border-radius: 0.35rem; text-decoration: none;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.cta:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.cta-label { font-family: var(--font-ui); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cta-value { font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.4; color: var(--ink); }
.cta-primary { border: 1px solid oklch(0.45 0.03 90 / 0.45); background: oklch(0.16 0.02 250 / 0.7); }
.cta-primary .cta-value { color: var(--primary); }
.cta-primary:hover { border-color: oklch(0.7 0.05 90 / 0.55); background: oklch(0.2 0.025 250 / 0.85); }


/* ── Home landing intro ── */
.home-intro { max-width: 42rem; margin: 0 auto; text-align: center; }
.home-title {
  font-family: var(--font-ui); font-weight: 700;
  font-size: clamp(1.15rem, 0.95rem + 1vw, 1.55rem);
  letter-spacing: 0.16em; text-transform: uppercase; text-wrap: balance;
  color: var(--primary); margin: 0 0 clamp(1.2rem, 3vw, 1.75rem);
  text-shadow: 0 0 30px oklch(0.7 0.08 90 / 0.2);
}
.home-intro .intro { max-width: 36rem; margin-inline: auto; text-align: left; text-wrap: pretty; }
.home-intro .intro p { margin: 0 0 1.15rem; }
.home-intro .intro p:last-child { margin-bottom: 0; }


/* Language panels toggled via [hidden] must always hide (overrides explicit display) */
[hidden] { display: none !important; }

/* Contact categories are actionable (open a pre-addressed email) */
.contact-cats li { padding: 0; }
.cat-link {
  display: block; padding: 1rem 1.15rem; text-decoration: none; color: inherit;
  border-radius: 0.45rem; position: relative;
  transition: background 0.25s var(--ease-out);
}
.cat-link::after {
  content: "\2197"; position: absolute; top: 0.85rem; right: 1rem;
  font-family: var(--font-ui); color: var(--muted); opacity: 0; transition: opacity 0.25s var(--ease-out);
}
.cat-link:hover { background: var(--surface-2); }
.cat-link:hover .cat-name { color: oklch(0.92 0.05 90); }
.cat-link:hover::after { opacity: 0.8; }
.cat-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }


/* ── Contact form ── */
.contact-form { max-width: 40rem; margin: 1.75rem auto 0; display: grid; gap: 1.1rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-ui); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-ui); font-size: 0.95rem; color: var(--ink); width: 100%;
  background: oklch(0.14 0.015 250 / 0.6); border: 1px solid var(--line); border-radius: 0.4rem;
  padding: 0.7rem 0.85rem; transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a9b6c6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.2rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: oklch(0.7 0.05 90 / 0.6); background: oklch(0.16 0.02 250 / 0.85);
}
.field input:invalid:not(:placeholder-shown), .field textarea:invalid:not(:placeholder-shown) { border-color: oklch(0.55 0.13 30 / 0.6); }
.form-submit {
  justify-self: start; font-family: var(--font-ui); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: oklch(0.12 0.02 260); cursor: pointer; border: 0; border-radius: 0.4rem;
  padding: 0.85rem 2.25rem; margin-top: 0.25rem;
  background: linear-gradient(125deg, oklch(0.9 0.03 95), oklch(0.8 0.04 85), oklch(0.84 0.04 230));
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.form-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.form-submit:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.form-submit:disabled { opacity: 0.5; cursor: default; transform: none; }
.form-status { margin: 0.25rem 0 0; font-family: var(--font-ui); font-size: 0.9rem; min-height: 1.2em; }
.form-status.is-pending { color: var(--muted); }
.form-status.is-ok { color: oklch(0.78 0.13 155); }
.form-status.is-err { color: oklch(0.72 0.15 30); }


/* ── News list ── */
.news-list { display: grid; gap: 1.1rem; max-width: 48rem; margin: 0 auto; }
.news-card {
  display: grid; grid-template-columns: 11.5rem 1fr; gap: 1.9rem; align-items: stretch;
  padding: 1rem; border: 1px solid var(--line-soft); border-radius: 0.55rem; background: var(--surface);
  text-decoration: none; color: inherit;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.news-card:hover { border-color: oklch(0.6 0.05 90 / 0.4); background: var(--surface-2); transform: translateY(-2px); }
.news-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.news-card-media { border-radius: 0.4rem; overflow: hidden; background: oklch(0.1 0.02 250); min-height: 8rem; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-media--text { display: flex; align-items: center; justify-content: center; }
.news-card-media--text span { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--faint); }
.news-card-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.35rem 0.5rem 0.35rem 0; min-width: 0; }
.news-card-meta { display: flex; align-items: center; gap: 0.7rem; }
.news-date { font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--faint); }
.news-pin { font-family: var(--font-ui); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.12 0.02 260); background: linear-gradient(125deg, oklch(0.9 0.03 95), oklch(0.82 0.05 230)); padding: 0.12rem 0.5rem; border-radius: 999px; }
.news-card-title { font-family: var(--font-ui); font-weight: 650; font-size: 1.02rem; line-height: 1.35; margin: 0; color: var(--ink); text-wrap: balance; }
.news-card-sum { font-size: 0.9rem; line-height: 1.6; color: var(--muted); margin: 0; }
.news-more { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--primary); margin-top: auto; }
.news-card.news-pinned { border-color: oklch(0.6 0.05 90 / 0.45); background: var(--surface-2); }
@media (max-width: 34rem) {
  .news-card { grid-template-columns: 1fr; }
  .news-card-media { aspect-ratio: 16 / 9; }
}

/* ── Article ── */
.article { max-width: min(100% - 2 * var(--pad-x), 46rem); margin-inline: auto; }
.article-back a { font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; color: var(--muted); text-decoration: none; letter-spacing: 0.03em; }
.article-back a:hover { color: var(--primary); }
.article-back--bottom { margin-top: 2.5rem; }
.article-date { font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--faint); margin: 1.1rem 0 0.4rem; }
.article-title { font-family: var(--font-ui); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); line-height: 1.25; letter-spacing: 0.005em; color: var(--primary); margin: 0 0 1.5rem; text-wrap: balance; }
.article-hero { border-radius: 0.55rem; overflow: hidden; margin: 0 0 1.75rem; background: oklch(0.1 0.02 250); }
.article-hero img { width: 100%; height: auto; display: block; }
.article-body { font-size: 0.98rem; line-height: 1.9; }
.article-body p { margin: 0 0 1.2rem; text-wrap: pretty; }
.article-body--en { font-family: var(--font-ui); line-height: 1.75; }
.article-body--zh { font-family: var(--font-zh); }
.article-body--en { max-width: 34rem; }
.article-body--ja, .article-body--zh { max-width: 36rem; }
.notice-body-wrap .notice-body { max-width: none; }

/* ── Gallery ── */
.ga-title { font-family: var(--font-ui); font-weight: 650; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 2.25rem 0 0.9rem; }
.ga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.6rem; }
.ga-item { display: block; aspect-ratio: 3 / 2; border-radius: 0.35rem; overflow: hidden; background: oklch(0.1 0.02 250); cursor: zoom-in; }
.ga-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.ga-item:hover img { transform: scale(1.05); opacity: 0.9; }
.ga-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Video embed ── */
.article-videos { display: grid; gap: 1rem; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 0.5rem; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-media { margin-top: 2rem; font-size: 0.9rem; }

/* ── Lightbox ── */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: oklch(0.03 0.01 260 / 0.94); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 0.3rem; box-shadow: 0 20px 80px oklch(0 0 0 / 0.6); }
.lb-close, .lb-prev, .lb-next { position: absolute; appearance: none; border: 0; background: oklch(0.15 0.02 250 / 0.6); color: var(--ink); cursor: pointer; border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lb-close { top: 1.1rem; right: 1.1rem; width: 2.6rem; height: 2.6rem; font-size: 1.5rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; font-size: 2rem; }
.lb-prev { left: 1.1rem; } .lb-next { right: 1.1rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: oklch(0.25 0.03 250 / 0.8); }
@media (max-width: 34rem) { .lb-prev, .lb-next { width: 2.4rem; height: 2.4rem; font-size: 1.5rem; } }
