/** Shopify CDN: Minification failed

Line 1381:0 Unexpected "}"

**/
/* -------------------------
   Page-only overrides
-------------------------- */
body.template-product .cfg3d ~ .cc-header--sticky {
  display: none;
}
body.is-cfg3d-page .cc-header--sticky,
body.is-cfg3d-page .announcement,
body.is-cfg3d-page .breadcrumbs {
  display: none;
}
/* 3D configuratorページだけ footer系を全部非表示 */
body:has(.cfg3d) .cc-icons-with-text,
body:has(.cfg3d) .shopify-section-group-footer-group,
body:has(.cfg3d) footer,
body:has(.cfg3d) .footer {
  display: none !important;
}
.section { margin: 0 auto 100px; }

/* -------------------------
   Base / theme container
-------------------------- */
.cfg3d {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background-color: #fafafa;
}

.shopify-section:has(.cfg3d) {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.shopify-section:has(.cfg3d) .page-width,
.shopify-section:has(.cfg3d) .container {
  max-width: none;
  padding-left: 32px;
  padding-right: 32px;
}
.cfg3d-group__title {
  color: #0A0A0A!important;
}

/* -------------------------
   Steps
-------------------------- */

.cfg3d__stepsBar {
  background: #fafafa;
}

.cfg3d__steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.cfg3d__step {
  position: relative;
  border: 0;
  margin: 0;
  padding: 10px 12px;
  background: #f4f1ff;
  color: rgba(17,17,17,.45);
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 0;
  transition: .25s ease;
}

/* 未到達 */
.cfg3d__step.is-muted {
  background: #fafafa;
  color: rgba(17,17,17,.42);
  opacity: 1;
}

/* 現在地 */
.cfg3d__step.is-active {
  background: linear-gradient(135deg, #2c0fb8 0%, #5b2dff 55%, #8d73ff 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.35);
}

/* 進行済みを紫にする */
.cfg3d__steps:has(.cfg3d__step:nth-child(1).is-active) .cfg3d__step:nth-child(-n+1),
.cfg3d__steps:has(.cfg3d__step:nth-child(2).is-active) .cfg3d__step:nth-child(-n+2),
.cfg3d__steps:has(.cfg3d__step:nth-child(3).is-active) .cfg3d__step:nth-child(-n+3),
.cfg3d__steps:has(.cfg3d__step:nth-child(4).is-active) .cfg3d__step:nth-child(-n+4),
.cfg3d__steps:has(.cfg3d__step:nth-child(5).is-active) .cfg3d__step:nth-child(-n+5),
.cfg3d__steps:has(.cfg3d__step:nth-child(6).is-active) .cfg3d__step:nth-child(-n+6) {
  background: linear-gradient(135deg, #2c0fb8 0%, #5b2dff 60%, #8067ff 100%);
  color: #111;
}

/* 現在地だけ少し強調 */
.cfg3d__step.is-active {
  background: linear-gradient(135deg, #1f0a9c 0%, #5627ff 50%, #9d88ff 100%) !important;
}

.cfg3d__stepShort {
  display: none;
}

/* 進行済みエリア全体に1本のグラデーションをかける */
.cfg3d__steps {
  position: relative;
  background: linear-gradient(
    90deg,
    #e7dccd 30%,
    #cdb89c 40%,
    #d8c3a5 100%
  );
  
}

/* 上品な光沢 */
.cfg3d__steps::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,.28),
      rgba(255,255,255,0)
    );
}

/* ボタン単体のグラデーションを消す */
.cfg3d__steps:has(.cfg3d__step:nth-child(1).is-active) .cfg3d__step:nth-child(-n+1),
.cfg3d__steps:has(.cfg3d__step:nth-child(2).is-active) .cfg3d__step:nth-child(-n+2),
.cfg3d__steps:has(.cfg3d__step:nth-child(3).is-active) .cfg3d__step:nth-child(-n+3),
.cfg3d__steps:has(.cfg3d__step:nth-child(4).is-active) .cfg3d__step:nth-child(-n+4),
.cfg3d__steps:has(.cfg3d__step:nth-child(5).is-active) .cfg3d__step:nth-child(-n+5),
.cfg3d__steps:has(.cfg3d__step:nth-child(6).is-active) .cfg3d__step:nth-child(-n+6) {
  background: transparent !important;
}

/* 現在地も透明にして、親のグラデーションを見せる */
.cfg3d__step.is-active {
  background: transparent !important;
  color: #000;
}

/* -------------------------
   Main layout
-------------------------- */
.cfg3d__grid {
  display: grid;
  grid-template-columns: 65% 35%;
  align-items: stretch;
  --cfg3d-h: calc(108vh - 220px);
}

/* -------------------------
   Viewer
-------------------------- */
.cfg3d__viewer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
  padding: 16px;
  height: var(--cfg3d-h);
}

.cfg3d__canvas,
.cfg3d__canvasHost {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cfg3d__canvasHost { pointer-events: none; }

.cfg3d__canvas,
.cfg3d__canvas canvas { pointer-events: auto; }

.cfg3d__canvas canvas,
.cfg3d__canvasHost canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

.cfg3d__viewerPlaceholder {
  position: relative;
  z-index: 2;
}

.cfg3d__viewerHud {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  min-width: 240px;
  padding: 10px 12px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  pointer-events: none;
}

.cfg3d__viewerHudTitle {
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 2px;
}

.cfg3d__viewerHudSub {
  opacity: .75;
  font-size: 12px;
}

.cfg3d-exit {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-decoration: none;
  color: #7857ff;
  border: 1px solid #7857ff;
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.cfg3d-exit:hover {
  color: #fff;
  background: #7857ff;
  border-color: rgba(255,255,255,.28);
}

/* Loading */
.cfg3d__loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.35);
}

.cfg3d__loadingInner {
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
}

/* -------------------------
   Left bottom build mini
   Default = icon only / hover = details
-------------------------- */
.cfg3d__buildMini {
  position: absolute;
  bottom: 0px;
  left: 0px;
  z-index: 5;
  width: 400px;
  height: 36px;
  padding: 8px 12px;
  overflow: hidden;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  opacity: .9;
  transition: width .25s ease, height .25s ease, padding .25s ease, opacity .25s ease, transform .25s ease;
  gap: 6px;
}

.cfg3d__buildMini[hidden] { display: none !important; }

.cfg3d__buildMini::before {
  content: "⤢ BUILD SUMMARY";
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #0A0A0A;
  font-weight: 700;
}

.cfg3d__buildMiniInner {
  display: grid;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.cfg3d__buildMiniItem {
  display: grid;
  gap: 2px;
}

.cfg3d__buildMiniLabel {
  font-size: 12px;
  line-height: 1.4;
  color: #777;
  font-weight: 700;
}

.cfg3d__buildMiniProduct {
  font-size: 15px;
  line-height: 1.45;
  color: #111;
  font-weight: 700;
}

.cfg3d__buildMiniVariant {
  font-size: 13px;
  line-height: 1.4;
  color: #666;
}

.cfg3d__buildMini:hover {
  width: 400px;
  height: auto;
  max-height: 260px;
  padding: 12px;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  opacity: 1;
}

.cfg3d__buildMini:hover::before { display: none; }

.cfg3d__buildMini:hover .cfg3d__buildMiniInner {
  opacity: 1;
  pointer-events: auto;
}

.cfg3d__buildMini::-webkit-scrollbar { width: 6px; }

.cfg3d__buildMini::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.2);
  border-radius: 10px;
}

@media (hover: none) {
  .cfg3d__buildMini {
    width: auto;
    min-width: 220px;
    height: auto;
    max-height: 160px;
    padding: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .cfg3d__buildMini::before { display: none; }

  .cfg3d__buildMiniInner {
    opacity: 1;
    pointer-events: auto;
  }
}

/* -------------------------
   Right panel
-------------------------- */
.cfg3d__options {
  background: #fafafa;
  color: #111;
  padding: 15px;
  height: var(--cfg3d-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cfg3d__panelHead {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cfg3d__titleRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cfg3d__title {
  margin: 0;
  font-size: 28px;
  font-weight: 1000;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 44px;
}

.cfg3d__section {
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 8px;
}

.cfg3d-group { margin-bottom: 16px; }

.cfg3d-group__title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 10px auto 0;
}
/* 商品見出しを右側スクロール内で固定 */
.cfg3d-accordion__summary {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fafafa;
  padding: 10px 0 8px;
}

/* sticky時に見出しの背景が抜けないように */
.cfg3d-accordion__head {
  background: #fafafa;
}

/* 見出しの余白調整 */
.cfg3d-accordion .cfg3d-group__title {
  margin: 0;
}
/* -------------------------
   Option cards
-------------------------- */
.cfg3d__optionGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.cfg3d__optionGrid_none { display: grid; }

.cfg3d-option {
  appearance: none;
  position: relative;
  background: #fff;
  border: 1px solid #A9ADB3;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  display: grid;
  gap: 5px;
}

.cfg3d-option img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 160px;
  margin: 0 auto;
}

.cfg3d-option__name {
  font-weight: 900;
  font-size: 12px;
}

.cfg3d-option__price { font-size: 12px; }

.cfg3d-option::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: transparent;
  pointer-events: none;
}

.cfg3d-option.is-selected::before {
  background: linear-gradient(135deg, #6a5cff, #7b6dff, #a99bff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.cfg3d-option--none { background: #fafafa; }
.cfg3d-option--variant { position: relative; }

.cfg3d-option__badge {
  position: absolute;
  top: -8px;
  right: -6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 5px;
  background: #4f46e5;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.badge-red { background: #ef4444; }
.badge-blue { background: #3b82f6; }
.badge-green { background: #22c55e; }

.cfg3d-option__subtitle {
  display: inline-block;
  padding: 4px 8px;
  color: #fff;
  background: #999;
  border-radius: 4px;
  line-height: 1;
}

/* -------------------------
   Accordion
-------------------------- */
.cfg3d-accordion {
  border-top: 1px solid #e5e5e5;
  padding: 0;
}

.cfg3d-accordion:last-child { border-bottom: 1px solid #e5e5e5; }

.cfg3d-accordion__summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0 0;
}

.cfg3d-accordion__summary::-webkit-details-marker { display: none; }

.cfg3d-accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}

.cfg3d-accordion__text { min-width: 0; }

.cfg3d-accordion .cfg3d-group__title { margin: 0; }

.cfg3d-accordion .cfg3d-option__subtitle {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: .05em;
}

.cfg3d-accordion__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.cfg3d-accordion__icon::before,
.cfg3d-accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: #111;
  transform: translate(-50%, -50%);
}

.cfg3d-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.cfg3d-accordion[open] .cfg3d-accordion__icon::after { display: none; }

.cfg3d-accordion__body { padding: 0 0 20px; }

/* -------------------------
   Filter
-------------------------- */
.cfg3d-filter {
  flex: 0 0 auto;
  margin: 0;
}

.cfg3d-filter__toggle--icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #A9ADB3;
  background: #fff;
  color: #111;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s ease, background .15s ease;
}

.cfg3d-filter__toggle--icon:hover {
  border-color: rgba(120,87,255,.55);
  background: rgba(120,87,255,.05);
}

.cfg3d-filter__icon {
  width: 22px;
  height: 22px;
  display: block;
}

.cfg3d-filter__panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
}

.cfg3d-filter__panel[hidden] { display: none !important; }

.cfg3d-filter__panelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cfg3d-filter__panelTitle {
  font-size: 16px;
  font-weight: 900;
  color: #111;
}

.cfg3d-filter__close {
  appearance: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(17,17,17,.14);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: .15s ease;
  flex-shrink: 0;
}

.cfg3d-filter__close:hover {
  border-color: rgba(120,87,255,.55);
  color: #7857ff;
  background: rgba(120,87,255,.05);
}

.cfg3d-filter__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: end;
}

.cfg3d-filter__item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cfg3d-filter__label {
  font-size: 12px;
  font-weight: 900;
  color: #111;
}

.cfg3d-filter__select,
.cfg3d-filter__input {
  width: 100%;
  max-width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 1.5px solid rgba(17,17,17,.18);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.cfg3d-filter__price {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
}

.cfg3d-filter__dash {
  opacity: .6;
  font-weight: 900;
}

.cfg3d.is-step-summary .cfg3d-filter__toggle--icon { display: none !important; }

/* -------------------------
   Guide button
-------------------------- */
.cfg3d__guideBtn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #A9ADB3;
  background: #fff;
  color: #111;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.cfg3d__guideBtn:hover { border-color: rgba(120,87,255,.55); }

.cfg3d__guideIcon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid rgba(120,87,255,1);
  color: rgba(120,87,255,1);
  font-size: 13px;
  line-height: 1;
  font-weight: 1000;
}

/* -------------------------
   Modal / tabs
-------------------------- */
.cfg3d-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.cfg3d-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.cfg3d-modal__dialog {
  position: absolute;
  inset: 0;
  background-color: rgba(255,255,255,.9);
  color: #121212;
  display: flex;
  flex-direction: column;
  outline: none;
}

.cfg3d-modal__header {
  display: flex;
  align-items: center;
  justify-content: right;
  padding: 18px 25px;
}

.cfg3d-modal__close {
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}

.cfg3d-modal__close:hover { background: rgba(0,0,0,.06); }

.cfg3d-modal__body {
  flex: 1;
  padding: 18px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cfg3d-tabs {
  width: 55%;
  margin: 0 auto;
}

.cfg3d-tabs__inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  align-items: flex-start;
}

.cfg3d-tabs__nav {
  position: sticky;
  top: 0;
  align-self: start;
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cfg3d-tabs__navTitle {
  font-weight: 700;
  font-size: 21px;
  text-align: center;
}

.cfg3d-tab {
  text-align: center;
  padding: 12px 14px;
  border: 2px solid #111;
  background: transparent;
  cursor: pointer;
  min-height: 52px;
  font-weight: 900;
  width: 190px;
}

.cfg3d-tab.is-active {
  color: #7857ff;
  border-color: #7857ff;
}

.cfg3d-tabs__content {
  min-width: 0;
  height: 100%;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 8px;
  padding-bottom: 40px;
}

.cfg3d-panel { display: none; }
.cfg3d-panel.is-active { display: block; }

.cfg3d-panel__title {
  margin: 0 0 10px;
  font-size: 22px;
}

.cfg3d-panel__lead {
  line-height: 1.8;
}

/* -------------------------
   Switch guide cards
-------------------------- */
.cfg3d-switchCards {
  display: grid;
  gap: 10px;
}

.cfg3d-switchCard {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.cfg3d-switchCard img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.cfg3d-switchCard > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cfg3d-switchCard__name { font-weight: 700; }

.cfg3d-switchCard__meta {
  font-size: 14px;
  color: #6b6bff;
}

.cfg3d-switchCard__spec {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 11px;
  color: #666;
}

.cfg3d-switchCard__desc {
  font-size: 14px;
  color: #555;
}

.cfg3d-switchCard:hover {
  border-color: #6b6bff;
  box-shadow: 0 0 0 1px #6b6bff inset;
}

.cfg3d-switchCard:active { transform: scale(.98); }

/* -------------------------
   Bottom bar / summary / nav
-------------------------- */
.cfg3d__bottomBar {
  flex: 0 0 auto;
}

.cfg3d__summary {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.12);
}

.cfg3d__summaryLabel { font-weight: 800; }

.cfg3d__summaryValue {
  font-weight: 1000;
  font-size: 24px;
}

.cfg3d__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.cfg3d__btn {
  border: none;
  padding: 14px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.cfg3d__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.cfg3d__btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,.2) inset;
}

.cfg3d__btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.cfg3d__btn--secondary {
  background: linear-gradient(135deg, #c9baff 0%, #b09cff 50%, #9b86ff 100%);
  color: #fff;
}

.cfg3d__btn--primary {
  background: linear-gradient(135deg, #5b2dff, #7a4cff, #9f7bff);
  color: #fff;
}

/* -------------------------
   Empty
-------------------------- */
.cfg3d__empty {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
}

.cfg3d__emptyTitle {
  margin: 0 0 6px;
  font-weight: 900;
}

.cfg3d__emptySub {
  margin: 0;
  opacity: .75;
}

/* -------------------------
   Summary step
-------------------------- */
.cfg3d-summary { padding: 6px; }
.cfg3d-summary__head { margin-bottom: 10px; }

.cfg3d-summary__kicker {
  font-size: 12px;
  opacity: .6;
  font-weight: 900;
  letter-spacing: .08em;
}

.cfg3d-summary__title {
  font-size: 22px;
  font-weight: 1000;
  margin-top: 4px;
}

.cfg3d-summary__list {
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 10px;
  display: grid;
  gap: 13px;
}

.cfg3d-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
}

.cfg3d-summary__left {
  display: flex;
  flex-direction: column;
}

.cfg3d-summary__label {
  font-size: 12px;
  opacity: .65;
  font-weight: 900;
}

.cfg3d-summary__product,
.cfg3d-summary__value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

.cfg3d-summary__variant {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}

.cfg3d-summary__price {
  display: flex;
  align-items: flex-end;
  align-self: stretch;
  font-weight: 1000;
  white-space: nowrap;
}

.cfg3d-share-btn,
.cfg3d-copy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cfg3d-share-btn {
  gap: 6px;
  border: 0;
  background: #000;
  color: #fff;
}

.cfg3d-share-btn__icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

.cfg3d-copy-btn {
  margin-top: 10px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
}

/* -------------------------
   Responsive
-------------------------- */
@media (max-width: 980px) {
  .shopify-section:has(.cfg3d) .page-width,
  .shopify-section:has(.cfg3d) .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cfg3d__grid {
    grid-template-columns: 1fr;
    gap: 12px;
    --cfg3d-h: auto;
  }

  .cfg3d__viewer {
    position: sticky;
    top: 0;
    z-index: 30;
    height: min(42vh, 360px);
    padding: 10px;
  }

  .cfg3d__viewerHud {
    left: 10px;
    bottom: 10px;
    min-width: 0;
    padding: 8px 10px;
  }
  .cfg3d__stepsBar {
    position: sticky;
    top: 0;
    z-index: 200;
  }

  .cfg3d__viewer {
    position: sticky;
    top: 44px; /* ステップバーの高さに合わせる */
    z-index: 150;
    height: 340px;
    padding: 10px;
  }

  .cfg3d__options {
    padding-top: 14px;
  }

  .cfg3d__options {
    height: auto;
    border-radius: 14px;
    padding: 14px;
  }

  .cfg3d__section {
    overflow: visible;
    padding-right: 0;
  }

  .cfg3d__title {
    font-size: 22px;
    line-height: 34px;
  }

  .cfg3d__titleRow {
    gap: 10px;
    margin-bottom: 8px;
  }

  .cfg3d-filter__toggle--icon,
  .cfg3d__guideBtn {
    height: 40px;
  }

  .cfg3d__guideBtn {
    padding: 0 12px;
    gap: 8px;
  }
}
/* =========================
   Mobile step gradient
========================= */

@media (max-width: 980px) {

  .cfg3d__stepsBar {
    overflow: hidden;
    border-radius: 0;
    background: #fafafa;
  }

  .cfg3d__steps {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    background: linear-gradient(
      90deg,
      #e7dccd 0%,
      #d8c3a5 45%,
      #cdb89c 100%
    );

    scrollbar-width: none;
  }

  .cfg3d__steps::-webkit-scrollbar {
    display: none;
  }

  /* 光沢 */
  .cfg3d__steps::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(
        to bottom,
        rgba(255,255,255,.22),
        rgba(255,255,255,0)
      );
  }
}
  /* =========================
   Mobile accordion sticky
========================= */
@media (max-width: 980px) {
  .cfg3d__optionGrid {
    padding: 0px;
  }
}
  /* =========================
   Mobile sticky step bar
========================= */

.cfg3d__stepsBar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fafafa;
}

/* iPhoneのセーフエリア対応 */
@supports (padding-top: env(safe-area-inset-top)) {
  .cfg3d__stepsBar {
    top: env(safe-area-inset-top);
  }
}

  /* ボタン透明化 */
  .cfg3d__step {
    background: transparent !important;
    border: 0;
    color: #3f3428;
    font-weight: 700;
    position: relative;
    z-index: 2;
    white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
  }

  /* 未到達だけ白背景 */
  .cfg3d__step.is-muted {
    backdrop-filter: blur(4px);
    color: rgba(63,52,40,.55);
  }

  .cfg3d__stepLong { display: none; }
  .cfg3d__stepShort { display: inline; }

  .cfg3d__optionGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .cfg3d-option { padding: 5px; }

  .cfg3d-option img {
    max-width: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .cfg3d__summaryValue { font-size: 20px; }

  .cfg3d__nav {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cfg3d__btn {
    padding: 10px 14px;
    min-height: 44px;
    font-size: 14px;
  }

  .cfg3d-exit {
    top: 10px;
    left: 10px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .cfg3d__bottomBar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0px;
    z-index: 999;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    padding: 5px 8px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0,0,0,.10);
  }

  .cfg3d__bottomBar .cfg3d__summary {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    justify-content: flex-end;
    gap: 12px;
  }

  .cfg3d__bottomBar .cfg3d__nav {
    margin-top: 5px;
    gap: 10px;
  }

  .cfg3d__bottomBar .cfg3d__btn { min-height: 44px; }
}

@media screen and (max-width: 768px) {
  .cfg3d-filter__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cfg3d-filter__item.is-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cfg3d-switchCard img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}

@media (max-width: 520px) {
  .cfg3d-tabs {
    width: 100%;
  }

  .cfg3d-tabs__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .cfg3d-tabs__nav {
    width: 100%;
    flex: 0 0 auto;
    position: static;
  }

  .cfg3d-tabs__content {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .cfg3d__titleRow {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

@media screen and (max-width: 480px) {
  .cfg3d-filter__grid {
    grid-template-columns: 1fr;
  }

  .cfg3d-filter__item.is-wide {
    grid-column: auto;
  }

  .cfg3d-filter__price {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cfg3d-filter__dash { display: none; }
}

@media (max-width: 380px) {
  .cfg3d__steps { gap: 10px; }
  .cfg3d__step { font-size: 11px; }
  .cfg3d__title { font-size: 20px; }
}
/* =========================
   Mobile reset / stable
========================= */
@media (max-width: 980px) {
  .cfg3d__options {
    position: relative;
    z-index: 1;
    max-height: none;
    overflow: visible;
    padding-top: 14px;
  }

  .cfg3d__section {
    overflow: visible;
  }

  .cfg3d-accordion__summary {
  position: sticky;
  top: -1px;
  z-index: 120;
  background: #fafafa;
  padding: 16px 0 0;
}
.cfg3d__section {
  overflow-y: auto;
  max-height: calc(100vh - 430px);
}

  .cfg3d-accordion__head {
    background: #fafafa;
  }

  .cfg3d__optionGrid {
    padding: 0;
  }
}
/* =========================
   PC restore
========================= */
@media (min-width: 981px) {
  .cfg3d__stepLong {
    display: inline;
  }

  .cfg3d__stepShort {
    display: none !important;
  }

  .cfg3d__bottomBar {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-top: 0;
  }

  .cfg3d__options {
    height: var(--cfg3d-h);
    padding: 15px;
    padding-bottom: 15px;
    overflow: hidden;
    border-radius: 0;
  }

  .cfg3d__section {
    overflow-y: auto;
    max-height: none;
    padding-right: 8px;
  }

  .cfg3d__viewer {
    position: relative;
    top: auto;
    z-index: auto;
    height: var(--cfg3d-h);
  }
}

/* =========================
   Mobile accordion width fix
========================= */
@media (max-width: 980px) {

  .cfg3d-accordion {
    overflow: hidden;
  }

  .cfg3d-accordion__summary {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .cfg3d-accordion__head {
    width: 100%;
    min-width: 0;
  }

  .cfg3d-accordion__text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .cfg3d-group__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 980px) {
  .cfg3d__buildMini {
    width: auto;
    min-width: 44px;
    height: 44px;
    max-height: 44px;
    padding: 10px 12px;
    overflow: hidden;
  }

.cfg3d__buildMini::before {
  content: "⤢ BUILD SUMMARY";
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #0A0A0A;
  font-weight: 700;
  white-space: nowrap;
}

  .cfg3d__buildMiniInner {
    opacity: 0;
    pointer-events: none;
  }

  .cfg3d__buildMini.is-open {
    width: calc(100% - 24px);
    max-height: 220px;
    height: auto;
    overflow-y: auto;
  }

  .cfg3d__buildMini.is-open::before {
    display: none;
  }

  .cfg3d__buildMini.is-open .cfg3d__buildMiniInner {
    opacity: 1;
    pointer-events: auto;
  }
}
/* =========================
   Mobile width overflow fix
========================= */
@media (max-width: 980px) {

  .cfg3d__options,
  .cfg3d__section,
  .cfg3d__optionGrid,
  .cfg3d-option {
    min-width: 0;
  }

  .cfg3d-option__name {
    width: 100%;
    min-width: 0;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;

    line-height: 1.35;
    font-size: 11px;
  }

  .cfg3d__optionGrid {
    overflow-x: hidden;
  }
}

/* バッジ切れ対策 */
.cfg3d__optionGrid,
.cfg3d-option {
  overflow: visible;
}

/* スマホだけ少し控えめ */
@media (max-width: 980px) {
  .cfg3d-option {
  }

  .cfg3d-option__badge {
    top: -6px;
  }
  
}
/* =========================
   Guide modal button layout
========================= */
@media (max-width: 980px) {
/* ボタン群 */
.cfg3d-tabs__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

/* ボタン */
.cfg3d-tab {
  width: 100%;
  min-width: 0;
  padding: 14px 10px;
  font-size: 16px;
}

/* タイトルは横幅フル */
.cfg3d-tabs__navTitle {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}
}
/* キースイッチだけ「選び方」ボタン非表示 */
.cfg3d[data-step="switch"] .cfg3d__guideBtn {
  display: none !important;
}
/* =========================
   Step button feel
========================= */

.cfg3d__step {
  position: relative;
  overflow: hidden;

  min-height: 58px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.08);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .25s ease,
    opacity .25s ease;
}

/* hover */
.cfg3d__step:hover {
  transform: translateY(-1px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(0,0,0,.12),
    0 6px 14px rgba(0,0,0,.08);
}

/* 光の反射 */
.cfg3d__step::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,.22),
      rgba(255,255,255,0)
    );

  pointer-events: none;
}
.cfg3d__steps {
  background: rgba(0,0,0,.08);
}
.cfg3d__step.is-active {
  box-shadow:
  color: #111 !important;
}
/* =========================
   Option step cards
========================= */

.cfg3d__optionGrid--option {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cfg3d-option--option {
  text-align: left;
  gap: 8px;
}

.cfg3d-option--option img {
  margin: 0 auto 6px;
}

.cfg3d-option__product {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  color: #111;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.cfg3d-option--option .cfg3d-option__name {
  font-size: 12px;
  font-weight: 700;
  color: #555;
}

.cfg3d-option--option .cfg3d-option__price {
  font-size: 13px;
  font-weight: 800;
  color: #111;
}

@media (max-width: 980px) {
  .cfg3d__optionGrid--option {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* =========================
   Option layout
========================= */

/* None を横長 */
.cfg3d__panel[data-panel="option"] .cfg3d-option--none {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* optionだけ3列 */
.cfg3d__panel[data-panel="option"] .cfg3d__optionGrid--option {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* スマホ */
@media (max-width: 980px) {
  .cfg3d__panel[data-panel="option"] .cfg3d__optionGrid--option {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* =========================
   Step progress underline
========================= */

.cfg3d__step::after {
  content: "";
  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 3px;

  background: transparent;
  opacity: 0;

  transition:
    background .25s ease,
    opacity .25s ease,
    height .25s ease;
}

/* 進行済み */
.cfg3d__steps:has(.cfg3d__step:nth-child(1).is-active) .cfg3d__step:nth-child(-n+1)::after,
.cfg3d__steps:has(.cfg3d__step:nth-child(2).is-active) .cfg3d__step:nth-child(-n+2)::after,
.cfg3d__steps:has(.cfg3d__step:nth-child(3).is-active) .cfg3d__step:nth-child(-n+3)::after,
.cfg3d__steps:has(.cfg3d__step:nth-child(4).is-active) .cfg3d__step:nth-child(-n+4)::after,
.cfg3d__steps:has(.cfg3d__step:nth-child(5).is-active) .cfg3d__step:nth-child(-n+5)::after,
.cfg3d__steps:has(.cfg3d__step:nth-child(6).is-active) .cfg3d__step:nth-child(-n+6)::after {
  background: #111;
  opacity: 1;
}

/* 現在地 */
.cfg3d__step.is-active::after {
  height: 2px;
  box-shadow: 0 0 10px rgba(184,162,124,.35);
}
/* =========================
   Step bar redesign
========================= */

/* 背景帯を消す */
.cfg3d__steps {
  background: transparent !important;
  gap: 0;
}

/* 光沢も消す */
.cfg3d__steps::after {
  display: none;
}

/* ベース */
.cfg3d__step {
  position: relative;

  background: transparent !important;
  border: 0;
  box-shadow: none !important;

  color: rgba(17,17,17,.38);

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding-top: 15px;

  font-weight: 700;
}

/* 下線 */
.cfg3d__step::after {
  content: "";

  position: absolute;
  height: 2px;
  border-radius: 999px;

  background: rgba(0,0,0,.12);
}

/* =========================
   選択済み
========================= */

.cfg3d__step.is-complete {
  color: #111;
}

.cfg3d__step.is-complete::after {
  background: #111;
}

/* =========================
   現在地
========================= */

.cfg3d__step.is-active {
  color: #b8a27c !important;
}

.cfg3d__step.is-active::after {
  background: #b8a27c;
}

/* =========================
   未到達
========================= */

.cfg3d__step.is-muted {
  color: rgba(17,17,17,.38);
}

.cfg3d__step.is-muted::after {
  background: rgba(0,0,0,.12);
}
.cfg3d__step.is-active {
  color: #b8a27c !important;
}

.cfg3d__step.is-active::after {
  background: #b8a27c !important;
}
body.is-cfg3d-page .cc-header,
body.is-cfg3d-page .cc-header--sticky,
body.is-cfg3d-page .announcement,
body.is-cfg3d-page .breadcrumbs {
  display: none !important;
}
/* step文字の上下位置を中央に揃える */
.cfg3d__step {
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 10px !important;
}
.cfg3d-option__badge {
  max-width: none;
  min-width: max-content;
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
}
@media (max-width: 980px) {
  /* ステップバー固定を解除 */
  .cfg3d__stepsBar {
    position: static !important;
    top: auto !important;
  }

  /* 3D画面は固定のまま、縦幅を小さく */
  .cfg3d__viewer {
    position: sticky !important;
    top: 0 !important;
    height: 260px !important;
    min-height: 260px !important;
    z-index: 150;
  }

  /* 商品選択エリアを広げる */
  .cfg3d__section {
    max-height: calc(100vh - 330px) !important;
    overflow-y: auto !important;
  }

  /* 商品見出しの固定を解除 */
  .cfg3d-accordion__summary {
    position: static !important;
    top: auto !important;
  }
}
@media (max-width: 980px) {
  .cfg3d__buildMini {
    height: 34px;
    max-height: 34px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cfg3d__buildMini::before {
    font-size: 13px;
    line-height: 1;
  }
}
@media (max-width: 980px) {
  .cfg3d-accordion__summary {
    position: static !important;
    top: auto !important;
  }

  .cfg3d-accordion__head {
    position: static !important;
  }
}
@media (max-width: 980px) {
  .cfg3d__options {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .cfg3d__panelHead {
    position: static !important;
  }

  .cfg3d__section {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .cfg3d-accordion__summary {
    position: static !important;
    top: auto !important;
  }
}

[data-canvas-host],
[data-canvas-host] canvas {
  touch-action: none;
}