/* ============================================
   FOOTBALL Connection - Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700;900&family=Oswald:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --navy: #0A1628;
  --navy-light: #0D1F3C;
  --navy-mid: #122040;
  --green: #1A6B3C;
  --green-light: #1e7d46;
  --green-dark: #145930;
  --gold: #D4A017;
  --gold-light: #E8B82A;
  --white: #FFFFFF;
  --light-gray: #E5E7EB;
  --gray: #9CA3AF;
  --dark-gray: #4B5563;
  --field-line: rgba(26, 107, 60, 0.3);
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--green);
  padding: 0 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  /* 上下余白をクリップしてロゴを大きく見せる */
  overflow: hidden;
  height: 80px;
}

.site-logo .logo-img {
  /* 画像の上下余白（約20%ずつ）をネガティブマージンで切り取る */
  height: 130px;
  width: auto;
  display: block;
  margin-top: -25px;
  margin-bottom: -25px;
  transition: opacity 0.2s ease;
  object-fit: contain;
  /* 透過PNGをネイビー背景に自然に溶け込ませる */
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.1));
}

.site-logo:hover .logo-img {
  opacity: 0.85;
}

/* フォールバック用（SVG非対応時） */
.site-logo .logo-wrap {
  display: none;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.2rem;
  font-weight: 700;
}

/* モバイルではロゴを少し小さく */
@media (max-width: 768px) {
  .header-inner {
    height: 72px;
  }
  .site-logo {
    height: 72px;
  }
  .site-logo .logo-img {
    height: 110px;
    margin-top: -19px;
    margin-bottom: -19px;
  }
}
@media (max-width: 480px) {
  .header-inner {
    height: 64px;
  }
  .site-logo {
    height: 64px;
  }
  .site-logo .logo-img {
    height: 96px;
    margin-top: -16px;
    margin-bottom: -16px;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--light-gray);
  transition: var(--transition);
}

.header-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.header-nav a.active {
  color: var(--gold);
}

.btn-header-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm) !important;
}

.btn-header-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--navy-light);
  border-top: 1px solid var(--green);
  padding: 16px 24px 24px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--light-gray);
}

.mobile-nav a:last-child {
  margin-top: 12px;
  border: none;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-weight: 700;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Oswald', 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,107,60,0.4);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,160,23,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ============================================
   FIELD LINE DECORATIONS
   ============================================ */
.field-bg {
  position: relative;
  overflow: hidden;
}

.field-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      var(--field-line) 60px,
      var(--field-line) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      var(--field-line) 60px,
      var(--field-line) 61px
    );
  pointer-events: none;
  z-index: 0;
}

.field-bg > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--navy-light);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,107,60,0.4);
}

.card-body {
  padding: 24px;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-premium {
  background: var(--gold);
  color: var(--navy);
}

.badge-standard {
  background: var(--dark-gray);
  color: var(--light-gray);
}

.badge-ob {
  background: var(--green);
  color: var(--white);
}

.badge-exhibit {
  background: var(--navy-mid);
  color: var(--light-gray);
  border: 1px solid rgba(255,255,255,0.2);
}

.badge-genre {
  background: rgba(255,255,255,0.1);
  color: var(--light-gray);
  border: 1px solid rgba(255,255,255,0.2);
}

.badge-event {
  background: var(--green);
  color: var(--white);
}

.badge-event-watch {
  background: #1e40af;
  color: var(--white);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0f2d1a 100%);
  padding: 60px 24px 50px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--green);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      var(--field-line) 60px,
      var(--field-line) 61px
    );
  pointer-events: none;
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--gray);
  font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #060e1a;
  border-top: 2px solid var(--green);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-nav-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav-links a {
  color: var(--gray);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-nav-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  color: var(--dark-gray);
  font-size: 0.8rem;
}

/* ============================================
   LEAFLET MAP
   ============================================ */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--green);
  margin-bottom: 32px;
}

#map, #detail-map {
  height: 450px;
  width: 100%;
  z-index: 1;
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
  background: var(--navy-light) !important;
  color: var(--white) !important;
  border: 1px solid var(--green) !important;
  border-radius: var(--radius-sm) !important;
}

.leaflet-popup-tip {
  background: var(--navy-light) !important;
}

.leaflet-popup-content {
  color: var(--white) !important;
}

.leaflet-popup-content a {
  color: var(--gold) !important;
}

/* ============================================
   SEARCH & FILTER BAR
   ============================================ */
.filter-bar {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.filter-bar input,
.filter-bar select {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  flex: 1;
  min-width: 160px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.2);
}

.filter-bar select option {
  background: var(--navy);
}

.filter-bar label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
  white-space: nowrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

/* ============================================
   PLAN CARDS (Pricing)
   ============================================ */
.plan-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  transition: var(--transition);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.plan-card.premium {
  border: 2px solid var(--gold);
}

.plan-recommended {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.plan-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
}

.plan-features {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--light-gray);
}

.plan-feature::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--light-gray);
}

.form-label .required {
  color: #ef4444;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select option {
  background: var(--navy);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--light-gray);
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.radio-label:hover {
  border-color: var(--green);
  background: rgba(26,107,60,0.1);
}

.radio-label input {
  margin-top: 2px;
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* チェックボックス選択済みのカード強調 */
.radio-label:has(input:checked) {
  border-color: var(--green);
  background: rgba(26,107,60,0.12);
}
.radio-label:has(input[type="checkbox"]:checked) {
  border-color: var(--green);
  background: rgba(26,107,60,0.12);
}

/* ============================================
   ALERT / INFO BOXES
   ============================================ */
.info-box {
  background: rgba(26,107,60,0.15);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.info-box p {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-bottom: 8px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.gold-box {
  background: rgba(212,160,23,0.1);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.back-btn:hover {
  color: var(--white);
}

/* ============================================
   UTILITY
   ============================================ */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-gray { color: var(--gray); }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

.fw-700 { font-weight: 700; }
.font-oswald { font-family: 'Oswald', sans-serif; }

.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 40px 0;
}

/* No results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.no-results h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--light-gray);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 56px 20px;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .plan-card {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
