/* =======================
   SHINDAN PAGE
======================= */
.shindan-wrap {
  width: min(680px, 92vw);
  margin: 60px auto 100px;
  text-align: center;
}

.shindan-header {
  margin-bottom: 48px;
}

.shindan-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  margin: 0 0 8px;
}

.shindan-title {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.2;
}

.shindan-desc {
  color: var(--subtext);
  margin: 0;
  font-size: 15px;
}

/* =======================
   SCREENS
======================= */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* =======================
   START
======================= */
.pizza-emoji-row {
  font-size: 48px;
  margin-bottom: 24px;
  letter-spacing: 8px;
}

.start-text {
  color: var(--subtext);
  margin-bottom: 32px;
  font-size: 15px;
}

/* =======================
   PROGRESS
======================= */
.progress-wrap {
  margin-bottom: 28px;
}

.progress-bar {
  height: 8px;
  background: var(--card);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .4s ease;
  width: 10%;
}

.progress-text {
  font-size: 13px;
  color: var(--subtext);
  font-weight: 600;
  margin: 0;
}

/* =======================
   QUESTION CARD
======================= */
.question-card {
  background: var(--card);
  border-radius: 24px;
  padding: 36px 32px;
}

.question-text {
  font-size: clamp(17px, 3vw, 22px);
  font-weight: 700;
  margin: 0 0 28px;
  line-height: 1.6;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .choices {
    grid-template-columns: 1fr;
  }

  .question-card {
    padding: 24px 16px;
  }
}

.choice-btn {
  background: #FAF6EE;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  line-height: 1.5;
  transition: border-color .2s, background .2s, transform .1s;
  color: var(--text);
}

.choice-btn:hover {
  border-color: var(--accent);
  background: #F9E8E6;
  transform: translateY(-2px);
}

.choice-btn.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: scale(.97);
}

/* =======================
   RESULT
======================= */
.result-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--green);
  margin: 0 0 4px;
}

.result-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  margin: 0 0 16px;
}

.result-card {
  background: var(--card);
  border-radius: 28px;
  padding: 40px 32px 36px;
  margin-bottom: 32px;
}

.result-emoji {
  font-size: 64px;
  margin-bottom: 12px;
  line-height: 1;
}

.result-pizza {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}

.result-catch {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 16px;
}

.result-desc {
  font-size: 15px;
  color: var(--subtext);
  line-height: 1.8;
  margin: 0 0 20px;
  text-align: left;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  background: #FAF6EE;
  border: 1.5px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* =======================
   BUTTONS
======================= */
.shindan-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  text-decoration: none;
}

.shindan-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  margin-left: 12px;
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

.result-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* =======================
   STORY CARD（スクショ用・非表示）
======================= */
#story-card {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 540px;
  height: 960px;
  background: #F5EDD8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  box-sizing: border-box;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  gap: 16px;
}

.story-brand {
  font-size: 18px;
  font-weight: 700;
  color: #C41E0E;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.story-emoji {
  font-size: 96px;
  line-height: 1;
}

.story-pizza {
  font-size: 32px;
  font-weight: 800;
  color: #1A1A1A;
  text-align: center;
  line-height: 1.4;
}

.story-catch {
  font-size: 20px;
  font-weight: 700;
  color: #2A6E1A;
  text-align: center;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.story-tag {
  background: #fff;
  border: 2px solid #2A6E1A;
  color: #2A6E1A;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 15px;
  font-weight: 700;
}

.story-footer {
  font-size: 16px;
  font-weight: 700;
  color: #5A4E3E;
  margin-top: 16px;
  letter-spacing: .05em;
}

/* =======================
   CF BUTTON
======================= */
.cf-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 20px;
  padding: 18px 24px;
  background: var(--green);
  color: #fff !important;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  letter-spacing: .05em;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(42,110,26,.25);
}

.cf-btn:hover {
  opacity: .88;
  transform: translateY(-2px);
  color: #fff !important;
}

/* =======================
   SHARE
======================= */
.share-section {
  margin-bottom: 20px;
  text-align: center;
}

.share-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--subtext);
  margin: 0 0 12px;
  letter-spacing: .08em;
}

.share-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity .2s, transform .1s;
}

.share-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.share-x {
  background: #000;
  color: #fff !important;
}

.share-insta {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.share-fb {
  background: #1877F2;
  color: #fff !important;
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen.active {
  animation: fadeIn .4s ease;
}
