@layer tokens {
  :root {
    /* Breakpoints (document only) */
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;

    /* Typography */
    --ff-sans:
      system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
    --ff-serif: "Zen Old Mincho", "Noto Serif JP", serif;
    --lh: 1.7;

    /* Radii */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;

    /* Spacing */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    /* Extended spacing for sections */
    --s-10: 96px;
    --s-12: 128px;
    --s-14: 160px;
    --s-16: 192px;
    --s-18: 224px;
    --s-20: 256px;

    /* Layout Dimensions */
    --l-width-max: 1280px;
    --l-gutter: var(--s-4);

    /* Shadow */
    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.06);
    --sh-2: 0 6px 18px rgba(0, 0, 0, 0.08);
    --sh-3: 0 18px 40px rgba(0, 0, 0, 0.1);

    /* Color: base */
    --c-bg: #fbfaf7;
    --c-white: #ffffff;
    --c-surface: #ffffff;
    --c-surface-2: #f3f1ec;
    --c-border: #e7e2d8;
    --c-text: #1f1e1c;
    --c-muted: #5e5a54;
    --c-text-main: #141618;
    /*--c-text-main: #141311;*/
    --c-text-gray: #a09e99;

    /* Accent */
    --c-accent: #b33a2b;
    --c-link: #2b4e6a;
    --c-ink: #141311;
    --c-gold: #c5a059;

    /* Navy — 問い合わせ・見積もり等のUI系アクセント */
    --c-navy: #2b4e6a;
    --c-navy-dark: #1e3a52;
    --c-navy-light: rgba(43, 78, 106, 0.07);
    --c-navy-border: rgba(43, 78, 106, 0.18);

    /* Footer */
    --c-footer-bg: #141618;
    --c-footer-text: #ede8df;
    --c-footer-muted: rgba(237, 232, 223, 0.72);

    /* Typography Sizes */
    --f-size-xs: 0.75rem;
    --f-size-sm: 0.875rem;
    --f-size-base: 1rem;
    --f-size-md: 1.125rem;
    --f-size-lg: 1.25rem;
    --f-size-xl: 1.5rem;
    --f-size-2xl: 2rem;
    --f-font-mincho: "Zen Old Mincho", "Noto Serif JP", serif;

    /* Street Layout tokens */
    --street-width: clamp(200px, 40vw, 400px);
    --street-gutter: clamp(16px, 2vw, 28px);
    --street-curve-intensity: 100px;
    --street-edge-color: var(--c-border);
    --street-inner-color: var(--c-bg); /* or generic bg if transparent needed */
    --street-opacity: 0.8; /* Stronger visibility per request */

    /* Glass-like panel */
    --panel-bg: rgba(255, 255, 255, 0.78);
    --panel-border: rgba(231, 226, 216, 0.9);
    --panel-highlight: rgba(255, 255, 255, 0.7);

    /* Light direction */
    --light-angle: 135deg;

    /* Gold Gradients */
    --g-gold-main: linear-gradient(
      135deg,
      #b48a3c 0%,
      #f3e0a0 30%,
      #c5a059 50%,
      #967027 100%
    );
    --g-gold-pale: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.9),
      rgba(197, 160, 89, 0.4) 50%,
      rgba(255, 255, 255, 0.9)
    );

    --y-gold: #c5a059;
    --y-glass: rgba(255, 255, 255, 0.6);

    --s-gutter: clamp(16px, 4vw, 40px);
    /* --r-lg: 20px; */ /* Duplicate: defined as 18px in tokens.css vs 20px here */
    --r-xl: 32px;

    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);

    /* CTA：焦茶 */
    --cta-bg: #5a2b2b;
    --cta-text: #ffffff;

    /* Hero */
    --h-gold-trans: rgba(197, 160, 89, 0.15);

    /* Waka-Red (和モダン赤) - 世界観用差し色 */
    --c-waka-red: #a03a35;
    --c-waka-red-dark: #8a302c;
    --c-waka-red-light: rgba(160, 58, 53, 0.08);
    --c-waka-red-border: rgba(160, 58, 53, 0.25);
  }
}

/* ============================================
   Base Styles & Resets
   ============================================ */

/* 基本設定 */
:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden; /* 横スクロール防止 */
}

/* 画像のレスポンシブ対応 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* タグのデフォルト余白リセット */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
dt,
figure {
  margin: 0;
  padding: 0;
}

/* リンクの基本設定 */
a {
  color: inherit;
  text-decoration: none;
}

/* ボタンのフォント継承 */
button {
  font: inherit;
}

/* ============================================
   Utilities (.u-)
   ============================================ */

/* スクリーンリーダー用（見えないが読み上げられる） */
.u-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* キーボード操作時のスキップリンク（アクセシビリティ用） */
.u-skip {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-1);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 9999;
}
.u-skip:focus {
  transform: translateY(0);
}

/* Display Utilities */
.u-block {
  display: block;
}

/* ============================================
   Components
   ============================================ */

.c-cta-gold {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  padding: 16px 32px;
  background: var(--c-surface);
  border: 1px solid #d4c5a3;
  border-radius: 9999px;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.4s var(--ease-smooth);
  box-shadow: var(--sh-2);
}

.c-cta-gold:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: var(--c-gold);
}

/* CTA Button */
.c-cta-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  color: var(--cta-text);
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  border: 1px solid rgba(197, 160, 89, 0.4);
  transition: all 0.3s ease;

  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.12)),
    var(--cta-bg);

  /* de-duplicated shadow */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.25);
}
.c-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.2);
  border-color: rgba(197, 160, 89, 0.8);
  color: #fffbeeff;
}

/* =========================================================
   CTA button (ghost)
   ========================================================= */

.c-link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 10px 18px;
  border-radius: 9999px;

  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);

  color: var(--c-ink);
  text-decoration: none;
  font-size: 0.875rem;

  transition:
    transform 0.25s var(--ease-smooth),
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.c-link-ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: var(--sh-2);
}
.c-link-ghost__arrow {
  transition: transform 0.25s var(--ease-smooth);
}
.c-link-ghost:hover .c-link-ghost__arrow {
  transform: translateX(2px);
}

.c-link-inline {
  display: inline-block;
  color: var(--c-link);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(43, 78, 106, 0.3);
  text-underline-offset: 4px;
  transition: 0.2s;
}
.c-link-inline:hover {
  color: var(--c-accent);
  text-decoration-color: var(--c-accent);
}

/* =========================================================
   Section Title
   ========================================================= */

.c-section-title__main {
  font-size: clamp(1.25rem, 8cqi, 2.4rem);
}
.c-section-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  background: var(--c-accent);
  margin-top: 0.5rem;
}

.c-desc {
  font-size: 1rem;
  color: var(--c-text);
  margin-bottom: 3rem;
  line-height: 2;
  text-align: justify;
}

/* =========================================================
   Lightbox System (Unified)
   - 画像、動画、任意HTMLコンテンツに対応
   - ナビゲーション、サムネイル、ズーム（オプション）
   - アクセシビリティ対応（フォーカストラップ、aria属性）
   ========================================================= */

/* Overlay */
.c-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 22, 24, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s;
}

.c-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

/* Scroll Lock */
body.is-lightbox-open {
  overflow: hidden !important;
}

/* -----------------------------------------
   Main Stage (Content + Navigation)
   ----------------------------------------- */
.c-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  min-height: 0;
  padding: var(--s-4);
}

/* Content Container */
.c-lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.c-lightbox.is-open .c-lightbox__content {
  transform: scale(1) translateY(0);
}

/* -----------------------------------------
   Image Type
   ----------------------------------------- */
.c-lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
  transition: transform 0.3s ease;
}

/* Zoom enabled state */
.c-lightbox--zoom-enabled .c-lightbox__img {
  cursor: zoom-in;
}

.c-lightbox--zoomed .c-lightbox__img {
  cursor: zoom-out;
  transform: scale(2);
  max-width: none;
  max-height: none;
}

.c-lightbox--zoomed .c-lightbox__content {
  overflow: auto;
  cursor: grab;
}

.c-lightbox--zoomed .c-lightbox__content:active {
  cursor: grabbing;
}

/* -----------------------------------------
   Video Type (16:9)
   ----------------------------------------- */
.c-lightbox__video {
  width: min(960px, 90vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.c-lightbox__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* -----------------------------------------
   HTML Type
   ----------------------------------------- */
.c-lightbox__html {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* -----------------------------------------
   Close Button
   ----------------------------------------- */
.c-lightbox__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition:
    background 0.3s,
    transform 0.3s,
    border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.c-lightbox__close:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}

/* -----------------------------------------
   Navigation Arrows
   ----------------------------------------- */
.c-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  transition:
    background 0.3s,
    transform 0.3s,
    border-color 0.3s,
    opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.c-lightbox__nav:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}

.c-lightbox__nav--prev {
  left: var(--s-4);
}

.c-lightbox__nav--next {
  right: var(--s-4);
}

.c-lightbox__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Hide navigation when single item */
.c-lightbox--single .c-lightbox__nav {
  display: none;
}

/* -----------------------------------------
   Caption
   ----------------------------------------- */
.c-lightbox__caption {
  position: absolute;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-family: var(--ff-serif);
  padding: var(--s-2) var(--s-4);
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--r-sm);
  max-width: 80%;
  backdrop-filter: blur(4px);
}

.c-lightbox__caption-title {
  font-weight: 600;
}

.c-lightbox__caption-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

/* -----------------------------------------
   Counter
   ----------------------------------------- */
.c-lightbox__counter {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-family: var(--ff-serif);
  letter-spacing: 0.1em;
}

/* -----------------------------------------
   Thumbnails Strip
   ----------------------------------------- */
.c-lightbox__thumbs {
  flex-shrink: 0;
  width: 100%;
  padding: var(--s-3) var(--s-4);
  background: rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.c-lightbox__thumbs-track {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  min-width: max-content;
}

.c-lightbox__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition:
    opacity 0.3s,
    border-color 0.3s,
    transform 0.3s;
  background: rgba(0, 0, 0, 0.3);
}

.c-lightbox__thumb:hover {
  opacity: 0.9;
}

.c-lightbox__thumb.is-active {
  opacity: 1;
  border-color: var(--c-gold);
}

.c-lightbox__thumb:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}

.c-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide thumbs when single item or disabled */
.c-lightbox--single .c-lightbox__thumbs,
.c-lightbox--no-thumbs .c-lightbox__thumbs {
  display: none;
}

/* -----------------------------------------
   Loading State
   ----------------------------------------- */
.c-lightbox__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--c-gold);
  border-radius: 50%;
  animation: lightbox-spin 0.8s linear infinite;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0.2s;
}

/* Show loader only when loading */
.c-lightbox--loading .c-lightbox__loader {
  opacity: 1;
  visibility: visible;
}

@keyframes lightbox-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.c-lightbox--loading .c-lightbox__content {
  opacity: 0.3;
}

/* -----------------------------------------
   Responsive
   ----------------------------------------- */
@media (max-width: 768px) {
  .c-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .c-lightbox__close {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    top: var(--s-2);
    right: var(--s-2);
  }

  .c-lightbox__thumb {
    width: 48px;
    height: 48px;
  }

  .c-lightbox__caption {
    font-size: 0.85rem;
    max-width: 90%;
    bottom: var(--s-2);
  }

  .c-lightbox__content {
    max-width: 95vw;
    max-height: 70vh;
  }

  .c-lightbox__img {
    max-height: 70vh;
  }
}

/* -----------------------------------------
   Quote Simulator (見積もりシミュレーター)
   ----------------------------------------- */
.c-quote {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-2);
}

.c-quote__header {
  text-align: center;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-border);
}

.c-quote__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 0;
}

.c-quote__subtitle {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-top: var(--s-2);
}

/* Input Section */
.c-quote__section {
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  background: var(--c-surface-2);
  border-radius: var(--r-md);
}

.c-quote__section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.c-quote__section-title::before {
  content: "";
  width: 4px;
  height: 1em;
  background: var(--c-gold);
  border-radius: 2px;
}

/* Quantity Input */
.c-quote__qty-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.c-quote__qty-input {
  width: 120px;
  padding: var(--s-3) var(--s-4);
  font-size: 1.125rem;
  text-align: right;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-white);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.c-quote__qty-input:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.c-quote__qty-unit {
  font-size: 1rem;
  color: var(--c-text-muted);
}

.c-quote__qty-calc {
  font-size: 1rem;
  color: var(--c-text);
  margin-left: auto;
}

/* Text Input (for character count) */
.c-quote__textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--s-3);
  font-size: 1rem;
  line-height: var(--lh);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-white);
  resize: vertical;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.c-quote__textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.c-quote__charcount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-2);
  font-size: 0.875rem;
}

.c-quote__charcount-num {
  font-weight: 600;
  color: var(--c-gold);
}

/* Options */
.c-quote__options {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.c-quote__option-label {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.c-quote__option-label:hover {
  background: rgba(0, 0, 0, 0.03);
}

.c-quote__option-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--c-gold);
}

.c-quote__option-name {
  flex: 1;
  font-size: 0.9375rem;
}

.c-quote__option-price {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

/* Result Section */
.c-quote__result {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d48 100%);
  color: var(--c-white);
  padding: var(--s-5);
  border-radius: var(--r-md);
  text-align: center;
  margin-bottom: var(--s-4);
}

.c-quote__result-label {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: var(--s-2);
}

.c-quote__result-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: var(--s-1);
}

.c-quote__result-tax {
  font-size: 1rem;
  opacity: 0.9;
}

.c-quote__result-tax-amount {
  font-weight: 600;
}

/* Disclaimer */
.c-quote__disclaimer {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  text-align: center;
  padding: var(--s-3);
  background: var(--c-surface-2);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-4);
}

/* Actions */
.c-quote__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.c-quote__btn {
  flex: 1;
  min-width: 140px;
  padding: var(--s-3) var(--s-4);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
}

.c-quote__btn--primary {
  background: var(--c-gold);
  color: var(--c-white);
}

.c-quote__btn--primary:hover:not(:disabled) {
  background: #b38d42; /* darker gold */
  color: var(--c-white);
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}

.c-quote__btn--secondary {
  background: var(--c-surface-2);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}

.c-quote__btn--secondary:hover:not(:disabled) {
  background: var(--c-surface);
  border-color: var(--c-gold);
}

.c-quote__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Breakdown Table */
.c-quote__breakdown {
  margin-top: var(--s-4);
  border-top: 1px solid var(--c-border);
  padding-top: var(--s-4);
}

.c-quote__breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: var(--s-2) 0;
  font-size: 0.875rem;
}

.c-quote__breakdown-row--total {
  font-weight: 600;
  border-top: 1px solid var(--c-border);
  margin-top: var(--s-2);
  padding-top: var(--s-3);
}

/* ── Composite Simulator Styles ── */
.c-quote__composite-section {
  border: 1px solid var(--c-border-light, #e5e5e5);
  border-left: 3px solid var(--c-gold, #b8860b);
  border-radius: 0 var(--r-lg, 12px) var(--r-lg, 12px) 0;
  padding: var(--s-4);
  margin-bottom: var(--s-4);
  background: var(--c-bg-soft, #fafafa);
}
.c-quote__composite-label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-primary, #1a1a2e);
  padding: var(--s-2) var(--s-3);
  margin: calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) var(--s-3)
    calc(-1 * var(--s-4));
  background: linear-gradient(
    135deg,
    rgba(184, 134, 11, 0.08),
    rgba(184, 134, 11, 0.03)
  );
  border-bottom: 1px solid var(--c-border-light, #e5e5e5);
  border-radius: 0 var(--r-lg, 12px) 0 0;
}
.c-quote__step-number {
  font-size: 1.1rem;
  color: var(--c-gold, #b8860b);
  flex-shrink: 0;
}
.c-quote__sub-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-2) var(--s-3);
  margin-top: var(--s-3);
  background: var(--c-bg, #fff);
  border-radius: var(--r-md, 8px);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-primary, #1a1a2e);
  border: 1px solid var(--c-border-light, #e5e5e5);
}

/* ── Option Accordion ── */
.c-quote__option-accordion {
  margin-top: var(--s-3);
  border: 1px dashed var(--c-border-light, #ddd);
  border-radius: var(--r-md, 8px);
  overflow: hidden;
}
.c-quote__option-toggle {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-muted, #888);
  user-select: none;
  list-style: none;
  transition: color 0.2s ease;
}
.c-quote__option-toggle::-webkit-details-marker {
  display: none;
}
.c-quote__option-toggle:hover {
  color: var(--c-gold, #b8860b);
}
.c-quote__option-toggle-icon {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}
.c-quote__option-accordion[open] .c-quote__option-toggle-icon {
  transform: rotate(45deg);
}
.c-quote__option-accordion[open] .c-quote__option-toggle {
  border-bottom: 1px dashed var(--c-border-light, #ddd);
  color: var(--c-gold, #b8860b);
}
.c-quote__option-accordion .c-quote__options {
  padding: var(--s-2) var(--s-3) var(--s-3);
}

/* ── Group Card (Left Column) ── */
.p-panel-group {
  border: 1px solid var(--c-border-light, #e0dcd5);
  border-left: 3px solid var(--c-gold, #b8860b);
  border-radius: 0 var(--r-lg, 12px) var(--r-lg, 12px) 0;
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-4);
  background: var(--c-bg, #fff);
}
.p-panel-group__header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary, #1a1a2e);
  padding: var(--s-2) var(--s-3);
  margin: calc(-1 * var(--s-4)) calc(-1 * var(--s-5)) var(--s-4)
    calc(-1 * var(--s-5));
  background: linear-gradient(
    135deg,
    rgba(184, 134, 11, 0.08),
    rgba(184, 134, 11, 0.03)
  );
  border-bottom: 1px solid var(--c-border-light, #e0dcd5);
  border-radius: 0 var(--r-lg, 12px) 0 0;
}
.p-panel-group__icon {
  color: var(--c-gold, #b8860b);
  font-size: 0.85rem;
}
.p-panel-group__sub {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--c-border-light, #e0dcd5);
}
.p-panel-group__sub-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-muted, #888);
  letter-spacing: 0.06em;
  margin-bottom: var(--s-2);
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .c-quote {
    padding: var(--s-4);
  }

  .c-quote__qty-row {
    flex-direction: column;
    align-items: stretch;
  }

  .c-quote__qty-input {
    width: 100%;
  }

  .c-quote__qty-calc {
    margin-left: 0;
    text-align: right;
  }

  .c-quote__result-amount {
    font-size: 1.75rem;
  }

  .c-quote__actions {
    flex-direction: column;
  }

  .c-quote__btn {
    min-width: 100%;
  }
}
