@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --primary: #E91E8C;
  --primary-light: #FF6BB5;
  --secondary: #6C35DE;
  --gradient: linear-gradient(135deg, #E91E8C 0%, #6C35DE 100%);
  --bg: #F2F3F8;
  --card: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --success-bg: #ECFDF5;
  --success-text: #065F46;
  --success-border: #6EE7B7;
  --warn-bg: #FFFBEB;
  --warn-text: #92400E;
  --warn-border: #FCD34D;
  --info-bg: #EFF6FF;
  --info-text: #1E40AF;
  --info-border: #93C5FD;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.page-container {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 48px;
}

/* ── HERO (index) ───────────────────────────── */
.hero {
  background: var(--gradient);
  padding: 28px 24px 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero-photo-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.55);
  margin: 0 auto 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-photo-placeholder { font-size: 60px; opacity: 0.75; }

.hero-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.hero-name-en {
  font-size: 13px;
  opacity: 0.8;
  letter-spacing: 2px;
  margin-top: 2px;
}
.hero-show {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 100px;
}

.hero-message {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 10px 16px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
}

/* ── PAGE HEADER (subpages) ─────────────────── */
.page-header {
  background: var(--gradient);
  padding: 20px 16px 28px;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-bottom: 14px;
  position: relative;
}
.page-header h1 {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  position: relative;
}
.page-header .page-subtitle {
  font-size: 13px;
  opacity: 0.82;
  margin-top: 6px;
  position: relative;
}
.vote-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  margin-top: 10px;
  position: relative;
}

/* ── CONTENT AREA ───────────────────────────── */
.content { padding: 20px 16px 0; }

/* ── CHOICE BUTTONS ─────────────────────────── */
.choice-btn {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  gap: 14px;
  transition: border-color 0.18s, transform 0.12s;
}
.choice-btn:active {
  transform: scale(0.98);
  border-color: var(--primary);
}
.choice-btn .btn-emoji { font-size: 38px; flex-shrink: 0; }
.choice-btn .btn-content { flex: 1; }
.choice-btn .btn-title { font-size: 17px; font-weight: 700; }
.choice-btn .btn-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.55; }
.choice-btn .btn-arrow { font-size: 22px; color: var(--primary); flex-shrink: 0; }

/* ── SECTION LABEL ──────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 0 10px 2px;
}

/* ── STEP CARDS ─────────────────────────────── */
.step-card {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
}
.step-num {
  width: 38px;
  height: 38px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(233,30,140,0.3);
}
.step-title { font-size: 16px; font-weight: 700; }
.step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}
.tag-free { background: #DCFCE7; color: #166534; }
.tag-skip { background: #F3F4F6; color: #6B7280; }

.step-body {
  padding: 0 18px 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}
.step-body strong { color: var(--text); }

/* image placeholder inside step */
.img-placeholder {
  margin: 4px 18px 14px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  background: #FAFAFA;
  color: var(--text-muted);
}
.img-placeholder .ph-icon { font-size: 26px; margin-bottom: 5px; }
.img-placeholder p { font-size: 12px; line-height: 1.5; }

/* actual image inside step */
.step-img {
  display: block;
  width: calc(100% - 36px);
  margin: 4px 18px 14px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* ── LINK BUTTONS ───────────────────────────── */
.btn-wrap { padding: 2px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.btn-wrap.row { flex-direction: row; }

.lnk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s;
}
.lnk-btn:active { opacity: 0.88; transform: scale(0.97); }
.lnk-btn.primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(233,30,140,0.28);
}
.lnk-btn.outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.lnk-btn.apple {
  background: #111;
  color: white;
  flex: 1;
}
.lnk-btn.android {
  background: #01875F;
  color: white;
  flex: 1;
}

/* ── NOTICE BOXES ───────────────────────────── */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-bottom: 10px;
}
.notice-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.notice-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.notice-body { font-size: 13px; line-height: 1.65; }
.notice.success { background: var(--success-bg); border-left: 4px solid var(--success-border); color: var(--success-text); }
.notice.warning { background: var(--warn-bg); border-left: 4px solid var(--warn-border); color: var(--warn-text); }
.notice.info    { background: var(--info-bg);  border-left: 4px solid var(--info-border);  color: var(--info-text); }

/* ── BAND ───────────────────────────────────── */
.band {
  background: var(--gradient);
  color: white;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  text-align: center;
}
.band-big { font-size: 22px; font-weight: 900; line-height: 1.3; }
.band-sub { font-size: 13px; opacity: 0.85; margin-top: 4px; }

/* ── DIVIDER ────────────────────────────────── */
.divider { border: none; border-top: 2px dashed var(--border); margin: 20px 0; }

/* ── FOOTER ─────────────────────────────────── */
.footer {
  text-align: center;
  padding: 28px 16px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer a { color: var(--primary); text-decoration: none; font-weight: 700; }

/* ── MISC ───────────────────────────────────── */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.center { text-align: center; }
