@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Noto+Serif+JP:wght@200;300;400&display=swap');

/* ===== Variables ===== */
:root {
  --pink-deep:  #d4748c;
  --pink-mid:   #e8a0b0;
  --pink-light: #f5d0d8;
  --pink-pale:  #fdf0f2;
  --beige:      #f5ede8;
  --text-dark:  #5a3d35;
  --text-mid:   #7a5c55;
  --text-light: #a08880;
  --white:      #ffffff;
  --off-white:  #fefaf8;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

body {
  font-family: 'Noto Serif JP', serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.9;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.quiz-header {
  background: var(--white);
  border-bottom: 1px solid var(--pink-light);
  padding: 14px 24px;
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.header-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 300;
  color: var(--pink-deep);
  letter-spacing: 0.1em;
}
.header-title {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.2em;
}

/* ===== Main ===== */
.quiz-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* ===== Screen ===== */
.screen {
  width: 100%;
  max-width: 560px;
}
.screen.hidden { display: none; }

/* ===== Fade Animation ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeSlideUp 0.4s ease forwards;
}

/* ===== Start Screen ===== */
.start-card {
  background: var(--white);
  border-radius: 20px;
  padding: 52px 44px;
  text-align: center;
  box-shadow: 0 4px 32px rgba(180, 100, 120, 0.1);
  border: 1px solid var(--pink-light);
}
.quiz-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  font-weight: 300;
  color: var(--pink-deep);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 20px;
}
.start-heading {
  font-size: 26px;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}
.start-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 2;
  letter-spacing: 0.05em;
  margin-bottom: 36px;
}
.start-btn {
  display: inline-block;
  background: var(--pink-deep);
  color: var(--white);
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.2em;
  padding: 14px 44px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.start-btn:hover {
  background: #b85a70;
  transform: translateY(-1px);
}

/* ===== Question Screen ===== */
.question-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Progress */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--pink-light);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--pink-deep);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.progress-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Question Card */
.question-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px 44px;
  text-align: center;
  box-shadow: 0 4px 32px rgba(180, 100, 120, 0.1);
  border: 1px solid var(--pink-light);
}
.question-text {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  line-height: 1.8;
  margin-bottom: 40px;
  white-space: pre-line;
}

/* Answer Buttons */
.answer-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.answer-btn {
  flex: 1;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: 'Noto Serif JP', serif;
  transition: transform 0.15s, box-shadow 0.15s;
}
.answer-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(180, 100, 120, 0.18);
}
.answer-btn.yes {
  background: var(--pink-deep);
  color: var(--white);
}
.answer-btn.no {
  background: var(--white);
  border-color: var(--pink-light);
  color: var(--text-mid);
}
.btn-mark {
  font-size: 20px;
  line-height: 1;
}
.btn-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1;
}
.btn-sub {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  opacity: 0.85;
}

/* Back Button */
.back-btn {
  background: none;
  border: none;
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.1em;
  cursor: pointer;
  text-align: center;
  display: block;
  margin: 0 auto;
  padding: 4px 0;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--pink-deep); }

/* ===== Result Screen ===== */
.result-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.result-lead {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.2em;
  text-align: center;
}
.result-card {
  width: 100%;
  background: var(--white);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 4px 32px rgba(180, 100, 120, 0.1);
  border: 1px solid var(--pink-light);
}
.result-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.result-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 56px;
  font-weight: 300;
  color: var(--pink-deep);
  line-height: 1;
  flex-shrink: 0;
}
.result-type-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.result-type-ja {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.1em;
  line-height: 1.3;
}
.result-type-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.25em;
}
.result-catch {
  display: inline-block;
  font-size: 12px;
  font-weight: 300;
  color: var(--pink-deep);
  letter-spacing: 0.15em;
  background: var(--pink-pale);
  border: 1px solid var(--pink-light);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.result-desc {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 2;
  letter-spacing: 0.04em;
}
.result-divider {
  height: 1px;
  background: var(--pink-light);
  margin: 28px 0 20px;
}
.result-shop-label {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 14px;
}
.result-shop-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-shop-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.shop-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border-radius: 8px;
  border: 1px solid var(--pink-light);
  background: var(--white);
  color: var(--text-dark);
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.shop-btn:hover {
  border-color: var(--pink-mid);
  box-shadow: 0 2px 10px rgba(180, 100, 120, 0.1);
}
.shop-btn.rakuten .shop-logo { color: #bf0000; }
.shop-btn.amazon  .shop-logo { color: #e47911; }
.shop-btn.yahoo   .shop-logo { color: #ff0033; }
.shop-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

/* Top */
.top-btn {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: color 0.2s;
}
.top-btn:hover { color: var(--pink-deep); }

/* ===== Result Review ===== */
.result-review-label {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 14px;
}
.result-review-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.result-review-card {
  display: flex;
  flex-direction: column;
  background: var(--off-white);
  border: 1px solid var(--pink-light);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.result-review-card:hover {
  box-shadow: 0 4px 16px rgba(180, 100, 120, 0.15);
  transform: translateY(-2px);
}
.result-review-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 15%;
}
.result-review-card-body {
  padding: 10px 12px 12px;
}
.result-review-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--pink-deep);
  display: block;
  margin-bottom: 3px;
}
.result-review-name {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Retry */
.retry-btn {
  background: none;
  border: 1px solid var(--pink-light);
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.15em;
  padding: 10px 28px;
  border-radius: 40px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.retry-btn:hover {
  border-color: var(--pink-deep);
  color: var(--pink-deep);
}

/* ===== Footer ===== */
footer {
  background: var(--white);
  border-top: 1px solid var(--pink-light);
  padding: 24px 0 18px;
}
.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.footer-note {
  font-size: 11px;
  font-weight: 200;
  color: var(--text-light);
  letter-spacing: 0.08em;
  line-height: 1.8;
  margin-bottom: 8px;
}
.footer-copy {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .start-card      { padding: 40px 24px; }
  .start-heading   { font-size: 22px; }
  .question-card   { padding: 36px 24px 32px; }
  .question-text   { font-size: 17px; margin-bottom: 32px; }
  .answer-btn      { padding: 16px 12px; }
  .btn-label       { font-size: 18px; }
  .result-card     { padding: 36px 24px; }
  .result-num      { font-size: 44px; }
  .result-type-ja  { font-size: 20px; }
}
