/* ================================================================
   type-page.css — 戦国武将診断 タイプ詳細静的ページ専用スタイル
   共通 design-tokens / components / sidebar / layout + style.css
   と組み合わせて使用
================================================================= */

/* ─── ヒーロー ──────────────────────────────────────────────── */
.type-hero {
  text-align: center;
  padding: 48px 16px 32px;
  background: linear-gradient(180deg, var(--shindan-bg-paper, #fdf6e3) 0%, #fff 100%);
  border-radius: 12px;
  margin-bottom: 32px;
}

.type-hero-category {
  font-size: 12px;
  color: #6b7280;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.type-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px;
  line-height: 1.25;
}

.type-hero-tagline {
  font-size: clamp(14px, 2vw, 17px);
  color: #6b7280;
  margin: 0 0 24px;
  line-height: 1.7;
}

.type-rep-list {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.type-rep-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #e9d99a;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  transition: box-shadow .15s;
}

.type-rep-card:hover {
  box-shadow: 0 2px 8px rgba(201,162,39,.25);
}

.type-rep-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.type-rep-clan {
  font-size: 11px;
  color: #9ca3af;
}

.type-hero-cta {
  margin-top: 8px;
}

/* ─── 免責文 ────────────────────────────────────────────────── */
.type-disclaimer {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.7;
  padding: 0 16px;
}

/* ─── セクション共通 ─────────────────────────────────────────── */
.type-sections {
  max-width: 800px;
  margin: 0 auto;
}

.type-sections section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #f3f4f6;
}

.type-sections section:last-child {
  border-bottom: none;
}

.type-section-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 700;
  color: #92400e;
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 3px solid var(--shindan-gold, #c9a227);
  line-height: 1.4;
}

.type-sec-headline {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  margin: 0 0 12px;
  font-style: italic;
}

.type-sec-intro {
  font-style: italic;
  color: #4b5563;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.75;
}

.type-sec-closing {
  font-style: italic;
  color: #6b7280;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
}

/* body 内の段落 */
.type-sections section p {
  font-size: 15px;
  line-height: 1.85;
  color: #374151;
  margin: 0 0 14px;
}

.type-sections section p:last-child { margin-bottom: 0; }

/* ─── 強み・弱み items ──────────────────────────────────────── */
.type-item {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.type-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
}

.type-item-body p {
  font-size: 13px !important;
  margin: 0 0 6px !important;
  line-height: 1.75 !important;
}

/* ─── 成長ステップ ──────────────────────────────────────────── */
.type-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.type-step-num {
  flex-shrink: 0;
  background: var(--shindan-gold, #c9a227);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
  margin-top: 2px;
}

.type-step-body { flex: 1; }

.type-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px;
}

.type-step-body p {
  font-size: 13px !important;
  margin: 0 !important;
  line-height: 1.75 !important;
}

/* ─── 認知バイアス ──────────────────────────────────────────── */
.type-bias {
  background: #fafafa;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.type-bias-name {
  font-size: 14px;
  color: #92400e;
  display: block;
  margin-bottom: 4px;
}

.type-bias-source {
  display: inline-block;
  font-size: 10px;
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 3px;
  padding: 1px 6px;
  margin-bottom: 6px;
}

.type-bias p {
  font-size: 13px !important;
  color: #374151;
  margin: 0 !important;
}

/* ─── キャリア ──────────────────────────────────────────────── */
.type-career-heading {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin: 16px 0 8px;
}

.type-career-examples {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 8px;
  color: #374151;
  font-size: 14px;
  line-height: 1.8;
}

/* ─── 相性メタ ──────────────────────────────────────────────── */
.type-rel-meta {
  background: #fffbf0;
  border: 1px solid #e9d99a;
  border-radius: 8px;
  padding: 16px;
}

.type-rel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.type-rel-label {
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  white-space: nowrap;
}

.type-rel-types {
  font-size: 13px;
  color: #374151;
}

.type-rel-note {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 14px;
  line-height: 1.7;
}

/* ─── フッター CTA ──────────────────────────────────────────── */
.type-footer-cta {
  max-width: 600px;
  margin: 48px auto 0;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--shindan-bg-paper, #fdf6e3) 0%, #fff 100%);
  border-radius: 12px;
}

.type-footer-cta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px;
}

.type-footer-cta p {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
  line-height: 1.7;
}

.type-footer-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── 21タイプ一覧ページ ─────────────────────────────────────── */
.types-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.types-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  transition: box-shadow .15s, border-color .15s;
}

.types-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
  border-color: #d4b15b;
}

.types-card-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.types-card-tagline {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}

.types-card-more {
  font-size: 12px;
  color: var(--shindan-gold, #c9a227);
  font-weight: 700;
  margin-top: 4px;
}

/* ─── レスポンシブ ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .type-hero { padding: 32px 12px 24px; }
  .type-sections section { margin-bottom: 28px; padding-bottom: 28px; }
  .type-section-heading { font-size: 16px; }
  .type-step { flex-direction: column; gap: 6px; }
  .types-list { grid-template-columns: 1fr; }
}
