/* ================= オンボーディング(登録) ================= */
.onboard-hero {
  padding: var(--sp-7) var(--sp-4) var(--sp-5);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.onboard-hero::before {
  content: '3×3';
  position: absolute; right: -30px; top: -40px;
  font-family: var(--font-display);
  font-size: 11rem;
  color: rgba(232, 184, 75, 0.05);
  line-height: 1;
  pointer-events: none;
}
.onboard-hero.has-photo {
  padding: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  min-height: 430px;
  display: flex;
  align-items: flex-end;
}
.onboard-hero.has-photo::before { content: none; }
.onboard-hero .hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.onboard-hero .hero-photo-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,13,18,0.25) 0%, rgba(12,13,18,0.05) 34%, rgba(12,13,18,0.55) 62%, rgba(12,13,18,0.96) 88%, var(--bg) 100%);
}
.onboard-hero .hero-content {
  position: relative;
  padding: var(--sp-7) var(--sp-4) var(--sp-5);
  width: 100%;
}
.onboard-hero .hero-emblem {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin-bottom: var(--sp-3);
  box-shadow: 0 0 24px rgba(232, 184, 75, 0.4);
  animation: emblem-in 0.9s var(--ease-out) both;
}
@keyframes emblem-in {
  from { opacity: 0; transform: translateY(10px) scale(0.85); }
  to   { opacity: 1; transform: none; }
}
.onboard-kicker {
  font-family: var(--font-cond);
  letter-spacing: 0.34em;
  font-size: var(--text-xs);
  color: var(--orange-soft);
  margin-bottom: var(--sp-3);
}
.onboard-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  letter-spacing: 0.02em;
  line-height: 1.08;
}
.onboard-hero h1 em { color: var(--gold); font-style: normal; }
.onboard-hero p.lead {
  margin-top: var(--sp-4);
  color: var(--text-dim);
  font-size: var(--text-sm);
}
.line-sim {
  display: flex; align-items: center; gap: 12px;
  background: #06C755;
  color: #fff;
  border-radius: var(--r-md);
  padding: 13px 18px;
  font-weight: 700;
  width: 100%;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
  transition: filter var(--dur-fast), transform var(--dur-fast);
}
.line-sim:hover { filter: brightness(1.06); }
.line-sim:active { transform: scale(0.97); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.team-cell {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 6px;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-dim);
  line-height: 1.4;
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.team-cell .dot {
  width: 10px; height: 10px; border-radius: 3px;
  margin: 0 auto 6px;
}
.team-cell:hover { transform: translateY(-2px); }
.team-cell.on {
  border-color: var(--gold);
  background: rgba(232, 184, 75, 0.08);
  color: var(--text);
}

/* ================= ホーム ================= */
.hero-next {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(232,184,75,0.14), transparent 55%),
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255,255,255,0.018) 22px 24px),
    var(--bg-card);
  border: 1px solid rgba(232, 184, 75, 0.28);
  padding: var(--sp-5) var(--sp-4);
  margin-top: var(--sp-4);
}
.hero-next.has-photo { padding: 0; }
.hero-next-photo {
  display: block;
  width: 100%; height: 195px;
  object-fit: cover;
}
.hero-next-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,13,18,0.05) 20%, rgba(12,13,18,0.62) 62%, rgba(12,13,18,0.96) 100%);
}
.hero-next-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--sp-4);
}
.hero-next .kicker {
  font-family: var(--font-cond);
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  color: var(--orange-soft);
}
.hero-next h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 0.03em;
  margin: 6px 0 2px;
}
.hero-next .venue { color: var(--text-dim); font-size: var(--text-sm); }
.hero-next .date {
  font-family: var(--font-cond);
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-top: var(--sp-2);
}

.news-item {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.news-item .meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.news-item .date {
  font-family: var(--font-cond);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.news-item h3 { font-size: var(--text-md); margin-bottom: 4px; }
.news-item p { font-size: var(--text-sm); color: var(--text-dim); }
.news-item.locked h3, .news-item.locked p { filter: blur(0px); color: var(--text-faint); }
.news-item.locked .lock-note {
  margin-top: 8px;
  font-size: var(--text-xs);
  color: var(--gold);
}

/* ================= 会員証 ================= */
.member-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  overflow: hidden;
  min-height: 216px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-pop);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--dur) var(--ease-out);
}
.member-card:hover { transform: rotateZ(-0.6deg) scale(1.01); }
.member-card .mc-emblem {
  position: absolute;
  right: -18px; top: 50%;
  transform: translateY(-50%);
  width: 150px; height: 150px;
  opacity: 0.14;
  pointer-events: none;
}
.member-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.09) 45%, transparent 60%);
  pointer-events: none;
}
.member-card.tier-free {
  background:
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,0.02) 18px 20px),
    linear-gradient(145deg, #232634, #141620);
}
.member-card.tier-crew {
  background:
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,0.03) 18px 20px),
    linear-gradient(145deg, #3A2113, #1B0F08);
  border-color: rgba(232, 123, 46, 0.5);
}
.member-card.tier-royal {
  background:
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,0.035) 18px 20px),
    linear-gradient(145deg, #3B2F10, #191204);
  border-color: rgba(232, 184, 75, 0.6);
}
.member-card .mc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.member-card .mc-league {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}
.member-card .mc-league small {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}
.member-card .mc-tier {
  font-family: var(--font-cond);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.tier-free .mc-tier { color: var(--tier-free); }
.tier-crew .mc-tier { color: var(--tier-crew); }
.tier-royal .mc-tier { color: var(--tier-royal); }
.member-card .mc-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.member-card .mc-team { font-size: var(--text-sm); color: var(--text-dim); }
.member-card .mc-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
}
.member-card .mc-id {
  font-family: var(--font-cond);
  letter-spacing: 0.14em;
  font-size: var(--text-sm);
  color: var(--text-dim);
}
.member-card canvas { border-radius: 6px; background: #fff; }

.rank-bar {
  height: 8px;
  background: var(--bg-elev);
  border-radius: 999px;
  overflow: hidden;
  margin-top: var(--sp-2);
}
.rank-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 999px;
  transition: width var(--dur) var(--ease-out);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.badge-cell {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-2);
}
.badge-cell .b-ico { font-size: 1.5rem; }
.badge-cell .b-ico img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(232, 184, 75, 0.25);
}
.badge-cell.off .b-ico img { box-shadow: none; }
.badge-cell .b-name { font-size: var(--text-xs); margin-top: 4px; color: var(--text); font-weight: 600; }
.badge-cell .b-desc { font-size: 0.62rem; color: var(--text-faint); line-height: 1.4; margin-top: 2px; }
.badge-cell.off { opacity: 0.32; filter: grayscale(1); }

/* ================= EARN(貯める) ================= */
.pt-hero {
  text-align: center;
  padding: var(--sp-5) 0 var(--sp-4);
}
.pt-hero .pt-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pt-hero .pt-label {
  font-family: var(--font-cond);
  letter-spacing: 0.3em;
  font-size: var(--text-xs);
  color: var(--text-dim);
}
.earn-actions { display: grid; gap: var(--sp-3); }
.earn-row {
  display: flex; align-items: center; gap: var(--sp-3);
}
.earn-row .earn-ico {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.earn-row .earn-info { flex: 1; min-width: 0; }
.earn-row .earn-info strong { font-size: var(--text-sm); display: block; }
.earn-row .earn-info span { font-size: var(--text-xs); color: var(--text-faint); }
.earn-row .earn-pt {
  font-family: var(--font-cond);
  color: var(--orange-soft);
  letter-spacing: 0.06em;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.code-row { display: flex; gap: 8px; margin-top: var(--sp-3); }
.code-row input { flex: 1; text-transform: uppercase; font-family: var(--font-cond); letter-spacing: 0.1em; }
.code-row .btn { width: auto; padding-inline: 18px; }

.post-item {
  display: flex; gap: 10px;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.post-item .p-ava {
  width: 34px; height: 34px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #10120A;
}
.post-item .p-body { flex: 1; min-width: 0; }
.post-item .p-head { display: flex; gap: 8px; align-items: baseline; }
.post-item .p-name { font-size: var(--text-xs); font-weight: 700; }
.post-item .p-date { font-size: 0.62rem; color: var(--text-faint); }
.post-item .p-text { font-size: var(--text-sm); color: var(--text-dim); margin-top: 2px; word-break: break-word; }

.vote-cell {
  display: flex; align-items: center; gap: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.vote-cell:hover { border-color: var(--gold); background: rgba(232,184,75,0.05); }
.vote-cell .v-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.vote-cell .v-name { font-family: var(--font-cond); letter-spacing: 0.06em; }
.vote-cell .v-team { font-size: var(--text-xs); color: var(--text-faint); margin-left: auto; }

.history-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--text-sm);
}
.history-item .h-label { color: var(--text-dim); }
.history-item .h-date { font-size: var(--text-xs); color: var(--text-faint); margin-left: 8px; }
.history-item .h-pt { font-family: var(--font-cond); letter-spacing: 0.04em; }
.history-item .h-pt.plus { color: var(--green); }
.history-item .h-pt.minus { color: var(--red); }

/* ================= 特典 ================= */
.reward-card {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  background: var(--bg-card);
}
.reward-card.has-thumb { overflow: hidden; }
.reward-card .r-thumb {
  margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) 4px;
  height: 118px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.reward-card .r-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease-out);
}
.reward-card:hover .r-thumb img { transform: scale(1.05); }
.reward-card .r-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.reward-card h3 { font-size: var(--text-md); }
.reward-card .r-cost {
  font-family: var(--font-cond);
  color: var(--gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.reward-card p { font-size: var(--text-sm); color: var(--text-dim); }
.reward-card .btn { margin-top: 6px; padding-block: 10px; }
.reward-list { display: grid; gap: var(--sp-3); }

/* ================= ランキング ================= */
.rank-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rank-item .rk-pos {
  font-family: var(--font-display);
  width: 34px;
  font-size: 1.1rem;
  color: var(--text-faint);
  text-align: center;
}
.rank-item:nth-child(1) .rk-pos { color: var(--gold); }
.rank-item:nth-child(2) .rk-pos { color: #C9CDD9; }
.rank-item:nth-child(3) .rk-pos { color: #C98A4B; }
.rank-item .rk-name { flex: 1; font-size: var(--text-sm); font-weight: 600; }
.rank-item .rk-name small { display: block; font-weight: 400; color: var(--text-faint); font-size: var(--text-xs); }
.rank-item .rk-pt { font-family: var(--font-cond); color: var(--text-dim); letter-spacing: 0.04em; }
.rank-item.me {
  background: rgba(232, 184, 75, 0.06);
  border-radius: var(--r-md);
  padding-inline: var(--sp-3);
  border: 1px solid rgba(232, 184, 75, 0.3);
}

.standing-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}
.standing-item .st-pos { font-family: var(--font-cond); width: 26px; color: var(--text-faint); text-align: center; }
.standing-item .st-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.standing-item .st-name { flex: 1; }
.standing-item .st-pt { font-family: var(--font-cond); color: var(--text-dim); }

/* ================= プレミアム ================= */
.plan-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: var(--sp-5) var(--sp-4);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.plan-card.plan-crew { border-color: rgba(232, 123, 46, 0.45); }
.plan-card.plan-royal {
  border-color: rgba(232, 184, 75, 0.55);
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(232,184,75,0.1), transparent 60%),
    var(--bg-card);
}
.plan-card .pl-name {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.4rem;
}
.plan-card .pl-jp { font-size: var(--text-xs); color: var(--text-dim); letter-spacing: 0.1em; }
.plan-card .pl-price {
  font-family: var(--font-cond);
  font-size: 1.6rem;
  margin: var(--sp-2) 0;
}
.plan-card .pl-price small { font-size: var(--text-xs); color: var(--text-dim); }
.plan-card ul { list-style: none; margin: var(--sp-3) 0; }
.plan-card li {
  font-size: var(--text-sm);
  color: var(--text-dim);
  padding: 5px 0 5px 22px;
  position: relative;
}
.plan-card li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--gold);
  font-weight: 700;
}
.plan-card .pl-current {
  position: absolute; top: 14px; right: 14px;
}
.plan-list { display: grid; gap: var(--sp-4); }

.event-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  background: var(--bg-card);
}
.event-card.has-thumb { overflow: hidden; }
.event-card .ev-thumb {
  position: relative;
  margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) var(--sp-3);
  height: 132px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.event-card .ev-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.event-card .ev-lock {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: rgba(12, 13, 18, 0.55);
  backdrop-filter: blur(2px);
}
.event-card .ev-date {
  font-family: var(--font-cond);
  font-size: var(--text-xs);
  color: var(--orange-soft);
  letter-spacing: 0.14em;
}
.event-card h3 { font-size: var(--text-md); margin: 4px 0; }
.event-card p { font-size: var(--text-sm); color: var(--text-dim); }
.event-card .btn { margin-top: var(--sp-3); padding-block: 10px; }
.event-list { display: grid; gap: var(--sp-3); }

/* ================= Phase バナー ================= */
.phase-note {
  margin: var(--sp-4) 0 0;
  font-size: var(--text-xs);
  color: var(--text-faint);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  line-height: 1.6;
}
.phase-note b { color: var(--gold); }

.empty-note {
  text-align: center;
  color: var(--text-faint);
  font-size: var(--text-sm);
  padding: var(--sp-5) 0;
}

/* LINE配信風のヘッダー装飾 */
.line-banner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(6, 199, 85, 0.08);
  border: 1px solid rgba(6, 199, 85, 0.3);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-top: var(--sp-4);
}
.line-banner .li-dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: #06C755;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.7rem;
  flex-shrink: 0;
}
