/* Layout: single centered column of full-width bands; content max 1120px; editorial hero with a vertical 未来 mark. */
:root {
  --bg: #FAFCFB;
  --surface: #EDF3F1;
  --card: #FFFFFF;
  --ink: #15232A;
  --muted: #4A5D64;
  --line: #D3DFDB;
  --accent: #0D6A5D;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEDE8;
  --dawn: #B8701F;
  --mark: #E3ECE9;
  --band-dark: #15232A;
  --band-dark-ink: #E4ECEA;
  --glass: #FFE6B3;
  --glass-off: #2C3B40;
  --filament: #8A4B0C;
  --line-art: #6E8287;
  --night: #101C20;

  --font-display: "Newsreader", "Zen Old Mincho", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-jp-display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-jp-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.4rem, 5.2vw, 3.6rem);

  --radius: 10px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1A1D; --surface: #142427; --card: #18292D; --ink: #E5EEEC; --muted: #A2B5B2;
    --line: #2A3E42; --accent: #5BC3AE; --accent-ink: #0B1A1C; --accent-soft: #1D3A37;
    --dawn: #E2A65C; --mark: #1A2C30; --glass: #F2C373; --glass-off: #22363A; --filament: #7A3F06; --line-art: #8BA0A4; --night: #040809; --band-dark: #0A1416; --band-dark-ink: #D7E3E0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1A1D; --surface: #142427; --card: #18292D; --ink: #E5EEEC; --muted: #A2B5B2;
  --line: #2A3E42; --accent: #5BC3AE; --accent-ink: #0B1A1C; --accent-soft: #1D3A37;
  --dawn: #E2A65C; --mark: #1A2C30; --glass: #F2C373; --glass-off: #22363A; --filament: #7A3F06; --line-art: #8BA0A4; --night: #040809; --band-dark: #0A1416; --band-dark-ink: #D7E3E0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="ja"] body { font-family: var(--font-jp-body); line-height: 1.85; font-size: 1rem; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { font-family: var(--font-jp-display); font-weight: 600; line-height: 1.45; letter-spacing: 0.02em; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .hero-lede { word-break: auto-phrase; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 50; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(64px, 9vw, 112px); }
.band--tint { background: var(--surface); }
.eyebrow {
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
html[lang="ja"] .eyebrow { letter-spacing: 0.12em; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--card); }
.btn--outline { border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn--primary:hover { transform: none; } }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.logo span { color: var(--dawn); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.97rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 0.85rem;
}
.lang a, .lang span { padding: 5px 12px; text-decoration: none; color: var(--muted); }
.lang [aria-current="page"] { background: var(--ink); color: var(--bg); font-weight: 700; }
.nav-toggle {
  display: none; min-height: 44px; min-width: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font: inherit; font-weight: 700; padding: 0 14px;
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    gap: 4px; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 10px 0; }
  .nav .lang { align-self: flex-start; margin-block: 8px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); position: relative; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; max-width: 660px; }
.byline { font-size: 0.95rem; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--dawn); }
.hero h1 { font-size: var(--step-4); }
.hero h1 em { font-style: italic; color: var(--accent); }
html[lang="ja"] .hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
html[lang="ja"] .hero h1 em { font-style: normal; }
.hero-lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; }
html[lang="ja"] .hero-lede { font-size: 1.1rem; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.audience { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; list-style: none; }
.audience li { font-size: 0.875rem; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; color: var(--muted); }

.portrait { margin: 0; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.portrait-frame {
  position: relative; aspect-ratio: 5 / 4; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.portrait-frame::before {
  content: "HK"; font-family: var(--font-display); font-size: 4rem; color: var(--accent); opacity: .5;
}
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-caption { display: flex; flex-direction: column; line-height: 1.4; padding-left: 14px; border-left: 2px solid var(--dawn); }
.portrait-caption strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.portrait-caption span { color: var(--muted); font-size: 0.93rem; }
.titles { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; color: var(--muted); font-size: 0.93rem; line-height: 1.45; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 420px; }
}

/* Hero illustration: lights off, current flows, the bulb lights the room */
.hero .veil { position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; z-index: 1; }
.illus { position: relative; z-index: 2; width: 100%; max-width: 340px; height: auto; justify-self: center; overflow: visible; }
.illus .glow-stop-a { stop-color: var(--dawn); stop-opacity: .55; }
.illus .glow-stop-b { stop-color: var(--dawn); stop-opacity: 0; }
.illus .wire { fill: none; stroke: var(--line-art); stroke-width: 2.5; stroke-linecap: round; }
.illus .current { fill: none; stroke: var(--dawn); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 40 600; opacity: 0; }
.illus .glass { fill: var(--glass); stroke: var(--line-art); stroke-width: 2.5; }
.illus .filament { fill: none; stroke: var(--filament); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.illus .battery-word { fill: #15232A; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.illus .base { fill: var(--line-art); }
.illus .battery { fill: #FFFFFF; stroke: var(--line-art); stroke-width: 2.5; }
.illus .screw { stroke: var(--surface); stroke-width: 2; }
.illus .terminal { fill: var(--line-art); }
@keyframes current-flow { 0% { stroke-dashoffset: 40; opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -600; opacity: 0; } }
@keyframes glass-on { from { fill: var(--glass-off); } }
@keyframes light-in { from { opacity: 0; } }
@keyframes veil-off { from { opacity: .93; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .veil { animation: veil-off .9s ease-in-out 1.45s backwards; }
  .illus .current { animation: current-flow 1s ease-in .35s both; }
  .illus .glass { animation: glass-on .35s ease-out 1.25s backwards; }
  .illus .glow, .illus .filament { animation: light-in .5s ease-out 1.25s backwards; }
}
@media (max-width: 820px) { .illus { order: -1; max-width: 200px; justify-self: start; margin-bottom: -8px; } }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.card h3 { font-size: var(--step-2); }
html[lang="ja"] .card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); }
.card ul { margin: 0; padding-left: 1.1em; font-size: 0.95rem; display: grid; gap: 4px; }
.card .btn { margin-top: auto; }
.card-kicker { font-size: var(--step--1); color: var(--dawn); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.about-photo { margin: 0; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.about-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; max-width: 70ch; }
.about-body h2 { font-size: var(--step-3); }
.about-body h2 small { display: block; font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--muted); margin-top: 8px; letter-spacing: 0; line-height: 1.5; }
html[lang="ja"] .about-body h2 small { font-family: var(--font-jp-body); }
.creds { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.creds > div { padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.creds dt { font-size: var(--step--1); font-weight: 700; letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.creds dd { margin: 2px 0 0; font-size: 0.93rem; line-height: 1.45; }
.about-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.95rem; }
@media (max-width: 720px) { .about { grid-template-columns: minmax(0, 1fr); } .about-photo { max-width: 220px; } }
@media (max-width: 420px) { .creds { grid-template-columns: minmax(0, 1fr); } }

/* Steps */
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); border: 1.5px solid var(--accent);
}
.steps strong { display: block; font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* Embeds */
.embed {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden;
  min-height: 420px; display: flex;
}
.embed iframe { border: 0; width: 100%; min-height: inherit; flex: 1; background: #FFFFFF; }
.embed--booking { min-height: 640px; }
.embed--form { min-height: 720px; }
.embed--news { min-height: 120px; border: 0; background: transparent; }
.embed-fallback {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 10px; padding: 32px; color: var(--muted);
}
.embed-fallback strong { color: var(--ink); font-size: 1.1rem; }
.embed.is-live .embed-fallback { display: none; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 65ch; }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.newsletter h2 { font-size: var(--step-3); }
.newsletter-copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.newsletter-copy p { color: var(--muted); }
@media (max-width: 820px) { .newsletter { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 64px); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact-copy h2 { font-size: var(--step-3); }
.callout { font-size: 0.93rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
@media (max-width: 820px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--band-dark); color: var(--band-dark-ink); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 44px; font-size: 0.93rem; }
.site-footer a { color: var(--band-dark-ink); }
.site-footer .logo { color: #FFFFFF; font-size: 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }

/* Legal pages */
.legal { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: var(--step-3); }
.legal h2 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; margin-top: 12px; }
html[lang="ja"] .legal h2 { font-family: var(--font-jp-body); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal .updated { color: var(--muted); font-size: 0.93rem; }
