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

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: #f7fbff;
    color: #222;
    line-height: 1.7;
}

/* ヘッダーとナビゲーション */
header {
    background: #2196f3;
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(33,150,243,0.08);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

nav.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
    height: 44px;
    width: auto;
    margin-right: 1rem;
    border-radius: 6px;
    vertical-align: middle;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #ffeb3b;
}

/* NEWバッジ */
.badge-new {
    color: #e60000;
    font-weight: 700;
    margin-left: 6px;
}

main {
    padding-top: 80px;
}

/* ヒーローセクション */
#hero {
    background: linear-gradient(120deg, #2196f3 60%, #bbdefb 100%); /* 既存グラデ削除可 */
    background: url('images/practice.jpg') center/cover no-repeat;
    position: relative;
    color: #fff;
    text-align: center;
    padding: 4rem 1rem 3rem 1rem;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* 黒のオーバーレイ */
    z-index: 1;
}

#hero .hero-content {
    position: relative;
    z-index: 2;
}

#hero h1, #hero h2, #hero p, #hero .cta-button {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.hero-img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(33,150,243,0.15);
    background: #e3f2fd;
}

.cta-button {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    font-weight: bold;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(33,150,243,0.10);
    transition: background 0.2s, color 0.2s;
}

.cta-button:hover {
    background: #f57c00;
    color: #fff;
}

/* 案内セクション */
#practice-info, #tournament-info {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(33,150,243,0.06);
    margin: 2rem auto;
    max-width: 700px;
    padding: 2.5rem 1.5rem;
    text-align: left;
}

#practice-info h2, #tournament-info h2 {
    color: #1976d2;
    margin-bottom: 1.5rem;
    text-align: center;
}

#practice-info ul {
    list-style: disc inside;
    font-size: 1.1rem;
    margin-left: 1.2em;
}

#tournament-info .tournament-img {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0.5rem auto 1rem auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(33,150,243,0.10);
    background: #e3f2fd;
}

#tournament-info p {
    text-align: center;
}

.line-link {
    color: #2196f3;
    text-decoration: underline;
    word-break: break-all;
}

.line-link:hover {
    color: #1976d2;
}

/* 主催者紹介 */
#organizer {
    background: #e3f2fd;
    border-radius: 16px;
    max-width: 700px;
    margin: 2rem auto;
    padding: 2.5rem 1.5rem;
}

#organizer h2 {
    color: #1976d2;
    margin-bottom: 1.5rem;
}

.organizer-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.organizer-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: #bbdefb;
    box-shadow: 0 2px 8px rgba(33,150,243,0.10);
}

.organizer-text {
    font-size: 1.1rem;
}

/* ギャラリー */
#gallery {
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    margin: 2rem auto;
    padding: 2.5rem 1.5rem;
}

#gallery h2 {
    color: #1976d2;
    margin-bottom: 1.5rem;
}

.gallery-content p {
    margin-bottom: 1.2rem;
}

.gallery-images {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    background: #e3f2fd;
    box-shadow: 0 2px 8px rgba(33,150,243,0.10);
}

/* ギャラリーのfigureデフォルト余白をリセット */
.gallery-images figure {
    margin: 0;
    text-align: center;
}

/* ギャラリー内の小見出し（リーグ名）を画像と揃えて中央寄せ */
#gallery h4 {
    text-align: center;
    margin: 0.5rem 0 0.5rem 0;
}

/* 問い合わせ */
#contact {
    background: #e3f2fd;
    border-radius: 16px;
    max-width: 700px;
    margin: 2rem auto 3rem auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

#contact h2 {
    color: #1976d2;
    margin-bottom: 1.5rem;
}

.mail-link {
    color: #2196f3;
    font-size: 1.2rem;
    text-decoration: underline;
    word-break: break-all;
}

.mail-link:hover {
    color: #1976d2;
}

/* フッター */
footer {
    background: #1976d2;
    color: #fff;
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    margin: 0 auto;
}

.social-links {
    margin-bottom: 1rem;
}

.social-link {
    color: #fff;
    margin: 0 1rem;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: #ffeb3b;
}

/* レスポンシブ */
@media (max-width: 800px) {
    .site-logo {
        height: 36px;
        margin-right: 0.7rem;
    }
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    .nav-links li {
        margin-left: 0;
    }
    .organizer-content {
        flex-direction: column;
        gap: 1rem;
    }
    .gallery-images {
        gap: 0.7rem;
    }
    .info-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    #practice-info, #tournament-info {
        padding: 1.5rem 0.7rem;
    }
    #tournament-info .tournament-img {
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }
    .cta-button {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    .gallery-img, .organizer-img {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 600px) {
    .social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .social-link {
        margin: 0.3rem 0;
        width: 100%;
        display: flex;
        justify-content: center;
        font-size: 1.1rem;
    }
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 28px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ハンバーガー開閉時のアニメーション */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 800px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #2196f3;
    flex-direction: column;
    width: 180px;
    box-shadow: 0 2px 8px rgba(33,150,243,0.15);
    border-radius: 0 0 0 12px;
    padding: 1rem 0;
    display: none;
    gap: 0;
    z-index: 1099;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 0;
    padding: 0.7rem 1.5rem;
    text-align: left;
  }
}

section {
  scroll-margin-top: 90px;
}

/* 画像拡大モーダル */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.image-modal.active {
  display: flex;
}
.modal-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  background: #fff;
}
.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
  text-shadow: 0 2px 8px #000;
}
@media (max-width: 600px) {
  .close-modal {
    top: 10px;
    right: 16px;
    font-size: 2rem;
  }
  .modal-content {
    max-width: 98vw;
    max-height: 60vh;
  }
} 

.join-steps-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-top: 1em;
}

.center-step-img {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0.5em auto;
} 

.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 2rem auto 0 auto;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  z-index: 2;
}
.hero-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
} 