/* ===========================================================
   城東エンジェルス サイト共通スタイル
   配色：チームカラーの赤(#d62828)を主役に + 白 + 差し色の紺(#0a2a5e)
   スマホ表示を最優先に設計しています。
   =========================================================== */

:root {
  --red: #d62828;
  --red-dark: #b51d1d;
  --red-deep: #8f1414;
  --navy: #0a2a5e;
  --navy-dark: #07204a;
  --navy-light: #1c4287;
  --bg: #fbf7f6;
  --card: #ffffff;
  --text: #2a2222;
  --text-soft: #6b5f5f;
  --line: #ecdfdf;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(143, 20, 20, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--navy-light); }

/* ---------- 共通レイアウト ---------- */
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 18px; }

section { padding: 44px 0; }

.section-title {
  font-size: 1.5rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 6px;
  font-weight: 800;
}
.section-sub {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* ---------- ヘッダー / ナビ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem;
}
.logo .mark {
  background: #fff; color: var(--red);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem;
}
.nav-toggle {
  background: none; border: none; color: #fff; cursor: pointer;
  width: 44px; height: 44px; font-size: 1.6rem; line-height: 1;
}
.nav-menu { display: none; }
.nav-menu.open { display: block; }
.nav-menu {
  position: absolute; top: 60px; left: 0; right: 0;
  background: var(--red-dark);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.nav-menu a {
  display: block; color: #fff; text-decoration: none;
  padding: 15px 22px; border-bottom: 1px solid rgba(255,255,255,0.10);
  font-weight: 600;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--red-deep); }

/* ---------- ヒーロー（トップ最上部） ---------- */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; text-align: center;
  padding: 56px 18px 60px;
  position: relative; overflow: hidden;
}
.hero h1 { font-size: 2rem; font-weight: 800; line-height: 1.4; margin-bottom: 14px; }
.hero p { font-size: 1.05rem; opacity: 0.95; max-width: 600px; margin: 0 auto 26px; }
.hero .badge {
  display: inline-block; background: var(--navy); color: #fff;
  font-weight: 700; font-size: 0.9rem; padding: 6px 16px; border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- 写真 ---------- */
.photo-band { padding: 22px 0; }
.photo-main { margin: 0; }
.photo-main img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); object-fit: cover;
}
.photo-main figcaption {
  text-align: center; color: var(--text-soft);
  font-size: 0.92rem; margin-top: 10px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-weight: 700; text-align: center;
  padding: 15px 28px; border-radius: 999px; border: none;
  font-size: 1.05rem; transition: transform .08s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(214,40,40,.3); }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-line { background: #06c755; color: #fff; box-shadow: 0 6px 16px rgba(6,199,85,.3); }
.btn-line:hover { background: #05b34c; }
.btn-disabled { background: #c4cbd6; color: #fff; cursor: not-allowed; box-shadow: none; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }

/* ---------- カード ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px;
}
.card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 8px; }

/* ---------- 在籍団員：学年ごとの人数 ---------- */
.roster-grades {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-top: 14px;
}
.roster-grades li {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border-radius: 10px; padding: 12px 16px;
}
.roster-grades .g { font-weight: 700; color: var(--text); }
.roster-grades .n { font-weight: 800; color: var(--red); font-size: 1.15rem; }
@media (min-width: 560px) {
  .roster-grades { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- トップ：募集の訴求ボックス ---------- */
.recruit-cta {
  background: var(--card); border: 3px solid var(--red);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow);
}
.recruit-cta h2 { color: var(--red); font-size: 1.45rem; margin-bottom: 10px; }
.recruit-cta p { color: var(--text-soft); margin-bottom: 20px; }

/* 特徴アイコン3つ */
.features { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); text-align: center;
}
.feature .emoji { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.feature h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.feature p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- ニュース一覧 ---------- */
.news-item {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 14px; display: block;
  text-decoration: none; color: var(--text);
}
.news-item .date {
  display: inline-block; background: var(--navy); color: #fff;
  font-size: 0.8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  margin-bottom: 8px;
}
.news-item h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.news-item p { color: var(--text-soft); font-size: 0.95rem; }
.news-item img { border-radius: 10px; margin-top: 12px; }

/* ---------- 試合結果 ---------- */
.result-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; margin-bottom: 12px;
  border-left: 6px solid var(--line);
}
.result-card.win { border-left-color: var(--red); }
.result-card.lose { border-left-color: var(--navy-light); }
.result-card.draw { border-left-color: #b0b8c5; }
.result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.result-date { color: var(--text-soft); font-size: 0.85rem; }
.result-tag {
  font-size: 0.8rem; font-weight: 700; color: #fff;
  padding: 2px 10px; border-radius: 999px; background: var(--navy);
}
.result-badge { font-weight: 800; font-size: 0.95rem; padding: 2px 12px; border-radius: 6px; }
.result-badge.win { background: #fde7e5; color: var(--red-dark); }
.result-badge.lose { background: #e7edf7; color: var(--navy); }
.result-badge.draw { background: #eef0f3; color: var(--text-soft); }
.result-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.result-vs { font-size: 1.05rem; font-weight: 700; }
.result-score { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.result-comment { color: var(--text-soft); font-size: 0.92rem; margin-top: 6px; }

/* ---------- スケジュール ---------- */
.schedule-month { margin-bottom: 26px; }
.schedule-month h3 {
  background: var(--red); color: #fff; padding: 10px 16px;
  border-radius: var(--radius) var(--radius) 0 0; font-size: 1.1rem;
}
.schedule-list { background: var(--card); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.schedule-row { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.schedule-row:last-child { border-bottom: none; }
.schedule-day {
  flex-shrink: 0; text-align: center; min-width: 64px;
  background: var(--bg); border-radius: 10px; padding: 6px 8px;
}
.schedule-day .d { font-weight: 800; color: var(--navy); font-size: 1rem; white-space: nowrap; }
.schedule-day .w { font-size: 0.78rem; color: var(--text-soft); }
.schedule-day.sat .w { color: var(--navy-light); }
.schedule-day.sun .w { color: var(--red); }
.schedule-info .t { font-weight: 600; }
.schedule-info .p { color: var(--text-soft); font-size: 0.88rem; }

/* ---------- お問い合わせ ---------- */
.contact-box { text-align: center; }
.qr-area {
  background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 24px; margin: 20px auto; max-width: 360px;
}
.qr-area img { width: 180px; height: 180px; margin: 0 auto 10px; object-fit: contain; }
.qr-placeholder {
  width: 180px; height: 180px; margin: 0 auto 10px; border-radius: 10px;
  background: var(--bg); display: grid; place-items: center; color: var(--text-soft);
  font-size: 0.9rem; text-align: center; border: 1px solid var(--line);
}
.note { color: var(--text-soft); font-size: 0.9rem; margin-top: 8px; }

/* ---------- 情報テーブル（チーム紹介・募集） ---------- */
.info-table { width: 100%; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.info-table dt { background: var(--red); color: #fff; padding: 12px 16px; font-weight: 700; font-size: 0.95rem; }
.info-table dd { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.info-table dd:last-child { border-bottom: none; }

/* 体験の流れ（ステップ） */
.steps { counter-reset: step; }
.step {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 18px 18px 60px; margin-bottom: 14px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 16px;
  background: var(--red); color: #fff; width: 32px; height: 32px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 800;
}
.step h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- ページ見出し（下層ページ用） ---------- */
.page-head {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; text-align: center; padding: 38px 18px;
}
.page-head h1 { font-size: 1.7rem; font-weight: 800; }
.page-head p { opacity: .9; margin-top: 6px; font-size: 0.95rem; }

/* ---------- フッター ---------- */
.site-footer { background: var(--red-deep); color: #fff; padding: 34px 0; margin-top: 20px; }
.site-footer .container { text-align: center; }
.site-footer .f-logo { font-weight: 800; font-size: 1.2rem; margin-bottom: 8px; }
.site-footer p { opacity: .85; font-size: 0.9rem; margin: 2px 0; }
.site-footer a { color: #ffd0cd; }
.f-sns { margin: 14px 0; line-height: 2; }
.f-sns > div { margin: 2px 0; }
.nowrap { white-space: nowrap; }
.copyright { opacity: .6; font-size: 0.8rem; margin-top: 14px; }

.loading { text-align: center; color: var(--text-soft); padding: 20px; }

/* ===========================================================
   パソコン・タブレット向け（画面が広いとき）
   =========================================================== */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .hero h1 { font-size: 2.6rem; }
  .nav-toggle { display: none; }
  .nav-menu { display: flex !important; position: static; background: none; border: none; }
  .nav-menu a { border: none; padding: 8px 14px; border-radius: 8px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .btn-row { flex-direction: row; justify-content: center; max-width: none; }
  .btn-row .btn { flex: 0 1 auto; }
  .section-title { font-size: 1.9rem; }
}
