/* =====================================================
   THE PROP-PROFILE / あなたのトリセツ図鑑【30〜50代版】
   style.css — 白ベース×ポップ×スマホファースト
   ===================================================== */

:root {
  --white:     #FFFFFF;
  --bg:        #F7F9FE;
  --ink:       #0D1B2A;
  --ink-2:     #3D5068;
  --ink-3:     #8899AA;
  --line:      #E5EAF2;
  --blue:      #2563EB;
  --blue-lt:   #EFF6FF;
  --purple:    #7C3AED;
  --purple-lt: #F5F0FF;
  --pink:      #EC4899;
  --pink-lt:   #FDF2F8;
  --mint:      #059669;
  --mint-lt:   #ECFDF5;
  --amber:     #D97706;
  --amber-lt:  #FFFBEB;
  --grad-main: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --grad-warm: linear-gradient(135deg, #EC4899 0%, #7C3AED 60%, #2563EB 100%);
  --grad-soft: linear-gradient(135deg, #EFF6FF 0%, #F5F0FF 100%);
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px;
  --sh-sm: 0 2px 10px rgba(37,99,235,.08);
  --sh-md: 0 6px 24px rgba(37,99,235,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.72; min-height: 100dvh;
}

/* ===== ヘッダ ===== */
.hd {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 16px; height: 54px;
  display: flex; align-items: center;
}
.hd-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.hd-brand img { height: 36px; border-radius: 8px; display: block; }
.hd-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.hd-brand-ja {
  font-size: 13px; font-weight: 900; letter-spacing: .01em;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hd-brand-en { font-size: 9px; font-weight: 700; letter-spacing: .15em; color: var(--ink-3); }

/* ===== メイン ===== */
.main { max-width: 640px; margin: 0 auto; padding: 0 14px 100px; }

/* ===== ヒーロー ===== */
.hero-wrap { margin: 16px 0 0; }
.hero-img { width: 100%; border-radius: var(--r-lg); display: block; box-shadow: var(--sh-md); }

/* ===== フォームリード ===== */
.form-lead-wrap {
  margin: 16px 0 18px;
  background: var(--grad-soft);
  border: 1px solid #DCE5FF;
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.form-lead-text { font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.form-lead-sub  { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.lead-badge {
  display: inline-block;
  background: var(--grad-main); color: #fff;
  border-radius: 99px; padding: 2px 12px;
  font-size: 12px; font-weight: 800; margin-right: 6px;
}
.form-lead-text strong { color: var(--blue); }

/* ===== 設問カード ===== */
.q-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 15px 18px; margin-bottom: 12px;
  box-shadow: var(--sh-sm);
  transition: border-color .2s, box-shadow .2s;
}
.q-card.answered { border-color: #93C5FD; box-shadow: 0 3px 14px rgba(37,99,235,.11); }
.q-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.q-num {
  font-size: 20px; font-weight: 900; letter-spacing: .06em;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.q-total { font-weight: 500; opacity: .6; }
.q-done-badge {
  background: var(--mint); color: #fff; border-radius: 50%;
  width: 22px; height: 22px; font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s;
}
.q-done-badge.show { opacity: 1; transform: scale(1); }
.q-text { font-size: 15px; font-weight: 600; line-height: 1.6; margin-bottom: 14px; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice-label {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; cursor: pointer; background: #FAFBFF;
  transition: background .14s, border-color .14s, transform .1s;
  position: relative;
}
.choice-label:hover { background: var(--blue-lt); border-color: #BFDBFE; }
.choice-label input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-label.selected {
  background: var(--grad-main); border-color: transparent;
  transform: scale(1.015); box-shadow: 0 4px 14px rgba(37,99,235,.25);
}
.choice-label.selected .choice-text { color: #fff; }
.choice-text { font-size: 14px; line-height: 1.55; color: var(--ink-2); font-weight: 500; }

/* ===== プログレス＋送信バー ===== */
.submit-bar {
  position: sticky; bottom: 0;
  padding: 12px 0 6px;
  background: linear-gradient(to top, var(--bg) 72%, transparent);
}
.progress-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.progress-bar-bg { flex: 1; height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar-fill {
  height: 100%; width: 0%;
  background: var(--grad-main); border-radius: 99px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.progress-label { font-size: 12px; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.btn-submit {
  display: block; width: 100%; padding: 16px;
  background: var(--grad-main); color: #fff;
  border: none; border-radius: var(--r-md);
  font-size: 16px; font-weight: 900; letter-spacing: .04em;
  cursor: pointer; box-shadow: 0 4px 20px rgba(37,99,235,.3);
  transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden;
}
.btn-submit::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(255,255,255,.15),transparent); border-radius: inherit;
}
.btn-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(37,99,235,.38); }
.btn-submit:disabled { background: #C7D2E0; box-shadow: none; cursor: not-allowed; }
.disclaimer { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 30px; line-height: 1.7; }

/* ===== モーダル ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,18,40,.5);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; }
.modal-sheet {
  background: var(--white); width: 100%; max-width: 640px;
  border-radius: 26px 26px 0 0;
  max-height: 93dvh; overflow-y: auto;
  padding: 0 0 60px;
  transform: translateY(60px);
  transition: transform .36s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -8px 40px rgba(37,99,235,.18);
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-drag-bar { width: 44px; height: 4px; background: var(--line); border-radius: 99px; margin: 12px auto 0; }

/* ===== タイプカード ===== */
.modal-type-card {
  margin: 18px 16px 0;
  background: var(--grad-soft);
  border: 1px solid #DCE5FF;
  border-radius: var(--r-xl);
  padding: 22px 18px 22px;
  text-align: center; position: relative; overflow: hidden;
}
.modal-type-card::before {
  content: ''; position: absolute; top: -40px; right: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(circle,rgba(124,58,237,.14),transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.modal-type-card::after {
  content: ''; position: absolute; bottom: -30px; left: -20px;
  width: 110px; height: 110px;
  background: radial-gradient(circle,rgba(37,99,235,.12),transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.type-badge-row { margin-bottom: 10px; position: relative; z-index: 1; }
.type-code-badge {
  display: inline-block;
  font-size: 14px; font-weight: 900; letter-spacing: .24em;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  border: 2px solid #BFDBFE; border-radius: 99px;
  padding: 4px 20px;
}
.type-emoji { font-size: 64px; line-height: 1; display: block; margin-bottom: 8px; position: relative; z-index: 1; }

/* ── タイプアバター画像 ── */
.type-avatar-wrap {
  background: #fff;
  border-radius: 50%;
  width: 130px; height: 130px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,99,235,.13);
  overflow: hidden;
  position: relative; z-index: 1;
  border: 3px solid #E8EFFF;
}
.type-avatar-img {
  width: 110px; height: 110px;
  object-fit: contain;
  display: block;
}
.type-label { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .1em; margin-bottom: 4px; position: relative; z-index: 1; }

/* ★ タイプ名：大きく・太く ★ */
.type-name {
  font-size: 21px; font-weight: 900; line-height: 1.4;
  color: var(--ink); margin-bottom: 16px;
  position: relative; z-index: 1;
}
@media (min-width: 400px) { .type-name { font-size: 24px; } }

/* ★ 総合運勢：目立つ・太い ★ */
.luck-wrap {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center;
  gap: 6px;
  background: var(--amber-lt);
  border: 2px solid #FDE68A;
  border-radius: var(--r-md);
  padding: 10px 18px; margin-bottom: 16px;
  position: relative; z-index: 1;
  width: 100%;
}
.luck-icon { font-size: 22px; }
.luck-title { font-size: 12px; font-weight: 800; color: var(--amber); letter-spacing: .1em; }
.luck-value {
  font-size: 20px; font-weight: 900; color: var(--amber);
  letter-spacing: .02em; line-height: 1.3; width: 100%; text-align: center;
}
@media (min-width: 400px) { .luck-value { font-size: 24px; } }

.type-desc { font-size: 14px; color: var(--ink-2); line-height: 1.75; position: relative; z-index: 1; }

/* ===== セクション ===== */
.modal-section { margin: 20px 16px 0; }
.modal-section-title {
  font-size: 16px; font-weight: 900; letter-spacing: .06em; color: var(--ink-2);
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

/* ===== 軸バー ===== */
.axes-list { display: flex; flex-direction: column; gap: 14px; }
.axis-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.axis-name { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.axis-dom {
  font-size: 11px; font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.axis-bar-wrap { height: 30px; border-radius: 9px; overflow: hidden; display: flex; background: var(--line); }
.axis-bar-a {
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  transition: width .7s cubic-bezier(.4,0,.2,1) .1s;
  min-width: 0; overflow: hidden; white-space: nowrap;
}
.axis-bar-b {
  background: linear-gradient(135deg,#EC4899,#7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  transition: width .7s cubic-bezier(.4,0,.2,1) .1s;
  min-width: 0; overflow: hidden; white-space: nowrap;
}
.axis-pole-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }

/* ===== ステータスカード ===== */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 13px; }
.stat-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.stat-icon { font-size: 18px; }
.stat-label { font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--ink-3); }
.stat-name { font-size: 12.5px; font-weight: 900; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
.stat-stars { margin-bottom: 7px; }
.st-filled { color: #F59E0B; font-size: 16px; letter-spacing: -.5px; }
.st-empty  { color: #D1D5DB; font-size: 13px; letter-spacing: -.5px; }
.stat-text { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ===== トリセツ ===== */
.torisetsu-box {
  background: var(--blue-lt); border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 13px 14px; margin-bottom: 10px;
}
.torisetsu-text { font-size: 14px; color: var(--ink-2); line-height: 1.72; }
.stress-box {
  background: var(--pink-lt); border-left: 4px solid var(--pink);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.stress-label { font-size: 14px; font-weight: 900; color: var(--pink); }
.stress-text  { font-size: 13px; color: var(--ink-2); line-height: 1.65; }

/* ===== ラッキー ===== */
.lucky-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lucky-item {
  background: var(--mint-lt); border: 1px solid #A7F3D0;
  border-radius: var(--r-md); padding: 13px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.lucky-item-full { grid-column: 1 / -1; }
.lucky-icon  { font-size: 20px; }
.lucky-label { font-size: 14px; font-weight: 800; color: var(--mint); letter-spacing: .04em; }
.lucky-val   { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.4; }

/* ===== アクションボタン群 ===== */
.modal-footer { margin: 24px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.btn-pdf {
  display: block; width: 100%; padding: 15px;
  background: var(--grad-main); color: #fff;
  border: none; border-radius: var(--r-md);
  font-size: 15px; font-weight: 900; letter-spacing: .04em;
  cursor: pointer; text-align: center;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
  transition: transform .15s, box-shadow .15s;
}
.btn-pdf:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.38); }
.btn-share {
  display: block; width: 100%; padding: 14px;
  background: var(--white); color: var(--purple);
  border: 2px solid #C4B5FD; border-radius: var(--r-md);
  font-size: 15px; font-weight: 900; letter-spacing: .04em;
  cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s;
}
.btn-share:hover { background: var(--purple-lt); border-color: #A78BFA; }
.share-copied {
  text-align: center; font-size: 13px; font-weight: 700;
  color: var(--mint); padding: 8px;
  background: var(--mint-lt); border-radius: var(--r-sm);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.share-copied.show { opacity: 1; }
.btn-retry {
  display: block; width: 100%; padding: 14px;
  background: var(--white); color: var(--ink-2);
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-size: 14px; font-weight: 700; text-decoration: none; text-align: center;
  transition: background .15s;
}
.btn-retry:hover { background: var(--bg); }

/* ===== レーダーチャート ===== */
.radar-wrap {
  display: flex; justify-content: center; align-items: center;
  margin: 0 auto 16px;
  max-width: 320px;
}
#radar-chart {
  width: 100%; height: auto;
  display: block;
}

/* 軸凡例（チャート下のミニバー） */
.radar-legend {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.radar-legend-item {
  display: grid;
  grid-template-columns: 5.5em 1fr auto;
  align-items: center;
  gap: 8px;
}
.radar-legend-name {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  white-space: nowrap;
}
.radar-legend-bar {
  height: 7px; background: var(--line); border-radius: 99px; overflow: hidden;
  position: relative;
}
.radar-legend-a {
  display: block; height: 100%;
  background: linear-gradient(90deg, #2563EB, #7C3AED);
  border-radius: 99px;
}
.radar-legend-poles {
  display: flex; gap: 6px; font-size: 11px; color: var(--ink-3); white-space: nowrap;
}
.radar-legend-poles .dom {
  font-weight: 900; color: var(--blue);
}

/* ===== タイプのひみつ ヘッダリンク ===== */
.hd-theory-link {
  margin-left: auto;
  display: flex; align-items: center; gap: 5px;
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 99px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--grad-main) border-box;
  transition: background .2s, box-shadow .2s, transform .15s;
  white-space: nowrap;
}
.hd-theory-link:hover {
  box-shadow: 0 2px 12px rgba(124,58,237,.18);
  transform: translateY(-1px);
}
.hd-theory-icon { font-size: 15px; line-height: 1; }
.hd-theory-text {
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ===== タイプのひみつ バナー ===== */
.theory-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin: 14px 0 0;
  padding: 13px 16px;
  background: linear-gradient(135deg, #EFF6FF 0%, #F5F0FF 100%);
  border: 1.5px solid #C7D9FF;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: box-shadow .2s, transform .15s, border-color .2s;
  position: relative; overflow: hidden;
}
.theory-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity .2s;
}
.theory-banner:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 18px rgba(37,99,235,.14);
  transform: translateY(-1px);
}
.theory-banner:hover::before { opacity: .04; }
.theory-banner-left {
  display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 1;
}
.theory-banner-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.theory-banner-body { display: flex; flex-direction: column; gap: 1px; }
.theory-banner-title {
  font-size: 13px; font-weight: 900; color: var(--ink);
  line-height: 1.3;
}
.theory-banner-sub {
  font-size: 11px; color: var(--ink-3); line-height: 1.5;
}
.theory-banner-arrow {
  font-size: 18px; font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: transform .2s;
}
.theory-banner:hover .theory-banner-arrow { transform: translateX(4px); }

/* ===== SNSシェアエリア ===== */
.sns-share-area {
  background: var(--purple-lt);
  border: 1.5px solid #DDD6FE;
  border-radius: var(--r-lg);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.sns-share-title {
  font-size: 16px; font-weight: 900; color: var(--purple);
  letter-spacing: .06em; text-align: center;
}
.sns-avatar-block {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.sns-avatar-wrap {
  background: #fff;
  border-radius: 50%;
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(124,58,237,.15);
  overflow: hidden;
  border: 3px solid #DDD6FE;
}
.sns-avatar-img {
  width: 100px; height: 100px;
  object-fit: contain; display: block;
}
.sns-avatar-name {
  font-size: 14px; font-weight: 900; color: var(--ink);
  text-align: center; line-height: 1.4;
  max-width: 260px;
}
.sns-avatar-hint {
  font-size: 11px; color: var(--ink-3); text-align: center; line-height: 1.6;
}
.btn-img-save {
  display: inline-block;
  padding: 10px 22px;
  background: var(--purple);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 900;
  text-decoration: none; text-align: center;
  box-shadow: 0 3px 12px rgba(124,58,237,.28);
  transition: transform .15s, box-shadow .15s;
  letter-spacing: .03em;
}
.btn-img-save:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(124,58,237,.36); }
.btn-img-save:active { transform: scale(.97); }

/* ===== サイトフッター ===== */
.site-footer { background: #F1F5F9; border-top: 1px solid var(--line); padding: 16px; text-align: center; font-size: 11px; color: var(--ink-3); }

/* ===== アニメーション ===== */
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.modal-type-card             { animation: fadeUp .4s ease .05s both; }
.modal-section:nth-child(3)  { animation: fadeUp .38s ease .15s both; }
.modal-section:nth-child(4)  { animation: fadeUp .38s ease .22s both; }
.modal-section:nth-child(5)  { animation: fadeUp .38s ease .28s both; }
.modal-section:nth-child(6)  { animation: fadeUp .38s ease .33s both; }
.modal-footer                { animation: fadeUp .38s ease .38s both; }

/* ===== レスポンシブ ===== */
@media (max-width: 360px) {
  .stats-grid { grid-template-columns: 1fr; }
  .lucky-grid { grid-template-columns: 1fr; }
  .lucky-item-full { grid-column: 1; }
  .type-name { font-size: 18px; }
}
@media (min-width: 480px) {
  .choice-text { font-size: 15px; }
}

/* =====================================================
   PDF/印刷 スタイル
   ===================================================== */
.print-only { display: none; }

@media print {
  /* 画面UI を非表示 */
  .no-print, .hd, .site-footer,
  .modal-overlay, .modal-drag-bar { display: none !important; }

  body { background: #fff; font-size: 11pt; }

  /* モーダルシートを通常フローで表示 */
  .modal-sheet {
    position: static !important;
    transform: none !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 0 20mm !important;
    margin: 0 auto;
    max-width: 180mm;
  }
  .modal-type-card {
    border: 2px solid #BFDBFE;
    page-break-inside: avoid;
    margin: 6mm 4mm;
  }
  .modal-section { page-break-inside: avoid; margin: 4mm 4mm; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .lucky-grid { grid-template-columns: 1fr 1fr; }

  /* 総合運勢を印刷でも目立たせる */
  .type-name  { font-size: 18pt !important; font-weight: 900 !important; }
  .luck-value { font-size: 16pt !important; font-weight: 900 !important; color: #D97706 !important; }

  /* グラデーション文字を印刷用にフォールバック */
  .type-code-badge,
  .hd-brand-ja,
  .q-num,
  .axis-dom { -webkit-text-fill-color: #2563EB !important; color: #2563EB !important; }

  /* グラデーション背景は印刷では塗りつぶし */
  .axis-bar-a { background: #2563EB !important; }
  .axis-bar-b { background: #7C3AED !important; }
  .btn-pdf, .choice-label.selected { background: #2563EB !important; }
  .lead-badge, .btn-submit { background: #2563EB !important; }

  /* PDFフッター表示 */
  .print-only { display: block !important; }
  .pdf-footer {
    margin-top: 8mm; padding-top: 4mm;
    border-top: 1px solid #E5EAF2;
    font-size: 8pt; color: #8899AA; text-align: center; line-height: 1.8;
  }

  @page { margin: 15mm 12mm; size: A4 portrait; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
