/* TCA — single product · page-wide room · 4 selectable spaces */
:root {
  --ink: #07070a;
  --ivory: #f2eee6;
  --ivory-dim: rgba(242, 238, 230, 0.88);
  --brass: #c4a35a;
  --brass-line: rgba(196, 163, 90, 0.42);
  --smoke: #9a97a0;
  --glass: rgba(8, 8, 12, 0.82);
  --glass-strong: rgba(6, 6, 10, 0.9);
  --max: 980px;
  --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--ivory-dim);
  font-family: "DM Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brass); text-decoration: none; }
a:hover { color: #e0c27a; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #141418; color: var(--ivory); padding: 8px 12px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Full-page room background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--ink);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 45%;
  filter: saturate(1) brightness(0.78) contrast(1.02);
  transition: background-image 0.45s ease, background-position 0.45s ease, filter 0.45s ease;
}
.page-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 8, 0.28) 0%, rgba(5, 5, 8, 0.18) 40%, rgba(5, 5, 8, 0.55) 100%),
    linear-gradient(90deg, rgba(5, 5, 8, 0.28) 0%, transparent 60%);
}

.page {
  position: relative;
  z-index: 2;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(196, 163, 90, 0.14);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.brand-seal {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(196, 163, 90, 0.28);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-mark {
  font-family: "DM Serif Display", Georgia, serif;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--ivory);
  text-shadow: var(--text-shadow);
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(196, 163, 90, 0.78);
}
.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.topnav a { color: rgba(242, 238, 230, 0.62); }
.topnav a:hover { color: var(--brass); }

.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(196, 163, 90, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 28px 26px;
}
.glass-strong { background: var(--glass-strong); }

.hero {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: 36px 0 28px;
}
.hero-glass { max-width: 54rem; }
.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.hero-seal {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(196, 163, 90, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .hero-brand-row { align-items: flex-start; }
  .hero-seal { width: 72px; height: 72px; }
}
.first-view-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 14px;
}
.first-view-summary::before {
  content: "購入前に、初見でここだけ見れば判断できます";
  grid-column: 1 / -1;
  color: rgba(237, 217, 164, 0.88);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.first-view-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}
.first-view-pillars span {
  border: 1px solid rgba(196, 163, 90, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
}
.first-view-item {
  border: 1px solid rgba(196, 163, 90, 0.24);
  background: rgba(0, 0, 0, 0.42);
  padding: 12px 13px;
}
.first-view-item strong {
  display: block;
  margin-bottom: 4px;
  color: #edd9a4;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.first-view-item span {
  display: block;
  color: var(--ivory-dim);
  font-size: 12px;
  line-height: 1.6;
}
.first-view-item b {
  color: var(--ivory);
  font-weight: 600;
}
.hero-trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 16px;
  color: rgba(242, 238, 230, 0.66);
  font-size: 12px;
}
.hero-trust-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 163, 90, 0.9);
  margin-bottom: 16px;
  text-shadow: var(--text-shadow);
}
.hero-glass h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(28px, 5.2vw, 46px);
  font-weight: 400;
  line-height: 1.28;
  color: var(--ivory);
  margin-bottom: 10px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.hero-outcome {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(18px, 2.8vw, 26px);
  line-height: 1.4;
  color: #edd9a4;
  margin-bottom: 14px;
  text-shadow: var(--text-shadow);
}
.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--ivory);
  text-shadow: var(--text-shadow);
}
.h1-sub {
  display: block;
  margin-top: 8px;
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  font-size: 0.42em;
  letter-spacing: 0.12em;
  color: rgba(196, 163, 90, 0.9);
}
.hero-credo {
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 22px;
  color: var(--ivory-dim);
  text-shadow: var(--text-shadow);
}
.hero-title-product {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(22px, 3.2vw, 28px);
  color: var(--ivory);
  margin-bottom: 14px;
  text-shadow: var(--text-shadow);
}
.hero-lead strong {
  color: #edd9a4;
  font-weight: 600;
}
.single-note {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #d2b09a;
  border-left: 1px solid rgba(196, 163, 90, 0.4);
  padding-left: 14px;
}
.limited {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #edd9a4;
  border: 1px solid var(--brass-line);
  background: rgba(0, 0, 0, 0.35);
  padding: 7px 12px;
  margin-bottom: 22px;
}
.hero-actions { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-gold.btn-ghost {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(196, 163, 90, 0.28);
}
.checkout-main .hero { padding-top: 24px; padding-bottom: 48px; }
.checkout-glass .checkout-ops { grid-template-columns: 1fr; }
.checkout-hold { color: #d2b09a; }
.ai-context-box {
  width: 100%;
  margin: 12px 0 8px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ivory-dim);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(196, 163, 90, 0.22);
  resize: vertical;
  min-height: 160px;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--brass-line);
  background: linear-gradient(180deg, rgba(196, 163, 90, 0.2), rgba(196, 163, 90, 0.06));
  color: #f0e2b8;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.btn-gold:hover {
  border-color: rgba(196, 163, 90, 0.75);
  background: rgba(196, 163, 90, 0.22);
  color: #fff4d4;
  transform: translateY(-1px);
}
.caution {
  font-size: 13px;
  line-height: 1.7;
  color: #d2b09a;
  border-left: 1px solid rgba(196, 163, 90, 0.4);
  padding-left: 14px;
  text-shadow: var(--text-shadow);
}

/* Spaces — 4 only */
.spaces {
  padding: 28px 0 48px;
}
.spaces-head { max-width: 34rem; margin-bottom: 18px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(196, 163, 90, 0.85);
  margin-bottom: 10px;
  text-shadow: var(--text-shadow);
}
.spaces-head h2,
.section h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.35;
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.spaces-head h2 { margin-bottom: 8px; }
.space-card-body { padding: 10px 12px 12px; }
.space-card-desc { display: none; }
.space-card-tag {
  display: block;
  font-size: 12px;
  color: rgba(242, 238, 230, 0.65);
  margin-top: 4px;
}
.space-card-media--grad { min-height: 120px; }
.space-card-media--grad[data-grad="night"] {
  background: linear-gradient(165deg, #1a1520, #2a2035);
}
.space-card-media--grad[data-grad="day"] {
  background: linear-gradient(165deg, #3d4a5c, #e8dcc8);
}
.space-card-media--grad[data-grad="zen"] {
  background: linear-gradient(165deg, #1c2420, #2d4038);
}
.space-card-media--grad[data-grad="cmd"] {
  background: linear-gradient(165deg, #0d1118, #3d2a1a);
}
.lobby-sub {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--ivory);
  margin: 24px 0 12px;
}
.lobby-pairs .op { min-height: auto; }
.space-detail-ops { margin: 16px 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.space-selected {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #edd9a4;
  text-shadow: var(--text-shadow);
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.space-card {
  appearance: none;
  border: 1px solid rgba(196, 163, 90, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.space-card:hover,
.space-card:focus-visible {
  outline: none;
  border-color: rgba(196, 163, 90, 0.55);
  transform: translateY(-2px);
}
.space-card.is-selected {
  border-color: rgba(196, 163, 90, 0.85);
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.45), 0 12px 36px rgba(0, 0, 0, 0.45);
}
.space-card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}
.space-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
  filter: saturate(0.95) brightness(0.95);
}
.space-card[data-room-id="daylight"] .space-card-media img,
.space-card[data-room-id="zen_desk"] .space-card-media img,
.space-card[data-room-id="command"] .space-card-media img {
  object-position: center center;
  aspect-ratio: auto;
}
.space-card-body {
  padding: 12px 12px 14px;
  background: rgba(6, 6, 10, 0.78);
}
.space-card-name {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #edd9a4;
  margin-bottom: 4px;
}
.space-card-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--smoke);
}

.section {
  padding: 28px 0;
}
.section .glass { max-width: 42rem; }
.section p {
  margin-bottom: 12px;
  text-shadow: var(--text-shadow);
}

.ops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.op {
  border: 1px solid rgba(196, 163, 90, 0.22);
  background: rgba(0, 0, 0, 0.4);
  padding: 16px 14px;
  min-height: 92px;
}
.op strong {
  display: block;
  color: #edd9a4;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 8px;
}
.op span { font-size: 13px; color: var(--ivory-dim); }

.key-once {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  word-break: break-all;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 128, 0.35);
  color: #ffe9a8;
}

.btn-buy { font-weight: 600; }

.checkout-cancel {
  border: 1px solid rgba(196, 163, 90, 0.5);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(242, 238, 230, 0.62);
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.mode-panel {
  border: 1px solid rgba(196, 163, 90, 0.2);
  background: rgba(0, 0, 0, 0.42);
  padding: 18px 16px;
}
.mode-panel h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #edd9a4;
  margin-bottom: 12px;
}
.mode-panel ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.mode-panel.allow li::before { content: "· "; color: var(--brass); }
.mode-panel.deny li::before { content: "· "; color: var(--smoke); }

.flow {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.flow li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  font-size: 14px;
}
.flow li::before {
  content: counter(step, decimal-leading-zero);
  color: #edd9a4;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.desk {
  margin-top: 18px;
  padding: 22px 18px;
  border: 1px solid rgba(196, 163, 90, 0.2);
  background: rgba(0, 0, 0, 0.45);
}
.desk-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(196, 163, 90, 0.7);
  margin-bottom: 14px;
}
.props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.prop {
  appearance: none;
  border: 1px solid rgba(196, 163, 90, 0.24);
  background: rgba(7, 7, 10, 0.7);
  color: var(--ivory-dim);
  min-height: 104px;
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.prop:hover,
.prop:focus-visible {
  outline: none;
  border-color: rgba(196, 163, 90, 0.6);
  transform: translateY(-2px);
}
.prop-mark {
  display: block;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--brass), transparent);
  margin-bottom: 12px;
}
.prop-mark.seal {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4b56a, #6b4a22);
}
.prop-mark.plate {
  width: 36px; height: 10px;
  border: 1px solid var(--brass-line); background: transparent;
}
.prop-mark.bell {
  width: 16px; height: 16px;
  border-radius: 50% 50% 40% 40%;
  border: 1px solid var(--brass-line);
  background: rgba(196, 163, 90, 0.12);
}
.prop-name {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #edd9a4;
  margin-bottom: 6px;
}
.prop-desc { font-size: 12px; line-height: 1.5; color: var(--smoke); }

.cta { padding: 28px 0 72px; }
.site-footer {
  border-top: 1px solid rgba(196, 163, 90, 0.12);
  background: rgba(7, 7, 10, 0.88);
  padding: 28px 0 40px;
  color: var(--smoke);
  font-size: 12px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

/* Legal panel */
.panel-root[hidden] { display: none !important; }
.panel-root {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: end center;
  background: rgba(0, 0, 0, 0.66); padding: 16px;
}
.panel {
  width: min(100%, 860px);
  max-height: min(86dvh, 900px);
  background: #0b0b0f;
  border: 1px solid rgba(196, 163, 90, 0.28);
  display: flex; flex-direction: column;
  animation: panel-up 0.35s ease;
}
@keyframes panel-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.16);
}
.panel-head h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 18px; color: var(--ivory); margin: 0; text-shadow: none;
}
.panel-close {
  appearance: none; border: 1px solid rgba(196, 163, 90, 0.3);
  background: transparent; color: var(--brass); width: 36px; height: 36px; cursor: pointer;
}
.panel-body { overflow: auto; flex: 1; background: #0a0a0e; }
.panel-support { padding: 28px 22px 36px; color: var(--ivory-dim); }
.panel-support p { margin-bottom: 14px; text-shadow: none; }
.panel-kicker {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(196, 163, 90, 0.75); margin-bottom: 12px;
}
.candidate-block {
  margin: 22px 0 16px; padding: 16px 14px;
  border: 1px solid rgba(196, 163, 90, 0.2);
  background: rgba(196, 163, 90, 0.04);
}
.privacy-frame-host {
  margin: 12px 0 18px;
  border: 1px solid rgba(196, 163, 90, 0.16);
  min-height: 52dvh; background: #070708;
}
.privacy-frame-host iframe,
.panel-body iframe {
  width: 100%; min-height: 52dvh; border: 0; display: block; background: #070708;
}
body.panel-open { overflow: hidden; }

@media (max-width: 900px) {
  .first-view-summary { grid-template-columns: 1fr; }
  .first-view-pillars { gap: 6px; }
  .space-grid { grid-template-columns: 1fr 1fr; }
  .ops { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .props { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .wrap { width: min(100% - 22px, var(--max)); }
  .glass { padding: 22px 18px; }
  .space-card-media { aspect-ratio: 4 / 5; }
  .topnav { gap: 8px 10px; font-size: 11px; }
}
