:root {
  --sand: #c9b89a;
  --ink: #111111;
  --card: #1f2125;
  --line: #06c755;
  --paper: #ece7df;
  --hot: #ff2a2a;
  --ice: #3b9edb;
  --max: 440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.frame {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: var(--max);
  min-height: 100dvh;
  padding: 0 16px 108px;
  background: linear-gradient(180deg, #000 0%, #2a241c 42%, var(--sand) 100%);
}

.hero-photo {
  display: block;
  width: 168px;
  height: 168px;
  margin: 28px auto 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 4px solid #fff;
  background: #d8d8d8;
}

.role {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

h1 {
  margin: 8px 0 0;
  text-align: center;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 800;
}

.lead {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.line-row {
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 8px 8px 8px 8px;
  border-radius: 40px;
  background: var(--card);
  border: 2px solid #fff;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25);
}

.line-row .face {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #ddd;
}

.line-row .txt {
  flex: 1;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.line-row .txt p { margin: 0; }

.line-badge {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--line);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
}

.timer,
.panel,
.comment,
.faq details,
.gain {
  background: rgba(255, 255, 255, 0.94);
  color: #161616;
  border-radius: 18px;
}

.timer {
  padding: 16px 12px 14px;
  text-align: center;
}

.timer-kicker,
.timer-q {
  margin: 0;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.5;
}

.ticks {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.ticks div { min-width: 64px; }

.ticks b {
  display: block;
  font-size: 40px;
  line-height: 1;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}

.ticks div:nth-child(n + 3) b { color: var(--hot); }

.ticks span {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ice);
}

.ticks div:nth-child(n + 3) span { color: var(--hot); }

h2 {
  margin: 28px 0 12px;
  text-align: center;
  font-size: 22px;
  line-height: 1.4;
}

.pains, .gains, .comments, .faq, .cred, .close {
  margin-top: 8px;
}

.pain, .gain, .comment, .faq details, .cred, .close {
  margin: 0 0 10px;
  padding: 16px 16px 14px;
}

.pain strong, .gain strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.pain p, .gain p, .cred p, .close p, .comment p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.cred h3, .close h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.comment header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.comment header span {
  font-weight: 600;
  color: #666;
}

.comment .like {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #444;
}

.faq details { padding: 0; overflow: hidden; }

.faq summary {
  padding: 14px 16px;
  font-weight: 800;
  cursor: pointer;
}

.faq details p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.65;
}

.note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.dock a {
  pointer-events: auto;
  width: min(92vw, 400px);
  text-align: center;
  background: var(--line);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  padding: 16px 18px;
  border-radius: 999px;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .dock a { animation: none; }
}

@media (min-width: 700px) {
  .card {
    margin: 24px 0 40px;
    min-height: auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  }
  .hero-photo { margin-top: 36px; }
}

.door {
  max-width: 440px;
  margin: 0 auto;
  padding: 48px 20px;
  color: #161616;
}

.door h1 { color: #161616; font-size: 26px; }
.door p { line-height: 1.7; }
.door a {
  display: block;
  margin: 12px 0;
  padding: 16px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-weight: 800;
  text-align: center;
}
