/* ================================================================
   福々三座 — Limited archive + vote page
   Self-contained styles (theme tokens + page styles)
   ================================================================ */

:root {
  --bg: #f4ede0;
  --bg-paper: #efe5d2;
  --bg-deep: #1a1612;
  --ink: #1a1612;
  --ink-soft: #3a3128;
  --ink-mute: #6a5d4d;
  --accent: #b83227;
  --accent-deep: #8a1f17;
  --gold: #a8845c;
  --line: rgba(26, 22, 18, 0.18);
  --line-soft: rgba(26, 22, 18, 0.08);
  --paper-tex: rgba(168, 132, 92, 0.06);

  --serif: "Shippori Mincho B1", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --brush: "Yuji Syuku", "Shippori Mincho B1", serif;
  --sans: "Zen Kaku Gothic Antique", "Noto Sans JP", system-ui, sans-serif;

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(circle at 20% 10%, var(--paper-tex) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, var(--paper-tex) 0%, transparent 40%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .25s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: var(--bg); }
.btn__arrow { transition: transform .25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ====== Page bar (back to home) — from menu.css mp-bar ====== */
.mp-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 60px;
  font-family: var(--serif);
}
.mp-bar__brand {
  font-family: var(--brush);
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.mp-bar__back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 10px 18px;
  cursor: pointer;
  transition: all .2s ease;
}
.mp-bar__back:hover { background: var(--ink); color: var(--bg); }

/* ============================================================
   LIMITED PAGE
   ============================================================ */
[data-page="limited"] body { background: var(--bg); }

.lp { max-width: var(--maxw); margin: 0 auto; padding: 100px clamp(20px, 5vw, 60px) 80px; }

.lp-head { text-align: center; margin-bottom: 60px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.lp-head__brush { font-family: var(--brush); font-size: 18px; color: var(--accent); letter-spacing: 0.3em; margin-bottom: 18px; }
.lp-head__title { font-family: var(--serif); font-size: clamp(56px, 9vw, 110px); font-weight: 700; letter-spacing: 0.06em; margin: 0 0 22px; line-height: 1.1; }
.lp-head__title .lp-head__accent { color: var(--accent); position: relative; }
.lp-head__title .lp-head__accent::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 4px; height: 14px;
  background: var(--accent); opacity: 0.12; z-index: -1;
}
.lp-head__sub { font-family: var(--serif); font-size: 15px; letter-spacing: 0.12em; color: var(--ink-mute); }

.lp-section-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 80px 0 8px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--ink);
  display: flex; align-items: baseline; justify-content: space-between;
}
.lp-section-title small {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
}
.lp-section-lead {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
  color: var(--ink-mute);
  margin: 0 0 36px;
}

/* Archive grid */
.lp-archive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}
.lp-card {
  background: var(--bg);
  display: flex; flex-direction: column;
}
.lp-card__photo {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  filter: saturate(0.9);
}
.lp-card__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
}
.lp-card__season {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--bg); color: var(--accent);
  font-family: var(--brush); font-size: 20px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%; line-height: 1;
}
.lp-card__body { padding: 16px 4px 6px; }
.lp-card__period {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em;
  color: var(--ink-mute); margin-bottom: 4px;
}
.lp-card__name {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  letter-spacing: 0.06em; margin: 0 0 8px; line-height: 1.4;
}
.lp-card__desc {
  font-family: var(--serif); font-size: 13px; line-height: 1.85;
  color: var(--ink-soft); margin: 0;
}
.lp-card__subtitle {
  font-family: var(--serif); font-size: 12px;
  letter-spacing: 0.12em; color: var(--accent);
  margin: 0 0 8px; font-weight: 500;
}

/* No-photo placeholder */
.lp-card__photo--nophoto {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(184, 50, 39, 0.04) 0 2px,
      transparent 2px 12px
    ),
    var(--bg-paper, #f3ebda);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lp-card__photo--nophoto::after { display: none; }
.lp-card__nophotoLabel {
  font-family: var(--serif); font-size: 13px;
  letter-spacing: 0.4em; color: var(--ink-mute);
  text-align: center;
  border-top: 1px solid var(--ink-mute);
  border-bottom: 1px solid var(--ink-mute);
  padding: 8px 18px; opacity: 0.7;
}

@media (max-width: 800px) { .lp-archive { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .lp-archive { grid-template-columns: 1fr; } }

/* ============================================================
   VOTE
   ============================================================ */
.vote {
  margin-top: 100px;
  padding: 60px clamp(24px, 5vw, 56px);
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.vote::before {
  content: "";
  position: absolute; top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}
.vote__head { text-align: center; margin-bottom: 48px; position: relative; z-index: 1; }
.vote__brush {
  font-family: var(--brush);
  font-size: 16px;
  letter-spacing: 0.5em;
  color: var(--accent);
  margin-bottom: 12px;
}
.vote__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  line-height: 1.3;
}
.vote__lead {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
  color: rgba(244, 237, 224, 0.7);
  max-width: 56ch;
  margin: 0 auto;
}
.vote__total {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-top: 14px;
}

.vote__list { display: grid; gap: 14px; position: relative; z-index: 1; }
.vrow {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(244, 237, 224, 0.04);
  border: 1px solid rgba(244, 237, 224, 0.12);
  position: relative;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  overflow: hidden;
}
.vrow:hover { background: rgba(244, 237, 224, 0.08); }
.vrow.voted { border-color: var(--accent); background: rgba(184, 50, 39, 0.18); cursor: default; }
.vrow.voted:hover { background: rgba(184, 50, 39, 0.18); }
.vrow__bar {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(184, 50, 39, 0.22), rgba(184, 50, 39, 0.05));
  width: 0%;
  transition: width 1s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.vrow__rank {
  font-family: var(--brush);
  font-size: 22px;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0;
  position: relative; z-index: 1;
}
.vrow__rank.top { color: var(--accent); font-size: 28px; }
.vrow__main { position: relative; z-index: 1; min-width: 0; }
.vrow__name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vrow__period {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(244, 237, 224, 0.5);
}
.vrow__count {
  position: relative; z-index: 1;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--bg);
  white-space: nowrap;
  text-align: right;
}
.vrow__count strong { font-size: 22px; font-weight: 700; margin-right: 4px; }
.vrow__count span { color: var(--gold); font-size: 11px; }
.vrow__btn {
  position: relative; z-index: 1;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.vrow__btn:hover { background: var(--accent-deep); }
.vrow__btn.disabled {
  background: rgba(244, 237, 224, 0.12);
  color: rgba(244, 237, 224, 0.5);
  cursor: default;
}
.vrow__btn.voted { background: var(--gold); color: var(--ink); }

.vote__foot {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(244, 237, 224, 0.5);
  text-align: center;
  position: relative; z-index: 1;
}
.vote__reset {
  margin-left: 10px;
  background: none;
  border: 1px solid rgba(244, 237, 224, 0.25);
  color: rgba(244, 237, 224, 0.65);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 6px 10px;
  cursor: pointer;
}
.vote__reset:hover { background: rgba(244, 237, 224, 0.06); color: var(--bg); }

@media (max-width: 700px) {
  .vrow { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 12px 14px; }
  .vrow__btn { grid-column: 1 / -1; padding: 10px; }
  .vrow__count strong { font-size: 18px; }
}

/* ============================================================
   FOOT
   ============================================================ */
.lp-foot {
  text-align: center; margin-top: 80px;
  padding-top: 40px;
  border-top: 1.5px solid var(--ink);
}
.lp-foot__note {
  font-family: var(--serif);
  font-size: 14px; line-height: 2;
  color: var(--ink-mute); margin-bottom: 28px;
}
