/* ============================================
   Contamination Index Styles
   汚染度診断 ── 被害者視点
   ============================================ */

.contam {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
}
.contam__back {
  position: fixed;
  top: 24px; left: 24px;
  font-size: 0.75rem;
  color: var(--text-muted, #A09A94);
  letter-spacing: 0.2em;
  z-index: 10;
  transition: color 0.3s;
}
.contam__back:hover { color: #7B2FFF; }

.contam__screen {
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: contamFadeIn 0.6s ease-out;
}
@keyframes contamFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Intro ── */
.contam__date {
  font-family: var(--font-en, 'Cormorant Garamond', serif);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--text-muted, #A09A94);
  margin-bottom: 1.5rem;
}
.contam__title {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 400;
  color: var(--white, #F5F0EB);
  margin-bottom: 0.3rem;
}
.contam__subtitle {
  font-family: var(--font-en, 'Cormorant Garamond', serif);
  font-size: 0.85rem;
  color: var(--text-muted, #A09A94);
  letter-spacing: 0.2em;
  font-style: italic;
  margin-bottom: 2rem;
}

/* ── Silhouette Preview ── */
.contam__silhouette-preview {
  margin-bottom: 2rem;
  position: relative;
  width: 120px;
  height: 180px;
  margin-left: auto;
  margin-right: auto;
}
.contam__silhouette {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contam__silhouette svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(123, 47, 255, 0.15));
}
.contam__silhouette-text {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en, 'Cormorant Garamond', serif);
  font-size: 1.2rem;
  color: var(--text-muted, #A09A94);
  letter-spacing: 0.1em;
}

.contam__intro-text {
  font-size: 0.9rem;
  color: var(--text-dim, #C8C4BF);
  line-height: 2.2;
  margin-bottom: 2.5rem;
}

/* ── Question ── */
.contam__q-progress {
  font-family: var(--font-en, 'Cormorant Garamond', serif);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: #7B2FFF;
  margin-bottom: 1rem;
}
.contam__q-bar {
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  margin-bottom: 3rem;
  overflow: hidden;
}
.contam__q-bar-fill {
  height: 100%;
  background: #7B2FFF;
  transition: width 0.4s ease;
  width: 0;
}
.contam__q-axis {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: #7B2FFF;
  margin-bottom: 0.8rem;
  opacity: 0.7;
}
.contam__q-text {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--white, #F5F0EB);
  line-height: 2;
  margin-bottom: 2.5rem;
  min-height: 60px;
}
.contam__q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contam__option {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid #222;
  color: var(--white, #F5F0EB);
  font-family: var(--font-jp, 'Noto Serif JP', serif);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
}
.contam__option:hover {
  border-color: #7B2FFF;
  background: rgba(123, 47, 255, 0.03);
}
.contam__option--selected {
  border-color: #7B2FFF !important;
  background: rgba(123, 47, 255, 0.06) !important;
}
.contam__option:disabled {
  cursor: default;
  opacity: 0.5;
}

/* ── Result ── */
.contam__result-label {
  font-size: 0.9rem;
  color: var(--text-dim, #C8C4BF);
  line-height: 2;
  margin-bottom: 2rem;
}

/* ── Silhouette Result (汚染アニメーション) ── */
.contam__meter { margin-bottom: 2rem; }
.contam__body-silhouette {
  position: relative;
  width: 160px;
  height: 280px;
  margin: 0 auto 1rem;
}
.contam__body-silhouette svg {
  width: 100%;
  height: 100%;
}
.contam__body-fill {
  transition: clip-path 3s ease-out, opacity 2s ease-out;
  clip-path: inset(100% 0 0 0);
  opacity: 0;
}
.contam__body-fill.animate {
  opacity: 0.85;
}
.contam__body-pct {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en, 'Cormorant Garamond', serif);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  z-index: 2;
}

.contam__result-level {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}
.contam__result-level-en {
  font-family: var(--font-en, 'Cormorant Garamond', serif);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-muted, #A09A94);
  margin-bottom: 1rem;
}
.contam__result-message {
  font-size: 0.85rem;
  color: var(--text-dim, #C8C4BF);
  line-height: 2.2;
  white-space: pre-line;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Prescription (処方箋) ── */
.contam__prescription {
  border: 1px solid #1a1a1a;
  padding: 24px;
  margin-bottom: 2rem;
  text-align: left;
}
.contam__prescription h3 {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: #7B2FFF;
  margin-bottom: 1rem;
}
.contam__prescription p {
  font-size: 0.85rem;
  color: var(--text-dim, #C8C4BF);
  line-height: 2;
  white-space: pre-line;
}

/* ── Defense CTA (防衛プロトコル) ── */
.contam__defense {
  margin-bottom: 2.5rem;
  padding: 20px;
  border: 1px solid rgba(123, 47, 255, 0.3);
  background: rgba(123, 47, 255, 0.03);
  text-align: center;
}
.contam__defense-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: #7B2FFF;
  margin-bottom: 0.8rem;
}
.contam__defense-text {
  font-size: 0.85rem;
  color: var(--text-dim, #C8C4BF);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.contam__defense-btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #7B2FFF;
  color: #7B2FFF;
  font-family: var(--font-jp, 'Noto Serif JP', serif);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}
.contam__defense-btn:hover {
  background: rgba(123, 47, 255, 0.1);
}
.contam__defense-btn--urgent {
  background: rgba(123, 47, 255, 0.1);
  animation: urgentPulse 2s ease-in-out infinite;
}
@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123, 47, 255, 0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(123, 47, 255, 0.15); }
}

/* ── Share Section ── */
.contam__share-section {
  margin-bottom: 2.5rem;
  padding: 24px;
  border: 1px solid #1a1a1a;
}
.contam__share-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #7B2FFF;
  margin-bottom: 1rem;
}
.contam__share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.contam__share-buttons .btn {
  font-size: 0.75rem;
  padding: 10px 18px;
}
.contam__share-hint {
  font-size: 0.7rem;
  color: var(--text-muted, #A09A94);
  font-style: italic;
  line-height: 1.8;
}

/* ── Actions ── */
.contam__result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

/* ── Shop Footer ── */
.contam__shop-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  text-align: center;
}
.contam__shop-divider {
  width: 40px;
  height: 1px;
  background: #222;
  margin: 0 auto 1.5rem;
}
.contam__shop-text {
  font-size: 0.7rem;
  color: var(--text-muted, #A09A94);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}
.contam__shop-btn {
  display: inline-block;
  font-family: var(--font-en, 'Cormorant Garamond', serif);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted, #A09A94);
  border: 1px solid #2a2a2a;
  padding: 8px 24px;
  transition: all 0.3s;
}
.contam__shop-btn:hover {
  border-color: #7B2FFF;
  color: #7B2FFF;
}

/* ── Page language switcher ── */
.contam .page-lang {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 10;
}
