/* =========================================================
   ゆい♡らぶ 16タイプ恋愛性格診断 専用スタイル
   - 既存テーマと干渉しないよう .pt-page スコープ
   - 淡ピンク〜白グラデ、丸み、安心感のあるデザイン
========================================================= */

.pt-page {
  font-family: 'Hiragino Maru Gothic ProN', 'BIZ UDPGothic', 'Meiryo', 'Noto Sans JP', sans-serif;
  background:
    radial-gradient(ellipse at top right, #fff0f5 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, #f3eaff 0%, transparent 55%),
    linear-gradient(180deg, #fff8fb 0%, #fef5fa 100%);
  color: #4a3050;
  font-size: 17px;
  line-height: 1.9;
  padding-bottom: 80px;
  min-height: 100vh;
}
.pt-page *,
.pt-page *::before,
.pt-page *::after { box-sizing: border-box; }

/* ===== ヒーロー ===== */
.pt-page .pt-hero {
  background: linear-gradient(135deg, #ffb6cc 0%, #ffa3c7 50%, #c9a3e6 100%);
  color: #fff;
  padding: 56px 20px 48px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(255, 143, 177, 0.25);
  position: relative;
  overflow: hidden;
}
.pt-page .pt-hero h1 {
  font-size: 2rem;
  margin: 0 0 14px;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(180, 60, 120, 0.4);
}
.pt-page .pt-hero h1 .pt-emoji { font-size: 1.4em; }
.pt-page .pt-hero p {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.95;
  text-shadow: 0 2px 4px rgba(180, 60, 120, 0.35);
}
.pt-page .pt-hero-deco {
  position: absolute;
  pointer-events: none;
  font-size: 36px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  animation: pt-float 4s ease-in-out infinite alternate;
}
.pt-page .pt-hero-deco--1 { top: 18%; left: 8%;  animation-delay: 0s;   }
.pt-page .pt-hero-deco--2 { top: 24%; right: 10%; animation-delay: 1s;  }
.pt-page .pt-hero-deco--3 { bottom: 16%; left: 14%; animation-delay: 0.5s; }
.pt-page .pt-hero-deco--4 { bottom: 20%; right: 16%; animation-delay: 1.5s; }
@keyframes pt-float {
  from { transform: translateY(0) rotate(-5deg); }
  to   { transform: translateY(-12px) rotate(5deg); }
}

/* ===== コンテナ ===== */
.pt-page .pt-container {
  max-width: 720px;
  margin: 36px auto 0;
  padding: 0 18px;
}

/* ===== カード ===== */
.pt-page .pt-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 8px 30px rgba(255, 143, 177, 0.15);
  border: 1px solid #ffe4ee;
  margin-bottom: 24px;
}

/* ===== スタート画面 ===== */
.pt-page .pt-start {
  text-align: center;
}
.pt-page .pt-start h2 {
  color: #c2447b;
  font-size: 1.5rem;
  margin: 0 0 16px;
  line-height: 1.6;
}
.pt-page .pt-start .pt-intro {
  font-size: 1rem;
  color: #4a3050;
  line-height: 2;
  margin: 0 0 22px;
  text-align: left;
}
.pt-page .pt-start .pt-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 18px;
  background: linear-gradient(135deg, #fff5f8 0%, #f5ebff 100%);
  border-radius: 16px;
  text-align: left;
}
.pt-page .pt-start .pt-features li {
  padding: 6px 0 6px 30px;
  position: relative;
  font-size: 0.98rem;
  color: #4a3050;
}
.pt-page .pt-start .pt-features li::before {
  content: '🌸';
  position: absolute;
  left: 0;
}
.pt-page .pt-disclaimer {
  background: #fff8e6;
  border: 1px solid #f0c14b;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 24px;
  font-size: 0.85rem;
  color: #6a4a00;
  line-height: 1.7;
  text-align: left;
}
.pt-page .pt-disclaimer strong {
  color: #b54708;
}

/* ===== 質問エリア ===== */
.pt-page .pt-quiz { display: none; }
.pt-page .pt-progress {
  margin-bottom: 22px;
}
.pt-page .pt-progress-bar {
  background: #ffe4ee;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.pt-page .pt-progress-fill {
  background: linear-gradient(90deg, #ff8fb1 0%, #c9a3e6 100%);
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.pt-page .pt-progress-text {
  font-size: 0.9rem;
  color: #c2447b;
  text-align: center;
  font-weight: bold;
}
.pt-page .pt-question {
  font-size: 1.2rem;
  color: #3a2a4f;
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.85;
  font-weight: bold;
  min-height: 4em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-page .pt-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pt-page .pt-option {
  display: block;
  width: 100%;
  background: #fff;
  border: 2px solid #ffcfdc;
  border-radius: 50px;
  padding: 18px 22px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #c2447b;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
  text-align: center;
}
.pt-page .pt-option:hover,
.pt-page .pt-option:focus {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #ff8fb1 0%, #ffa3c7 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 143, 177, 0.4);
  outline: 3px solid #ff8fb1;
  outline-offset: 3px;
}
.pt-page .pt-option--neutral { color: #8a7a8f; border-color: #d4ecfa; }
.pt-page .pt-option--neutral:hover,
.pt-page .pt-option--neutral:focus {
  background: linear-gradient(90deg, #6dafe6 0%, #8fc4ed 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(109, 175, 230, 0.4);
}

/* 戻るボタン */
.pt-page .pt-back-btn {
  display: inline-block;
  margin-top: 20px;
  background: transparent;
  border: none;
  color: #8a7a8f;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 16px;
  font-family: inherit;
}
.pt-page .pt-back-btn:hover { color: #c2447b; text-decoration: underline; }
.pt-page .pt-back-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== 計算中アニメーション ===== */
.pt-page .pt-loading {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.pt-page .pt-loading-emoji {
  font-size: 3rem;
  animation: pt-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes pt-pulse {
  from { opacity: 0.5; transform: scale(0.9); }
  to   { opacity: 1;   transform: scale(1.1); }
}
.pt-page .pt-loading p {
  color: #c2447b;
  font-size: 1.1rem;
  margin-top: 16px;
  font-weight: bold;
}

/* ===== 結果画面 ===== */
.pt-page .pt-result { display: none; }
.pt-page .pt-result-header {
  text-align: center;
  background: linear-gradient(135deg, #fff5f8 0%, #f5ebff 100%);
  border-radius: 22px;
  padding: 30px 24px;
  margin-bottom: 22px;
  border: 2px solid #ffcfdc;
}
.pt-page .pt-result-code {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(90deg, #ff6f9c 0%, #c9a3e6 100%);
  padding: 8px 28px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255, 111, 156, 0.35);
  margin-bottom: 16px;
}
.pt-page .pt-result-name {
  font-size: 1.6rem;
  color: #c2447b;
  margin: 0 0 8px;
  font-weight: bold;
}
.pt-page .pt-result-tagline {
  color: #8a6a9f;
  font-size: 1.05rem;
  margin: 0;
}
.pt-page .pt-result-section {
  margin-bottom: 20px;
}
.pt-page .pt-result-section h3 {
  color: #c2447b;
  font-size: 1.15rem;
  margin: 0 0 12px;
  padding: 6px 0 6px 14px;
  border-left: 4px solid #ff8fb1;
  line-height: 1.5;
}
.pt-page .pt-result-section p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.95;
  color: #3a2a4f;
}
.pt-page .pt-compatible {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pt-page .pt-compatible-tag {
  background: linear-gradient(135deg, #fff0f5 0%, #f5ebff 100%);
  border: 2px solid #ffcfdc;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #c2447b;
}

/* CTAボタン */
.pt-page .pt-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pt-page .pt-btn {
  display: inline-block;
  padding: 18px 26px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.05em;
  font-family: inherit;
}
.pt-page .pt-btn:hover, .pt-page .pt-btn:focus {
  transform: translateY(-2px);
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.pt-page .pt-btn--primary {
  background: linear-gradient(90deg, #ff6f9c 0%, #ff8fb1 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 111, 156, 0.4);
}
.pt-page .pt-btn--secondary {
  background: linear-gradient(90deg, #c9a3e6 0%, #b389d9 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(201, 163, 230, 0.4);
}
.pt-page .pt-btn--outline {
  background: #fff;
  color: #c2447b;
  border: 2px solid #ff8fb1;
}

/* シェア・もう一度 */
.pt-page .pt-result-footer {
  margin-top: 20px;
  text-align: center;
}

/* ===== レスポンシブ ===== */
@media (max-width: 720px) {
  .pt-page { font-size: 16px; }
  .pt-page .pt-hero { padding: 40px 16px 36px; }
  .pt-page .pt-hero h1 { font-size: 1.55rem; }
  .pt-page .pt-hero p { font-size: 0.98rem; }
  .pt-page .pt-container { margin-top: 26px; padding: 0 14px; }
  .pt-page .pt-card { padding: 24px 18px; border-radius: 18px; }
  .pt-page .pt-question { font-size: 1.05rem; min-height: 3.5em; }
  .pt-page .pt-option { font-size: 1.02rem; padding: 16px 18px; }
  .pt-page .pt-result-code { font-size: 1.8rem; padding: 6px 22px; }
  .pt-page .pt-result-name { font-size: 1.3rem; }
  .pt-page .pt-btn { font-size: 1.02rem; padding: 16px 22px; }
}
