/*
 * Bijoux おすすめ診断
 * すべて .bjx-shindan の中だけに効くように書いています（テーマのデザインに影響しません）。
 * 色を変えたいときは、下の --bjx- で始まる値を書き換えてください。
 */
.bjx-shindan {
  --bjx-surface: #ffffff;
  --bjx-text: #2a2622;
  --bjx-muted: #6f675e;
  --bjx-border: #e6dfd3;
  --bjx-accent: #8a6a3b;
  --bjx-accent-text: #ffffff;
  --bjx-accent-soft: #f5efe4;
  --bjx-pr-bg: #fff4d6;
  --bjx-pr-text: #6b4e00;
  --bjx-radius: 14px;

  max-width: 640px;
  margin: 1.5em auto;
  color: var(--bjx-text);
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}

.bjx-shindan *,
.bjx-shindan *::before,
.bjx-shindan *::after {
  box-sizing: border-box;
}

.bjx-shindan h2,
.bjx-shindan h3,
.bjx-shindan h4,
.bjx-shindan p,
.bjx-shindan ol,
.bjx-shindan li {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.bjx-shindan h2::before,
.bjx-shindan h2::after,
.bjx-shindan h3::before,
.bjx-shindan h3::after,
.bjx-shindan h4::before,
.bjx-shindan h4::after,
.bjx-shindan li::before,
.bjx-shindan li::marker {
  content: none;
  display: none;
}
.bjx-shindan [tabindex="-1"]:focus {
  outline: none;
}

.bjx-shindan .bjx-card {
  background: var(--bjx-surface);
  border: 1px solid var(--bjx-border);
  border-radius: var(--bjx-radius);
  padding: 24px 20px;
}
.bjx-shindan .bjx-center {
  text-align: center;
}
.bjx-shindan .bjx-eyebrow {
  margin-bottom: 4px;
  color: var(--bjx-accent);
  font-size: 14px;
  font-weight: 700;
}
.bjx-shindan .bjx-title {
  margin-bottom: 12px;
  color: var(--bjx-text);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
}
.bjx-shindan .bjx-lead {
  margin-bottom: 8px;
  font-size: 17px;
}
.bjx-shindan .bjx-meta {
  margin-bottom: 20px;
  color: var(--bjx-muted);
  font-size: 14px;
}
.bjx-shindan .bjx-age {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.bjx-shindan .bjx-note {
  margin-top: 12px;
  color: var(--bjx-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ボタン */
.bjx-shindan .bjx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
}
.bjx-shindan .bjx-btn:active {
  transform: scale(0.98);
}
.bjx-shindan .bjx-btn:focus-visible {
  outline: 3px solid var(--bjx-accent);
  outline-offset: 2px;
}
.bjx-shindan .bjx-primary,
.bjx-shindan .bjx-primary:visited {
  background: var(--bjx-accent);
  color: var(--bjx-accent-text);
}
.bjx-shindan .bjx-secondary {
  margin-top: 8px;
  background: var(--bjx-surface);
  color: var(--bjx-accent);
  border-color: var(--bjx-accent);
}
.bjx-shindan .bjx-ghost {
  width: auto;
  min-height: 44px;
  margin-top: 16px;
  padding: 8px 4px;
  background: transparent;
  color: var(--bjx-muted);
  font-size: 15px;
  font-weight: 400;
}
@media (hover: hover) {
  .bjx-shindan .bjx-primary:hover {
    opacity: 0.88;
    color: var(--bjx-accent-text);
  }
}

/* 質問画面 */
.bjx-shindan .bjx-progress-head {
  margin-bottom: 6px;
  color: var(--bjx-muted);
  font-size: 14px;
}
.bjx-shindan .bjx-progress {
  height: 8px;
  overflow: hidden;
  background: var(--bjx-border);
  border-radius: 999px;
}
.bjx-shindan .bjx-progress-bar {
  height: 100%;
  background: var(--bjx-accent);
  transition: width 0.3s ease;
}
.bjx-shindan .bjx-question {
  margin: 20px 0 16px;
  color: var(--bjx-text);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}
.bjx-shindan .bjx-options {
  display: grid;
  gap: 10px;
}
.bjx-shindan .bjx-option {
  justify-content: flex-start;
  min-height: 56px;
  padding: 14px 16px;
  background: var(--bjx-surface);
  color: var(--bjx-text);
  border: 1.5px solid var(--bjx-border);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
}
.bjx-shindan .bjx-option.bjx-selected {
  border-color: var(--bjx-accent);
  background: var(--bjx-accent-soft);
}
/* スマホではタップ後にホバー表示が残るため、マウス操作のときだけ適用する */
@media (hover: hover) {
  .bjx-shindan .bjx-option:hover {
    border-color: var(--bjx-accent);
    background: var(--bjx-accent-soft);
  }
}

/* 結果画面 */
.bjx-shindan .bjx-result {
  display: grid;
  gap: 16px;
}
.bjx-shindan .bjx-pr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bjx-pr-bg);
  color: var(--bjx-pr-text);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.bjx-shindan .bjx-pr-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}
.bjx-shindan .bjx-body {
  color: var(--bjx-text);
}
.bjx-shindan .bjx-section-title {
  margin-top: 8px;
  color: var(--bjx-text);
  font-size: 18px;
  font-weight: 700;
}
.bjx-shindan .bjx-products {
  display: grid;
  gap: 12px;
  list-style: none;
}
.bjx-shindan .bjx-product {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.bjx-shindan .bjx-product-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  margin: 0;
  object-fit: contain;
  border-radius: 10px;
}
.bjx-shindan .bjx-rank {
  color: var(--bjx-accent);
  font-size: 13px;
  font-weight: 700;
}
.bjx-shindan .bjx-product-name {
  margin: 2px 0 8px;
  color: var(--bjx-text);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}
.bjx-shindan .bjx-reason {
  margin-bottom: 14px;
  font-size: 15px;
}

@media (min-width: 560px) {
  .bjx-shindan .bjx-product:has(.bjx-product-media) {
    grid-template-columns: 160px 1fr;
    align-items: start;
  }
}
