/* ===== 色やサイズはここで一括管理 ===== */
:root {
  --enji: #8b1e2d;        /* チームカラー：えんじ */
  --enji-dark: #5e1220;   /* 濃いえんじ */
  --gold: #d4a64a;        /* アクセント（ゴールド） */
  --ink: #1c1c1c;         /* 文字色 */
  --paper: #faf7f2;       /* 背景色 */
  --gray: #6b6b6b;
  --max: 1100px;          /* コンテンツの最大幅 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), 90%); margin: 0 auto; }

/* ===== ヘッダー ===== */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(94, 18, 32, 0.95);
  backdrop-filter: blur(6px);
  color: #fff;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-family: "Oswald", sans-serif; font-size: 1.6rem; letter-spacing: .08em; }
.logo span { color: var(--gold); }
nav ul { display: flex; gap: 2rem; list-style: none; }
nav a { font-size: .9rem; font-weight: 700; transition: color .2s; }
nav a:hover { color: var(--gold); }
.menu-btn {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.6rem; cursor: pointer;
}

/* ===== メインビジュアル ===== */
.hero {
  min-height: 100vh;
  display: grid; place-items: center; text-align: center;
  color: #fff; position: relative; overflow: hidden;
  min-height: 100vh;
  display: grid; place-items: center; text-align: center;
  color: #fff; position: relative; overflow: hidden;
.hero { background: var(--enji-dark); } /* 写真が読み込まれるまでの色 */

.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.1);
  /* 消えるとき：フェードアウトが終わってから大きさを戻す */
  transition: opacity 1.5s ease, transform 0s linear 1.5s;
}
.hero-slides img.active {
  opacity: 1; transform: scale(1);
  /* 表示中：1.5秒でフェードイン、6秒かけてゆっくりズームアウト */
  transition: opacity 1.5s ease, transform 6s linear;
}

/* 写真の上にえんじ色を薄くかぶせて文字を読みやすくする */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(94,18,32,.5), rgba(30,6,10,.85));
}
.hero-content { position: relative; z-index: 2; }
}
.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.1rem); letter-spacing: .3em; color: var(--gold);
  font-weight: 700;
}
.hero h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(4rem, 15vw, 10rem);
  line-height: 1; letter-spacing: .06em; margin: .2em 0;
}
.hero-copy { font-size: clamp(1rem, 2.5vw, 1.3rem); font-weight: 700; }
.hero-btns { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .9em 2.2em; font-weight: 700;
  border-radius: 4px; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--enji-dark); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-enji { background: var(--enji); color: #fff; }

/* ===== 次の試合 ===== */
.next-game {
  background: #fff; margin-top: -60px; position: relative; z-index: 2;
  border-top: 6px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: 2rem; display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center;
}
.next-label { font-family: "Oswald", sans-serif; color: var(--enji); font-size: 1.1rem; letter-spacing: .1em; }
.matchup { font-size: 1.4rem; font-weight: 900; }
.matchup .vs { color: var(--gold); margin: 0 .6em; font-family: "Oswald", sans-serif; }
.game-info { color: var(--gray); font-size: .9rem; }

/* ===== セクション共通 ===== */
section { padding: 6rem 0; }
.sec-title { text-align: center; margin-bottom: 3rem; }
.sec-title .en {
  font-family: "Oswald", sans-serif; font-size: 2.6rem; color: var(--enji);
  letter-spacing: .08em; line-height: 1.2;
}
.sec-title .ja { font-size: .9rem; color: var(--gray); font-weight: 700; }

/* ===== お知らせ ===== */
.news-list { list-style: none; max-width: 800px; margin: 0 auto; }
.news-list li { border-bottom: 1px solid #ddd; }
.news-list a {
  display: grid; grid-template-columns: 110px 90px 1fr; gap: 1rem;
  padding: 1.2rem .5rem; transition: background .2s;
}
.news-list a:hover { background: #fff; }
.news-date { color: var(--gray); font-family: "Oswald", sans-serif; }
.tag {
  font-size: .75rem; background: var(--enji); color: #fff; text-align: center;
  border-radius: 2px; align-self: center; padding: .1em 0;
}
.tag.game { background: var(--gold); color: var(--enji-dark); }

/* ===== チーム紹介 ===== */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img {
  aspect-ratio: 4/3; border-radius: 4px;
  background: linear-gradient(135deg, var(--enji), var(--enji-dark));
  display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: .9rem;
}
.about h3 { font-size: 1.6rem; margin-bottom: 1rem; line-height: 1.5; }
.about p { margin-bottom: 1.5rem; }
.stats { display: flex; gap: 2.5rem; margin: 2rem 0; }
.stat-num { font-family: "Oswald", sans-serif; font-size: 2.4rem; color: var(--enji); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--gray); }

/* ===== 新入部員募集 ===== */
.recruit {
  background: linear-gradient(135deg, var(--enji), var(--enji-dark));
  color: #fff; text-align: center;
}
.recruit .sec-title .en { color: var(--gold); }
.recruit .sec-title .ja { color: rgba(255,255,255,.7); }
.recruit-lead { font-size: 1.3rem; font-weight: 900; margin-bottom: 3rem; }
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.role {
  border: 1px solid rgba(255,255,255,.25); padding: 2rem 1rem; border-radius: 4px;
  background: rgba(255,255,255,.05);
}
.role-en { font-family: "Oswald", sans-serif; color: var(--gold); font-size: 1.3rem; letter-spacing: .05em; }
.role h4 { font-size: 1.1rem; margin: .3rem 0 .6rem; }
.role p { font-size: .85rem; color: rgba(255,255,255,.8); line-height: 1.7; }

/* ===== お問い合わせ ===== */
.contact { text-align: center; }
.contact p { margin-bottom: 2rem; }
.sns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== フッター ===== */
footer { background: var(--ink); color: #aaa; padding: 2.5rem 0; text-align: center; font-size: .85rem; }
footer .logo { color: #fff; margin-bottom: .5rem; }


/* ===== スクロールでフェードイン ===== */
.fade-in {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.show { opacity: 1; transform: none; }

/* 新入部員募集のカードを順番に出す */
.role.fade-in:nth-child(2) { transition-delay: .15s; }
.role.fade-in:nth-child(3) { transition-delay: .3s; }
.role.fade-in:nth-child(4) { transition-delay: .45s; }


/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .menu-btn { display: block; }
  nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--enji-dark); display: none;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; padding: 1rem 5%; }
  nav li a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .next-game { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .news-list a { grid-template-columns: 1fr auto; }
  .news-list .news-title { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .roles { grid-template-columns: 1fr 1fr; }
  section { padding: 4.5rem 0; }
}

footer .logo span { color: var(--gold); }
.sec-title-left { text-align: left; margin-bottom: 1.5rem; }


/* ===== 動きを減らす設定の人向け ===== */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}