body, html {
    overflow-x: hidden;
}
/* 基本設定 */

:root {
    --main-color: #FF6B00; /* オレンジ */
    --accent-color: #1E3A8A; /* 深い青 */
    --text-color: #212529; /* ダークグレー */
    --bg-color: #FFFFFF; /* 白 */
    --bg-light-color: #F8F9FA; /* 明るいグレー */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.bg-light {
    background-color: var(--bg-light-color);
}

.text-center {
    text-align: center;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}


/* ヘッダー */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* style.css のヘッダーセクションにある .logo を変更 */
.logo {
    /* フォントに関する指定は不要になるので削除 */
    /* font-size: 2.2rem; */ 
    /* font-weight: 700; */
    /* font-family: 'Yuji Syuku', serif; */

    /* 画像ロゴがクリックできるように、aタグ自体は残す */
    text-decoration: none; 
    display: flex; /* 画像を中央配置したり、縦位置を調整しやすくするため */
    align-items: center; /* 縦方向の中央揃え */
    height: 100%; /* 親の高さに合わせるか、具体的な高さを指定 */
}

/* logoの中のimgタグに対するスタイルを追加 */
.logo img {
    height: 40px; /* ヘッダーに収まる基本の高さを指定 */
    width: auto;
    vertical-align: middle;
    /* ↓ 見た目だけを1.5倍に拡大する */
    transform: scale(5);
    /* ↓ 拡大縮小を滑らかにするおまじない */
    transition: transform 0.3s ease;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--main-color);
}


/* ヒーローセクション */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/huukei.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}


/* ニュース */
.news-grid {
    /* gridからflexに変更 */
    display: flex;
    gap: 30px;
    padding-bottom: 20px; /* スクロールバーのスペースを確保（見た目上） */
}

.news-item {
    /* アイテムが縮まないようにし、幅の基準を指定 */
    flex: 0 0 320px; 
    background-color: var(--bg-light-color);
    padding: 30px;
    border-radius: 5px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.news-item time {
    font-weight: 700;
    color: var(--main-color);
}

.news-item h3 {
    margin: 10px 0;
}


/* クラブ紹介 */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text dl dt {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
    position: relative;
    padding-left: 20px;
}
.about-text dl dt::before {
    content: '✓';
    color: var(--main-color);
    position: absolute;
    left: 0;
}

.about-image {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.detail-card {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.detail-card h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* スケジュール */
.calendar-wrapper {
    position: relative;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #ddd;
}

.calendar-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.legend {
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.1rem; /* 少し大きくして見やすく */
}

/* 練習の色（Googleカレンダーの青色風） */
.practice {
    color: #039BE5; /* 鮮やかな青 */
    margin-right: 20px; /* 「試合」との間隔を空ける */
}

/* 試合の色（Googleカレンダーの赤色風） */
.match {
    color: #D50000; /* 濃いめの赤（文字でも読みやすい色） */
}

/* 既存のstaff-cardのスタイルを変更 */
.staff-card {
    /* flexの方向を縦に変更し、テキストを中央揃えに */
    display: flex;
    flex-direction: column; /* 画像とテキストを縦に並べる */
    align-items: center;   /* 全体を中央揃え */
    text-align: center;    /* テキストを中央揃え */
    background-color: white;
    padding: 20px 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.staff-image {
    width: 150px;  /* 少し小さく調整 */
    height: 150px; /* 少し小さく調整 */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px; /* 画像とテキストの間に余白を追加 */
}

.staff-info {
    flex: 1;
}

.staff-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.staff-role {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.staff-qualification {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex; /* フレックスボックスを使用 */
    align-items: flex-start; /* 子要素を左寄せに */
}


/* お問い合わせ */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--bg-light-color);
    padding: 60px;
    border-radius: 10px;
}
.contact-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.contact-wrapper p {
    margin-bottom: 40px;
}
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.contact-btn {
    width: 280px;
    padding: 20px;
}
.contact-btn.instagram {
    background-color: #C13584;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-btn.instagram:hover {
    background-color: #A32B6F;
}
.contact-btn.phone {
    background-color: var(--accent-color);
}
.contact-btn.phone:hover {
    background-color: #162B65;
}

.contact-btn span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 5px;
}

/* フッター */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .section-title { font-size: 2rem; }
    .nav { display: none; } /* 本格的なサイトではハンバーガーメニューを実装 */
    .hero-content h1 { font-size: 2.2rem; }
    .about-content { flex-direction: column; }
    .staff-card { flex-direction: column; text-align: center; }
    .contact-methods { flex-direction: column; align-items: center; }
}

/* --- ラッパーとスクロール設定 --- */
.news-wrapper {
    position: relative; /* 矢印ボタンを配置するための基準 */
}

.news-scroll-container {
    overflow-x: scroll; /* 横方向のスクロールを有効にする */
    scrollbar-width: none; /* Firefoxのスクロールバーを非表示 */
    -ms-overflow-style: none; /* Internet Explorerのスクロールバーを非表示 */
}
/* Chrome, Safariのスクロールバーを非表示 */
.news-scroll-container::-webkit-scrollbar {
    display: none;
}

/* --- 矢印ボタンのスタイル --- */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s, color 0.3s;
}
.scroll-btn:hover {
    background-color: var(--main-color);
    color: white;
    border-color: var(--main-color);
}
#scroll-left {
    left: -25px; /* ボタンの位置調整 */
}
#scroll-right {
    right: -25px; /* ボタンの位置調整 */
}

.staff-grid {
    display: grid;
    /* 画面サイズに応じて2列または1列に自動で切り替わる設定 */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px; /* カード間の余白 */
}

.detail-card p {
    word-break: keep-all;
}

/* style.css の末尾などに追加 */

/* --- ハンバーガーボタンのスタイル --- */
.hamburger-btn {
    display: none; /* PCでは非表示 */
    width: 50px;
    height: 50px;
    background: var(--main-color);
    z-index: 9999;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.hamburger-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px auto;
    transition: transform 0.3s, opacity 0.3s;
}

/* ボタンがアクティブになった時（JSで制御）のスタイル */
.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ▼▼▼ 768px以下の画面サイズで適用されるスタイル ▼▼▼ */
@media (max-width: 1024px) {
    .header .logo {
        position: static; /* ロゴを「浮かせる」のをやめ、通常の配置に戻す */
        transform: none;
        margin-left: 10px;  /* scaleやtranslateなどの変形をすべてリセット */
    }

    .scroll-btn {
        display: none;
    }

    /* スマホの時だけ改行タグを表示する */
    .br-mobile {
        display: block;
    }

    /* スマホのヘッダーに合わせてロゴ画像を少し小さくすると、よりバランスが良くなります */
    .logo img {
        height: 35px; 
        transform: scale(2.5);
    }
    .header .nav {
        display: none;
    }
    
    /* ハンバーガーボタンを表示 */
    .hamburger-btn {
        display: block;
    }

    /* ハンバーガーメニュー用のナビゲーションスタイル */
#global-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh; /* 画面の高さ100% */
    
    /* ▼▼▼ ここが修正ポイント（スクロール許可） ▼▼▼ */
    overflow-y: auto; /* 縦方向のスクロールを許可する */
    -webkit-overflow-scrolling: touch; /* iPhoneでのスクロールを滑らかにする */
    
    background-color: rgba(33, 37, 41, 0.95);
    z-index: 1000;
    transition: right 0.5s ease;
    padding-top: 80px;
    
    /* ▼ 下までスクロールした時に、一番下の項目が隠れないように余白をとる */
    padding-bottom: 50px; 
}

    /* メニューがアクティブになった時（JSで制御）のスタイル */
    #global-nav.is-active {
        right: 0; /* 画面内にスライドイン */
    }

    /* メニュー内のリストのスタイル */
    #global-nav ul {
        display: flex;
        flex-direction: column; /* 縦並びにする */
        text-align: center;
    }

    #global-nav li {
        margin-bottom: 30px;
    }

    #global-nav a {
        color: white; /* 文字色を白に */
        font-size: 1.2rem;
        font-weight: 700;
    }
}

/* スマホ用の改行タグをPCでは非表示にする */
.br-mobile {
    display: none;
}

/* === Blaze文字 炎エフェクト (燃え滾るバージョン) === */

/* Blazeテキストのスタイル */
.blaze-text {
    /* 炎の背景を設定 */
    background: linear-gradient(
        -45deg, 
        #ee7752, /* オレンジ */
        #e73c7e, /* ショッキングピンク */
        #feda75, /* イエロー */
        #f0944d  /* オレンジ */
    );
    background-size: 400% 400%; /* 背景を大きくして滑らかに動かす */

    /* ▼▼ ここからが文字をくり抜くための重要設定 ▼▼ */
    -webkit-background-clip: text; /* Safari, Chrome用 */
    background-clip: text;         /* 標準 */
    color: transparent;            /* 文字色を透明にして背景を見せる */
    /* ▲▲ ここまでが重要設定 ▲▲ */

    /* アニメーションを適用 */
    animation: fireEffect 3s ease-in-out infinite;

    /* 見た目の微調整 */
    font-size: 1.1em; /* 少しだけ大きくして迫力を出す */
    display: inline-block; /* transformなどが効くように */
}

/* 炎が燃え滾る動きを定義するアニメーション */
@keyframes fireEffect {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* お問い合わせセクションの持ち物リストスタイル */
.bring-list {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    border: 2px solid var(--main-color);
    text-align: left;
}
.bring-list h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.bring-list ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}
.bring-list li {
    margin-bottom: 10px;
}
.small-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* --- 入会案内セクションのスタイル --- */

.join-block {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.join-block h3 {
    font-size: 1.5rem;
    border-left: 5px solid var(--main-color);
    padding-left: 15px;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* 料金テーブル */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.price-table th, 
.price-table td {
    padding: 20px;
    border: 1px solid #ddd;
    text-align: left;
}

.price-table th {
    background-color: var(--bg-light-color);
    width: 30%; /* 左側のラベルの幅 */
    font-weight: 700;
    color: var(--accent-color);
}

/* 募集要項リスト */
.recruitment-list dl {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}
.recruitment-list dl:first-child {
    border-top: 1px solid #ddd;
}

.recruitment-list dt {
    width: 30%;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center; /* 縦方向中央揃え */
}

.recruitment-list dd {
    width: 70%;
}

/* 注釈（※）の文字スタイル */
.note {
    font-size: 0.9rem;
    color: #666;
    display: block;
    margin-top: 5px;
}

/* スマホ対応 */
@media (max-width: 1024px) {
    .price-table th, .price-table td {
        display: block;
        width: 100%;
    }
    .price-table th {
        background-color: #eee;
    }
    
    .recruitment-list dl {
        flex-direction: column;
    }
    .recruitment-list dt {
        width: 100%;
        margin-bottom: 10px;
        color: var(--main-color); /* スマホで見出しを目立たせる */
    }
    .recruitment-list dd {
        width: 100%;
    }
}

/* style.css の .emblem-img をこれに書き換えてください */

.emblem-img {
    /* 画像の幅設定 */
    width: 100%;            /* スマホでは親要素の幅いっぱいに */
    max-width: 300px;       /* ただしPCでも300px以上には大きくしない */
    
    /* ▼▼▼ ここが修正のポイント（引き伸ばし防止） ▼▼▼ */
    height: auto !important; /* 横幅に合わせて高さは自動で決める（最重要） */
    object-fit: contain;     /* 縦横比を絶対に維持する */
    align-self: center;      /* 横の文章が長くても、画像は上下中央に配置する */
    
    /* その他の見た目設定 */
    display: block;
    margin: 20px auto;       /* 上下に少し隙間をあけて、左右中央揃え */
    
    /* 影などの装飾 */
    border-radius: 20px;     /* 必要なければ削除OK */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* 影 */
    transition: transform 0.3s;
}

.emblem-img:hover {
    transform: translateY(-10px);
}

/* --- Q&Aセクションのスタイル --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
    color: var(--main-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}
/* Qの文字だけ色を変える */
.faq-question::before {
    content: "Q.";
    margin-right: 10px;
    color: var(--main-color);
}

.faq-answer {
    padding-left: 20px;
    border-left: 3px solid #ddd;
}
.faq-answer p {
    margin-bottom: 0;
}

.flyer-container {
    text-align: center;
    margin-bottom: 40px;
}
.flyer-img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .contact-btn {
        width: 100%; /* スマホでは押しやすさ重視で幅いっぱいにしてもOK */
        max-width: 320px; /* ただし広がりすぎないように制限 */
    }
}

/* --- メールボタンとレイアウト調整用 --- */

/* ボタンをきれいに並べる設定 */
.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* 画面が狭いときは折り返す */
    gap: 20px;       /* ボタン同士の隙間 */
}

.contact-btn {
    /* 幅を調整して横並びしやすくする */
    width: 240px; 
    padding: 15px;
    text-align: center;
    /* インスタボタンなどがflexになっている場合の調整 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* メールボタンの色（Outlookブルー） */
.contact-btn.mail {
    background-color: #0072C6; 
}
.contact-btn.mail:hover {
    background-color: #005a9e;
}

/* --- レスポンシブ設定（PC画面縮小時の対応） --- */
@media (max-width: 1024px) {
    /* お問い合わせボタンをスマホ・タブレットでは幅いっぱいに */
    .contact-btn {
        width: 100%;
        max-width: 400px;
    }

    /* ハンバーガーメニューのスクロール対応 */
    #global-nav {
        /* 縦方向のスクロールを許可 */
        overflow-y: auto; 
        -webkit-overflow-scrolling: touch;
        
        /* 下までスクロールした時に隠れないよう余白を多めにとる */
        padding-bottom: 100px; 
    }
    
    /* ロゴの位置調整（もし崩れていれば） */
    .header .logo {
        margin-left: 15px;
    }
}
