/* =====================================================================
   画面別スタイル — RBL3x3 style v4(明るい色面 / 切り角 / 傾き帯 / ずらし影)
   ===================================================================== */

/* ================= オンボーディング(登録) ================= */
.onboard-hero {
  position: relative;
  margin: 0 calc(var(--sp-4) * -1);
  min-height: min(600px, calc(100dvh - 150px));
  overflow: hidden;
  background: var(--blue);
  display: flex; align-items: flex-end;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
}
.onboard-hero .hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transform-origin: 60% 30%;
  animation: hero-zoom 14s ease-in-out infinite alternate;
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.onboard-hero .hero-photo-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37,52,70,0) 45%, rgba(37,52,70,0.55) 72%, rgba(37,52,70,0.92) 100%);
}
/* 上部ティッカー(開催スケジュールが流れる) */
.hero-ticker {
  position: absolute; left: 0; right: 0; top: 0; z-index: 4;
  background: var(--navy-deep); color: var(--yellow);
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: var(--text-xs); letter-spacing: 0.14em;
  overflow: hidden; white-space: nowrap;
  border-bottom: 2px solid var(--yellow);
}
.hero-ticker-track { display: inline-flex; padding: 5px 0; animation: ticker 30s linear infinite; will-change: transform; }
.hero-ticker-track span { padding: 0 16px; }
.hero-ticker-track span::after { content: '◆'; margin-left: 32px; color: var(--sky); font-size: 0.7em; vertical-align: 1px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 背景の巨大アウトライン文字 */
.hero-ghost {
  position: absolute; right: -10px; top: 46px; z-index: 1;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 74px; line-height: 1; letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.6);
  transform: rotate(-8deg);
  animation: ghost-in 1.1s 0.15s var(--ease-out) both;
  pointer-events: none; user-select: none;
}
@keyframes ghost-in { from { opacity: 0; transform: rotate(-8deg) translateX(60px); } to { opacity: 1; transform: rotate(-8deg); } }
/* 読み込み時に一度走る黄色い光の帯 */
.hero-sweep {
  position: absolute; inset: -20% -40%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255,189,49,0.85) 45%, rgba(255,255,255,0.7) 49%, rgba(255,189,49,0.85) 53%, transparent 58%);
  transform: translateX(-120%);
  animation: sweep 1.3s 0.25s var(--ease-out) forwards;
}
@keyframes sweep { to { transform: translateX(120%); } }
.onboard-hero .hero-content {
  position: relative; z-index: 3;
  padding: var(--sp-7) var(--sp-4) var(--sp-6);
  width: 100%;
  color: #fff;
}
.onboard-hero .hero-content > * { animation: rise-in 0.7s var(--ease-out) both; }
.onboard-hero .hero-content > :nth-child(1) { animation-delay: 0.1s; }
.onboard-hero .hero-content > :nth-child(2) { animation-delay: 0.22s; }
.onboard-hero .hero-content > :nth-child(3) { animation-delay: 0.34s; }
.onboard-hero .hero-content > :nth-child(4) { animation-delay: 0.48s; }
.onboard-hero .hero-content > :nth-child(5) { animation-delay: 0.62s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.onboard-hero .hero-logo { width: 132px; margin-bottom: var(--sp-3); }
.onboard-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic; font-weight: 700;
  letter-spacing: 0.12em;
  font-size: var(--text-xs);
  color: var(--navy-deep);
  background: var(--yellow);
  padding: 2px 12px;
  margin-bottom: var(--sp-3);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.onboard-hero h1 {
  font-size: var(--text-hero);
  letter-spacing: 0.01em;
  line-height: 1.12;
  text-shadow: 3px 3px 0 var(--navy);
}
.onboard-hero h1 em { color: var(--yellow); font-style: normal; }
.onboard-hero p.lead {
  margin-top: var(--sp-3);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.7;
}
/* 貼り紙風ステッカー */
.hero-stickers { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: var(--sp-4); }
.sticker {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: var(--text-sm); letter-spacing: 0.04em;
  padding: 3px 12px;
  background: #fff; color: var(--navy-deep);
  border: 2px solid var(--navy-deep);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transform: rotate(-3deg);
}
.sticker.s2 { background: var(--yellow); transform: rotate(2deg); }
.sticker.s3 { background: var(--lime); transform: rotate(-1.5deg); }
/* 登録フォーム側の見出し(画像なし) */
.onboard-hero.plain {
  min-height: 0;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%);
  margin-bottom: var(--sp-4);
}
.onboard-hero.plain .hero-content { padding: var(--sp-5) var(--sp-4) var(--sp-6); }
.onboard-hero.plain::after {
  content: ''; position: absolute; right: -30px; top: -20px;
  width: 200px; height: 200px;
  background: var(--dots); background-size: 12px 12px; opacity: 0.5;
}

.cta-wrap { position: relative; }
.cta-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(6, 199, 85, 0.5);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  animation: cta-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes cta-pulse {
  0%        { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.06, 1.4); opacity: 0; }
}
.line-sim {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: #06C755;
  color: #fff;
  padding: 14px 18px;
  font-weight: 900;
  width: 100%;
  justify-content: center;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: filter var(--dur-fast), transform var(--dur-fast);
}
.line-sim svg { width: 22px; height: 22px; }
.line-sim:hover { filter: brightness(1.06); }
.line-sim:active { transform: scale(0.97); }
.onboard-cta { margin-top: calc(var(--sp-5) * -1 + 4px); position: relative; z-index: 2; }

/* 数字で見せる帯(カウントアップ) */
.onboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: var(--sp-5); }
.stat-cell {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding: 12px 6px 10px; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.stat-cell::after {
  content: ''; position: absolute; right: -14px; bottom: -14px; width: 64px; height: 64px;
  background: radial-gradient(rgba(255,255,255,0.28) 1.2px, transparent 1.3px); background-size: 8px 8px;
}
.stat-cell b {
  display: block;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1.75rem; line-height: 1; color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.stat-cell small {
  display: block; margin-top: 5px;
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: var(--text-xs); letter-spacing: 0.14em; color: #C9D3E0;
}

/* 3ステップ */
.onboard-steps { margin-top: var(--sp-5); }
.steps-head {
  display: inline-block;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: var(--text-sm); letter-spacing: 0.12em;
  background: var(--navy); color: var(--yellow);
  padding: 3px 16px; margin: 0 0 var(--sp-3) 6px;
  transform: skewX(-8deg);
}
.step-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.step-cell {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--navy);
  padding: 14px 6px 10px;
  text-align: center;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}
.step-cell .num {
  position: absolute; left: 8px; top: 2px;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1.1rem; color: var(--blue);
}
.step-cell svg { display: block; width: 30px; height: 30px; margin: 6px auto 6px; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step-cell:nth-child(2) svg { color: var(--orange); }
.step-cell:nth-child(3) svg { color: var(--magenta); }
.step-cell:nth-child(2) .num { color: var(--orange); }
.step-cell:nth-child(3) .num { color: var(--magenta); }
.step-cell b { display: block; font-size: var(--text-xs); font-weight: 900; line-height: 1.4; }
.onboard-cta .phase-note { margin-top: var(--sp-4); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.team-cell {
  background: var(--paper);
  border: 2px solid var(--line);
  padding: 10px 6px;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1.4;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.team-cell .dot { display: block; width: 22px; height: 6px; margin: 0 auto 6px; clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.team-cell:hover { transform: translateY(-2px); }
.team-cell.on {
  border-color: var(--navy);
  background: var(--yellow);
  color: var(--navy-deep);
}

/* ================= ホーム ================= */
.hero-next {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  margin-top: var(--sp-4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.hero-next-photo { display: block; width: 100%; height: 200px; object-fit: cover; object-position: 60% 40%; }
.hero-next-grad {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(37,52,70,0.9) 0%, rgba(37,52,70,0.55) 45%, rgba(37,52,70,0) 80%);
}
.hero-next-content { position: absolute; left: 0; top: 0; bottom: 0; padding: var(--sp-4); display: flex; flex-direction: column; justify-content: center; color: #fff; max-width: 68%; }
.hero-next .kicker {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: var(--text-xs); letter-spacing: 0.1em;
  background: var(--yellow); color: var(--navy-deep);
  padding: 1px 10px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.hero-next h2 { font-size: var(--text-xl); margin: 8px 0 2px; text-shadow: 2px 2px 0 var(--navy-deep); }
.hero-next .venue { font-size: var(--text-xs); font-weight: 700; opacity: 0.9; }
.hero-next .date {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  color: var(--yellow); letter-spacing: 0.06em; margin-top: 6px; font-size: var(--text-md);
}

.news-item {
  background: var(--paper);
  border: 2px solid var(--navy);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: 10px;
  box-shadow: var(--shadow-offset-sm);
  position: relative;
}
.news-item .meta { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.news-item .date { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs); color: var(--text-dim); letter-spacing: 0.06em; }
.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 { background: var(--rest); border-style: dashed; box-shadow: none; }
.news-item.locked h3, .news-item.locked p { color: var(--text-faint); }
.news-item.locked .lock-note { margin-top: 8px; font-size: var(--text-xs); }

.standing-item {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--paper);
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  border-left: 6px solid var(--blue);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.standing-item:nth-child(1) { border-left-color: var(--yellow); }
.standing-item .st-pos { font-family: var(--font-display); font-style: italic; font-weight: 800; width: 26px; color: var(--navy); text-align: center; font-size: 1.05rem; }
.standing-item .st-dot { width: 16px; height: 8px; flex-shrink: 0; clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.standing-item .st-name { flex: 1; font-weight: 700; }
.standing-item .st-pt { font-family: var(--font-display); font-weight: 600; color: var(--text-dim); }

/* LINE連携バナー */
.line-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper);
  border: 2px solid #06C755;
  padding: 10px 14px;
  font-size: var(--text-xs);
  color: var(--text);
  margin-top: var(--sp-4);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}
.line-banner .li-dot {
  width: 28px; height: 28px;
  background: #06C755; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.8rem; flex-shrink: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* ================= 会員証 ================= */
.member-card {
  position: relative;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  overflow: hidden;
  min-height: 222px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform var(--dur) var(--ease-out);
}
.member-card:hover { transform: rotateZ(-0.8deg) scale(1.01); }
/* 支配色の面 + 強調色の斜め帯 + 端のドット */
.member-card::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(112deg, transparent 58%, var(--mc-band) 58%, var(--mc-band) 72%, transparent 72%),
    var(--mc-base);
}
.member-card::after {
  content: ''; position: absolute; right: 10px; bottom: 10px;
  width: 120px; height: 90px;
  background: radial-gradient(rgba(255,255,255,0.35) 1.3px, transparent 1.4px);
  background-size: 9px 9px;
  pointer-events: none;
}
.member-card.tier-free  { --mc-base: var(--blue);    --mc-band: var(--yellow); }
.member-card.tier-crew  { --mc-base: var(--orange);  --mc-band: var(--yellow); }
.member-card.tier-royal { --mc-base: var(--magenta); --mc-band: var(--yellow); }
.member-card > * { position: relative; z-index: 1; }
.member-card .mc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.member-card .mc-logo { width: 96px; }
.member-card .mc-tier {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: var(--text-sm); letter-spacing: 0.1em;
  background: var(--navy); color: var(--yellow);
  padding: 3px 12px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.member-card .mc-name { font-size: 1.4rem; font-weight: 900; letter-spacing: 0.02em; text-shadow: 2px 2px 0 rgba(37,52,70,0.5); }
.member-card .mc-team { font-size: var(--text-xs); font-weight: 700; opacity: 0.95; }
.member-card .mc-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.member-card .mc-id { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.14em; font-size: var(--text-sm); }
.member-card canvas { background: #fff; padding: 4px; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.member-card-wrap { position: relative; }
.member-card-wrap::after {
  content: ''; position: absolute; inset: 0; transform: translate(6px, 6px);
  background: var(--navy); z-index: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.member-card-wrap .member-card { z-index: 1; }

.rank-bar {
  height: 12px;
  background: var(--rest);
  border: 2px solid var(--navy);
  overflow: hidden;
  margin-top: var(--sp-2);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.rank-bar span {
  display: block; height: 100%;
  background: var(--lime);
  background-image: var(--stripes);
  transition: width var(--dur) var(--ease-out);
}
.rank-name { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; color: var(--blue); }

.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge-cell {
  text-align: center;
  background: var(--paper);
  border: 2px solid var(--navy);
  padding: var(--sp-3) var(--sp-2);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}
.badge-cell .b-ico img { width: 64px; height: 64px; margin: 0 auto; object-fit: cover; }
.badge-cell .b-name { font-size: var(--text-xs); margin-top: 4px; font-weight: 900; }
.badge-cell .b-desc { font-size: 0.62rem; color: var(--text-dim); line-height: 1.4; margin-top: 2px; }
.badge-cell.off { opacity: 0.45; filter: grayscale(1); border-style: dashed; border-color: var(--line); }

/* ================= EARN(貯める) ================= */
.pt-hero {
  position: relative;
  text-align: center;
  padding: var(--sp-5) 0 var(--sp-5);
  margin: 0 calc(var(--sp-4) * -1) var(--sp-3);
  background: var(--blue);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%);
  overflow: hidden;
}
.pt-hero::before {
  content: ''; position: absolute; left: -40px; top: 0; bottom: 0; width: 55%;
  background: linear-gradient(105deg, var(--yellow) 0 40%, transparent 40%);
  opacity: 0.9;
}
.pt-hero::after {
  content: ''; position: absolute; right: 10px; top: 10px; width: 120px; height: 80px;
  background: radial-gradient(rgba(255,255,255,0.35) 1.3px, transparent 1.4px); background-size: 9px 9px;
}
.pt-hero > * { position: relative; }
.pt-hero .pt-num {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 3.6rem; line-height: 1;
  color: #fff;
  text-shadow: 4px 4px 0 var(--navy);
}
.pt-hero .pt-label {
  display: inline-block;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  letter-spacing: 0.16em; font-size: var(--text-xs);
  background: var(--navy); color: var(--yellow);
  padding: 2px 12px; margin-top: 6px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.earn-actions { display: grid; gap: var(--sp-3); }
.earn-row { display: flex; align-items: center; gap: var(--sp-3); }
.earn-row .earn-ico {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-deep);
  flex-shrink: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.earn-row .earn-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.earn-row .earn-info { flex: 1; min-width: 0; }
.earn-row .earn-info strong { font-size: var(--text-sm); display: block; font-weight: 900; }
.earn-row .earn-info span { font-size: var(--text-xs); color: var(--text-dim); }
.earn-row .earn-pt {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  background: var(--yellow); color: var(--navy-deep);
  padding: 2px 10px; font-size: var(--text-sm); flex-shrink: 0;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.code-row { display: flex; gap: 8px; margin-top: var(--sp-3); }
.code-row input { flex: 1; text-transform: uppercase; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.1em; }
.code-row .btn { width: auto; padding-inline: 18px; }

.post-item {
  display: flex; gap: 10px;
  padding: var(--sp-3);
  background: var(--paper);
  border-left: 5px solid var(--sky);
  margin-bottom: 8px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.post-item .p-ava {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900; color: #fff;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.post-item .p-body { flex: 1; min-width: 0; }
.post-item .p-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-item .p-name { font-size: var(--text-xs); font-weight: 900; }
.post-item .p-date { font-size: 0.62rem; color: var(--text-faint); font-family: var(--font-display); }
.post-item .p-text { font-size: var(--text-sm); color: var(--text); margin-top: 2px; word-break: break-word; }

.vote-cell {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--rest);
  border: 2px solid var(--line);
  padding: 10px 14px;
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.vote-cell:hover { border-color: var(--navy); background: var(--yellow); }
.vote-cell .v-dot { width: 18px; height: 8px; flex-shrink: 0; clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.vote-cell .v-name { font-weight: 900; }
.vote-cell .v-team { font-size: var(--text-xs); color: var(--text-dim); margin-left: auto; font-weight: 700; }

.history-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 10px;
  background: var(--paper);
  margin-bottom: 4px;
  font-size: var(--text-sm);
  border-left: 4px solid var(--line);
}
.history-item .h-label { color: var(--text); font-weight: 700; }
.history-item .h-label small { color: var(--text-dim); font-weight: 400; }
.history-item .h-date { font-size: var(--text-xs); color: var(--text-faint); margin-left: 8px; font-family: var(--font-display); }
.history-item .h-pt { font-family: var(--font-display); font-style: italic; font-weight: 800; letter-spacing: 0.02em; }
.history-item .h-pt.plus { color: var(--blue); }
.history-item .h-pt.minus { color: var(--red); }

/* ================= 特典 ================= */
.reward-list { display: grid; gap: var(--sp-3); }
.reward-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 0 var(--sp-3);
  background: var(--paper);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-offset-sm);
  padding: var(--sp-3);
  align-items: start;
}
.reward-card .r-thumb {
  grid-row: 1 / span 3;
  width: 104px; height: 104px;
  overflow: hidden;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.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.06); }
.reward-card .r-head { display: flex; flex-direction: column; gap: 4px; }
.reward-card h3 { font-size: var(--text-sm); line-height: 1.35; }
.reward-card .r-cost {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  color: var(--navy-deep); background: var(--yellow);
  display: inline-block; align-self: flex-start;
  padding: 1px 10px; font-size: var(--text-sm);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.reward-card p { font-size: var(--text-xs); color: var(--text-dim); margin-top: 4px; }
.reward-card .btn { margin-top: 8px; padding-block: 9px; font-size: var(--text-sm); }

/* ================= ランキング ================= */
.rank-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 8px 12px;
  background: var(--paper);
  margin-bottom: 6px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.rank-item .rk-pos {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  width: 34px; font-size: 1.2rem; color: var(--text-faint); text-align: center;
}
.rank-item:nth-child(1) .rk-pos { color: var(--yellow); text-shadow: 2px 2px 0 var(--navy); }
.rank-item:nth-child(2) .rk-pos { color: #9AA4B2; }
.rank-item:nth-child(3) .rk-pos { color: var(--orange); }
.rank-item .rk-name { flex: 1; font-size: var(--text-sm); font-weight: 900; }
.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-display); font-weight: 600; color: var(--text-dim); }
.rank-item.me { background: var(--yellow); border: 2px solid var(--navy); }
.rank-item.me .rk-pt { color: var(--navy-deep); }

/* ================= プレミアム ================= */
.premium-hero {
  position: relative;
  margin: 0 calc(var(--sp-4) * -1) var(--sp-4);
  height: 210px;
  overflow: hidden;
  background: var(--magenta);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
}
.premium-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.premium-hero .ph-grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(37,52,70,0.85) 100%); }
.premium-hero .ph-content { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-4) var(--sp-4) var(--sp-6); color: #fff; }
.premium-hero h1 { font-size: var(--text-xl); text-shadow: 3px 3px 0 var(--navy); }
.premium-hero h1 em { color: var(--yellow); font-style: normal; }
.premium-hero p { font-size: var(--text-xs); font-weight: 700; margin-top: 4px; }

.plan-list { display: grid; gap: var(--sp-4); }
.plan-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-offset);
  padding: var(--sp-4);
  overflow: hidden;
}
.plan-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: var(--pl-color, var(--blue));
}
.plan-card.plan-free  { --pl-color: var(--blue); }
.plan-card.plan-crew  { --pl-color: var(--orange); }
.plan-card.plan-royal { --pl-color: var(--magenta); }
.plan-card .pl-name {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  letter-spacing: 0.06em; font-size: 1.5rem;
  color: var(--pl-color);
}
.plan-card .pl-jp { font-size: var(--text-xs); color: var(--text-dim); font-weight: 700; }
.plan-card .pl-price { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; margin: var(--sp-2) 0; color: var(--navy-deep); }
.plan-card .pl-price small { font-family: var(--font-body); font-size: var(--text-xs); color: var(--text-dim); font-weight: 700; }
.plan-card ul { list-style: none; margin: var(--sp-2) 0 var(--sp-3); }
.plan-card li { font-size: var(--text-sm); color: var(--text); padding: 4px 0 4px 24px; position: relative; }
.plan-card li::before {
  content: ''; position: absolute; left: 2px; top: 10px;
  width: 12px; height: 8px;
  background: var(--pl-color);
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}
.plan-card .pl-current { position: absolute; top: 12px; right: 12px; }

.event-list { display: grid; gap: var(--sp-3); }
.event-card {
  background: var(--paper);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-offset-sm);
  padding: var(--sp-3);
}
.event-card .ev-thumb {
  position: relative;
  margin: calc(var(--sp-3) * -1) calc(var(--sp-3) * -1) var(--sp-3);
  height: 150px; overflow: hidden;
  border-bottom: 2px solid var(--navy);
}
.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;
  background: rgba(37,52,70,0.55);
  color: #fff;
}
.event-card .ev-lock svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.event-card .ev-date { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: var(--text-xs); color: var(--blue); letter-spacing: 0.08em; }
.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; }

/* ================= Phase バナー・空 ================= */
.phase-note {
  margin: var(--sp-4) 0 0;
  font-size: var(--text-xs);
  color: var(--text-dim);
  background: var(--paper);
  border: 2px dashed var(--line);
  padding: 10px 14px;
  line-height: 1.6;
}
.phase-note b { color: var(--blue); }
.empty-note { text-align: center; color: var(--text-faint); font-size: var(--text-sm); padding: var(--sp-5) 0; }
