/* ===================================
   JASUPO 結果ページ 共通スタイル
   =================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a6fa8;
  --color-primary-dark: #145a8a;
  --color-accent: #f5a623;
  --color-accent-dark: #e09510;
  --color-bg: #f7f9fc;
  --color-white: #ffffff;
  --color-text: #222222;
  --color-text-sub: #555555;
  --color-border: #dde3ec;
  --color-badge-bg: #e8f3fb;
  --color-placeholder: #ccd6e0;
  --font-base: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Noto Sans JP', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-cta: 0 4px 16px rgba(245, 166, 35, 0.35);
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== ヘッダー ===== */
.result-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2589c9 100%);
  color: var(--color-white);
  padding: 40px 20px 36px;
  text-align: center;
}

.result-header__label {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.result-header__catch {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.result-header__title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ===== メインコンテンツ ===== */
.result-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* ===== カード共通 ===== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 20px;
}

.card__heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  border-left: 3px solid var(--color-primary);
  padding-left: 10px;
  margin-bottom: 16px;
}

/* ===== ジャスポ先輩の吹き出し ===== */
.senpai-section {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.senpai-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-placeholder);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

.senpai-bubble {
  background: #f0f6fb;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 14px 16px;
  position: relative;
  flex: 1;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

.senpai-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 14px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #f0f6fb;
}

.senpai-name {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 6px;
}

/* ===== 商品カード ===== */
/* ===== セット商品（1セット＝EC-CUBEの1商品）=====
   2026-08-04 JASPO社がセットを単一商品として登録（商品コード8桁×12）。
   画像も「1セット1画像（セットした状態）」で登録済みのため、
   構成品ごとの画像枠は廃止し、セット画像1枚＋構成品テキストへ変更。 */
.set-product {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.set-product__img {
  position: relative;
  width: 100%;
  /* JASPO支給のセット画像は500×500の正方形（2026-08-04受領） */
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  background: var(--color-placeholder);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* 画像未取得時のプレースホルダー表示（画像が載れば上に重なって隠れる） */
.set-product__img::after {
  content: 'セット商品画像';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-white);
}

.set-product__img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--color-white);
  display: block;
}

.set-parts {
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.set-parts__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
}

.set-parts__item + .set-parts__item {
  border-top: 1px solid var(--color-border);
}

.set-parts__role {
  flex-shrink: 0;
  width: 92px;
  font-size: 11px;
  color: var(--color-text-sub);
}

.set-parts__name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.set-parts__maker {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--color-text-sub);
}

/* 全セット共通の付属品注記（2026-10-07 JASPO：全ラケットにエッジテープ付き・価格/画像は不変） */
.set-parts__note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-sub);
}

@media (max-width: 400px) {
  .set-parts__item {
    flex-wrap: wrap;
    gap: 2px 10px;
  }
  .set-parts__role {
    width: auto;
  }
  .set-parts__name {
    flex: 1 0 100%;
    order: 3;
  }
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
  margin-top: 4px;
}

.product-price-label {
  font-size: 14px;
  color: var(--color-text-sub);
}

.product-price-amount {
  font-size: 26px;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 0.02em;
}

.product-price-amount span {
  font-size: 14px;
  margin-right: 2px;
}

.product-price-amount .product-price-tax {
  margin-right: 0;
  margin-left: 2px;
  font-weight: 400;
}

/* ===== キャッチコピー ===== */
.catchcopy {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-sub);
  background: #fffbf2;
  border-left: 3px solid var(--color-accent);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== 特徴チップ ===== */
.feature-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.feature-list li {
  background: var(--color-badge-bg);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(26,111,168,0.2);
}

/* ===== CTAボタン ===== */
.cta-section {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  margin-bottom: 20px;
  text-align: center;
}

.btn-primary {
  display: block;
  width: 100%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 17px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  text-decoration: none;
  margin-bottom: 12px;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: var(--color-badge-bg);
}

/* ===== 診断やり直し ===== */
.retry-section {
  text-align: center;
  padding: 8px 0 16px;
}

.retry-link {
  font-size: 13px;
  color: var(--color-text-sub);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1px;
}

.retry-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ===== TODO バッジ（支給待ちコンテンツ用） ===== */
.todo-placeholder {
  background: #fff8e1;
  border: 1px dashed #f0c040;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #7a6000;
  text-align: center;
}

/* ===== レスポンシブ ===== */
@media (min-width: 600px) {
  .result-header {
    padding: 56px 40px 48px;
  }

  .result-main {
    padding: 40px 24px 80px;
  }

  .card {
    padding: 28px 32px;
  }
}
