/* CSS Variables */
:root {
  --primary-color: #26c6da;
  --primary-hover: #00bcd4;
  --text-main: #333333;
  --text-light: #666666;
  --bg-dark: rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --card-bg: rgba(245, 247, 250, 0.7);
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f0faf5 40%, #e8f8f0 100%);
}

/* レイヤー1: CSSミントグリーン水彩グラデーション */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f0faf5 40%, #e8f8f0 100%);
  z-index: -3;
}

/* レイヤー2: 水彩にじみエフェクト */
.bg-watercolor-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

.wc-blob {
  position: absolute;
  border-radius: 50%;
}

.wc-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(154, 230, 200, 0.45) 0%, rgba(154, 230, 200, 0.12) 50%, transparent 70%);
  top: -100px; left: -100px;
  filter: blur(30px);
}

.wc-blob-2 {
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(128, 216, 185, 0.35) 0%, rgba(128, 216, 185, 0.08) 50%, transparent 70%);
  top: -50px; right: -50px;
  filter: blur(25px);
}

.wc-blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(167, 237, 210, 0.3) 0%, rgba(167, 237, 210, 0.06) 50%, transparent 70%);
  bottom: -80px; left: -60px;
  filter: blur(35px);
}

.wc-blob-4 {
  width: 350px; height: 350px;
  background: radial-gradient(ellipse, rgba(144, 224, 195, 0.25) 0%, rgba(144, 224, 195, 0.04) 50%, transparent 70%);
  bottom: 50px; right: -80px;
  filter: blur(40px);
}

.wc-blob-5 {
  width: 250px; height: 250px;
  background: radial-gradient(ellipse, rgba(180, 240, 220, 0.15) 0%, transparent 60%);
  top: 40%; left: 30%;
  filter: blur(30px);
}

/* レイヤー3: 水彩画風葉っぱオーバーレイ */
.bg-leaves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('bg-watercolor-leaves.png') center center / cover no-repeat;
  z-index: -1;
  mix-blend-mode: multiply;
}

/* モバイルでどんぐりが隠れないように背景を左にシフト */
@media (max-width: 600px) {
  .bg-leaves {
    background-position: calc(50% - 50px) center;
  }
}

/* Common Layout */
.container {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

/* Display Toggling */
.page {
  display: none;
  animation: fadeIn 0.5s ease;
  width: 100%;
}

.page.active {
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 32px 24px;
  width: 100%;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-speed);
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(38, 198, 218, 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
  width: 100%;
  max-width: 300px;
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid #ccc;
  padding: 12px 24px;
}

.btn-secondary:hover {
  background: rgba(0,0,0,0.05);
}

/* --- LANDING PAGE --- */
.hero-content {
  text-align: center;
  color: #222; /* Darker text for readability against light overlay */
}

/* --- TITLES AND CARDS --- */
/* Glassmorphism Title Card */
.title-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.7);
  text-align: center;
}

.title-card h1 {
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  margin-bottom: 8px;
  white-space: nowrap; /* 一行にする */
}

.title-card .subtitle {
  font-size: clamp(1.2rem, 4.5vw, 1.5rem); /* サイズを少し大きく */
  color: #555;
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 32px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.feature-item {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  padding: 10px 8px;
  border-radius: 50px;
  font-weight: 700;
  font-size: clamp(0.72rem, 2.7vw, 0.88rem);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.9);
  white-space: nowrap;
}

/* 社会的証明バッジ */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.92);
  padding: 9px 20px;
  border-radius: 50px;
  margin: 0 auto 20px;
  width: fit-content;
  max-width: 90%;
  font-size: 0.88rem;
  color: #333;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,1);
}
.social-proof .proof-icon {
  font-size: 1rem;
}
.social-proof strong {
  color: var(--primary-color);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 2px;
}
@keyframes proofPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
  50% { transform: scale(1.02); box-shadow: 0 4px 18px rgba(38, 198, 218, 0.25); }
}

.feature-item .icon {
  color: var(--primary-color);
  font-weight: bold;
}

.main-action-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, #00acc1 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1.4rem;         /* 文字も大きく */
  font-weight: 800;          /* より太く */
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(38, 198, 218, 0.4);
  transition: all 0.3s;
  width: fit-content;
  display: block;
  margin: 0 auto;
  position: relative;
  overflow: hidden;          /* 光のハミ出しを防ぐ */
  z-index: 1;
  animation: pulse 3s infinite; /* ふわふわ脈打つアニメーション */
}

/* キラッと光るシャインエフェクト */
.main-action-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 3s infinite;
  z-index: 2;
}

.main-action-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.6);
}

/* アニメーション定義 */
@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Affiliate Footer */
.footer-affiliate {
  width: 100%;
  text-align: center;
  padding: 20px;
  font-size: 0.75rem;
  color: #555;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  margin-top: auto;
}
.footer-affiliate .copyright { 
  margin-top: 5px; 
  opacity: 0.8;
}

/* --- QUESTION PAGE --- */
.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-bar-bg {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-color);
  width: 20%;
  transition: width 0.4s ease;
}

.back-link {
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  margin-bottom: 20px;
  display: inline-block;
}

.back-link:hover {
  text-decoration: underline;
}

.question-content {
  text-align: center;
  margin-top: 20px;
}

.q-number-circle {
  width: 40px;
  height: 40px;
  background: #e0f7fa;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.question-text {
  font-size: clamp(0.98rem, 3.9vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 32px;
  color: #222;
  line-height: 1.55;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 18px 20px;
  border-radius: 12px;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.option-btn::after {
  content: '→';
  color: #ccc;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.option-btn:hover {
  background: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 0 15px rgba(38, 198, 218, 0.4);
  transform: translateY(-2px);
}

.option-btn:hover::after {
  color: var(--primary-color);
  transform: translateX(4px);
}

.option-btn.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(38, 198, 218, 0.3);
}

.option-btn.selected::after {
  color: white;
  transform: translateX(4px);
}

/* タッチデバイスではホバー効果を無効化 */
@media (hover: none) {
  .option-btn:hover {
    background: var(--card-bg);
    border-color: rgba(0,0,0,0.05);
    box-shadow: none;
    transform: none;
  }
  .option-btn:hover::after {
    color: #ccc;
    transform: none;
  }
}

/* --- LOADING PAGE --- */
.loading-container {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 1s linear infinite;
}

/* --- RESULT PAGE --- */
.result-header {
  text-align: center;
  margin-bottom: 24px;
}

.result-header h2 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 12px;
}

/* 追加: テキストを浮き立たせて見やすくする背景 */
.text-bg {
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.text-bg-sub {
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  color: #333;
}

.highlight-text {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: bold;
}

.result-header p {
  font-size: 0.95rem;
  color: #444;
  margin-top: 8px;
}

.top-match-header {
  margin-bottom: 32px;
}

.match-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.match-bar-bg {
  flex: 1;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.match-bar-fill {
  height: 100%;
  background: var(--primary-color);
  width: 0%; /* JS for anim */
  border-radius: 3px;
}

.match-percent-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
}

.first-place-hero {
  background: rgba(255,255,255,0.9);
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 32px rgba(38, 198, 218, 0.2);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.fp-badge {
  display: inline-block;
  background: #fff8e1;
  color: #f57c00;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid #ffe082;
}

.fp-name {
  font-size: clamp(1.3rem, 5.8vw, 1.8rem);
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.fp-match-rate {
  font-size: 1rem;
  color: #555;
  font-weight: 600;
  margin-bottom: 16px;
}

.fp-match-rate .highlight-percent {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 800;
}

.fp-catchphrase {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #ddd;
}

.fp-description {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

.fp-features {
  text-align: left;
  background: #fcfcfc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

.fp-cta {
  font-size: 1.05rem;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(38, 198, 218, 0.3);
}

.suggestion-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ranking-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.first-place-card {
  background: rgba(255,255,255,0.85);
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 24px rgba(38, 198, 218, 0.15);
  transform: scale(1.01);
  margin-bottom: 10px;
}

.rc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
  gap: 12px;
}

.rc-header > div:first-child {
  flex: 1;
  min-width: 0;
}

.rc-rank {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 700;
}

.rc-rank.first-rank-text {
  font-size: 0.95rem;
  color: #e65100; /* Deep orange/gold for emphasis */
  display: flex;
  align-items: center;
  gap: 4px;
}

.crown-icon {
  font-size: 1.1rem;
}

.rc-name {
  font-size: clamp(1rem, 4.3vw, 1.3rem);
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rc-match {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: right;
}

.rc-match-bar-wrap {
  width: 100px;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.rc-match-bar-fill {
  height: 100%;
  background: var(--primary-color);
  width: 0%;
  border-radius: 2px;
  transition: width 0.8s ease;
}

.rc-subtitle {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 12px;
}

.rc-features {
  list-style: none;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #444;
}

.rc-features li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.rc-features li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: #888;
}

.cta-btn {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: 50px;
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(38, 198, 218, 0.4);
}

.mb-4 {
  margin-bottom: 24px;
}

.retry-action {
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  width: 100%;
}

.retry-desc {
  font-size: 0.9rem;
  color: #444;
  font-weight: 600;
}

.retry-btn {
  width: 100%;
  max-width: 320px;
  background: white;
  color: #333;
  border: 1px solid #ddd;
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.05rem;
}
.retry-btn.shadow-btn {
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.retry-btn:hover {
  background: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Share Section (Reference Aligned) */
.share-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,1);
}
.share-title { font-weight: 700; font-size: 1.25rem; margin-bottom: 4px; color: #222; }
.share-emoji { font-size: 1.4rem; }
.share-desc { font-size: 0.9rem; color: #666; margin-bottom: 20px;}
.share-buttons { 
  display: flex; 
  flex-direction: row; 
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; 
  gap: 12px; 
}
.share-icon-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px;
  border: 1px solid #ddd; border-radius: 50px; background: #fff; cursor: pointer; font-weight: 700; color: #444;
  transition: all 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.04); font-size: 0.9rem; flex: 1 1 120px; max-width: 140px;
  white-space: nowrap;
}
.share-icon-btn:hover { background: #fdfdfd; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.08); border-color: #ccc; }
.share-svg { width: 24px; height: 24px; flex-shrink: 0; }
.share-svg-stroke { width: 24px; height: 24px; flex-shrink: 0; }
.share-img { width: 24px; height: 24px; flex-shrink: 0; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Question Slide Transitions */
#question-content-wrapper {
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-out {
  opacity: 0;
  transform: translateX(-30px);
}

.slide-in {
  opacity: 0;
  transform: translateX(30px);
}

.slide-active {
  opacity: 1;
  transform: translateX(0);
}

/* --- Sticky CTA (結果ページ) --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.12);
  z-index: 999;
  display: flex;
  justify-content: center;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  border-top: 1px solid rgba(38, 198, 218, 0.2);
}
.sticky-cta.visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta.dismissed {
  transform: translateY(110%) !important;
  pointer-events: none !important;
}
.sticky-cta-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 460px;
}
.sticky-cta-close {
  flex-shrink: 0;
  background: rgba(0,0,0,0.06);
  border: none;
  color: #666;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}
.sticky-cta-close:hover, .sticky-cta-close:focus {
  background: rgba(0,0,0,0.12);
  color: #222;
  outline: none;
}
.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #00acc1 100%);
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  flex: 1;
  min-width: 0;
  box-shadow: 0 6px 20px rgba(38, 198, 218, 0.45);
  position: relative;
  overflow: hidden;
}
.sticky-cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}
.sticky-cta-icon {
  font-size: 1.1rem;
}
.sticky-cta-arrow {
  font-size: 1.1rem;
  font-weight: 900;
}

/* 結果ページだけスクロール余裕 */
#result.page {
  padding-bottom: 100px;
}

/* --- Toast notification --- */
.toast {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 20, 0.92);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 2000;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Confetti Animation (Cracker Style) */
#confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 16px; /* 紙テープっぽい長方形に変更 */
  background-color: var(--primary-color);
  opacity: 0;
  border-radius: 2px;
  animation: confetti-shoot forwards ease-out;
}

@keyframes confetti-shoot {
  0% { 
    transform: translate3d(0, 0, 0) scale(0) rotate(0deg); 
    opacity: 1; 
  }
  30% { 
    /* 一気に上へ吹き飛ぶ */
    transform: translate3d(var(--x), var(--y), 0) scale(1) rotate(calc(var(--r) / 2)); 
    opacity: 1; 
  }
  100% { 
    /* 重力で落ちてくる */
    transform: translate3d(calc(var(--x) * 1.5), calc(var(--y) + 800px), 0) rotate(var(--r)); 
    opacity: 0; 
  }
}
