/* ===== CSS Variables ===== */
:root {
  --paper: #F6F0E1;
  --red: #B5342A;
  --navy: #1C2B4A;
  --gold: #C9A227;
  --ink: #26221C;
  --paper-dark: #EDE4CC;
  --red-dark: #8C2720;
  --red-light: #D4453A;
  --navy-light: #2A3F6B;
  --off-white: #FAF7F0;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ===== Screens ===== */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* ===== News Ticker ===== */
.ticker-wrap {
  background: var(--navy);
  overflow: hidden;
  padding: 8px 0;
  position: relative;
}
.ticker-wrap::before {
  content: '速報';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  padding: 0 12px;
  background: var(--red);
  color: white;
  font-family: 'Reggae One', cursive;
  font-size: 15px;
  display: flex;
  align-items: center;
  z-index: 2;
  letter-spacing: 0.05em;
}
.ticker-track {
  display: flex;
  animation: ticker 15s linear infinite;
  white-space: nowrap;
  padding-left: 60px;
}
.ticker-track span {
  color: white;
  font-size: 15px;
  font-weight: 500;
  padding: 0 24px;
  letter-spacing: 0.05em;
}
.ticker-track span::before { content: '▶ '; color: var(--gold); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Screen 1: Top ===== */
#screen-top { background: var(--paper); }

.top-hero {
  position: relative;
  padding: 36px 24px 0;
  max-width: 390px;
  margin: 0 auto;
}
.top-hero::before {
  content: '';
  position: absolute;
  top: 20px; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 20px, white 20px, white 40px);
}

.hero-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 28px;
}

.vertical-label {
  writing-mode: vertical-rl;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.2em;
  border-left: 2px solid var(--red);
  padding-left: 6px;
  margin-top: 4px;
  opacity: 0;
  animation: revealUp 0.6s ease forwards 0.2s;
}

.hero-title-block {
  flex: 1;
  opacity: 0;
  animation: revealUp 0.7s ease forwards 0.4s;
}

.hero-title {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-title em { font-style: normal; color: var(--red); }

.hero-subtitle {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.election-badge {
  margin-top: 16px;
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Reggae One', cursive;
  font-size: 14px;
  padding: 4px 10px;
  letter-spacing: 0.1em;
}

.hero-divider {
  margin: 20px 0 0;
  height: 3px;
  background: var(--ink);
  opacity: 0;
  animation: revealUp 0.5s ease forwards 0.7s;
}

.hero-copy {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0;
  animation: revealUp 0.6s ease forwards 0.9s;
}
/* hero-accent-inner は上部で定義済み */
.hero-copy strong { color: var(--red); font-weight: 700; }

.hero-accent {
  position: absolute;
  right: 16px; top: 48px;
  width: 80px; height: 80px;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: revealUp 0.5s ease forwards 0.3s;
}
.hero-accent-inner {
  font-family: 'Reggae One', cursive;
  font-size: 14px;
  color: var(--gold);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.cta-section {
  padding: 32px 24px 20px;
  max-width: 390px;
  margin: 0 auto;
  opacity: 0;
  animation: revealUp 0.6s ease forwards 1.1s;
}

.cta-btn {
  display: block;
  width: 100%;
  padding: 20px 24px;
  background: var(--red);
  color: white;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  letter-spacing: 0.08em;
  box-shadow: 4px 4px 0 var(--red-dark), 6px 6px 0 var(--ink);
  transition: all 0.12s ease;
  line-height: 1.4;
}
.cta-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red-dark), 8px 8px 0 var(--ink); }
.cta-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red-dark), 3px 3px 0 var(--ink); }
.cta-sub {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
  display: block;
  margin-top: 4px;
}

/* .exit-poll-note は index.html から削除済み。CSSは残すが非表示 */
.exit-poll-note { display: none; }

.sample-card-section {
  padding: 24px 24px 40px;
  max-width: 390px;
  margin: 0 auto;
  opacity: 0;
  animation: revealUp 0.6s ease forwards 1.3s;
}
.sample-card-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--navy);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.sample-card {
  background: var(--paper-dark);
  border: 2px solid var(--ink);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.sample-card::before {
  content: '認定';
  position: absolute;
  top: 10px; right: -18px;
  background: var(--red);
  color: white;
  font-family: 'Reggae One', cursive;
  font-size: 11px;
  padding: 4px 30px;
  transform: rotate(12deg);
  letter-spacing: 0.1em;
}
.sample-pct {
  font-family: 'Reggae One', cursive;
  font-size: 52px;
  color: var(--ink);
  line-height: 1;
}
.sample-pct span { font-size: 22px; color: var(--red); }
.sample-type {
  margin-top: 4px;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.sample-tag {
  margin-top: 8px;
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ===== 共通ナビヘッダー（全機能画面統一） ===== */
/* vote / candidacy / office の各ヘッダー帯に適用。高さ固定でデザイン一貫性を確保 */
.nav-header {
  background: var(--navy);
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  max-width: 390px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
/* ← トップへ戻る タイプ */
.nav-header-back {
  justify-content: flex-start;
}
.nav-back-link {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-back-link:hover { color: #fff; }
/* office タイプ */
.nav-header-office {
  justify-content: flex-start;
}
.nav-header-office .office-title {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* ===== Screen 2: Vote ===== */
#screen-vote { background: var(--paper); }

/* 投票進捗ヘッダー（nav-header ベース + 横並びコンテンツ） */
.vote-header {
  justify-content: space-between;
}
.vote-progress-label {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.vote-progress-label span {
  font-family: 'Reggae One', cursive;
  font-size: 20px;
  color: white;
}

.progress-bar-wrap {
  max-width: 390px;
  margin: 0 auto;
  height: 8px;
  background: rgba(28,43,74,0.15);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 16px, white 16px, white 24px);
  transition: width 0.4s ease;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}

.card-stage {
  max-width: 390px;
  margin: 0 auto;
  padding: 32px 24px 16px;
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
}

.aruaru-card {
  width: 100%;
  background: var(--off-white);
  border: 2px solid var(--ink);
  padding: 32px 28px;
  position: absolute;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  will-change: transform;
}
.aruaru-card::before,
.aruaru-card::after {
  content: '検';
  position: absolute;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 12px;
  color: rgba(181,52,42,0.4);
  border: 1.5px solid rgba(181,52,42,0.3);
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.aruaru-card::before { top: 8px; left: 8px; }
.aruaru-card::after { bottom: 8px; right: 8px; }

.card-no {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--navy);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.card-text {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: pre-line;
  /* 3行分の高さを固定し、あるあるの文字数でカード高さ＝ボタン位置がズレないようにする。
     3行を超える長文は JS(fitCardText) がフォントを自動縮小してこの枠に収める（高さはpx固定なので不変） */
  height: 117px; /* 26px × line-height1.5 × 3行 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  /* 見切れ対策(2重目): 長い英数URL等で横にあふれて高さが崩れるのを防ぐ＋最終的なクリップ保険 */
  word-break: break-word;
  overflow-wrap: anywhere;
}

.card-fly-left { transform: translateX(-120%) rotate(-8deg) !important; opacity: 0 !important; }
.card-fly-right { transform: translateX(120%) rotate(8deg) !important; opacity: 0 !important; }
.card-enter { animation: cardEnter 0.4s cubic-bezier(0.2, 0, 0.2, 1.4) forwards; }
@keyframes cardEnter {
  from { transform: scale(0.85) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.live-rate {
  max-width: 390px;
  margin: 0 auto;
  padding: 0 24px 24px;
  text-align: right;
}
.live-rate-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.live-rate-num {
  font-family: 'Reggae One', cursive;
  font-size: 18px;
  color: var(--gold);
}

.vote-btns {
  max-width: 390px;
  margin: 0 auto;
  padding: 8px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative; /* 投票済みスタンプの基準 */
}
/* 投票済みスタンプ（わかる/わからん両ボタンにまたがる斜めハンコ） */
.voted-stamp {
  position: absolute;
  top: 46%; left: 50%;
  transform: translate(-50%, -50%) rotate(-11deg);
  z-index: 6;
  pointer-events: none;
  font-family: 'Reggae One', cursive;
  font-size: 27px;
  letter-spacing: 0.14em;
  color: var(--red);
  background: rgba(246, 240, 225, 0.82);
  border: 4px double var(--red);
  border-radius: 10px;
  padding: 9px 26px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  box-shadow: 0 3px 12px rgba(0,0,0,0.22);
  white-space: nowrap;
}
.voted-stamp.slam { animation: stampSlam 0.46s cubic-bezier(0.2, 0.85, 0.3, 1.35) both; }
@keyframes stampSlam {
  0%   { transform: translate(-50%, -50%) rotate(-11deg) scale(2.6); opacity: 0; }
  55%  { transform: translate(-50%, -50%) rotate(-11deg) scale(0.9); opacity: 1; }
  72%  { transform: translate(-50%, -50%) rotate(-11deg) scale(1.06); }
  100% { transform: translate(-50%, -50%) rotate(-11deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .voted-stamp.slam { animation: none; }
}
.vote-btn {
  padding: 20px 12px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 22px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.12s ease;
}
.vote-btn-wakaru { background: var(--red); color: white; box-shadow: 3px 3px 0 var(--red-dark); }
.vote-btn-wakaru:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--red-dark); }
.vote-btn-wakaran { background: var(--navy); color: white; box-shadow: 3px 3px 0 #0e1928; }
.vote-btn-wakaran:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #0e1928; }
.vote-btn:active { transform: translate(2px,2px) !important; box-shadow: 1px 1px 0 !important; }
.vote-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
/* 投票後: 選択済みボタンのハイライト（single モード） */
.vote-btn.voted-choice { opacity: 1 !important; outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 2px var(--gold), 3px 3px 0 rgba(0,0,0,0.3); }

/* スワイプヒントは削除済み（#5 スワイプ投票撤去） */
.swipe-hint { display: none; }

/* ===== Screen 3: Result ===== */
#screen-result { background: var(--paper); }

.result-inner {
  max-width: 390px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  position: relative;
}

.stamp-wrap {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stamp {
  display: inline-block;
  border: 5px solid var(--red);
  color: var(--red);
  font-family: 'Reggae One', cursive;
  font-size: 32px;
  padding: 10px 20px;
  letter-spacing: 0.15em;
  transform: rotate(-8deg);
  opacity: 0;
  position: relative;
}
.stamp::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid var(--red);
  opacity: 0.3;
}
.stamp.stamp-animate { animation: stampDown 0.5s cubic-bezier(0.3, 0, 0.1, 1.6) forwards; }
@keyframes stampDown {
  0% { transform: scale(3) rotate(-8deg); opacity: 0; }
  60% { transform: scale(0.92) rotate(-8deg); opacity: 1; }
  80% { transform: scale(1.05) rotate(-8deg); opacity: 1; }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}
@keyframes screenShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.result-pct-block { text-align: center; margin-bottom: 8px; }
.result-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.result-pct {
  font-family: 'Reggae One', cursive;
  font-size: 96px;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
}
.result-pct-sign {
  font-size: 40px;
  color: var(--red);
  vertical-align: top;
  margin-top: 12px;
  display: inline-block;
}

.tasuki-wrap {
  position: relative;
  margin: 16px 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.tasuki {
  background: var(--red);
  color: white;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 22px;
  font-weight: 700;
  padding: 12px 60px;
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
  position: relative;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--red-dark), 0 4px 12px rgba(0,0,0,0.2);
}
.tasuki::before, .tasuki::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 20px;
  background: var(--red-dark);
}
.tasuki::before { left: -10px; clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.tasuki::after { right: -10px; clip-path: polygon(0 0, 100% 50%, 0 100%); }

.result-copy {
  text-align: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  margin: 12px 0;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.rare-block {
  border: 2px solid var(--gold);
  padding: 14px 16px;
  background: rgba(201,162,39,0.05);
  margin: 20px 0;
  position: relative;
}
.rare-block::before {
  content: 'レア称号';
  position: absolute;
  top: -10px; left: 12px;
  background: var(--paper);
  padding: 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.rare-text { font-size: 16px; line-height: 1.6; color: var(--ink); font-weight: 500; }
.rare-text .star { color: var(--gold); font-size: 18px; }

.spread-copy {
  text-align: center;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 24px 0;
  letter-spacing: 0.06em;
  padding: 16px;
  border-top: 1px solid rgba(28,43,74,0.2);
  border-bottom: 1px solid rgba(28,43,74,0.2);
}

.share-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  transition: all 0.12s ease;
  border-radius: 12px;
}
/* ①最上位：赤・高さ52px+ */
.share-btn-primary {
  background: var(--red);
  color: white;
  min-height: 56px;
  padding: 0 20px;
  box-shadow: 3px 3px 0 var(--red-dark);
  font-size: 18px;
}
.share-btn-primary:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--red-dark); }
/* ②X：黒 */
.share-btn-x {
  background: #000;
  color: white;
  min-height: 52px;
  padding: 0 20px;
  box-shadow: 3px 3px 0 #333;
}
.share-btn-x:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #333; }
/* ②' LINE：緑 */
.share-btn-line {
  background: #06C755;
  color: white;
  min-height: 52px;
  padding: 0 20px;
  box-shadow: 3px 3px 0 #048a3c;
  font-size: 17px;
}
.share-btn-line:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #048a3c; }
/* ③ストーリーズ：アウトライン */
.share-btn-story {
  background: transparent;
  color: var(--navy);
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--navy);
  box-shadow: none;
  font-size: 16px;
}
.share-btn-story:hover { background: rgba(28,43,74,0.06); }
.share-btn:active { transform: translate(2px,2px) !important; box-shadow: 1px 1px 0 !important; }

/* ===== コンパクトシェアバー (renderShareBar) ===== */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 12px;
}
.sb-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.12s ease;
}
.sb-btn-image {
  background: var(--red);
  color: #fff;
  box-shadow: 2px 2px 0 var(--red-dark);
  font-size: 14px;
}
.sb-btn-image:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--red-dark); }
.sb-btn-x {
  background: #000;
  color: #fff;
  box-shadow: 2px 2px 0 #333;
}
.sb-btn-x:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #333; }
.sb-btn-line {
  background: #06C755;
  color: #fff;
  box-shadow: 2px 2px 0 #048a3c;
}
.sb-btn-line:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #048a3c; }
.sb-btn-story {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.sb-btn-story:hover { background: rgba(28,43,74,0.06); }
.sb-btn:active { transform: translate(1px,1px) !important; box-shadow: none !important; }

/* ===== 投稿者専用ページ (段階6 簡素版) ===== */
.office-simple-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 32px;
  text-align: center;
}
.office-simple-heading {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.05em;
}
.office-simple-lead {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.7;
}
.office-simple-url {
  font-size: 12px;
  color: var(--navy);
  word-break: break-all;
  background: rgba(28,43,74,0.06);
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
}
.office-simple-withdrawn {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: var(--ink);
  opacity: 0.7;
}

.retry-link {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--navy);
  width: fit-content;
  margin: 0 auto 40px;
  padding-bottom: 2px;
  opacity: 0.7;
}
.retry-link:hover { opacity: 1; }

/* ===== Candidacy Form ===== */
.candidacy-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 3px solid var(--ink);
}
.candidacy-header { margin-bottom: 20px; }
.candidacy-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 18px;
  padding: 6px 14px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  line-height: 1.5;
}
.candidacy-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.candidacy-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.candidacy-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--off-white);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
  outline: none;
}
.candidacy-input:focus { border-color: var(--red); }
.candidacy-char {
  text-align: right;
  font-size: 14px;
  color: rgba(38,34,28,0.5);
  margin-top: -8px;
}
.candidacy-xid {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(38,34,28,0.3);
  background: var(--off-white);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.candidacy-xid:focus { border-color: var(--navy); }
.candidacy-submit {
  padding: 14px 20px;
  background: var(--navy);
  color: white;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 #0e1928;
  transition: all 0.12s ease;
}
.candidacy-submit:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #0e1928; }
.candidacy-submit:active { transform: translate(2px,2px); box-shadow: 1px 1px 0; }
.candidacy-note {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(38,34,28,0.5);
  letter-spacing: 0.02em;
}
.candidacy-result {
  margin-top: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.candidacy-result.success {
  background: rgba(28,43,74,0.08);
  border-left: 3px solid var(--navy);
  color: var(--navy);
}
.candidacy-result.error {
  background: rgba(181,52,42,0.06);
  border-left: 3px solid var(--red);
  color: var(--red);
}

/* ===== Live Voter Counter (LP) ===== */
.live-voter-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 14px;
  letter-spacing: 0.05em;
}
.live-voter-counter #voter-count-num {
  font-family: 'Reggae One', cursive;
  font-size: 20px;
  color: var(--gold);
}

/* ===== Micro Reward Modal ===== */
#micro-reward-modal {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}
.micro-reward-inner {
  background: var(--navy);
  color: white;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  letter-spacing: 0.05em;
  border-left: 4px solid var(--gold);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  white-space: nowrap;
  animation: microRewardIn 0.3s cubic-bezier(0.2, 0, 0.2, 1.4) forwards;
}
@keyframes microRewardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Minority Question Block ===== */
#minority-question-block {
  border: 1px solid rgba(201,162,39,0.4);
  background: rgba(201,162,39,0.05);
  padding: 12px 16px;
  margin: 16px 0;
  position: relative;
}
.minority-question-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.minority-question-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}

/* ===== Voter Serial Block ===== */
.voter-serial-block {
  text-align: center;
  font-size: 14px;
  color: rgba(38,34,28,0.55);
  letter-spacing: 0.08em;
  margin: 12px 0 4px;
}

/* ===== Footer ===== */
.app-footer {
  background: var(--ink);
  color: rgba(246,240,225,0.5);
  font-size: 14px;
  padding: 16px 24px;
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* ===== Animations ===== */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (min-width: 480px) {
  .top-hero, .vote-header, .progress-bar-wrap,
  .card-stage, .live-rate, .vote-btns,
  .cta-section, .sample-card-section {
    max-width: 480px;
  }
  .result-inner { max-width: 480px; }
}

@media (max-width: 390px) {
  .hero-title { font-size: 36px; }
  .card-text { font-size: 26px; } /* 26px = モバイル最小値、スペック上の最重要要素 */
  .result-pct { font-size: 80px; }
}

/* ===== Vote Total Counter ===== */
.vote-total-counter {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
.vote-total-label {
  font-size: 14px;
  color: rgba(246,240,225,0.55);
  letter-spacing: 0.08em;
}
.vote-total-num {
  font-family: 'Reggae One', cursive;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
}
.vote-total-unit {
  font-size: 14px;
  color: rgba(246,240,225,0.55);
  letter-spacing: 0.06em;
}
.vote-total-plus {
  position: absolute;
  top: -16px;
  right: -4px;
  font-family: 'Reggae One', cursive;
  font-size: 14px;
  color: var(--gold);
  opacity: 0;
  pointer-events: none;
}
.vote-total-plus.vote-total-plus-anim {
  animation: totalPlusOne 0.7s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}
@keyframes totalPlusOne {
  0%   { opacity: 0; transform: translateY(4px) scale(0.8); }
  20%  { opacity: 1; transform: translateY(0) scale(1.1); }
  60%  { opacity: 1; transform: translateY(-8px) scale(1); }
  100% { opacity: 0; transform: translateY(-14px) scale(0.9); }
}

/* ===== Early Exit Link ===== */
.early-exit-wrap {
  max-width: 390px;
  margin: 0 auto;
  padding: 0 24px 16px;
  text-align: center;
}
.early-exit-link {
  font-size: 14px;
  color: rgba(38,34,28,0.45);
  cursor: pointer;
  letter-spacing: 0.04em;
  border-bottom: 1px dashed rgba(38,34,28,0.3);
  padding-bottom: 1px;
}
.early-exit-link:hover { color: var(--red); border-bottom-color: var(--red); }

/* ===== Reveal Modal (post-vote disclosure) ===== */
#reveal-modal {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
  min-width: 200px;
  max-width: 300px;
}
.reveal-inner {
  background: var(--navy);
  color: white;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  animation: microRewardIn 0.3s cubic-bezier(0.2, 0, 0.2, 1.4) forwards;
}
.reveal-loading {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.reveal-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(246,240,225,0.6);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.reveal-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.reveal-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}
.reveal-rate {
  font-family: 'Reggae One', cursive;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.reveal-msg {
  font-size: 14px;
  color: rgba(246,240,225,0.75);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ===== Partial Result Note ===== */
.partial-result-note {
  text-align: center;
  font-size: 14px;
  color: rgba(38,34,28,0.5);
  letter-spacing: 0.05em;
  margin: -4px 0 12px;
}

/* ===== Live Ranking ===== */
.live-ranking-section {
  max-width: 390px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 2px solid var(--ink);
  margin-top: 8px;
}
.live-ranking-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.live-ranking-header span:last-child {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.live-ranking-subtitle {
  font-size: 14px;
  color: rgba(38,34,28,0.45);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.live-ranking-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.live-ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ranking-rank {
  font-family: 'Reggae One', cursive;
  font-size: 18px;
  color: var(--gold);
  min-width: 24px;
  text-align: right;
}
.ranking-body {
  flex: 1;
  min-width: 0;
}
.ranking-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.ranking-text-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.ranking-bar-wrap {
  height: 5px;
  background: rgba(28,43,74,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.ranking-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.2,0,0.2,1);
}
.ranking-rate {
  font-family: 'Reggae One', cursive;
  font-size: 14px;
  color: var(--red);
  min-width: 38px;
  text-align: right;
}

/* ===== UGC バッジ ===== */
/* ランキング内バッジ（注目・殿堂） */
.ranking-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}
.ranking-badge-spotlight {
  background: var(--red);
  color: white;
}
.ranking-badge-hall {
  background: var(--gold);
  color: var(--ink);
}

/* 投票カード内 新人バッジ */
.card-rookie-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
}

/* ===== 選挙事務所リンクブロック（立候補成功後） ===== */
.office-link-block {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(28,43,74,0.06);
  border: 1px solid rgba(28,43,74,0.2);
  border-radius: 2px;
}
.office-link {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  cursor: pointer;
}
.office-link:hover { color: var(--red); }
.office-copy-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--navy);
  color: white;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  transition: background 0.12s;
}
.office-copy-btn:hover { background: var(--navy-light); }
.office-save-note {
  font-size: 14px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===== あなたの立候補ブロック（結果画面） ===== */
.my-candidacies-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(28,43,74,0.15);
}
.my-candidacies-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--navy);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.my-candidacies-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.my-candidacy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--off-white);
  border: 1px solid rgba(38,34,28,0.12);
  cursor: pointer;
  transition: background 0.1s;
}
.my-candidacy-item:hover { background: var(--paper-dark); }
.my-candidacy-text {
  font-size: 14px;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-candidacy-status {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.my-candidacy-status-screening { color: rgba(38,34,28,0.45); }
.my-candidacy-status-rookie,
.my-candidacy-status-regular { color: var(--red); }
.my-candidacy-status-elected { color: var(--gold); }
.my-candidacy-status-retired { color: rgba(38,34,28,0.35); }

/* ===== Screen 4: 選挙事務所 ===== */
#screen-office { background: var(--paper); }

.office-inner {
  max-width: 390px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.office-header {
  margin-bottom: 28px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 16px;
}
.office-title {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.office-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.15em;
  margin-top: 4px;
  text-transform: uppercase;
}
.office-loading {
  font-size: 14px;
  color: rgba(38,34,28,0.5);
  letter-spacing: 0.06em;
  padding: 24px 0;
}
.office-error {
  font-size: 14px;
  color: var(--red);
  letter-spacing: 0.04em;
  padding: 16px 0;
}
.office-status {
  padding: 24px 20px;
  border: 2px solid var(--ink);
  background: var(--off-white);
  box-shadow: 4px 4px 0 var(--ink);
}
.office-status-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.office-status-main {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 8px;
}
.office-receipt {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 14px;
  padding: 3px 10px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.office-text {
  font-size: 14px;
  color: rgba(38,34,28,0.65);
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  font-style: italic;
}
.office-rate {
  font-family: 'Reggae One', cursive;
  font-size: 18px;
  color: var(--red);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.office-rate-bar-wrap {
  height: 8px;
  background: rgba(28,43,74,0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.office-rate-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.2,0,0.2,1);
}
.office-share-btn {
  display: block;
  padding: 12px 20px;
  background: #000;
  color: white;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 #333;
  transition: all 0.12s ease;
}
.office-share-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #333; }
.office-ouen-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 20px;
  background: var(--red);
  color: white;
  border: none;
  cursor: pointer;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 #7a1020;
  transition: all 0.12s ease;
}
.office-ouen-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #7a1020; }
.office-status-elected .office-status-main { color: var(--gold); }
.office-retry-link {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--navy);
  text-decoration: underline;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.office-back {
  margin-top: 32px;
}
.office-back-link {
  font-size: 14px;
  color: rgba(38,34,28,0.5);
  cursor: pointer;
  letter-spacing: 0.04em;
  border-bottom: 1px dashed rgba(38,34,28,0.3);
  padding-bottom: 1px;
}
.office-back-link:hover { color: var(--navy); }

/* candidacy-notice: LP → 立候補画面への入口ボタン化 */
.candidacy-notice {
  margin: 14px auto 0;
  max-width: 480px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: var(--navy);
  border: none;
  padding: 14px 20px;
  cursor: pointer;
  display: block;
  width: 100%;
  letter-spacing: 0.04em;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #0e1928;
  transition: all 0.12s ease;
}
.candidacy-notice:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #0e1928; }
.candidacy-notice:active { transform: translate(2px,2px); box-shadow: 1px 1px 0; }
.candidacy-notice span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  opacity: 1;
}

/* 立候補画面: screen-candidacy */
#screen-candidacy { background: var(--paper); }
.candidacy-screen-inner {
  max-width: 390px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}
.candidacy-screen-back {
  margin-bottom: 20px;
}
.candidacy-screen-back-link {
  font-size: 15px;
  color: rgba(38,34,28,0.5);
  cursor: pointer;
  letter-spacing: 0.04em;
  border-bottom: 1px dashed rgba(38,34,28,0.3);
  padding-bottom: 1px;
}
.candidacy-screen-back-link:hover { color: var(--navy); }

/* 結果画面→立候補画面CTA */
.result-candidacy-cta {
  display: block;
  width: 100%;
  margin: 16px 0 8px;
  padding: 14px 20px;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 #0e1928;
  transition: all 0.12s ease;
}
.result-candidacy-cta:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #0e1928; }
.result-candidacy-cta:active { transform: translate(2px,2px); box-shadow: 1px 1px 0; }

/* わかる/わからん 票数表示（like風UX） */
.vote-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 6px;
}
.vote-count {
  text-align: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  font-weight: 700;
  position: relative;
}
.vote-count-wakaru { color: var(--red); }
.vote-count-wakaran { color: var(--navy); }
.vote-count-num { font-size: 20px; font-family: 'Reggae One', cursive; font-weight: 400; }
.vote-count-pop .vote-count-num {
  display: inline-block;
  animation: countPop 0.35s ease;
}
@keyframes countPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.vote-plus-one {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(28px);
  font-size: 17px;
  font-weight: 900;
  pointer-events: none;
  animation: plusFloat 0.7s ease forwards;
}
@keyframes plusFloat {
  0% { opacity: 0; transform: translateX(28px) translateY(4px); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(28px) translateY(-22px); }
}

/* カードパネル回転遷移（投票→次のあるある） */
.card-stage { perspective: 1100px; }
#vote-card { will-change: transform; backface-visibility: hidden; }
.card-flip-out-r { animation: cardFlipOutR 0.26s ease-in forwards; }
.card-flip-out-l { animation: cardFlipOutL 0.26s ease-in forwards; }
.card-flip-in-r  { animation: cardFlipInR 0.32s cubic-bezier(0.2, 0.7, 0.3, 1.05); }
.card-flip-in-l  { animation: cardFlipInL 0.32s cubic-bezier(0.2, 0.7, 0.3, 1.05); }
@keyframes cardFlipOutR {
  0%   { transform: rotateY(0deg); filter: brightness(1); }
  100% { transform: rotateY(88deg) scale(0.96); filter: brightness(0.85); }
}
@keyframes cardFlipOutL {
  0%   { transform: rotateY(0deg); filter: brightness(1); }
  100% { transform: rotateY(-88deg) scale(0.96); filter: brightness(0.85); }
}
@keyframes cardFlipInR {
  0%   { transform: rotateY(-88deg) scale(0.96); filter: brightness(0.85); }
  100% { transform: rotateY(0deg) scale(1); filter: brightness(1); }
}
@keyframes cardFlipInL {
  0%   { transform: rotateY(88deg) scale(0.96); filter: brightness(0.85); }
  100% { transform: rotateY(0deg) scale(1); filter: brightness(1); }
}

/* 立候補成功時の即時公開シェアブロック（.ugc-share-blockは旧版・現在は.success-spread-blockを使用） */
.ugc-share-block {
  margin-top: 18px;
  padding: 16px;
  border: 2px solid var(--gold);
  background: rgba(201,162,39,0.07);
  text-align: center;
}
.ugc-share-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ugc-share-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  cursor: pointer;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ugc-share-btn-line { background: #06C755; color: #fff; box-shadow: 3px 3px 0 #048a3c; }
.ugc-share-btn-x { background: #000; color: #fff; box-shadow: 3px 3px 0 #333; }
.ugc-share-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 !important; }

/* LPランキングのタブチップ（総合TOP9 / 急上昇） */
.ranking-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 4px;
}
.ranking-tab {
  flex: 1;
  padding: 9px 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: all 0.12s ease;
}
.ranking-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 2px 2px 0 var(--red-dark);
}
.ranking-empty-note {
  padding: 18px 8px;
  text-align: center;
  font-size: 14px;
  color: rgba(38,34,28,0.55);
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

/* ===== 投稿前プレビュー ===== */
.preview-caption {
  text-align: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  color: var(--navy);
  opacity: 0.7;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 700;
}

/* 選挙ポスター風プレビューカード */
.q-preview-card {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--navy);
  padding: 28px 20px 24px;
  margin-bottom: 20px;
  position: relative;
}
.q-preview-card-badge {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--red);
  color: #fff;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 14px;
  padding: 2px 10px;
  letter-spacing: 0.08em;
  border-radius: 2px;
}
.q-preview-number {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  color: var(--navy);
  opacity: 0.5;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.q-preview-question {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  text-align: center;
  margin: 14px 0 20px;
  letter-spacing: 0.05em;
  white-space: pre-wrap;
  word-break: break-all;
}
.q-preview-vote-label {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--red);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.q-preview-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.q-preview-btn {
  flex: 1;
  max-width: 140px;
  padding: 14px 8px;
  border: 2px solid;
  border-radius: 4px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 18px;
  cursor: not-allowed;
  letter-spacing: 0.05em;
  opacity: 0.5;
}
.q-preview-btn-know {
  background: var(--red);
  border-color: var(--red-dark);
  color: #fff;
  box-shadow: 3px 3px 0 var(--red-dark);
}
.q-preview-btn-dontknow {
  background: var(--navy);
  border-color: #111d30;
  color: #fff;
  box-shadow: 3px 3px 0 #111d30;
}
.q-preview-btn-sub {
  display: block;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.85;
}

.preview-confirm-label {
  text-align: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.preview-action-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.preview-submit-btn {
  flex: 1;
  padding: 16px 12px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red-dark);
  border-radius: 4px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--red-dark);
  transition: transform 0.1s;
}
.preview-submit-btn:hover { background: var(--red-light); }
.preview-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.preview-back-btn {
  flex: 1;
  padding: 16px 12px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 4px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.1s;
}
.preview-back-btn:hover { background: var(--paper-dark); }
.preview-back-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 成功エリア: 拡散区画 + 管理区画 ===== */
.success-spread-block {
  background: #fff5f5;
  border: 2px solid var(--red);
  border-radius: 6px;
  padding: 20px 18px;
  margin-bottom: 20px;
}
.success-spread-label {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
/* 成功画面の見出し（ugc-share-msg）拡大 */
.ugc-share-msg {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.5;
}
/* 投票ページURL: 折返しOK・14px以上 */
.ugc-qpage-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
  word-break: break-all;
  margin-bottom: 16px;
  text-decoration: underline;
  overflow-wrap: break-word;
}
.success-office-block {
  background: var(--navy);
  border-radius: 6px;
  padding: 20px 18px;
  color: #fff;
}
.success-office-label {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.success-office-block .office-link {
  display: block;
  color: #C9D4E8;
  font-size: 14px;
  word-break: break-all;
  text-decoration: none;
  margin-bottom: 12px;
  line-height: 1.5;
  overflow-wrap: break-word;
  /* UUIDは長いので省略しない・折返しで対応 */
}
.success-office-block .office-copy-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.1s;
}
.success-office-block .office-copy-btn:hover { background: rgba(255,255,255,0.2); }
.success-office-block .office-save-note {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* ===== 取り下げボタン（選挙事務所） ===== */
.office-withdraw-btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 10px 12px;
  background: transparent;
  color: #999;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.office-withdraw-btn:hover { border-color: var(--red); color: var(--red); }
.office-withdraw-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* withdrawn ステータス */
.office-status-withdrawn {
  background: var(--paper-dark);
  border: 1px solid #ccc;
}

/* 成功画面の連投ボタン */
.candidacy-again-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
  background: transparent;
  color: var(--navy);
  border: 2px dashed var(--navy);
  cursor: pointer;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.candidacy-again-btn:hover { background: rgba(28,43,74,0.06); }

/* ===== 投稿成功画面 ブラッシュアップ（2026-06-13）===== */
.success-done-head {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--navy);
  text-align: center;
  margin: 4px 0 20px;
  letter-spacing: 0.02em;
}
.success-spread-block {
  background: #fff5f5;
  border: 2px solid var(--red);
  border-radius: 8px;
  padding: 18px 16px;
  margin-bottom: 16px;
}
.success-spread-block .ugc-qpage-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
  word-break: break-all;
  overflow-wrap: break-word;
  text-decoration: underline;
  text-align: center;
  margin-bottom: 16px;
}
.success-share-label {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  position: relative;
}
.success-share-label::before,
.success-share-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 26px;
  height: 2px;
  background: rgba(28,43,74,0.25);
}
.success-share-label::before { left: 50%; margin-left: -68px; }
.success-share-label::after { right: 50%; margin-right: -68px; }
.success-office-block {
  background: var(--navy);
  border-radius: 8px;
  padding: 18px 16px;
  color: #fff;
}
.success-office-label {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.success-office-lead {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}
.success-office-can {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.success-office-can li {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  padding: 3px 0 3px 20px;
  position: relative;
}
.success-office-can li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== single-result-block（/q ページ＋SPA single モード共通） ===== */
.single-result-block {
  margin-top: 20px;
  padding: 16px 20px 20px;
  background: var(--paper-dark);
  border-radius: 4px;
  text-align: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.single-result-title {
  font-size: 12px;
  color: rgba(38,34,28,0.55);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  font-family: 'Reggae One', cursive;
  text-transform: uppercase;
}
.single-result-rate {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.single-result-counts {
  font-size: 13px;
  color: rgba(38,34,28,0.55);
  margin-bottom: 14px;
}
/* シェアボタン（支持率の下・横並び1列・アイコン中央寄せ） */
.single-share-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ssh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0;
  position: relative;
  box-shadow: 2px 2px 0 rgba(17,17,17,0.18);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.ssh-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.ssh-btn:hover { filter: brightness(1.08); }
.ssh-btn.ssh-x { background: #000; }
.ssh-btn.ssh-line { background: #06c755; }
.ssh-btn.ssh-copy { background: var(--navy); }
.ssh-btn svg { display: block; }
.ssh-btn.ssh-copied::after {
  content: 'コピー！';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #26221c;
  color: #fff;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}
.single-result-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.single-btn-next {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 12px 28px;
  font-family: 'Reggae One', cursive;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.06em;
  box-shadow: 3px 3px 0 #111d30;
  transition: all 0.12s ease;
}
.single-btn-next:hover { background: var(--navy-light); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #111d30; }
.single-btn-next:active { transform: translate(2px,2px); box-shadow: 1px 1px 0; }
/* 投票後: 次を促すブリンク（金リングの波紋＋軽い跳ね＋明度パルスで目立たせる） */
.single-btn-next--blink { animation: nextBlink 1s ease-in-out infinite; }
.single-btn-next--blink:hover { animation: none; }
@keyframes nextBlink {
  0%   { transform: translateY(0);    background: var(--navy);       box-shadow: 3px 3px 0 #111d30, 0 0 0 0 rgba(201,162,39,.75); }
  55%  { transform: translateY(-3px); background: var(--navy-light); box-shadow: 3px 6px 0 #111d30, 0 0 0 12px rgba(201,162,39,0); }
  100% { transform: translateY(0);    background: var(--navy);       box-shadow: 3px 3px 0 #111d30, 0 0 0 0 rgba(201,162,39,0); }
}
@media (prefers-reduced-motion: reduce) {
  .single-btn-next--blink { animation: none; box-shadow: 3px 3px 0 #111d30, 0 0 0 3px rgba(201,162,39,.6); }
}
.single-btn-diagnosis {
  display: inline-block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.7;
  letter-spacing: 0.03em;
}
.single-btn-diagnosis:hover { opacity: 1; text-decoration: underline; }

/* qpage ヘッダー（/q 専用） */
.qp-stripe {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 20px, #fff 20px, #fff 40px);
}
.qp-header {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}
.qp-header-back {
  white-space: nowrap;
  flex-shrink: 0;
}
.qp-header-badge {
  font-family: 'Reggae One', cursive;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.qp-header-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.85;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 360px) {
  .qp-header-badge { font-size: 10px; letter-spacing: 0.02em; }
  .qp-header-title { font-size: 10px; letter-spacing: 0.03em; }
}
.qp-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.qp-cta {
  background: var(--navy);
  border-radius: 4px;
  padding: 20px 16px;
  text-align: center;
  margin-top: 16px;
}
.qp-cta-text {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 700;
}
.qp-cta-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: 'Reggae One', cursive;
  font-size: 15px;
  padding: 14px 28px;
  text-decoration: none;
  letter-spacing: 0.1em;
  box-shadow: 3px 3px 0 var(--red-dark);
  transition: transform 0.1s;
}
.qp-cta-btn:hover { background: var(--red-light); }
.qp-footer {
  text-align: center;
  padding: 16px 0 24px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 12px;
  color: var(--navy);
  opacity: 0.5;
  letter-spacing: 0.1em;
}
/* /q 専用: #vote-card を .aruaru-card と同じ見た目に補正 */
.qp-container .card-stage {
  padding: 24px 0 22px;
  min-height: auto;
}
.qp-container .aruaru-card {
  position: relative;
  box-shadow: 4px 4px 0 var(--ink);
}
/* /q の vote-btns は qp-container 幅に合わせる */
.qp-container .vote-btns {
  padding: 0 0 16px;
  max-width: 100%;
}
/* /q の vote-counts もコンテナ内に収める */
.qp-container .vote-counts {
  max-width: 100%;
  margin: 10px 0 4px;
}
/* /q の vote-footer-slot */
.qp-container #vote-footer-slot {
  margin-top: 4px;
}

/* ===== preview / posted モード: 投票ボタン・票数非表示 ===== */
/* voteMode が preview/posted のとき JS から付与 */
#screen-vote.vote-mode-preview .vote-btns,
#screen-vote.vote-mode-posted .vote-btns,
#screen-vote.vote-mode-preview #vote-counts,
#screen-vote.vote-mode-posted #vote-counts {
  display: none !important;
}
/* カード下の余白圧縮（preview/posted では投票ボタン分の空きを詰める） */
#screen-vote.vote-mode-preview .card-stage,
#screen-vote.vote-mode-posted .card-stage {
  padding-bottom: 8px;
}

/* ===== 削除URL保存モーダル ===== */
.del-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,43,74,0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.del-modal-inner {
  position: relative;
  background: var(--off-white);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(28,43,74,0.34);
  padding: 30px 22px 22px;
  width: 100%;
  max-width: 328px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
  overflow: hidden;
  animation: delPop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
@keyframes delPop {
  0%   { transform: scale(0.85) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
/* 紅白幕の上アクセント（ポップ＆お祭り感） */
.del-modal-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--red) 0 14px, #fff 14px 28px);
}
.del-modal-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(201,162,39,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1;
  margin-top: 6px;
}
.del-modal-title {
  font-family: 'Reggae One', cursive;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.del-modal-lead {
  font-size: 13.5px;
  color: rgba(38,34,28,0.7);
  line-height: 1.75;
  letter-spacing: 0.02em;
}
.del-modal-url {
  background: rgba(28,43,74,0.055);
  border: 1.5px dashed rgba(28,43,74,0.28);
  border-radius: 13px;
  padding: 11px 13px;
  font-size: 11.5px;
  color: var(--navy);
  word-break: break-all;
  overflow-wrap: break-word;
  width: 100%;
  text-align: left;
  line-height: 1.5;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.del-modal-copy-btn {
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 0 #16233c;
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.del-modal-copy-btn:hover { background: var(--navy-light); }
.del-modal-copy-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #16233c; }
.del-modal-copy-btn.copied { background: #4f8a52; box-shadow: 0 4px 0 #356b38; }
.del-modal-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  letter-spacing: 0.02em;
  padding: 2px 0;
}
.del-modal-check {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}
.del-modal-ok-btn {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  font-family: 'Reggae One', cursive;
  font-size: 16px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 0 #a07e1a;
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.del-modal-ok-btn:hover:not(:disabled) { background: #d8ad2e; }
.del-modal-ok-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #a07e1a; }
.del-modal-ok-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

/* シェアバー Facebook / Copy ボタン */
.sb-btn-facebook {
  background: #1877F2;
  color: #fff;
  box-shadow: 2px 2px 0 #0d5bbf;
}
.sb-btn-facebook:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #0d5bbf; }
.sb-btn-copy {
  background: #6b7280;
  color: #fff;
  box-shadow: 2px 2px 0 #4b5563;
}
.sb-btn-copy:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #4b5563; }

/* ===== preview / posted モード（vote 画面内） ===== */
/* カード上部キャプション（シェアされるとこう見えます） */
.preview-card-caption {
  text-align: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.65;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
/* preview footer ブロック */
.preview-footer-block {
  padding: 16px 20px 24px;
  text-align: center;
}
/* posted footer ブロック */
.posted-footer-block {
  padding: 0 20px 32px;
}
.posted-done-head {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.05em;
  margin: 16px 0 20px;
}
