:root {
  --cream: #f7f4ef;
  --warm-white: #fdfcf9;
  --stone: #d6cfc4;
  --stone-dark: #b5a99a;
  --text-primary: #2c2620;
  --accent: #4a7c6f;
  --accent-light: #e8f0ee;
  --accent-mid: #6a9e91;
  --accent-pale: #f0f6f4;
  --danger: #c0392b;
  --card-shadow: 0 2px 16px rgba(44, 38, 32, 0.08);
  --card-radius: 14px;
}

.series-wrapper .series-banner-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.series-wrapper .series-banner-links .series-block a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--cl-dark-gray);
}

.series-wrapper .series-banner-links .series-block a img {
  border-radius: 5px;
  border: 1px solid var(--cl-dark-gray);
}

.series-wrapper .series-banner-links .series-block a p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ── Main ── */
.content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 32px;
}

/* ── サイドパネル ── */
.side-panel {
  width: 240px;
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0 4px;
  margin-bottom: 6px;
}

.side-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: border-color 0.18s, background 0.18s;
  margin-bottom: 10px;
}

.side-step.done {
  border-color: var(--stone);
  background: var(--warm-white);
  cursor: pointer;
}

.side-step.done:hover {
  border-color: var(--accent-mid);
  background: var(--accent-light);
}

.side-step.pending {
  opacity: 0.35;
}

.side-step-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.side-step-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.side-step.done .side-step-label::before {
  content: '✓ ';
  color: var(--accent);
}

.side-reset {
  margin-top: 12px;
  background: none;
  border: 1.5px solid var(--stone);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  width: 100%;
  text-align: center;
}

.side-reset:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ── Step wrapper ── */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* フェードイン + スライドアップ */
.step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.step.hidden {
  display: none;
}

/* ── Step card ── */
.step-card {
  background: var(--warm-white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--stone);
  overflow: hidden;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px 14px;
  border-bottom: 1px solid #ede9e3;
}

.step-num {
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-header-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-label {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-question {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.selected-badge {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 5px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  animation: badgePop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.selected-badge.show {
  display: flex;
}

@keyframes badgePop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Option cards grid ── */
.options-grid {
  padding: 20px 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* カード型選択肢 */
.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cream);
  border: 2px solid var(--stone);
  border-radius: 12px;
  padding: 0 0 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.22s ease;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  overflow: hidden;
  position: relative;
  width: 240px;
  flex-shrink: 0;
  gap: 20px;
}

.option-card:hover {
  border-color: var(--accent-mid);
  box-shadow: 0 6px 22px rgba(74, 124, 111, 0.16);
  transform: translateY(-4px);
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-pale);
  box-shadow: 0 6px 22px rgba(74, 124, 111, 0.22);
  transform: translateY(-2px);
}

/* disabled */
.option-card.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(40%);
}

.option-card.disabled:hover {
  border-color: var(--stone);
  box-shadow: none;
  transform: none;
}

.disabled-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--stone-dark);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  z-index: 1;
}

/* チェックオーバーレイ */
.check-overlay {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
  animation: checkPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.option-card.selected .check-overlay {
  display: flex;
}

@keyframes checkPop {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* 画像部分 */
.option-image {
  width: 100%;
  height: 210px;
  flex-shrink: 0;
  background: white;
  border-bottom: 1px solid var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: background 0.2s;
  overflow: hidden;
}

.option-card.selected .option-image {
  background: white;
}

.option-image svg {
  width: auto;
  height: 72px;
}

.option-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  padding: 0 10px;
  margin-bottom: 8px;
}

.option-desc {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.5;
  padding: 0 10px;
  text-align: left;
}

/* ── Reset row ── */
.reset-row {
  padding: 0 20px 14px;
}

.reset-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reset-btn:hover {
  color: var(--danger);
}

.reset-row-for-sp {
  display: none;
}

/* ── Results ── */
.results-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  margin-top: 30px;
}

.results-section.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#productLists {
  display: none;
}
.results-section.visible #productLists {
  display: block;
}

.results-section .item-list-wrapper.normal .item-list {
  grid-template-columns: repeat(3, 1fr);
}
.results-section .item-list-wrapper.normal .item-list .item-block .item-datas .item-name {
  height: 40px;
  line-height: 1.4;
}

/* ── Navigation ── */
.nav-wrap {
  background: var(--warm-white);
  border-bottom: 1px solid var(--stone);
  margin-bottom: 30px;
}

.nav-inner {
  margin: 0 auto;
}

.nav-inner .p-header {
  font-size: 14px;
  padding: 0 0 10px;
  color: #666;
  font-weight: bold;
  background: var(--cl-light-beige);
}

/* カテゴリタブ */
.cat-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-tabs {
  display: flex;
  min-width: max-content;
  border-bottom: 1px solid;
}

.cat-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  color: var(--stone-dark);
  font-size: 16px;
  padding: 15px 20px;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.18s, border-color 0.18s;
  font-weight: bold;
}

.cat-tab:hover:not(.coming-soon) {
  color: var(--accent);
}

.cat-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: bold;
  border-bottom-width: 4px;
  letter-spacing: 2px;
}

/* シリーズ パンくず行 */
.series-bc-row {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  gap: 7px;
}

.series-bc-row::-webkit-scrollbar {
  display: none;
}

.bc-item {
  font-size: 14px;
  color: #888;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
}

.bc-item:not(:last-child):after {
  content: "";
  border: 1px solid;
  border-left: 0;
  border-bottom: 0;
  display: block;
  width: 4px;
  height: 4px;
  rotate: 45deg;
}

.bc-item.bc-current {
  color: var(--text-primary);
  font-weight: 600;
  cursor: default;
}

.bc-sep {
  font-size: 13px;
  color: var(--stone-dark);
  padding: 0 7px;
  flex-shrink: 0;
  user-select: none;
}

.nav-wrap .series-eyecatch-image figure {
  display: flex;
}


@media screen and (max-width: 1250px) {
  .side-panel {
    display: none;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .results-section .item-list-wrapper.normal .item-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .results-section .item-list-wrapper.normal .item-list .item-block a {
    display: block !important;
  }
  .results-section .item-list-wrapper.normal .item-list .item-block .item-image {
    width: 100% !important;
  }
  .results-section .item-list-wrapper.normal .item-list .item-block .item-datas .item-name {
    margin-top: 5px;
  }

  .reset-row-for-sp {
    display: block;
    text-align: center;
    margin-top: 20px;
  }
}

@media screen and (max-width: 1100px) {
  .options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .option-card {
    width: unset;
  }

  .results-section .item-list-wrapper.normal .item-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 850px) {}

@media screen and (max-width: 767px) {
  .series-wrapper .series-banner-links {
    grid-template-columns: repeat(1, 1fr);
  }

  .series-wrapper .series-banner-links .series-block a p {
    font-size: 14px;
  }
  
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .selected-badge {
    display: none !important;
  }
  .results-section .item-list-wrapper.normal .item-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .options-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .option-card {
    padding: 0;
    gap: 0;
    flex-direction: row;
  }
  .option-image {
    height: 100%;
    width: 140px;
  }
  .option-body {
    text-align: left;
    padding: 0 15px;
    flex: 1;
  }
  .step-label {
    font-size: 13px;
  }
  .step-question {
    font-size: 15px;
  }
}

@media screen and (max-width: 500px) {}