:root {
  --ink: #2A2724;
  --mag: #E1067A;
  --stone: #6E675E;
  --line: #E8E4DF;
  --paper: #FCFAF7;
  --hall: #241c1a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Glow Sans SC", "Viz Grotesk", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}
html[lang="en"] body { font-family: "Viz Grotesk", "Glow Sans SC", sans-serif; }
html[lang="ja"] body { font-family: "Glow Sans J", "Glow Sans SC", "Viz Grotesk", sans-serif; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: 0.012em; line-height: 1.2; }
.en { font-family: "Viz Grotesk", sans-serif; letter-spacing: 0.01em; color: var(--stone); }
.skip {
  position: absolute; left: 12px; top: -40px; background: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { top: 12px; }

.nav {
  position: fixed; z-index: 40; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 20px));
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 14px;
  background: rgba(36, 28, 26, 0.78);
  color: #FCFAF7;
  border: 1px solid rgba(232, 228, 223, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}
.nav .brand img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { display: block; padding: 8px 10px; border-radius: 999px; text-decoration: none; font-size: 14px; }
.nav-links a:hover { background: rgba(252, 250, 247, 0.08); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; }
.nav-toggle span { display: block; height: 2px; margin: 6px 10px; background: #FCFAF7; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch button {
  border: 0; background: transparent; color: #E8E4DF; border-radius: 999px; padding: 6px 8px; cursor: pointer;
}
.lang-switch button.is-on { background: #FCFAF7; color: var(--ink); }
.nav-dial, .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  text-decoration: none; border-radius: 999px;
}
.nav-dial { width: 40px; border: 1px solid rgba(232, 228, 223, 0.35); color: #FCFAF7; }
.nav-dial svg { width: 18px; height: 18px; }
.btn { padding: 0 16px; border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.btn-mag { background: var(--mag); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.nav .btn-line, .nav .btn-mag { flex: none; }
.hero-actions .btn-line { color: #FCFAF7; border-color: rgba(252, 250, 247, 0.45); }

.hero-space { height: 220vh; background: var(--hall); }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#hall { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hall-fallback[hidden] { display: none !important; }
.hall-fallback {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.2fr 0.8fr; background: var(--hall);
}
.hall-fallback img { width: 100%; height: 100%; object-fit: cover; }
.hall-fallback p { position: absolute; left: 24px; bottom: 24px; color: #FCFAF7; max-width: 22em; }
.hero-copy {
  position: absolute; left: max(24px, 6vw); bottom: 7vh; max-width: min(640px, 90vw);
  color: #FCFAF7; text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); pointer-events: none;
}
.hero-copy h1 { font-size: clamp(40px, 5vw, 68px); margin: 0 0 10px; letter-spacing: 0.012em; }
.hero-copy .en { color: #E8E4DF; margin: 0 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; pointer-events: auto; }
.hero-hint { margin: 14px 0 0; color: #E8E4DF; font-size: 14px; max-width: 28em; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
section { padding: 88px 0; }
.kicker { color: var(--stone); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 8px; }
.sec-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.sec-head h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); }
.sec-head p { max-width: 36em; margin: 0; color: var(--stone); }
.concept { display: inline-block; font-size: 12px; letter-spacing: 0.08em; color: var(--stone); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }

.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.journey figure { margin: 0; }
.journey img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #2A2724; border-radius: 12px; }
.journey figcaption { margin-top: 8px; font-size: 13px; }
.journey b { color: var(--mag); font-weight: 500; margin-right: 4px; }

.svc-grid, .step-grid, .pick-grid, .catalog-grid { display: grid; gap: 16px; }
.svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc, .step, .pick-card, .lib-card, .scene, .panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0;
}
.svc img, .step img, .pick-card > img, .scene img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #F4F1EC; }
.svc div, .step, .pick-body, .lib-card div, .scene { padding: 14px 16px 16px; }
.svc h3, .step h3, .pick-body h3, .scene h3 { margin: 0 0 6px; font-size: 22px; }
.step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding: 0 0 16px; }
.step h3, .step p, .step .kicker { padding: 0 16px; }
.step .kicker { padding-top: 14px; }

.type-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.type-chip {
  display: flex; flex-direction: column; gap: 6px; min-height: 92px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
}
.type-chip span { color: var(--stone); font-size: 14px; }
.more { margin-top: 18px; }

.pick-grid, .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pick-body .paper, .paper { margin: 8px 0; }
.paper div { display: grid; grid-template-columns: 3.2em 1fr; gap: 8px; font-size: 13px; }
.paper dt { color: var(--stone); }
.paper dd { margin: 0; overflow-wrap: anywhere; }
.pick-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.pick-qty { color: var(--mag); font-size: 13px; }
.pick-view { font-size: 13px; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.seg button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; }
.seg button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lib-card img, .swatch { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #F4F1EC; }
.swatch { display: grid; place-items: center; padding: 16px; color: var(--stone); text-align: center; }
.lib-card .spec { color: var(--stone); font-size: 13px; }

.scene-grid { display: grid; gap: 28px; }
.scene-photos { display: grid; grid-template-columns: 1.4fr 1fr; }
.scene-photos img { aspect-ratio: 16/10; height: 100%; }

.ba { position: relative; display: grid; border-radius: 16px; overflow: hidden; background: #2A2724; }
.ba img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ba .crop { aspect-ratio: 16/8; object-position: center 18%; }
.ba figcaption, .pair-cap { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; color: var(--stone); font-size: 14px; }
.compare-grid { display: grid; gap: 28px; }
.truss-shot { margin: 0; }
.truss-shot img { width: 100%; border-radius: 16px; aspect-ratio: 16/9; object-fit: cover; }
.note { color: var(--stone); }

.consult { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: start; }
.panel { padding: 18px; }
form.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.span-2 { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
input, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.q-item { display: grid; grid-template-columns: 54px 1fr 72px 32px; gap: 8px; align-items: center; }
.q-item img { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; }
.q-item small { display: block; color: var(--stone); }
#openMail { width: 100%; margin-top: 12px; min-height: 52px; }
.mail-note { font-size: 14px; }
.dial-row { display: flex; gap: 14px; margin-top: 10px; }
.dial-row a { font-weight: 500; }
.vcard { margin-top: 22px; }
.vcard a { color: var(--mag); }

footer { background: var(--ink); color: #E8E4DF; padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
footer a { color: #FCFAF7; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; font-size: 13px; color: var(--stone); }
.lation-lock { height: 36px; width: auto; background: #fff; border-radius: 6px; padding: 4px; }
footer .lang-switch button { color: #E8E4DF; }
footer .lang-switch button.is-on { background: #FCFAF7; color: var(--ink); }

.toasts { position: fixed; top: 84px; right: 16px; z-index: 50; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; max-width: 240px; }

#cases { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-space { height: 100vh; }
}
@media (max-width: 980px) {
  .svc-grid, .step-grid, .pick-grid, .catalog-grid, .lib-grid, .consult, .foot-grid { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(36, 28, 26, 0.96); border-radius: 18px; padding: 10px;
  }
  .nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 700px) {
  .svc-grid, .step-grid, .pick-grid, .catalog-grid, .lib-grid, .type-row, .consult, .foot-grid, .scene-photos, form.panel, .hall-fallback {
    grid-template-columns: 1fr;
  }
  .journey { grid-template-columns: 1fr 1fr; }
  .hero-space { height: 165vh; }
  .hero-copy h1 { font-size: 36px; }
  .nav .lang-switch { display: none; }
  .sec-head { display: block; }
  section { padding: 64px 0; }
  .foot-bottom { display: block; }
  main { padding-bottom: 24px; }
}
