/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-nobinobi: #f4c430;
  --color-hokkori: #ff7eb9;
  --color-shikkari: #4a90e2;
  --color-kicchiri: #9b59b6;
  --color-balance: #16a085;
  --color-text: #2c3e50;
  --color-text-soft: #6b7c93;
  --color-bg: #fff5f8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Hiragino Maru Gothic ProN', 'ヒラギノ丸ゴ ProN', 'Yu Gothic', sans-serif;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 154, 162, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255, 218, 193, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(176, 224, 230, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(244, 196, 48, 0.2) 0%, transparent 40%),
    linear-gradient(135deg, #fff5f8 0%, #fff9e8 50%, #f0f8ff 100%);
  min-height: 100vh;
  padding: 20px 0;
  position: relative;
  overflow-x: hidden;
}

/* ===== Background Decorations ===== */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.silhouette {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.55;
  animation: float 9s ease-in-out infinite;
}

.silhouette-1 { color: #ff9ec7; top:  6%; left:  4%; animation-delay: 0s;   width: 78px; height: 78px; }
.silhouette-2 { color: #c8a8e9; top: 14%; right: 6%; animation-delay: 1.2s; width: 92px; height: 92px; }
.silhouette-3 { color: #ffd66b; top: 28%; left:  8%; animation-delay: 2.5s; width: 64px; height: 64px; }
.silhouette-4 { color: #aee6f0; top: 38%; right: 4%; animation-delay: 0.8s; width: 86px; height: 86px; }
.silhouette-5 { color: #ffb3d1; top: 56%; left:  3%; animation-delay: 3.1s; width: 80px; height: 80px; }
.silhouette-6 { color: #b39ddb; top: 64%; right: 7%; animation-delay: 1.8s; width: 72px; height: 72px; }
.silhouette-7 { color: #ffe082; top: 78%; left:  6%; animation-delay: 2.2s; width: 78px; height: 78px; }
.silhouette-8 { color: #ff9ec7; top: 86%; right: 5%; animation-delay: 0.4s; width: 70px; height: 70px; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(6deg); }
}

@media (max-width: 480px) {
  .silhouette { opacity: 0.4; }
  .silhouette-1, .silhouette-3, .silhouette-5, .silhouette-7 { width: 56px; height: 56px; }
  .silhouette-2, .silhouette-4, .silhouette-6, .silhouette-8 { width: 64px; height: 64px; }
}

.page {
  display: none;
  position: relative;
  z-index: 1;
}

.page.active {
  display: block;
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 28px;
  background: white;
  border-radius: 28px;
  box-shadow:
    0 10px 40px rgba(255, 126, 185, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
}

/* ===== Start Page ===== */
#start-page .container.start-container {
  background: transparent;
  box-shadow: none;
  text-align: center;
  padding: 32px 20px 48px;
}

/* キービジュアル：パッケージ画像をそのまま中心に配置 */
.hero-visual {
  position: relative;
  margin: 0 auto 24px;
  padding: 8px 0 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.hero-image {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.10));
  animation: bobble 4s ease-in-out infinite;
}

.subtitle {
  text-align: center;
  color: var(--color-text-soft);
  margin-bottom: 36px;
  font-size: 15px;
  font-weight: 500;
}

.meta-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  font-size: 14px;
}

.meta-info span {
  background: white;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--color-text);
  border: 2px solid #ffe4ee;
  box-shadow: 0 2px 6px rgba(255, 126, 185, 0.1);
}

/* ===== Buttons ===== */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 28px;
  background: linear-gradient(135deg, #ff7eb9 0%, #ff9aa2 50%, #ffdac1 100%);
  color: white;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  box-shadow:
    0 6px 20px rgba(255, 126, 185, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.1);
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.pop-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.pop-btn:hover::before {
  left: 100%;
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 10px 28px rgba(255, 126, 185, 0.5),
    inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.primary-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-arrow {
  font-size: 20px;
  transition: transform 0.2s;
}

.primary-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.secondary-btn {
  padding: 12px 22px;
  background: white;
  color: var(--color-text-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #f0f0f0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-btn:hover:not(:disabled) {
  background: #f8f8f8;
  border-color: #e0e0e0;
  transform: translateY(-1px);
}

.secondary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== Progress Bar ===== */
.progress-wrapper {
  margin-bottom: 32px;
}

.progress-text {
  text-align: center;
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.progress-divider {
  color: var(--color-text-soft);
  margin: 0 4px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #ffe4ee;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7eb9, #ffdac1, #f4c430);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 999px;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== Question ===== */
.question-block {
  margin-bottom: 24px;
}

.question-text {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--color-text);
  line-height: 1.6;
}

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

.option-btn {
  padding: 16px 20px;
  background: #fafafa;
  border: 3px solid #f0f0f0;
  border-radius: 18px;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  position: relative;
}

.option-btn:hover {
  background: #fff5f8;
  border-color: #ffb7b2;
  transform: translateX(6px) scale(1.01);
  box-shadow: 0 4px 12px rgba(255, 154, 162, 0.2);
}

.option-btn:active {
  transform: translateX(3px) scale(0.99);
}

.option-btn.selected {
  background: linear-gradient(135deg, #fff0f0 0%, #fff9e8 100%);
  border-color: #ff7eb9;
  box-shadow: 0 4px 16px rgba(255, 126, 185, 0.25);
}

.option-btn.unknown {
  font-style: italic;
  color: #95a5a6;
  font-weight: 500;
}

.nav-buttons {
  display: flex;
  justify-content: flex-start;
  margin-top: 28px;
}

/* ===== Result Page ===== */
.result-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 32px 24px;
  border-radius: 24px;
  background: #fafafa;
  position: relative;
  overflow: hidden;
}

.result-label {
  font-size: 14px;
  color: var(--color-text-soft);
  margin-bottom: 12px;
  font-weight: 700;
}

.result-type-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.result-type-name {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.02em;
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.result-type-catchphrase {
  display: inline-block;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}

.result-type-tagline {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  font-weight: 500;
  text-align: left;
  background: white;
  padding: 16px;
  border-radius: 16px;
  margin-top: 8px;
}

/* タイプ別カラー */
.type-nobinobi { color: var(--color-nobinobi); }
.bg-nobinobi   { background: linear-gradient(135deg, #fff8d6 0%, #fff0a8 100%); }

.type-hokkori  { color: var(--color-hokkori); }
.bg-hokkori    { background: linear-gradient(135deg, #ffe4ee 0%, #ffc8dd 100%); }

.type-shikkari { color: var(--color-shikkari); }
.bg-shikkari   { background: linear-gradient(135deg, #d6eaff 0%, #b3d4f7 100%); }

.type-kicchiri { color: var(--color-kicchiri); }
.bg-kicchiri   { background: linear-gradient(135deg, #ead6f5 0%, #d4b3e6 100%); }

.type-balance  { color: var(--color-balance); }
.bg-balance    { background: linear-gradient(135deg, #d6f5ed 0%, #b3e6d4 100%); }

/* ハイブリッド型（隣接 = こだわり型） */
.type-hokkori-nobinobi { color: #ff8c42; }
.bg-hokkori-nobinobi   { background: linear-gradient(135deg, #fff5e1 0%, #ffd9b3 100%); }

.type-nobinobi-shikkari { color: #6aa84f; }
.bg-nobinobi-shikkari   { background: linear-gradient(135deg, #effbe5 0%, #c8eab0 100%); }

.type-shikkari-kicchiri { color: #5b6abf; }
.bg-shikkari-kicchiri   { background: linear-gradient(135deg, #dfe5fa 0%, #c0c8ee 100%); }

.type-hokkori-kicchiri { color: #c074a7; }
.bg-hokkori-kicchiri   { background: linear-gradient(135deg, #fbe6f3 0%, #e7c5dc 100%); }

/* ハイブリッド型（対角 = バランス型と同じグラデ） */
.type-nobinobi-kicchiri { color: var(--color-balance); }
.type-hokkori-shikkari  { color: var(--color-balance); }

/* ===== Plot Chart ===== */
.plot-section {
  margin-bottom: 32px;
  padding: 20px;
  border-radius: 20px;
  background: #fafafa;
  text-align: center;
}

.plot-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--color-text);
  font-weight: 800;
}

.plot-container {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

#plot-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  background: white;
}

/* ===== Count Summary ===== */
.count-summary-block {
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 20px;
  background: #fafafa;
  text-align: center;
}

.count-summary-block h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-text);
  font-weight: 800;
}

.count-hint {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.count-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.count-item .count-label {
  font-size: 12px;
  font-weight: 700;
  color: #666;
  margin-bottom: 4px;
}

.count-item .count-value {
  font-size: 26px;
  font-weight: 900;
  color: #333;
  line-height: 1;
}

.count-item.dominant {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.count-item.type-nobinobi.dominant { border-color: var(--color-nobinobi); background: #fff8e1; }
.count-item.type-nobinobi.dominant .count-value { color: var(--color-nobinobi); }
.count-item.type-hokkori.dominant  { border-color: var(--color-hokkori);  background: #ffeef5; }
.count-item.type-hokkori.dominant .count-value  { color: var(--color-hokkori); }
.count-item.type-shikkari.dominant { border-color: var(--color-shikkari); background: #e8f1fc; }
.count-item.type-shikkari.dominant .count-value { color: var(--color-shikkari); }
.count-item.type-kicchiri.dominant { border-color: var(--color-kicchiri); background: #f3eaf7; }
.count-item.type-kicchiri.dominant .count-value { color: var(--color-kicchiri); }

@media (max-width: 480px) {
  .count-summary { gap: 6px; }
  .count-item { padding: 10px 4px; }
  .count-item .count-value { font-size: 22px; }
}

/* ===== Description Blocks ===== */
.description-block,
.caution-block,
.monsters-block,
.share-block {
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 20px;
  background: #fafafa;
}

.description-block h3,
.caution-block h3,
.monsters-block h3,
.share-block h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--color-text);
  font-weight: 800;
}

.description-block ul,
.caution-block ul {
  list-style: none;
  padding-left: 0;
}

.description-block li,
.caution-block li {
  padding: 14px 18px;
  margin-bottom: 10px;
  background: white;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.7;
  border-left: 5px solid #ffb7b2;
  font-weight: 500;
}

.caution-block li {
  border-left-color: #ffd93d;
}

.description-block li:last-child,
.caution-block li:last-child {
  margin-bottom: 0;
}

/* ===== Monsters Grid ===== */
.monsters-hint {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-bottom: 16px;
  font-weight: 600;
}

.monsters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.monster-card {
  background: white;
  border-radius: 20px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  text-align: center;
  border: 3px solid transparent;
  animation: cardIn 0.5s ease backwards;
}

.monsters-grid .monster-card:nth-child(1)  { animation-delay: 0.05s; }
.monsters-grid .monster-card:nth-child(2)  { animation-delay: 0.1s; }
.monsters-grid .monster-card:nth-child(3)  { animation-delay: 0.15s; }
.monsters-grid .monster-card:nth-child(4)  { animation-delay: 0.2s; }
.monsters-grid .monster-card:nth-child(5)  { animation-delay: 0.25s; }
.monsters-grid .monster-card:nth-child(6)  { animation-delay: 0.3s; }
.monsters-grid .monster-card:nth-child(7)  { animation-delay: 0.35s; }
.monsters-grid .monster-card:nth-child(8)  { animation-delay: 0.4s; }
.monsters-grid .monster-card:nth-child(9)  { animation-delay: 0.45s; }
.monsters-grid .monster-card:nth-child(10) { animation-delay: 0.5s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.monster-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: #ffb7b2;
}

.monster-card:active {
  transform: translateY(-2px) scale(0.98);
}

.monster-card img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 8px;
  background: #fafafa;
  display: block;
}

.monster-card-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 2px;
}

.monster-card-value {
  font-size: 11px;
  color: var(--color-text-soft);
  font-weight: 600;
}

/* ===== Share Buttons ===== */
.share-hint {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-bottom: 16px;
  font-weight: 600;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.share-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.share-x          { background: #000000; }
.share-facebook   { background: #1877f2; }
.share-instagram  { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.share-copy       { background: #6b7c93; }

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeBg 0.25s ease;
}

@keyframes fadeBg {
  from { background: rgba(0,0,0,0); backdrop-filter: blur(0); }
  to   { background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); }
}

.modal-content {
  background: white;
  border-radius: 28px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 36px 28px 28px;
  animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  color: var(--color-text-soft);
  background: #f0f0f0;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.2s;
  font-family: inherit;
  padding: 0;
}

.modal-close:hover {
  background: #e0e0e0;
  color: var(--color-text);
  transform: rotate(90deg);
}

.modal-content img {
  display: block;
  width: 60%;
  max-width: 240px;
  margin: 0 auto 16px;
  border-radius: 18px;
}

.modal-info h3 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--color-text);
  font-weight: 900;
}

.modal-value {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-soft);
  margin-bottom: 16px;
  font-weight: 600;
}

.modal-value span {
  color: #ff7eb9;
  font-weight: 800;
}

.modal-quote {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff5f8 0%, #fff9e8 100%);
  padding: 14px 18px;
  border-radius: 16px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.modal-section {
  margin-bottom: 12px;
  padding: 14px 18px;
  border-radius: 14px;
}

.modal-normal-section {
  background: #f0fff4;
  border-left: 4px solid #4caf50;
}

.modal-overflow-section {
  background: #fff5f5;
  border-left: 4px solid #ff7043;
}

.modal-section h4 {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--color-text);
  font-weight: 800;
}

.modal-section p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  font-weight: 500;
}

/* ===== Closing Message ===== */
.closing-message {
  margin: 36px 0;
  padding: 32px 24px;
  background: linear-gradient(135deg, #fff5f8 0%, #fff9e8 50%, #f0f8ff 100%);
  border-radius: 24px;
  text-align: center;
}

.closing-message p {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.8;
  color: #444;
  font-weight: 500;
}

.closing-headline {
  font-size: 20px !important;
  font-weight: 900;
  color: var(--color-text) !important;
  margin-bottom: 16px !important;
}

.closing-emphasis {
  font-size: 16px !important;
  font-weight: 800;
  color: #ff7eb9 !important;
  margin: 20px 0 !important;
}

.action-buttons {
  margin-top: 28px;
}

/* ===== Learn More Block ===== */
.learn-more-block {
  margin: 28px 0 24px;
  display: flex;
  justify-content: center;
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  background: #1a1a1a;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  border: 2px solid #1a1a1a;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.learn-more-btn:hover {
  transform: translateY(-2px);
  background: #ff7eb9;
  border-color: #ff7eb9;
  box-shadow: 0 8px 22px rgba(255, 126, 185, 0.35);
}

.learn-more-btn .btn-arrow {
  transition: transform 0.2s ease;
}

.learn-more-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--color-text);
  color: white;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1100;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .container {
    border-radius: 0;
    padding: 28px 20px;
  }

  .start-container {
    padding: 36px 20px;
  }

  .title-main {
    font-size: 26px;
  }

  .title-sub {
    font-size: 22px;
  }

  .question-text {
    font-size: 17px;
  }

  .result-type-name {
    font-size: 32px;
  }

  .monsters-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .monster-card {
    padding: 8px;
    border-radius: 14px;
  }

  .monster-card img {
    border-radius: 10px;
  }

  .monster-card-name {
    font-size: 11px;
  }

  .monster-card-value {
    font-size: 10px;
  }

  .share-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .meta-info {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .deco {
    font-size: 22px;
  }
}

@media (max-width: 400px) {
  .monsters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== アンケートページ ===== */
.survey-header {
  text-align: center;
  margin-bottom: 32px;
}

.survey-label {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.survey-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.survey-lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft, #666);
}

.survey-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.survey-field {
  border: none;
  padding: 0;
  margin: 0;
}

.survey-field legend {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.survey-field .req {
  display: inline-block;
  background: #ff7eb9;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  appearance: none;
  border: 2px solid #e0e0e0;
  background: #fff;
  color: #444;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.chip:hover {
  border-color: #ff7eb9;
  color: #ff7eb9;
}

.chip.selected {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.chip-group.multi .chip.selected {
  background: #ff7eb9;
  border-color: #ff7eb9;
}

.children-only[hidden] {
  display: none;
}

.survey-error {
  color: #d6336c;
  background: #fff0f5;
  border: 1px solid #ffcadb;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

#survey-submit {
  margin-top: 8px;
}

#survey-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
