/* ================================ */
/*   style.css（サイト全体共通）    */
/* ================================ */

/* リセット＆ベース */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* カラーモデル */
:root {
  --primary-color: #00AAFF;
  --accent-color:  #FFD600;
  --text-color:    #333333;
}

/* 全体フォント設定 */
html, body {
  font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* コンテナ幅 */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-nav a {
  color: #fff;
  padding: 0 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.header-nav a:hover {
  color: var(--accent-color);
}

/* ヒーロー動画セクション */
#hero-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
#hero-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* セクションタイトル */
.section-title {
  font-size: 2rem;
  margin: 60px 0 24px;
  position: relative;
}
.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  position: absolute;
  bottom: -8px;
  left: 0;
}

/* カルーセル */
.swiper.mySwiper {
  max-width: 794px;
  margin: 0 auto 40px;
}
.swiper-slide img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* ギャラリー */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
  margin-bottom: 60px;
}
.gallery img {
  width: 100%;
  max-width: 260px;
  border-radius: 4px;
}

/* サービスカード */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* イベントリスト */
.event-list {
  list-style: none;
}
.event-list li {
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-color);
}

/* ボタン */
button, .btn {
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* フッター */
footer {
  background-color: #fafafa;
  text-align: center;
  padding: 24px 0;
  margin-top: 60px;
}
footer p {
  font-size: 0.9rem;
  color: #666;
}
footer .social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
footer .social a {
  text-decoration: none;
  color: #666;
  font-size: 0.9rem;
}

/* ===== フォント強制適用 ===== */
*, *::before, *::after {
  font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif !important;
}

/* ========== 大会コンセプトセクション ========== */
.concept-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #38bdf8, #0ea5e9);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  padding: 6rem 0;
}

/* サイドフェード用オーバーレイ */
.concept-section::before,
.concept-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5%;
  pointer-events: none;
  z-index: 10;
}
.concept-section::before {
  left: 0;
  background: linear-gradient(to right, #f3f4f6, rgba(243,244,246,0));
}
.concept-section::after {
  right: 0;
  background: linear-gradient(to left, #f3f4f6, rgba(243,244,246,0));
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 波型セパレーター */
.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  line-height: 0;
}
.wave {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
}
.wave1 {
  animation: waveMove 8s linear infinite alternate;
  opacity: 0.4;
}
.wave2 {
  animation: waveMove 6s linear infinite alternate-reverse;
  opacity: 0.6;
}

@keyframes waveMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
