/* =============================================
   portal.css — イベントポータル TOP
============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0f1e;
  --bg2:         #0f172a;
  --card:        #111827;
  --border:      rgba(255,255,255,.08);
  --white:       #ffffff;
  --text:        #e2e8f0;
  --sub:         #94a3b8;
  --soccer:      #E8192C;
  --soccer-dark: #B50020;
  --undoukai:    #059669;
  --undoukai-dk: #047857;
  --accent:      #FFD700;
  --radius:      16px;
  --transition:  .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- ヘッダー ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,15,30,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .05em;
  background: linear-gradient(135deg, var(--accent), #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--sub);
  transition: color var(--transition);
}
.nav a:hover { color: var(--white); }

/* ---- パーティクル ---- */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFly var(--dur, 8s) var(--delay, 0s) ease-in infinite;
}
@keyframes particleFly {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .2; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* ---- カードグロー ---- */
.event-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, var(--glow-color, rgba(255,215,0,.3)), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.event-card:hover::after { opacity: 1; }
.event-card > * { position: relative; z-index: 1; }

/* ---- カウントアップ ---- */
.about-stat-num {
  transition: all .3s ease;
}
.about-stat-num.counting {
  text-shadow: 0 0 20px rgba(255,215,0,.4);
}

/* ---- ヒーロー ---- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 64px;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(232,25,44,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(5,150,105,.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 40px 24px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 99px;
  padding: 6px 20px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--sub);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.8rem, 9vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.hero-title span {
  background: linear-gradient(135deg, var(--white) 0%, var(--accent) 60%, #FF6B35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--sub);
  margin-bottom: 48px;
  line-height: 1.8;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), #FF9500);
  color: #0a0f1e;
  font-size: 1rem;
  font-weight: 800;
  padding: 16px 40px;
  border-radius: 99px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 32px rgba(255,215,0,.25);
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255,215,0,.35);
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--sub);
  font-size: .78rem;
  letter-spacing: .1em;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- イベント一覧 ---- */
.events {
  padding: 100px 0;
  background: var(--bg2);
}
.section-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--sub);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-lead {
  color: var(--sub);
  font-size: 1rem;
  margin-bottom: 56px;
  line-height: 1.8;
  max-width: 560px;
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.event-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 60px var(--glow-color, rgba(255,215,0,.1));
}

.event-card-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.soccer-thumb {
  background: linear-gradient(135deg, #8B0000 0%, var(--soccer-dark) 40%, var(--soccer) 80%, #FF6B7A 100%);
}
.undoukai-thumb {
  background: linear-gradient(135deg, #014737 0%, var(--undoukai-dk) 40%, var(--undoukai) 80%, #34d399 100%);
}
.thumb-icon {
  font-size: 5rem;
  opacity: .7;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
  transition: transform .35s ease;
}
.event-card:hover .thumb-icon { transform: scale(1.12) rotate(5deg); }

.thumb-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: .08em;
  border: 1px solid rgba(255,255,255,.15);
}

.event-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-type {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 8px;
}
.soccer-type   { color: var(--soccer); }
.undoukai-type { color: var(--undoukai); }

.event-name {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.2;
}
.event-desc {
  color: var(--sub);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.event-meta span {
  font-size: .78rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 99px;
  color: var(--sub);
}
.event-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 800;
  transition: opacity var(--transition), transform var(--transition);
}
.event-link:hover { opacity: .9; transform: translateY(-1px); }
.soccer-link {
  background: var(--soccer);
  color: var(--white);
}
.undoukai-link {
  background: var(--undoukai);
  color: var(--white);
}
.coming-soon-link {
  background: rgba(255,255,255,.06);
  border: 1.5px dashed rgba(255,255,255,.15);
  color: var(--sub);
  cursor: default;
}
.coming-soon-link:hover { opacity: 1; transform: none; }

/* ---- 組織について ---- */
.about {
  padding: 100px 0;
  background: var(--bg);
  text-align: center;
}
.about-inner {
  max-width: 700px;
  margin: 0 auto;
}
.about-icon { font-size: 4rem; margin-bottom: 24px; }
.about p {
  color: var(--sub);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.about-stat { text-align: center; }
.about-stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-stat-label {
  font-size: .8rem;
  color: var(--sub);
  margin-top: 4px;
}

/* ---- LINE ---- */
.line-section {
  padding: 80px 0;
  background: var(--bg2);
  text-align: center;
}
.line-card {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 48px;
  text-align: left;
  margin-top: 40px;
}
.line-icon { font-size: 3.5rem; }
.line-text h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.line-text p { color: var(--sub); font-size: .88rem; line-height: 1.7; }
.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06C755;
  color: #fff;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 99px;
  font-size: .92rem;
  margin-top: 16px;
  transition: background var(--transition);
}
.line-btn:hover { background: #05a847; }

/* ---- フッター ---- */
.site-footer {
  background: #050810;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-logo {
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.footer-copy {
  font-size: .78rem;
  color: var(--sub);
}

/* =============================================
   追加アニメーション（デザイン強化）
============================================= */

/* ─── Hero: タイトル輝きアニメ ─── */
@keyframes shine-sweep {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.hero-title span {
  background-size: 200% auto;
  animation: shine-sweep 4s linear infinite;
}

/* ─── Hero: CTAボタン パルスグロー ─── */
@keyframes cta-pulse {
  0%,100% { box-shadow: 0 8px 32px rgba(255,215,0,.3), 0 0 0 0 rgba(255,215,0,0); }
  50%      { box-shadow: 0 8px 32px rgba(255,215,0,.5), 0 0 0 10px rgba(255,215,0,0); }
}
.hero-cta {
  animation: cta-pulse 2.5s ease-in-out infinite;
}
.hero-cta:hover {
  animation: none;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 48px rgba(255,215,0,.5) !important;
}

/* ─── Hero: バッジ回転グロー枠 ─── */
@keyframes badge-glow {
  0%,100% { border-color: rgba(255,255,255,.12); box-shadow: none; }
  50%      { border-color: rgba(255,215,0,.35); box-shadow: 0 0 16px rgba(255,215,0,.2); }
}
.hero-badge {
  animation: badge-glow 3s ease-in-out infinite;
}

/* ─── イベントカード: サムネイルシマー ─── */
@keyframes shimmer {
  0%   { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX( 220%) skewX(-15deg); }
}
.event-card-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: translateX(-120%) skewX(-15deg);
  pointer-events: none;
}
.event-card:hover .event-card-thumb::after {
  animation: shimmer .7s ease forwards;
}

/* ─── イベントカード: ボーダーグロー ─── */
.event-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1.5px var(--glow-color), 0 0 60px var(--glow-color, rgba(255,215,0,.1)) !important;
}

/* ─── About Stats: 輝きバックドロップ ─── */
.about-stats { position: relative; }
.about-stats::before {
  content: '';
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(255,215,0,.06), transparent 70%);
  pointer-events: none;
}
.about-stat {
  position: relative;
  padding: 24px 32px;
  border: 1px solid rgba(255,215,0,.12);
  border-radius: 16px;
  background: rgba(255,215,0,.03);
  transition: border-color .3s, background .3s;
}
.about-stat:hover {
  border-color: rgba(255,215,0,.3);
  background: rgba(255,215,0,.06);
}

/* ─── セクション Eyebrow グロー ─── */
.section-eyebrow {
  background: linear-gradient(90deg, var(--sub), rgba(255,215,0,.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LINE カード グロー枠 ─── */
@keyframes line-card-glow {
  0%,100% { border-color: rgba(255,255,255,.08); }
  50%      { border-color: rgba(6,199,85,.3); box-shadow: 0 8px 40px rgba(6,199,85,.1); }
}
.line-card { animation: line-card-glow 4s ease-in-out infinite; }

/* ─── ヒーロー: ノイズオーバーレイ ─── */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none; opacity: .5;
}
.hero-content { z-index: 2; }
.hero-scroll { z-index: 2; }
.particles { z-index: 1; }

/* ─── スクロール進捗バー（ポータル）─── */
#portal-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  z-index: 9999;
  background: linear-gradient(to right, var(--accent), #FF6B35);
  border-radius: 0 2px 2px 0;
  transition: width .1s linear;
}

/* ---- レスポンシブ ---- */
@media (max-width: 768px) {
  .nav { display: none; }
  .event-cards { grid-template-columns: 1fr; }
  .line-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }
  .about-stats { gap: 32px; }
}
@media (max-width: 480px) {
  .events, .about, .line-section { padding: 64px 0; }
  .event-card-thumb { height: 160px; }
  .thumb-icon { font-size: 3.5rem; }
}
