:root {
  --gold:    #D4A01A;
  --gold-lt: #F5C842;
  --dark:    #0D1117;
  --navy:    #1C2B4A;
  --gray:    #F3F4F6;
  --text:    #1F2937;
  --muted:   #6B7280;
  --white:   #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
}

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13,17,23,0.96);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 56px;
}
.nav-logo {
  color: var(--gold); font-size: 1.25rem; font-weight: 900;
  letter-spacing: 0.06em; text-decoration: none;
  display: flex; align-items: center;
}
.nav-logo img {
  height: 36px; width: auto; border-radius: 4px;
  display: block; object-fit: contain;
}
.nav-links { display: flex; }
.nav-links a {
  color: #9CA3AF; text-decoration: none;
  padding: 0 1rem; font-size: 0.88rem; line-height: 56px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* ── Hero (full) ── */
.hero {
  position: relative;
  background-size: cover; background-position: center;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 3rem 1.5rem 4rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.65) 100%);
}
.hero-body { position: relative; z-index: 1; }
.hero-en {
  font-size: 5.5rem; font-weight: 900; color: var(--gold);
  letter-spacing: 0.1em; line-height: 1;
  text-shadow: 0 4px 32px rgba(0,0,0,0.6);
}
.hero-ja {
  font-size: 0.9rem; color: rgba(255,255,255,0.8);
  letter-spacing: 0.25em; margin: 0.5rem 0 1rem;
}
.hero-tagline {
  font-size: 1.25rem; color: #fff;
  max-width: 480px; margin: 0 auto 1.8rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-badge {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-weight: 700; padding: 0.45rem 1.6rem;
  border-radius: 2rem; font-size: 0.9rem;
}
.hero-btns { margin-top: 1.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Hero (small — inner pages) ── */
.hero-sm {
  min-height: 38vh; padding-top: 2rem;
}
.hero-sm .hero-en { font-size: 2.8rem; }
.hero-sm .hero-tagline { font-size: 0.95rem; }

/* ── Stats bar ── */
.stats-bar {
  background: var(--dark); color: #fff;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.stat { padding: 1.4rem 2.4rem; text-align: center; }
.stat-num { font-size: 1.6rem; font-weight: 900; color: var(--gold); display: block; line-height: 1.1; }
.stat-label { font-size: 0.75rem; opacity: 0.65; letter-spacing: 0.05em; margin-top: 0.1rem; display: block; }
.stat-label-gold { color: var(--gold); opacity: 1; }

/* ── Layout ── */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4.5rem 0; }

/* ── Section labels ── */
.section-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; display: block; margin-bottom: 0.4rem;
}
.section-title {
  font-size: 1.9rem; font-weight: 900; color: var(--dark);
  line-height: 1.2; margin-bottom: 1.5rem;
}
.section-title span { color: var(--gold); }

/* ── About split ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img { border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.about-img img { width: 100%; height: 340px; object-fit: cover; display: block; }
.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1.2rem; }
.detail-item {
  background: var(--gray); padding: 0.7rem 0.9rem; border-radius: 8px;
}
.detail-item em { font-style: normal; font-size: 0.7rem; color: var(--muted); display: block; }
.detail-item strong { font-size: 0.95rem; color: var(--dark); }

/* ── Photo strip ── */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-strip img { width: 100%; height: 230px; object-fit: cover; display: block; }
.photo-strip img:first-child { border-radius: 10px 0 0 10px; }
.photo-strip img:last-child  { border-radius: 0 10px 10px 0; }

/* ── Photo grid (featured layout) ── */
.photo-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 6px;
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid .photo-featured { grid-row: 1 / 3; border-radius: 10px 0 0 10px; }
.photo-grid img:nth-child(2) { border-radius: 0 10px 0 0; }
.photo-grid img:nth-child(4) { border-radius: 0; }
.photo-grid img:nth-child(3) { border-radius: 0 0 0 0; }
.photo-grid img:last-child   { border-radius: 0 0 10px 0; }

@media (max-width:640px) {
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px 150px; }
  .photo-grid .photo-featured { grid-row: auto; border-radius: 10px 0 0 0; }
  .photo-grid img:nth-child(2) { border-radius: 0 10px 0 0; }
  .photo-grid img:nth-child(3) { border-radius: 0; }
  .photo-grid img:nth-child(4) { border-radius: 0 0 0 10px; }
  .photo-grid img:last-child   { border-radius: 0 0 10px 0; }
}

/* ── Dark section ── */
.section-dark { background: var(--dark); }
.section-dark .section-eyebrow { color: var(--gold-lt); }
.section-dark .section-title  { color: #fff; }
.section-dark p { color: #9CA3AF; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.card {
  background: var(--gray); border-radius: 10px; padding: 1.4rem 1.5rem;
  border-top: 3px solid var(--gold);
}
.card h3 { font-size: 1rem; color: var(--dark); margin-bottom: 0.5rem; }
.card p  { font-size: 0.9rem; color: var(--muted); }

.card-dark { background: #1a2232; border-color: var(--gold); }
.card-dark h3 { color: var(--gold); }
.card-dark p  { color: #9CA3AF; }

/* ── Buttons ── */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: 0.85rem 2.4rem; border-radius: 4px; font-size: 0.95rem;
  transition: all 0.2s; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--dark); }
.btn-block { display: block; text-align: center; max-width: 280px; margin: 1.5rem auto 0; }

/* ── Checklist ── */
.checklist { list-style: none; }
.checklist li {
  padding: 0.65rem 0 0.65rem 2rem; position: relative;
  font-size: 0.95rem; border-bottom: 1px solid #E5E7EB; color: var(--text);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: "✔"; color: var(--gold); font-weight: 900; position: absolute; left: 0; }

/* ── Match record table (試合記録) ── */
.match-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.match-table th {
  background: var(--dark); color: var(--gold);
  padding: 0.7rem 0.8rem; font-size: 0.8rem; text-align: center;
}
.match-table td {
  padding: 0.7rem 0.8rem; border-bottom: 1px solid #E5E7EB;
  text-align: center; font-size: 0.88rem;
}
.match-table td:nth-child(2) { text-align: left; font-weight: 600; }
.match-table td:nth-child(3) { text-align: left; color: var(--muted); font-size: 0.82rem; }
.match-table tr:nth-child(even) td { background: var(--gray); }
.match-table .result-win  td { border-left: 4px solid #2E7D32; }
.match-table .result-loss td { border-left: 4px solid #C62828; }
.match-table .result-draw td { border-left: 4px solid #E65100; }
.match-table .result-upcoming td { border-left: 4px solid var(--gold); color: var(--muted); }
.match-score { font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; }
.match-score.win  { color: #1B5E20; }
.match-score.loss { color: #C62828; }
.match-score.draw { color: #E65100; }
.match-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  padding: 0.15rem 0.55rem; border-radius: 2rem;
}
.badge-win      { background: #E8F5E9; color: #1B5E20; }
.badge-loss     { background: #FFEBEE; color: #C62828; }
.badge-draw     { background: #FFF3E0; color: #E65100; }
.badge-upcoming { background: #FFF9C4; color: #7c5c00; }
.badge-up   { background: #E8F5E9; color: #1B5E20; }
.badge-down { background: #FFEBEE; color: #C62828; }

.season-block { margin-bottom: 3rem; }
.season-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.2rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}
.season-year {
  font-size: 1.4rem; font-weight: 900; color: var(--dark);
}
.season-league { font-size: 0.82rem; color: var(--muted); }
.season-stats {
  display: flex; gap: 1rem; margin-left: auto; flex-wrap: wrap;
}
.season-stat { text-align: center; }
.season-stat .s-num { font-size: 1.1rem; font-weight: 700; color: var(--gold); display: block; }
.season-stat .s-lbl { font-size: 0.68rem; color: var(--muted); }

@media (max-width: 640px) {
  .match-table td:nth-child(3) { display: none; }
  .season-stats { display: none; }
}

/* ── Results table ── */
.result-table { width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; }
.result-table th {
  background: var(--dark); color: var(--gold);
  padding: 0.85rem 0.8rem; font-size: 0.82rem; text-align: center;
}
.result-table td {
  padding: 0.85rem 0.8rem; text-align: center;
  border-bottom: 1px solid #E5E7EB; font-size: 0.9rem;
}
.result-table td:first-child { text-align: left; font-weight: 700; }
.result-table tr:nth-child(even) td { background: var(--gray); }
.result-table .top-row td { background: #FFF3CD !important; font-weight: 600; }

/* ── Map ── */
.map-wrap { margin-bottom: 2.5rem; }
.map-place-name {
  font-size: 1.1rem; font-weight: 700; color: var(--dark);
  margin-bottom: 0.2rem; display: flex; align-items: center; gap: 0.5rem;
}
.map-addr { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.map-wrap iframe { width: 100%; height: 300px; border: 0; border-radius: 10px; display: block; }
.map-link { display: inline-block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--gold); text-decoration: none; }
.map-link:hover { text-decoration: underline; }

/* ── Note ── */
.note {
  background: #FFF9C4; border-left: 4px solid #D4A01A;
  padding: 0.8rem 1rem; font-size: 0.87rem; border-radius: 0 6px 6px 0;
  margin-top: 1.2rem; color: #5c4700;
}

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2a4a 100%);
  text-align: center; padding: 4rem 1.5rem;
}
.cta-banner .section-eyebrow { color: var(--gold-lt); }
.cta-banner .section-title   { color: #fff; }
.cta-banner p { color: #9CA3AF; margin-bottom: 1.8rem; }

/* ── Footer ── */
footer {
  background: #060a10; color: #4B5563;
  text-align: center; padding: 2.5rem 1.5rem; font-size: 0.82rem;
}
.footer-logo { color: var(--gold); font-size: 1.3rem; font-weight: 900; display: block; margin-bottom: 0.3rem; }

/* ── Divider ── */
.gold-line { height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ── Recruit Popup ── */
.popup-overlay {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s, visibility 0.45s;
}
.popup-overlay.active { opacity: 1; visibility: visible; }

.popup-modal {
  background: linear-gradient(160deg, #111827 0%, #0d1117 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 1rem 1.3rem 0.9rem;
  max-width: 400px; width: 92%;
  text-align: center; position: relative;
  transform: scale(0.75) translateY(40px);
  transition: transform 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
}
.popup-overlay.active .popup-modal {
  transform: scale(1) translateY(0);
  animation: popupGlow 2.8s 0.6s infinite;
}
@keyframes popupGlow {
  0%,100% { box-shadow: 0 0 40px rgba(212,160,26,0.25), 0 24px 60px rgba(0,0,0,0.6); }
  50%      { box-shadow: 0 0 90px rgba(212,160,26,0.55), 0 24px 60px rgba(0,0,0,0.6); }
}

.popup-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: var(--gold); color: var(--dark);
  border: none; cursor: pointer; font-weight: 900;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.popup-close:hover { background: var(--gold-lt); transform: scale(1.15); }

.popup-ball {
  font-size: 1.4rem; display: inline; margin-right: 0.3rem;
  animation: popBounce 1.2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes popBounce {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1.08); }
}

.popup-title {
  font-size: 1.5rem; font-weight: 900; color: var(--gold);
  letter-spacing: 0.04em; margin-bottom: 0.1rem; display: inline;
  text-shadow: 0 0 20px rgba(212,160,26,0.5);
}
.popup-title-line { margin-bottom: 0.2rem; }
.popup-sub {
  font-size: 0.72rem; color: var(--gold-lt); letter-spacing: 0.1em;
  margin-bottom: 0.4rem; opacity: 0.75;
}
.popup-divider {
  height: 1px; background: linear-gradient(90deg,transparent,var(--gold),transparent);
  margin: 0.4rem 0;
}
.popup-text { color: #9CA3AF; font-size: 0.82rem; line-height: 1.5; margin-bottom: 0.7rem; }
.popup-text strong { color: #fff; }

.popup-btn {
  display: block; width: 100%; max-width: 240px;
  margin: 0 auto 0.5rem; padding: 0.6rem;
  background: var(--gold); color: var(--dark);
  font-weight: 700; border-radius: 6px;
  text-decoration: none; font-size: 0.88rem;
  transition: background 0.2s, transform 0.15s;
}
.popup-btn:hover { background: var(--gold-lt); transform: translateY(-2px); }

.popup-later {
  color: #4B5563; font-size: 0.72rem;
  cursor: pointer; text-decoration: underline;
  background: none; border: none; font-family: inherit;
  transition: color 0.2s;
}
.popup-later:hover { color: #9CA3AF; }

/* ── Popup お知らせセクション ── */
.popup-section { text-align: left; margin-bottom: 0.5rem; }
.popup-section-label {
  font-size: 0.68rem; font-weight: 700; color: var(--gold-lt);
  letter-spacing: 0.15em; text-transform: uppercase;
  display: block; margin-bottom: 0.3rem;
}
.popup-news { display: flex; flex-direction: column; gap: 0.25rem; }
.popup-news-item {
  background: rgba(255,255,255,0.05);
  border-radius: 6px; padding: 0.35rem 0.65rem;
  font-size: 0.78rem; color: #CBD5E0;
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
  line-height: 1.35;
}
.popup-news-tag {
  font-size: 0.62rem; font-weight: 700;
  padding: 0.1rem 0.45rem; border-radius: 2rem;
  white-space: nowrap; flex-shrink: 0;
}
.popup-news-item .loss { color: #FCA5A5; font-weight: 700; }
.popup-recruit-label {
  font-size: 0.68rem; font-weight: 700; color: var(--gold-lt);
  letter-spacing: 0.15em; text-transform: uppercase;
  display: block; margin-bottom: 0.2rem;
}

@media (max-width: 375px) {
  .popup-title { font-size: 1.4rem; }
  .popup-modal { padding: 1.2rem 1.2rem 1rem; }
}

/* ── Google Form embed ── */
.gform-wrap {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: #fff; margin-top: 1rem;
}
.gform-wrap iframe {
  width: 100%; min-height: 620px;
  border: none; display: block;
}

/* ── News list ── */
.news-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }

.news-item {
  display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.85rem 1.1rem; border-radius: 8px;
  border-left: 4px solid transparent; background: var(--gray);
  font-size: 0.9rem; line-height: 1.5;
}
.news-item.news-result   { border-color: #2E7D32; }
.news-item.news-upcoming { border-color: var(--gold); }
.news-item.news-info     { border-color: #1C2B4A; }

.news-tag {
  font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.6rem;
  border-radius: 2rem; white-space: nowrap; flex-shrink: 0;
}
.tag-result   { background: #E8F5E9; color: #1B5E20; }
.tag-upcoming { background: #FFF9C4; color: #7c5c00; }
.tag-info     { background: #E8EAF6; color: #1C2B4A; }

.news-date {
  font-size: 0.82rem; color: var(--muted);
  white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.news-body { color: var(--text); flex: 1; }
.news-body strong { color: var(--dark); }
.news-score {
  font-weight: 700; font-size: 0.95rem; color: var(--dark);
  white-space: nowrap;
}
.news-score.win  { color: #1B5E20; }
.news-score.loss { color: #B71C1C; }
.news-score.draw { color: #E65100; }

@media (max-width: 480px) {
  .news-item { gap: 0.5rem; padding: 0.75rem 0.9rem; }
  .news-date { font-size: 0.75rem; }
  .news-body { font-size: 0.85rem; }
}

/* ── Starfield canvas ── */
#starfield {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.hero::before { z-index: 2; }
.hero-body    { z-index: 3; }

/* ── Floating CTA ── */
.float-cta {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: var(--gold); color: var(--dark);
  padding: 0.85rem 1.3rem; border-radius: 50px;
  font-weight: 700; text-decoration: none;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  transform: translateX(150%);
  animation: ctaSlideIn 0.6s 1.5s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
  transition: box-shadow 0.2s, transform 0.2s;
}
.float-cta:hover {
  box-shadow: 0 10px 36px rgba(212,160,26,0.6);
  transform: translateY(-3px);
}
.float-cta-icon { font-size: 1.3rem; line-height: 1; }
.float-cta-inner { display: flex; flex-direction: column; line-height: 1.3; }
.float-cta-inner span { font-size: 0.85rem; }
.float-cta-inner small { font-size: 0.72rem; opacity: 0.8; font-weight: 400; }
@keyframes ctaSlideIn {
  to { transform: translateX(0); }
}
@media (max-width: 640px) {
  .float-cta { bottom: 1rem; right: 1rem; padding: 0.7rem 1rem; }
  .float-cta-inner small { display: none; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  /* Nav */
  .nav { padding: 0 0.8rem; }
  .nav-logo { font-size: 1rem; }
  .nav-links { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .nav-links a { white-space: nowrap; padding: 0 0.55rem; font-size: 0.78rem; }

  /* Hero */
  .hero-en      { font-size: 2.8rem; letter-spacing: 0.06em; }
  .hero-tagline { font-size: 0.92rem; padding: 0 0.5rem; }
  .hero-ja      { font-size: 0.78rem; letter-spacing: 0.12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .hero-btns    { flex-direction: column; align-items: center; gap: 0.7rem; }
  .hero-btns .btn { width: 100%; max-width: 220px; text-align: center; }
  .hero-sm .hero-en { font-size: 2rem; }

  /* Stats bar: 2列×2行 */
  .stats-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .stat { padding: 1rem 0.6rem; }
  .stat-num { font-size: 1.1rem; }
  .stat-label { font-size: 0.68rem; }

  /* Layout */
  .about-grid { grid-template-columns: 1fr; }
  .about-img img { height: 240px; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip img:nth-child(3) { display: none; }
  .photo-strip img { height: 160px; }
  .photo-strip img:first-child { border-radius: 10px 0 0 10px; }
  .photo-strip img:nth-child(2) { border-radius: 0 10px 10px 0; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
}

/* iPhone SE / 小型スマホ（375px以下） */
@media (max-width: 375px) {
  .nav-logo { font-size: 0.9rem; }
  .nav-links a { padding: 0 0.4rem; font-size: 0.72rem; }

  .hero { padding: 2rem 1rem 3rem; }
  .hero-en { font-size: 2.2rem; letter-spacing: 0.04em; }
  .hero-ja { font-size: 0.68rem; letter-spacing: 0.08em; }
  .hero-tagline { font-size: 0.82rem; }
  .hero-badge { font-size: 0.78rem; padding: 0.35rem 1rem; }
  .hero-sm .hero-en { font-size: 1.7rem; }

  .stat-num { font-size: 0.95rem; }
  .stat-label { font-size: 0.62rem; }

  .section-title { font-size: 1.4rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }

  .btn { padding: 0.7rem 1.4rem; font-size: 0.85rem; }
}
