/* ========================================
   AI伴走アカウント設計キット
   ポップ×インスタグラデーション デザイン v2
   ======================================== */

:root {
  --ig-purple: #7C3AED;
  --ig-magenta: #C026D3;
  --ig-pink: #EC4899;
  --ig-orange: #F97316;
  --ig-yellow: #FACC15;
  --ig-coral: #FB7185;
  --pop-yellow: #FFE55C;
  --pop-cream: #FFF8E1;
  --pop-mint: #5EEAD4;
  --pop-sky: #60A5FA;
  --pop-lime: #BEF264;
  --c-rikopin: #EF4444;
  --c-syake: #60A5FA;
  --c-erena: #F59E0B;
  --c-akkun: #6366F1;
  --c-nami: #10B981;
  --text: #1F2937;
  --text-light: #6B7280;
  --text-mute: #9CA3AF;
  --bg: #FFF8F0;
  --bg-soft: #FEF3F2;
  --card: #FFFFFF;
  --border: #FCE7F3;
  --gradient-ig: linear-gradient(135deg, #7C3AED 0%, #C026D3 25%, #EC4899 50%, #F97316 80%, #FACC15 100%);
  --gradient-ig-soft: linear-gradient(135deg, #F3E8FF 0%, #FCE7F3 40%, #FFE4C7 80%, #FEF9C3 100%);
  --gradient-warm: linear-gradient(135deg, #F97316 0%, #EC4899 100%);
  --gradient-cool: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --gradient-sunset: linear-gradient(135deg, #EC4899 0%, #FACC15 100%);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(236, 72, 153, 0.12);
  --shadow-lg: 0 20px 60px rgba(124, 58, 237, 0.2);
  --shadow-pop: 0 10px 30px rgba(249, 115, 22, 0.25);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 10% 5%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(250, 204, 21, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(124, 58, 237, 0.06) 0%, transparent 45%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}
body::before, body::after {
  content: ''; position: fixed; border-radius: 50%;
  filter: blur(80px); opacity: 0.5; z-index: -1; pointer-events: none;
}
body::before {
  width: 320px; height: 320px; background: var(--gradient-warm);
  top: -100px; right: -100px; animation: float-slow 18s ease-in-out infinite;
}
body::after {
  width: 260px; height: 260px; background: var(--gradient-cool);
  bottom: -80px; left: -80px; animation: float-slow 22s ease-in-out infinite reverse;
}
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

/* HEADER */
.header {
  position: relative;
  background: var(--gradient-ig);
  color: white; text-align: center;
  padding: 40px 20px 64px; overflow: hidden;
}
.header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 25%);
  pointer-events: none;
}
.header::after {
  content: ''; position: absolute;
  bottom: -1px; left: 0; right: 0; height: 40px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 30%, 0 100%);
}
.header .deco-sparkle {
  position: absolute; font-size: 20px;
  animation: sparkle-twinkle 2s ease-in-out infinite;
  pointer-events: none;
}
.header .deco-sparkle:nth-child(1) { top: 20%; left: 8%; animation-delay: 0s; }
.header .deco-sparkle:nth-child(2) { top: 60%; left: 15%; animation-delay: 0.5s; }
.header .deco-sparkle:nth-child(3) { top: 30%; right: 10%; animation-delay: 1s; font-size: 24px; }
.header .deco-sparkle:nth-child(4) { top: 70%; right: 18%; animation-delay: 1.5s; }
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}
.header .badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ig-pink);
  font-size: 11px; font-weight: 800;
  padding: 6px 16px; border-radius: 24px;
  margin-bottom: 12px; letter-spacing: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  position: relative; z-index: 1;
}
.header h1 {
  font-size: 26px; font-weight: 900; letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative; z-index: 1; line-height: 1.3;
}
.header h1 .accent {
  display: inline-block; background: var(--pop-yellow);
  color: var(--ig-purple); padding: 2px 8px; border-radius: 8px;
  transform: rotate(-2deg); margin: 0 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header p {
  font-size: 14px; opacity: 0.95; margin-top: 12px;
  position: relative; z-index: 1; font-weight: 500;
}
.hero-chars {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px; position: relative; z-index: 1;
}
.hero-char {
  width: 56px; height: 56px; border-radius: 50%;
  background: white; border: 3px solid white; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease;
  animation: bounce-in 0.6s ease backwards;
}
.hero-char:hover { transform: translateY(-6px) scale(1.1); z-index: 2; }
.hero-char img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-char.rikopin { width: 72px; height: 72px; margin-top: -6px; border-color: var(--pop-yellow); animation-delay: 0.1s; }
.hero-char.syake { animation-delay: 0.2s; }
.hero-char.erena { animation-delay: 0.3s; }
.hero-char.akkun { animation-delay: 0.4s; }
.hero-char.nami { animation-delay: 0.5s; }
@keyframes bounce-in {
  0% { opacity: 0; transform: translateY(20px) scale(0.6); }
  60% { transform: translateY(-4px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* CONTAINER */
.container { max-width: 680px; margin: 0 auto; padding: 24px 16px 60px; }

/* PROGRESS BAR */
.progress-bar {
  display: flex; justify-content: center; align-items: center;
  gap: 4px; padding: 22px 10px 8px;
  max-width: 640px; margin: 0 auto;
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -24px; position: relative; z-index: 2;
  width: calc(100% - 32px); margin-left: auto; margin-right: auto;
  flex-wrap: nowrap; /* 折り返し禁止 */
  overflow-x: auto;
}
.prog-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 1 auto; min-width: 42px; }
.prog-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: #F3F4F6; color: #9CA3AF;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 3px solid white; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.prog-dot.active {
  background: var(--gradient-ig); color: white;
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45);
  animation: pulse-ring 1.8s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45); }
  50% { box-shadow: 0 6px 28px rgba(236, 72, 153, 0.7), 0 0 0 6px rgba(236, 72, 153, 0.12); }
}
.prog-dot.done { background: linear-gradient(135deg, var(--pop-mint), #10B981); color: white; }
.prog-dot.done::after { content: '✓'; font-size: 15px; }
.prog-dot.done > * { display: none; }
.prog-label { font-size: 10px; color: var(--text-light); text-align: center; font-weight: 600; }
.prog-line { width: 14px; height: 3px; background: #E5E7EB; border-radius: 4px; margin-bottom: 22px; flex-shrink: 0; }
.prog-line.done { background: linear-gradient(90deg, var(--pop-mint), #10B981); }
#stepLabel { text-align: center; font-size: 12px; color: var(--text-light); padding: 14px 16px 6px; font-weight: 600; }

/* SECTIONS */
.section { display: none; animation: fadeUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.section.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CARDS */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 22px; margin-bottom: 18px;
  position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(236, 72, 153, 0.08);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-title { font-size: 17px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: var(--text); }
.card-title .emoji {
  font-size: 22px; display: inline-flex;
  width: 38px; height: 38px;
  background: var(--gradient-ig-soft); border-radius: 12px;
  align-items: center; justify-content: center;
}
.card-subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 16px; line-height: 1.7; }

/* CHAR INTRO */
.char-intro {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(135deg, #FFF9E6 0%, #FCE7F3 100%);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px;
  border: 2px solid #FBCFE8;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.08);
}
.char-intro .avatar {
  width: 64px; height: 64px; min-width: 64px; border-radius: 50%;
  border: 3px solid white; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden; background: white;
}
.char-intro .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.char-intro .bubble { flex: 1; position: relative; padding-top: 4px; }
.char-intro .bubble .name {
  font-size: 12px; font-weight: 800; color: var(--ig-pink);
  margin-bottom: 4px; display: flex; align-items: center; gap: 6px;
}
.char-intro .bubble .role-tag { display: none; /* removed per feedback */ }
.char-intro .bubble p { font-size: 14px; color: var(--text); line-height: 1.7; font-weight: 500; }
.char-intro.rikopin { background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%); border-color: #FCA5A5; }
.char-intro.rikopin .bubble .name { color: var(--c-rikopin); }
.char-intro.syake { background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); border-color: #BFDBFE; }
.char-intro.syake .bubble .name { color: var(--c-syake); }
.char-intro.erena { background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); border-color: #FCD34D; }
.char-intro.erena .bubble .name { color: var(--c-erena); }
.char-intro.akkun { background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%); border-color: #C7D2FE; }
.char-intro.akkun .bubble .name { color: var(--c-akkun); }
.char-intro.nami { background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%); border-color: #A7F3D0; }
.char-intro.nami .bubble .name { color: var(--c-nami); }

/* FORM */
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
textarea, input[type="text"], select {
  width: 100%; border: 2px solid #FCE7F3; border-radius: 14px;
  padding: 14px 16px; font-size: 14px; font-family: inherit;
  resize: vertical; transition: all 0.2s; background: #FFFDFC; color: var(--text);
}
textarea:focus, input[type="text"]:focus, select:focus {
  outline: none; border-color: var(--ig-pink);
  background: white; box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}
textarea { min-height: 88px; }
.field { margin-bottom: 18px; }
.field-hint { font-size: 11px; color: var(--text-light); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.field-hint::before { content: '💡'; font-size: 12px; }

/* BUTTONS */
.btn {
  display: block; width: 100%; padding: 16px 20px; border: none;
  border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer;
  transition: all 0.2s; font-family: inherit; letter-spacing: 0.02em;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%); transition: transform 0.6s;
}
.btn:hover::before { transform: translateX(100%); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gradient-ig); color: white; box-shadow: 0 10px 24px rgba(236, 72, 153, 0.35); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(236, 72, 153, 0.5); transform: translateY(-2px); }
.btn-secondary { background: var(--gradient-cool); color: white; box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3); }
.btn-copy { background: linear-gradient(135deg, #FEF3C7, #FCD34D); color: #92400E; border: 2px solid #F59E0B; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2); }
.btn-outline { background: white; border: 2px solid var(--ig-pink); color: var(--ig-pink); box-shadow: 0 4px 12px rgba(236, 72, 153, 0.1); }
.btn-outline:hover { background: #FCE7F3; }
.btn-next { background: linear-gradient(135deg, var(--pop-mint), #10B981); color: white; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }
.btn-excel { background: linear-gradient(135deg, #22C55E, #15803D); color: white; box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3); }
.btn + .btn { margin-top: 12px; }

/* PROMPT BOX */
.prompt-box {
  background: linear-gradient(135deg, #1E1B4B 0%, #4C1D95 100%);
  color: #E0E7FF; border-radius: 16px; padding: 20px;
  font-size: 12px; line-height: 1.8; max-height: 320px;
  overflow-y: auto; white-space: pre-wrap; word-break: break-all;
  margin-bottom: 16px; font-family: 'SF Mono', 'Menlo', monospace;
  position: relative; border: 2px solid rgba(236, 72, 153, 0.3);
}
.prompt-box::-webkit-scrollbar { width: 8px; }
.prompt-box::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
.prompt-box::-webkit-scrollbar-thumb { background: rgba(236, 72, 153, 0.5); border-radius: 4px; }
.copy-success {
  text-align: center; color: #10B981; font-weight: 800; font-size: 14px;
  padding: 10px; display: none; background: #D1FAE5;
  border-radius: 12px; margin-bottom: 12px;
}

/* HOW-TO */
.howto {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 14px; padding: 10px 14px;
  background: #FEFCE8; border-radius: 12px;
  border-left: 4px solid var(--ig-yellow);
}
.howto-num {
  width: 32px; height: 32px; min-width: 32px; border-radius: 50%;
  background: var(--gradient-ig); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}
.howto-text { font-size: 14px; line-height: 1.7; padding-top: 4px; color: var(--text); }

/* REPORT */
.report-header {
  background: var(--gradient-ig); color: white;
  border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; margin-bottom: 20px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.report-header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.15) 0%, transparent 25%);
}
.report-header .badge {
  display: inline-block; background: rgba(255, 255, 255, 0.95);
  color: var(--ig-pink); font-size: 11px; font-weight: 800;
  padding: 6px 16px; border-radius: 24px; margin-bottom: 12px;
  letter-spacing: 2px; position: relative; z-index: 1;
}
.report-header h2 {
  font-size: 22px; margin-top: 8px; font-weight: 900;
  position: relative; z-index: 1; text-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.report-header p { font-size: 13px; opacity: 0.95; position: relative; z-index: 1; margin-top: 6px; }
.report-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 20px;
  margin-bottom: 16px; border-left: 5px solid var(--ig-pink);
  position: relative; transition: transform 0.2s;
}
.report-card:hover { transform: translateX(2px); }
.report-card.purple { border-left-color: var(--ig-purple); }
.report-card.green { border-left-color: #10B981; }
.report-card.pink { border-left-color: var(--ig-pink); }
.report-card.orange { border-left-color: var(--ig-orange); }
.report-card.yellow { border-left-color: var(--ig-yellow); }
.report-card.navy { border-left-color: #3730A3; }
.report-card-label {
  font-size: 10px; font-weight: 800; color: var(--ig-pink);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
  display: inline-block; padding: 3px 10px;
  background: #FCE7F3; border-radius: 8px;
}
.report-card.purple .report-card-label { color: var(--ig-purple); background: #EDE9FE; }
.report-card.green .report-card-label { color: #059669; background: #D1FAE5; }
.report-card.pink .report-card-label { color: var(--ig-pink); background: #FCE7F3; }
.report-card.orange .report-card-label { color: var(--ig-orange); background: #FED7AA; }
.report-card.yellow .report-card-label { color: #A16207; background: #FEF3C7; }
.report-card.navy .report-card-label { color: #3730A3; background: #E0E7FF; }
.report-card h3 { font-size: 17px; margin-bottom: 10px; font-weight: 800; }
.report-card p, .report-card li { font-size: 14px; line-height: 1.9; color: #374151; }
.report-card ul { padding-left: 18px; }
.profile-box {
  background: linear-gradient(135deg, #FDF4FF 0%, #FAE8FF 100%);
  border-radius: 14px; padding: 18px; margin-top: 10px;
  font-size: 14px; line-height: 1.9; white-space: pre-line;
  border: 1px dashed #D946EF;
}

/* NEXT STEP BANNER */
.next-step-banner {
  background: var(--gradient-ig-soft);
  border: 3px dashed var(--ig-pink);
  border-radius: var(--radius-lg); padding: 24px 20px;
  text-align: center; margin-top: 20px; position: relative;
}
.next-step-banner::before {
  content: '✨'; position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%); background: white;
  padding: 4px 16px; border-radius: 24px; font-size: 18px;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}
.next-step-banner h3 {
  font-size: 16px; background: var(--gradient-ig);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 10px; font-weight: 900;
}
.next-step-banner p { font-size: 13px; color: var(--text); margin-bottom: 14px; line-height: 1.7; }
.next-step-banner .btn { max-width: 320px; margin: 0 auto; }

/* HUB CARD */
.hub-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 18px; margin-bottom: 14px;
  display: flex; gap: 14px; align-items: center;
  text-decoration: none; color: var(--text);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer; border: 2px solid transparent;
  position: relative; overflow: hidden;
}
.hub-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 6px; background: var(--gradient-ig);
}
.hub-card:hover {
  transform: translateY(-4px) translateX(2px);
  box-shadow: 0 14px 40px rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.2);
}
.hub-card .char-avatar {
  width: 64px; height: 64px; min-width: 64px; border-radius: 50%;
  background:
    linear-gradient(white, white) padding-box,
    var(--gradient-ig) border-box;
  border: 3px solid transparent; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12); position: relative;
}
.hub-card .char-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; border-radius: 50%;
}
.hub-card .info { flex: 1; min-width: 0; }
.step-pill {
  display: inline-block; font-size: 10px; font-weight: 900;
  letter-spacing: 1.5px; padding: 3px 10px; border-radius: 8px;
  background: var(--gradient-ig); color: white; margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
}
.step-pill.final {
  background: linear-gradient(135deg, var(--ig-yellow) 0%, var(--ig-orange) 50%, var(--ig-pink) 100%);
  padding: 4px 12px; font-size: 11px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}
.hub-card .info .char-name { font-size: 11px; font-weight: 700; color: var(--ig-pink); margin-bottom: 2px; letter-spacing: 0.5px; }

/* Output label pill inside step card (moved up from between cards) */
.step-output-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFF4D6 0%, #FCE7F3 100%);
  color: var(--ig-pink);
  border: 1px solid #F9A8D4;
  margin-top: 6px;
  box-shadow: 0 2px 6px rgba(236, 72, 153, 0.08);
}
.step-output-label::before { content: '→ '; opacity: 0.6; }

.hub-card .info h3 { font-size: 16px; margin-bottom: 4px; font-weight: 800; color: var(--text); line-height: 1.4; }
.hub-card .info p { font-size: 12px; color: var(--text-light); line-height: 1.6; }
.hub-card .arrow { font-size: 22px; color: var(--ig-pink); transition: transform 0.25s; font-weight: 900; }
.hub-card:hover .arrow { transform: translateX(6px); }
.hub-card.locked { opacity: 0.5; }

/* FLOW ARROW */
.flow-arrow {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; font-size: 12px; padding: 6px 0;
  color: var(--text-light); font-weight: 700;
}
.flow-arrow .dot-chain { display: inline-flex; gap: 3px; }
.flow-arrow .dot-chain span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gradient-ig);
  animation: dot-flow 1.6s ease-in-out infinite;
}
.flow-arrow .dot-chain span:nth-child(2) { animation-delay: 0.2s; }
.flow-arrow .dot-chain span:nth-child(3) { animation-delay: 0.4s; }
.flow-arrow .pill {
  background: white; padding: 4px 12px; border-radius: 16px;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
  color: var(--ig-pink); font-weight: 800; font-size: 11px;
}
@keyframes dot-flow {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* USAGE CARD */
.usage-card {
  background: linear-gradient(135deg, #FFF9E6 0%, #FCE7F3 50%, #E0E7FF 100%);
  border: 2px solid #FBCFE8;
  border-radius: var(--radius-lg);
  padding: 24px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.usage-card::before {
  content: '🎯'; position: absolute; top: -20px; right: -20px;
  font-size: 100px; opacity: 0.08; transform: rotate(-15deg);
}

/* CELEBRATION CTA */
.celebration-cta {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 229, 92, 0.35) 0%, transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(94, 234, 212, 0.3) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(250, 204, 21, 0.25) 0%, transparent 40%),
    linear-gradient(135deg, #FFE5F0 0%, #FFEDD5 35%, #FEF9C3 65%, #E0F2FE 100%);
  border-radius: 32px; padding: 40px 20px 32px; margin-top: 28px;
  text-align: center; overflow: hidden;
  box-shadow: 0 20px 60px rgba(236, 72, 153, 0.18);
  border: 3px solid white;
}
.celebration-cta::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 180px; height: 180px; background: var(--gradient-ig);
  border-radius: 50%; opacity: 0.12; filter: blur(40px);
}
.celebration-cta::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 160px; height: 160px; background: var(--gradient-warm);
  border-radius: 50%; opacity: 0.15; filter: blur(30px);
}
.celebration-burst {
  font-size: 54px; margin-bottom: 8px; display: inline-block;
  animation: burst 1.8s ease-in-out infinite;
  filter: drop-shadow(0 6px 16px rgba(249, 115, 22, 0.35));
}
@keyframes burst {
  0%, 100% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.15) rotate(-8deg); }
  40% { transform: scale(1.08) rotate(6deg); }
  60% { transform: scale(1.12) rotate(-4deg); }
}
.celebration-sparkles { position: absolute; inset: 0; pointer-events: none; }
.celebration-sparkles span {
  position: absolute; font-size: 22px;
  animation: float-star 4s ease-in-out infinite; opacity: 0.85;
}
.celebration-sparkles span:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.celebration-sparkles span:nth-child(2) { top: 18%; right: 10%; animation-delay: 0.7s; font-size: 26px; }
.celebration-sparkles span:nth-child(3) { top: 55%; left: 5%; animation-delay: 1.3s; }
.celebration-sparkles span:nth-child(4) { top: 65%; right: 6%; animation-delay: 0.3s; font-size: 24px; }
.celebration-sparkles span:nth-child(5) { bottom: 20%; left: 15%; animation-delay: 1.8s; font-size: 20px; }
.celebration-sparkles span:nth-child(6) { bottom: 12%; right: 18%; animation-delay: 1s; font-size: 28px; }
@keyframes float-star {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  50% { transform: translateY(-14px) rotate(15deg); opacity: 1; }
}
.celebration-cta > *:not(.celebration-sparkles) { position: relative; z-index: 1; }
.celebration-cta .ribbon {
  display: inline-block; background: white; color: var(--ig-pink);
  padding: 6px 16px; border-radius: 24px; font-size: 11px;
  font-weight: 900; letter-spacing: 2px; margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.2);
  border: 2px solid var(--ig-pink);
}
.celebration-cta h3 {
  font-size: 22px; font-weight: 900; margin-bottom: 14px;
  line-height: 1.5; background: var(--gradient-ig);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.celebration-cta > p { font-size: 13px; line-height: 1.9; color: var(--text); margin-bottom: 24px; }
.team-cheer {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  padding: 20px 4px; background: white; border-radius: 24px;
  box-shadow: inset 0 2px 10px rgba(236, 72, 153, 0.06);
  margin-bottom: 20px; position: relative;
}
.cheer-char {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; text-align: center;
  animation: cheer-bounce 2.5s ease-in-out infinite;
}
.cheer-char:nth-child(1) { animation-delay: 0s; }
.cheer-char:nth-child(2) { animation-delay: 0.15s; }
.cheer-char:nth-child(3) { animation-delay: 0.3s; }
.cheer-char:nth-child(4) { animation-delay: 0.45s; }
.cheer-char:nth-child(5) { animation-delay: 0.6s; }
@keyframes cheer-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.cheer-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background:
    linear-gradient(white, white) padding-box,
    var(--gradient-ig) border-box;
  border: 3px solid transparent; overflow: hidden;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.25);
}
.cheer-char.center .cheer-avatar {
  width: 68px; height: 68px; border-width: 4px;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.45);
  transform: translateY(-4px);
}
.cheer-char.center { position: relative; }
.cheer-char.center::before {
  content: '👑'; position: absolute; top: -18px; left: 50%;
  transform: translateX(-50%); font-size: 20px;
  filter: drop-shadow(0 3px 6px rgba(249, 115, 22, 0.45));
  animation: crown-bob 2.2s ease-in-out infinite;
}
@keyframes crown-bob {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-4deg); }
  50% { transform: translateX(-50%) translateY(-3px) rotate(4deg); }
}
.cheer-char.center .cheer-name { color: var(--ig-purple); font-size: 11px; }
.cheer-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.cheer-name { font-size: 10px; font-weight: 800; color: var(--ig-pink); letter-spacing: 0.3px; }
.cheer-line { font-size: 9px; color: var(--text-light); font-weight: 600; line-height: 1.4; }
.team-closing {
  font-size: 13px !important; font-weight: 700 !important;
  color: var(--ig-purple) !important; margin-bottom: 0 !important;
  padding-top: 4px;
}

/* SAVE OPTIONS */
.save-options {
  background: white; border-radius: 20px; padding: 20px 16px;
  margin-top: 16px; box-shadow: var(--shadow);
  border: 2px solid var(--border);
}
.save-options-title {
  font-size: 13px; font-weight: 800; color: var(--ig-purple);
  text-align: center; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.save-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.save-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 14px 8px;
  border: 2px solid var(--border); border-radius: 14px;
  background: #FFFDFC; cursor: pointer; transition: all 0.2s;
  font-family: inherit; color: var(--text);
}
.save-btn:hover {
  border-color: var(--ig-pink); background: #FFF5F9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.15);
}
.save-btn .icon { font-size: 24px; }
.save-btn .label { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.3; }

/* YEARLY CARD (index bottom - simple original style + 5 characters) */
.yearly-card {
  background: linear-gradient(135deg, #FFF9E6 0%, #FCE7F3 60%, #EDE9FE 100%);
  border: 2px solid #FBCFE8;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.1);
}
.yearly-avatars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 4px;
}
.yearly-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    linear-gradient(white, white) padding-box,
    var(--gradient-ig) border-box;
  border: 3px solid transparent;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
  transition: transform 0.2s;
}
.yearly-avatar.center {
  width: 64px;
  height: 64px;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.3);
}
.yearly-avatar:hover { transform: translateY(-4px); }
.yearly-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* TOP LINK (footer on step pages) */
.top-link { padding-bottom: 4px; }
.top-link-btn {
  display: inline-block;
  padding: 10px 22px;
  background: white;
  color: var(--ig-pink);
  text-decoration: none;
  border: 2px solid var(--ig-pink);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.1);
}
.top-link-btn:hover {
  background: var(--ig-pink);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.25);
}

/* BACK TO TOP (header-adjacent persistent link, visible on all sections) */
.back-to-top {
  max-width: 720px;
  margin: 16px auto 0;
  padding: 0 20px;
  text-align: left;
  position: relative;
  z-index: 5;
  line-height: 1.4;
}
.back-to-top a,
.back-to-top a:link,
.back-to-top a:visited {
  display: inline-block !important;
  padding: 10px 22px !important;
  background: #ffffff !important;
  color: #EC4899 !important;
  text-decoration: none !important;
  border: 2px solid #EC4899 !important;
  border-radius: 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-indent: 0 !important;
  text-transform: none !important;
  box-shadow: 0 3px 10px rgba(236, 72, 153, 0.18);
  transition: all 0.18s ease;
}
.back-to-top a:hover {
  background: #EC4899 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* RETURN TO STEP 5 (only shown when ?view=report — i.e. user came from STEP 5 review nav) */
.return-to-step5 {
  margin-top: 24px;
  padding: 18px 16px;
  background: linear-gradient(135deg, #FFF5F8 0%, #F3EFFF 100%);
  border: 2px solid rgba(236, 72, 153, 0.25);
  border-radius: 16px;
  text-align: center;
}
.return-to-step5 a {
  display: inline-block;
  padding: 10px 22px;
  background: var(--ig-pink);
  color: #ffffff;
  text-decoration: none;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
  transition: all 0.18s ease;
}
.return-to-step5 a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35);
}
.return-to-step5-note {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* REPORT NAV CARD (step5 final → past step reports) */
.report-nav-card {
  background: linear-gradient(135deg, #FFF5F8 0%, #F3EFFF 100%);
  border-radius: 20px;
  padding: 24px 20px;
  margin: 24px 0;
  border: 2px solid rgba(236, 72, 153, 0.15);
  box-shadow: 0 6px 18px rgba(132, 94, 194, 0.08);
}
.report-nav-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ig-purple);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-nav-card-subtitle {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}
.report-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.report-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
}
.report-nav-item.available {
  background: white;
  border-color: rgba(132, 94, 194, 0.25);
  color: var(--text);
  cursor: pointer;
}
.report-nav-item.available:hover {
  border-color: var(--ig-purple);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(132, 94, 194, 0.15);
}
.report-nav-item.unavailable {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.06);
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.7;
}
.report-nav-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ig-pink);
}
.report-nav-item.unavailable .report-nav-step {
  color: var(--text-light);
}
.report-nav-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.report-nav-status {
  font-size: 11px;
  margin-top: 2px;
}
.report-nav-status.ok { color: #7EB09B; }
.report-nav-status.ng { color: #E8829B; }
@media (max-width: 480px) {
  .report-nav-grid { grid-template-columns: 1fr; }
}

/* CONFETTI */
#confetti { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; }

/* LOADING */
.loading { text-align: center; padding: 40px 20px; }
.loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid #FCE7F3;
  border-top-color: var(--ig-pink); border-right-color: var(--ig-orange);
  border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* AUTO-SAVE */
.autosave-notice {
  background: linear-gradient(135deg, #10B981, #059669); color: white;
  text-align: center; padding: 12px 16px; border-radius: 14px;
  font-size: 13px; font-weight: 700; margin-bottom: 14px;
  animation: fadeUp 0.4s ease;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

@media print {
  .header, .progress-bar, .no-print, body::before, body::after { display: none !important; }
  .section { display: block !important; }
  .report-card { break-inside: avoid; box-shadow: none; border: 1px solid #EEE; }
  body { background: white; }
}

/* ========================================
   RESPONSIVE: Tablet and large mobile (481〜768px)
   ======================================== */
@media (max-width: 768px) {
  .container { padding: 20px 14px 50px; max-width: 100%; }
  body { overflow-x: hidden; }
}

/* ========================================
   RESPONSIVE: Standard mobile (iPhone各種含む 〜480px)
   ======================================== */
@media (max-width: 480px) {
  /* Header */
  .header { padding: 28px 14px 52px; }
  .header h1 { font-size: 21px; line-height: 1.4; }
  .header h1 .accent { padding: 1px 7px; }
  .header p { font-size: 12px; margin-top: 10px; padding: 0 8px; }
  .header .badge { font-size: 10px; padding: 5px 14px; margin-bottom: 10px; }

  /* Hero chars */
  .hero-char { width: 44px; height: 44px; border-width: 2.5px; }
  .hero-char.rikopin { width: 56px; height: 56px; margin-top: -5px; }
  .hero-chars { gap: 5px; margin-top: 18px; }

  /* Deco sparkles - hide some to reduce clutter */
  .header .deco-sparkle:nth-child(3),
  .header .deco-sparkle:nth-child(4) { font-size: 16px; }
  .header .deco-sparkle:nth-child(1),
  .header .deco-sparkle:nth-child(2) { font-size: 14px; }

  /* Container */
  .container { padding: 18px 12px 40px; }

  /* Progress bar - fit 6 dots in one line for STEP1 */
  .prog-label { display: none; }
  .progress-bar { padding: 14px 8px; gap: 3px; width: calc(100% - 24px); border-radius: 16px; }
  .prog-dot { width: 28px; height: 28px; font-size: 11px; border-width: 2px; }
  .prog-step { min-width: 28px; }
  .prog-line { width: 6px; height: 2px; margin-bottom: 0; }
  .prog-dot.done::after { font-size: 12px; }
  #stepLabel { font-size: 11px; padding: 12px 14px 4px; }

  /* Cards */
  .card { padding: 18px 14px; border-radius: 16px; }
  .card-title { font-size: 15px; gap: 8px; }
  .card-title .emoji { width: 32px; height: 32px; font-size: 18px; border-radius: 10px; }
  .card-subtitle { font-size: 12px; }

  /* Char intro */
  .char-intro { padding: 14px 12px; gap: 10px; border-radius: 16px; border-width: 1.5px; }
  .char-intro .avatar { width: 52px; height: 52px; min-width: 52px; border-width: 2.5px; }
  .char-intro .bubble .name { font-size: 11px; }
  .char-intro .bubble p { font-size: 13px; line-height: 1.6; }

  /* Form */
  label { font-size: 12px; margin-bottom: 6px; }
  textarea, input[type="text"], select { padding: 12px 14px; font-size: 14px; border-radius: 12px; }
  textarea { min-height: 80px; }
  .field-hint { font-size: 10px; }

  /* Buttons */
  .btn { padding: 14px 16px; font-size: 15px; border-radius: 14px; }

  /* Prompt box */
  .prompt-box { padding: 14px 12px; font-size: 11px; border-radius: 12px; max-height: 260px; }

  /* How-to */
  .howto { padding: 9px 12px; gap: 10px; }
  .howto-num { width: 28px; height: 28px; min-width: 28px; font-size: 12px; }
  .howto-text { font-size: 13px; line-height: 1.6; }

  /* Report */
  .report-header { padding: 24px 18px; border-radius: 22px; }
  .report-header h2 { font-size: 19px; }
  .report-header p { font-size: 12px; }
  .report-card { padding: 18px 16px; border-radius: 16px; }
  .report-card h3 { font-size: 15px; }
  .report-card p, .report-card li { font-size: 13px; line-height: 1.8; }
  .report-card-label { font-size: 9px; padding: 2px 8px; }

  /* Usage card / Yearly card */
  .usage-card, .yearly-card { padding: 20px 16px; border-radius: 22px; }
  .usage-card p, .yearly-card p { font-size: 13px; line-height: 1.8; }

  /* Hub card */
  .hub-card { padding: 14px 12px; gap: 10px; border-radius: 16px; }
  .hub-card .char-avatar { width: 50px; height: 50px; min-width: 50px; border-width: 2.5px; }
  .hub-card .info { min-width: 0; overflow: hidden; }
  .hub-card .info h3 { font-size: 14px; }
  .hub-card .info p { font-size: 11px; line-height: 1.5; }
  .hub-card .info .char-name { font-size: 10px; }
  .hub-card .arrow { font-size: 18px; }
  .step-pill { font-size: 9px; padding: 2px 8px; }
  .step-output-label { font-size: 9px; padding: 2px 8px; margin-top: 5px; }

  /* Flow arrow (only if still in use) */
  .flow-arrow .pill { font-size: 10px; padding: 3px 10px; }

  /* Celebration CTA */
  .celebration-cta { padding: 28px 12px 22px; border-radius: 22px; border-width: 2px; }
  .celebration-cta h3 { font-size: 18px; line-height: 1.5; }
  .celebration-cta > p { font-size: 12px; line-height: 1.8; margin-bottom: 18px; }
  .celebration-cta .ribbon { font-size: 10px; padding: 5px 12px; }
  .celebration-burst { font-size: 42px; }
  .celebration-sparkles span { font-size: 16px !important; }
  .team-closing { font-size: 12px !important; }

  /* Team cheer */
  .team-cheer { grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 14px 3px; border-radius: 18px; }
  .cheer-char { gap: 2px; }
  .cheer-avatar { width: 40px; height: 40px; border-width: 2px; }
  .cheer-char.center .cheer-avatar { width: 50px; height: 50px; border-width: 2.5px; }
  .cheer-char.center::before { font-size: 14px; top: -11px; }
  .cheer-name { font-size: 8.5px; letter-spacing: 0; }
  .cheer-line { font-size: 8px; line-height: 1.25; }

  /* Next step banner */
  .next-step-banner { padding: 20px 14px; border-radius: 22px; }
  .next-step-banner h3 { font-size: 14px; }
  .next-step-banner p { font-size: 12px; }

  /* Save options */
  .save-options { padding: 16px 12px; border-radius: 16px; }
  .save-options-title { font-size: 12px; }
  .save-options-grid { gap: 6px; }
  .save-btn { padding: 10px 3px; border-radius: 12px; gap: 4px; }
  .save-btn .icon { font-size: 20px; }
  .save-btn .label { font-size: 10px; line-height: 1.2; }

  /* Yearly avatars */
  .yearly-avatars { gap: 4px; padding: 10px 0 2px; }
  .yearly-avatar { width: 42px; height: 42px; border-width: 2px; }
  .yearly-avatar.center { width: 52px; height: 52px; }

  /* TOP link */
  .top-link-btn { padding: 9px 18px; font-size: 12px; }

  /* Autosave notice */
  .autosave-notice { font-size: 12px; padding: 10px 14px; }

  /* Copy success */
  .copy-success { font-size: 13px; padding: 8px; }

  /* Profile box */
  .profile-box { padding: 14px; font-size: 13px; line-height: 1.8; }
}

/* ========================================
   RESPONSIVE: Small mobile (iPhone SE, 〜375px)
   ======================================== */
@media (max-width: 375px) {
  .header { padding: 24px 10px 48px; }
  .header h1 { font-size: 19px; }
  .header p { font-size: 11px; padding: 0 4px; }
  .hero-char { width: 40px; height: 40px; }
  .hero-char.rikopin { width: 50px; height: 50px; }

  .container { padding: 14px 10px 36px; }

  .prog-dot { width: 26px; height: 26px; font-size: 10px; }
  .prog-line { width: 4px; }
  .progress-bar { padding: 12px 6px; gap: 2px; }

  .card { padding: 16px 12px; }
  .card-title { font-size: 14px; }
  .card-title .emoji { width: 30px; height: 30px; font-size: 16px; }

  .char-intro { padding: 12px 10px; gap: 8px; }
  .char-intro .avatar { width: 46px; height: 46px; min-width: 46px; }
  .char-intro .bubble p { font-size: 12px; }

  .btn { padding: 13px 14px; font-size: 14px; }

  .hub-card { padding: 12px 10px; gap: 8px; }
  .hub-card .char-avatar { width: 46px; height: 46px; min-width: 46px; }
  .hub-card .info h3 { font-size: 13px; }
  .hub-card .info p { font-size: 10.5px; }

  .report-header h2 { font-size: 17px; }
  .report-card { padding: 16px 12px; }
  .report-card h3 { font-size: 14px; }
  .report-card p, .report-card li { font-size: 12.5px; }

  .celebration-cta h3 { font-size: 16px; }
  .celebration-burst { font-size: 38px; }
  .cheer-avatar { width: 36px; height: 36px; }
  .cheer-char.center .cheer-avatar { width: 46px; height: 46px; }
  .cheer-name { font-size: 8px; }
  .cheer-line { font-size: 7.5px; }

  .save-btn { padding: 9px 2px; }
  .save-btn .icon { font-size: 18px; }
  .save-btn .label { font-size: 9px; }

  .yearly-avatar { width: 38px; height: 38px; }
  .yearly-avatar.center { width: 46px; height: 46px; }

  .howto-text { font-size: 12px; }
  .howto-num { width: 26px; height: 26px; min-width: 26px; font-size: 11px; }

  .prompt-box { font-size: 10.5px; padding: 12px 10px; }
}

/* ========================================
   Very small (iPhone SE 1st gen, 〜320px safety)
   ======================================== */
@media (max-width: 320px) {
  .header h1 { font-size: 17px; }
  .hero-char { width: 36px; height: 36px; }
  .hero-char.rikopin { width: 44px; height: 44px; }
  .prog-dot { width: 24px; height: 24px; font-size: 9px; }
  .team-cheer { gap: 1px; padding: 12px 2px; }
  .cheer-avatar { width: 32px; height: 32px; }
  .cheer-char.center .cheer-avatar { width: 42px; height: 42px; }
}
