/* ============================================================
   PLAYER BASE — Site Layout
   design-system.css の上に重ねるサイト固有スタイル
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body.pb {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img { max-width: 100%; display: block; }

/* --- レイアウト幅 --- */
.pb-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--pb-space-4);
}

.pb-main {
  flex: 1 0 auto;
  width: 100%;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.pb-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--pb-space-3) var(--pb-space-4) 0;
  background: var(--pb-background);
}
.pb-site-header .pb-navbar {
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: var(--pb-shadow);
}

/* ブランド（ロゴ＋テキスト/タイトル） */
.pb-navbar__brand {
  text-decoration: none;
  flex: 0 0 auto;
}
.pb-navbar__brand img {
  height: 40px;
  width: auto;
}
.pb-navbar__brand-text {
  font-size: 28px;
  font-weight: var(--pb-fw-black);
  letter-spacing: .02em;
  white-space: nowrap;
}
.pb-navbar__title {
  font-size: 23px;
  font-weight: var(--pb-fw-black);
  white-space: nowrap;
}
/* ページヘッダーのナビ項目はTOPより一段小さく */
.pb-navbar__item { font-size: 20px; }
.pb-navbar__item--active { padding: 7px 22px; line-height: 1; }

/* ページヘッダーのブランド：TOPと同じく緑地にロゴ＋太字テキスト（囲み枠なし） */
.pb-navbar__brand--chip {
  gap: 12px;
}

/* ドロワー：PCではメニューとユーティリティをそのままバー内に流す */
.pb-navbar__drawer {
  display: contents;
}

/* ナビ項目グループ */
.pb-navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--pb-space-4);
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pb-navbar__item {
  cursor: pointer;
  transition: color .12s ease;
}
.pb-navbar__item:hover { color: var(--pb-primary-active); }
.pb-navbar__item--active:hover { color: var(--pb-primary); }

/* 右端ユーティリティ（ドロップダウン等） */
.pb-navbar__util { margin-left: auto; flex: 0 0 auto; }

/* ハンバーガー */
.pb-navbar__toggle {
  display: none;
  margin-left: auto;
  background: var(--pb-text);
  color: var(--pb-primary);
  border: none;
  border-radius: var(--pb-radius-full);
  width: 64px;
  height: 34px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.pb-navbar__toggle .pb-icon { color: var(--pb-primary); font-size: 28px; }

/* 大会選択など 白ピルのセレクト */
.pb-select--pill {
  width: auto;
  min-width: 130px;
  border-radius: var(--pb-radius-full);
  border-color: var(--pb-surface);
  padding: 6px 46px 6px 24px;
  font-size: 20px;
  font-weight: var(--pb-fw-bold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.pb-site-footer {
  flex-shrink: 0;
  background: var(--pb-text);
  color: var(--pb-surface);
  margin-top: var(--pb-space-16);
}
.pb-site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--pb-space-8) var(--pb-space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--pb-space-6);
  align-items: center;
  justify-content: space-between;
}
.pb-site-footer__brand img { height: 44px; }
.pb-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pb-space-3) var(--pb-space-6);
}
.pb-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: var(--pb-fw-bold);
  color: var(--pb-surface);
  transition: color .12s ease;
}
.pb-social-link:hover { color: var(--pb-primary); }
.pb-social-link__label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.pb-social-link__sub { font-size: 13px; font-weight: var(--pb-fw-regular); color: var(--pb-muted); }
.pb-site-footer__copy {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: var(--pb-muted);
  padding-bottom: var(--pb-space-6);
}

/* Xロゴ・Youtubeロゴ（簡易SVGアイコン枠） */
.pb-social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--pb-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.pb-social-icon svg { width: 22px; height: 22px; fill: var(--pb-text); }
.pb-social-link:hover .pb-social-icon { background: var(--pb-primary); }

/* ============================================================
   HERO / コンテンツカード
   ============================================================ */
.pb-page-title {
  margin: var(--pb-space-8) 0 var(--pb-space-6);
}
.pb-page-title h1 {
  font-size: var(--pb-title);
  font-weight: var(--pb-fw-black);
  margin: 0;
}
.pb-page-title p { font-size: var(--pb-body); margin: var(--pb-space-2) 0 0; }

/* 説明（アバウト）カード */
.pb-about {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--pb-space-6);
  align-items: center;
  margin-bottom: var(--pb-space-8);
}
.pb-about__logo {
  background: var(--pb-text);
  border-radius: var(--pb-radius);
  padding: var(--pb-space-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pb-about__logo img { height: 46px; }
.pb-about__text { font-size: 12px; line-height: 1.5; }
.pb-about__text strong { color: var(--pb-primary-active); }

/* コンテンツカードのグリッド */
.pb-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--pb-space-6);
}

.pb-content-card {
  display: flex;
  flex-direction: column;
  gap: var(--pb-space-4);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pb-content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.pb-content-card__icon {
  width: 64px; height: 64px;
  border-radius: var(--pb-radius);
  background: var(--pb-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pb-content-card__icon .pb-icon { font-size: 38px; color: var(--pb-text); }
.pb-content-card h2 {
  font-size: 28px;
  font-weight: var(--pb-fw-bold);
  margin: 0;
}
.pb-content-card p {
  font-size: 18px;
  margin: 0;
  flex: 1 0 auto;
}
.pb-content-card__action { margin-top: var(--pb-space-2); }

/* 仮コンテンツの「準備中」表示 */
.pb-placeholder {
  border: 2px dashed var(--pb-container);
  border-radius: var(--pb-radius);
  padding: var(--pb-space-16) var(--pb-space-6);
  text-align: center;
  color: var(--pb-muted);
  background: var(--pb-surface);
}
.pb-placeholder .pb-icon { font-size: 56px; color: var(--pb-container); }
.pb-placeholder p { font-size: var(--pb-body); margin: var(--pb-space-3) 0 0; }

/* ============================================================
   MODAL（運営パスワード）
   ============================================================ */
.pb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--pb-space-4);
}
.pb-modal {
  background: var(--pb-surface);
  border-radius: var(--pb-radius);
  padding: var(--pb-space-8);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  text-align: center;
}
.pb-modal__logo { height: 56px; margin: 0 auto var(--pb-space-4); }
.pb-modal h2 { font-size: 28px; margin: 0 0 var(--pb-space-2); }
.pb-modal p { font-size: 16px; color: var(--pb-muted); margin: 0 0 var(--pb-space-5); }
.pb-modal__error {
  color: #E03131;
  font-size: 15px;
  font-weight: var(--pb-fw-bold);
  min-height: 22px;
  margin-top: var(--pb-space-2);
}
.pb-modal__actions { margin-top: var(--pb-space-5); }
body.pb--locked { overflow: hidden; }
/* 認証後コンテンツ：hidden の間は非表示、解除されたら通常フローに溶け込む */
.pb-admin-content:not([hidden]) { display: contents; }

/* ============================================================
   MODERN / GLASS  ―― 透過(リキッドグラス)・発光・奥行き
   ============================================================ */
/* 背景：緑のアンビエント光 + ベース地色（スクロールに追従） */
body.pb {
  background:
    radial-gradient(1100px 620px at 84% -10%, rgba(178, 247, 40, .22), transparent 60%),
    radial-gradient(900px 520px at -10% 110%, rgba(178, 247, 40, .15), transparent 60%),
    var(--pb-background);
  background-attachment: fixed;
}
/* 浮遊する光のブロブ（ガラスが拾う色味） */
body.pb::before,
body.pb::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
body.pb::before {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(178, 247, 40, .50), transparent 70%);
  top: 8%; right: -70px;
}
body.pb::after {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(26, 26, 26, .16), transparent 70%);
  bottom: 6%; left: -90px;
}

/* 全体の地色の上に、ヘッダーはガラス化（スクロール時に下が透ける） */
.pb-site-header {
  background: rgba(240, 240, 240, .72);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

/* ガラスのコンテンツカード */
.pb-card {
  position: relative;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 10px 34px rgba(20, 30, 10, .10);
}
/* 上端のスペキュラ・ハイライト（リキッドグラスの艶） */
.pb-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  border-radius: var(--pb-radius) var(--pb-radius) 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), transparent);
  pointer-events: none;
}

/* セクション見出し（緑の発光タブ付き） */
.pb-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pb-section-title::before {
  content: "";
  width: 8px;
  height: 1em;
  border-radius: 4px;
  background: var(--pb-primary);
  box-shadow: 0 0 18px rgba(178, 247, 40, .75);
}

/* ヒーロー（説明カード）= ダークガラス */
.pb-about {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(22, 22, 22, .94), rgba(40, 40, 40, .88));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--pb-radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  color: var(--pb-surface);
  padding: var(--pb-space-4) var(--pb-space-6);
  gap: var(--pb-space-6);
}
.pb-about::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  top: -120px; right: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 247, 40, .42), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.pb-about > * { position: relative; z-index: 1; }
.pb-about__logo {
  border-radius: var(--pb-radius-sm);
  overflow: hidden;
}
.pb-about__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pb-about__text { color: rgba(255, 255, 255, .92); }
.pb-about__text strong { color: var(--pb-primary); }
.pb-hero__eyebrow {
  align-self: flex-start;
  font-size: 13px;
  padding: 4px 16px;
  letter-spacing: .06em;
}

/* ページタイトルに緑の発光マーカー */
.pb-page-title h1 {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.pb-page-title h1::before {
  content: "";
  width: 10px;
  height: .78em;
  border-radius: 5px;
  background: var(--pb-primary);
  box-shadow: 0 0 20px rgba(178, 247, 40, .75);
}

/* コンテンツカードのアイコン強化（発光＋グラデ） */
.pb-content-card__icon {
  background: linear-gradient(135deg, #C6FF45, #93D914);
  box-shadow: 0 10px 24px rgba(178, 247, 40, .45);
}
.pb-content-card {
  transition: transform .2s ease, box-shadow .28s ease, border-color .28s ease;
}
.pb-content-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(178, 247, 40, .22), 0 10px 28px rgba(0, 0, 0, .10);
  border-color: rgba(178, 247, 40, .55);
}

/* プレースホルダもガラスに */
.pb-placeholder {
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1.5px dashed rgba(26, 26, 26, .18);
}

/* 入場アニメーション */
@keyframes pb-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pb-about,
.pb-page-title,
.pb-placeholder,
.pb-card-grid > * {
  animation: pb-fade-up .6s cubic-bezier(.22, .61, .36, 1) both;
}
.pb-card-grid > *:nth-child(2) { animation-delay: .08s; }
.pb-card-grid > *:nth-child(3) { animation-delay: .16s; }
.pb-card-grid > *:nth-child(4) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .pb-about, .pb-page-title, .pb-placeholder, .pb-card-grid > * { animation: none; }
}

/* ============================================================
   VCARD ―― 刷新したコンテンツカード
   ロゴ由来のジオメトリック角 / ダークアイコン / 透かし / 番号
   ============================================================ */
.pb-vcard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--pb-space-3);
  padding: var(--pb-space-8) var(--pb-space-6) var(--pb-space-6);
  border-radius: var(--pb-radius);
  background: rgba(255, 255, 255, .60);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 10px 34px rgba(20, 30, 10, .10);
  text-decoration: none;
  color: var(--pb-text);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1),
              box-shadow .3s ease, border-color .3s ease;
}
.pb-vcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(178, 247, 40, .26), 0 14px 32px rgba(0, 0, 0, .12);
  border-color: rgba(178, 247, 40, .6);
}

/* 角のジオメトリックな緑トライアングル（ロゴのモチーフ） */
.pb-vcard__corner {
  position: absolute;
  top: 0; right: 0;
  width: 58px; height: 58px;
  background: var(--pb-primary);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  transition: width .28s ease, height .28s ease;
}
.pb-vcard:hover .pb-vcard__corner { width: 78px; height: 78px; }

/* 背景の巨大ゴーストアイコン（透かし） */
.pb-vcard__ghost {
  position: absolute;
  right: -16px; bottom: -24px;
  font-size: 158px;
  line-height: 1;
  color: rgba(26, 26, 26, .05);
  pointer-events: none;
  transition: transform .4s ease, color .4s ease;
}
.pb-vcard:hover .pb-vcard__ghost {
  transform: scale(1.08) rotate(-5deg);
  color: rgba(178, 247, 40, .16);
}

/* インデックス番号 */
.pb-vcard__index {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: var(--pb-fw-black);
  letter-spacing: .22em;
  color: var(--pb-primary-active);
}

/* ダークなアイコンタイル（暗背景=緑アイコン） */
.pb-vcard__icon {
  position: relative;
  z-index: 1;
  width: 74px; height: 74px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1A1A1A, #2e2e2e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .28s ease;
}
.pb-vcard:hover .pb-vcard__icon { transform: translateY(-2px) rotate(-3deg); }
.pb-vcard__icon .pb-icon { font-size: 42px; color: var(--pb-primary); }

.pb-vcard__title {
  position: relative;
  z-index: 1;
  font-size: 30px;
  font-weight: var(--pb-fw-black);
  margin: var(--pb-space-2) 0 0;
}
.pb-vcard__desc {
  position: relative;
  z-index: 1;
  font-size: 17px;
  margin: 0;
  flex: 1 0 auto;
  color: rgba(26, 26, 26, .78);
}

/* アクション行：ダークピル＋緑文字、ホバーで矢印が伸びる */
.pb-vcard__action {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--pb-space-2);
  padding: 12px 28px;
  border-radius: var(--pb-radius-full);
  background: var(--pb-text);
  color: var(--pb-primary);
  font-size: 19px;
  font-weight: var(--pb-fw-bold);
  transition: background .2s ease, gap .2s ease;
}
.pb-vcard__action .pb-icon { font-size: 22px; transition: transform .2s ease; }
.pb-vcard:hover .pb-vcard__action { background: #000; gap: 16px; }
.pb-vcard:hover .pb-vcard__action .pb-icon { transform: translateX(4px); }

/* ============================================================
   RESPONSIVE（スマホ）
   ============================================================ */
@media (max-width: 860px) {
  .pb-navbar { position: relative; }
  .pb-navbar__brand-text { font-size: 22px; }
  .pb-navbar__title { font-size: 21px; }
  .pb-navbar__brand img { height: 34px; }
  .pb-navbar__brand--chip { gap: 10px; }

  .pb-navbar__toggle { display: inline-flex; }

  /* ハンバーガーを開いたときに出る黒のドロワーパネル */
  .pb-navbar__drawer {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--pb-space-2);
    background: var(--pb-text);
    border-radius: var(--pb-radius);
    padding: var(--pb-space-3);
    box-shadow: var(--pb-shadow);
    z-index: 90;
  }
  .pb-navbar--open .pb-navbar__drawer { display: flex; }

  .pb-navbar__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .pb-navbar__menu .pb-navbar__item {
    color: var(--pb-surface);
    font-size: 22px;
    padding: 14px var(--pb-space-3);
    border-radius: var(--pb-radius);
  }
  .pb-navbar__menu .pb-navbar__item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0;
  }
  .pb-navbar__menu .pb-navbar__item:hover { background: rgba(255, 255, 255, .06); color: var(--pb-surface); }
  .pb-navbar__menu .pb-navbar__item--active {
    color: var(--pb-primary);
    background: transparent;
  }
  .pb-navbar__util {
    margin-left: 0;
    padding-top: var(--pb-space-2);
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .pb-select--pill { width: 100%; }

  .pb-page-title h1 { font-size: 34px; }
  .pb-about { grid-template-columns: 1fr; text-align: center; }
  .pb-about__logo img { height: 50px; }
}
