/* =========================================================
   池田ユナイテッドI.O.I 公式サイト スタイル
   クラブカラー: 赤 / 黒 / 黄
   ========================================================= */

:root {
  --color-red: #C8102E;
  --color-red-dark: #9e0c24;
  --color-yellow: #FFD200;
  --color-black: #16161a;
  --color-ink: #23232a;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-tint: #f6f6f4;
  --color-muted: #6b6b73;
  --color-border: #e6e6e2;

  --font-body: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Oswald", "Noto Sans JP", sans-serif;

  --container: 1120px;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-red); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-black);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-red); color: #fff; }
.btn--primary:hover { background: var(--color-red-dark); }
.btn--outline { background: transparent; color: #fff; border-color: #fff; }
.btn--outline:hover { background: #fff; color: var(--color-red); }
.btn--insta {
  background: linear-gradient(45deg, #f09433, #e6683c 30%, #dc2743 60%, #cc2366 90%);
  color: #fff;
}
.btn--lg { padding: 15px 32px; font-size: 1.05rem; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 22, 26, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--color-yellow);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; }
.brand__name {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.nav__menu {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav__menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__menu a:hover { background: rgba(255, 255, 255, 0.12); }
.nav__cta {
  background: var(--color-red);
  color: #fff !important;
}
.nav__cta:hover { background: var(--color-red-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease;
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(200,16,46,0.92), rgba(22,22,26,0.92)),
    repeating-linear-gradient(135deg, rgba(255,210,0,0.06) 0 24px, transparent 24px 48px);
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,210,0,0.18), transparent 45%);
  pointer-events: none;
}
.hero__inner { position: relative; padding-block: 80px; }
.hero__eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  color: var(--color-yellow);
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.hero__title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero__catch {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  margin: 0 0 24px;
  max-width: 40ch;
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== セクション共通 ===== */
.section { padding-block: clamp(48px, 8vw, 88px); }
.section--tint { background: var(--color-tint); }
.section--dark { background: var(--color-black); color: #fff; }
.section__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  margin: 0 0 8px;
  position: relative;
  padding-left: 18px;
}
.section__title::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em; bottom: 0.15em;
  width: 6px;
  background: var(--color-red);
  border-radius: 3px;
}
.section__title--light { color: #fff; }
.section__title--light::before { background: var(--color-yellow); }
.section__desc { color: var(--color-muted); margin: 0 0 32px; }
.section__desc--light { color: rgba(255,255,255,0.75); }

.prose p { margin: 0 0 12px; }
.intro__lead {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-red);
}

/* ===== カード / グリッド ===== */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.grid { display: grid; gap: 20px; }
.grid--about { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--activities { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--sponsors { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 28px; }
.grid--instagram { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.about-card { padding: 22px; }
.about-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--color-red);
}
.about-card__body { margin: 0; color: var(--color-ink); }

/* ===== 活動記録 ===== */
.activity-card { display: flex; flex-direction: column; box-shadow: var(--shadow); }
.activity-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.activity-card__media a {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; background: var(--color-black); color: var(--color-yellow);
  text-decoration: none; font-weight: 700;
}
.activity-card__body { padding: 18px; flex: 1; }
.activity-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--color-muted); font-size: 0.85rem; }
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-muted);
}
.badge--match { background: var(--color-red); }
.badge--practice { background: #2a7d4f; }
.badge--event { background: #d68a00; }
.activity-card__title { margin: 0 0 8px; font-size: 1.1rem; }
.activity-card__text { margin: 0; color: var(--color-ink); }

/* ===== 試合結果テーブル ===== */
.results { margin-top: 44px; }
.results__title { font-size: 1.3rem; margin: 0 0 16px; }
.results__scroll { overflow-x: auto; }
.results__table { width: 100%; border-collapse: collapse; min-width: 560px; }
.results__table th, .results__table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  white-space: nowrap;
}
.results__table thead th { background: var(--color-black); color: #fff; }
.results__score { font-weight: 700; }
.result-badge { padding: 2px 10px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 0.85rem; }
.result-badge--win { background: var(--color-red); }
.result-badge--lose { background: #555; }
.result-badge--draw { background: #d68a00; }

/* ===== 協賛企業 ===== */
.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  text-decoration: none;
  color: var(--color-ink);
}
.sponsor-card__logo { width: 100%; height: 90px; object-fit: contain; }
.sponsor-card__name { font-size: 0.9rem; font-weight: 500; text-align: center; }
.recruit {
  background: #fff;
  border: 2px dashed var(--color-red);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.recruit__msg { margin: 0 0 18px; font-weight: 500; }

/* ===== Instagram ===== */
.instagram__profile {
  display: flex;
  gap: 24px;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}
.instagram__handle { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 8px; color: var(--color-yellow); }
.instagram__bio { margin: 0 0 18px; color: rgba(255,255,255,0.8); }
.instagram-post {
  display: block;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease;
}
.instagram-post:hover { transform: translateY(-3px); }
.instagram-post__thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.instagram-post__caption { display: block; padding: 12px 14px; font-size: 0.9rem; }

/* ===== お問い合わせ ===== */
.contact { text-align: center; max-width: 680px; }
.contact__lead { margin: 0 auto 20px; color: var(--color-ink); }
.contact__purposes {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.contact__purposes li { padding-left: 26px; position: relative; }
.contact__purposes li::before {
  content: "\26BD"; /* soccer ball */
  position: absolute; left: 0;
}
.contact__note { color: var(--color-muted); font-size: 0.85rem; margin-top: 18px; }

/* ===== 状態表示 ===== */
.state { color: var(--color-muted); text-align: center; padding: 24px; grid-column: 1 / -1; }
.state--error { color: var(--color-red); }

/* ===== フッター ===== */
.site-footer { background: var(--color-black); color: #fff; padding-block: 40px 24px; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.site-footer__logo { border-radius: 50%; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__nav a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer__nav a:hover { color: var(--color-yellow); }
.site-footer__insta { color: var(--color-yellow); text-decoration: none; font-weight: 700; }
.site-footer__copy {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(22, 22, 26, 0.98);
    padding: 12px 20px 24px;
    align-items: stretch;
    transform: translateY(-120%);
    transition: transform .25s ease;
    border-bottom: 3px solid var(--color-yellow);
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav__cta { text-align: center; margin-top: 10px; border-radius: 8px; }
  .instagram__profile { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
