﻿@charset "UTF-8";

/* ==========================================
   1. 全体・リセット設定
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f9fc;

/* ヘッダーの高さ(60px) ＋ PC用メニューバーの高さ(約45px) ＝ 合計約105px以上の余白を空ける */
    padding-top: 105px;

/* ハンバーガーメニューが開いたときに、後ろの画面がスクロールしないようにする 　→　使用していません
　　overflow: hidden;
    position: fixed;
    width: 100%;
*/

}

/* ==========================================
   2. ヘッダー（校章画像対応）
   ========================================== */
header {
    background-color: #1a365d;
    color: #fff;
    padding: 20px;
    text-align: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1001;
    border-bottom: 1px solid #ddd;

}
.header-inner {
    display: flex;
    align-items: flex-start; /* 上揃えに変更 *//*デフォルト　center; */
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    background-color: #1a365d; /* 校章エリアの背景色（ヘッダーと同じ） */
    color: #2c3e50;           /* 文字の基本色 */

}
.school-emblem {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.header-title h1 {
    font-size: 0.9rem;     /*デフォルト 1.4rem; */
    letter-spacing: 0.05em;
    color: #cbd5e1;           /* 学校名の文字色 */
}
.header-title p {
    font-size: 0.80rem;
    /*color: #cbd5e1;*/
    color: ;   color: #cbd5e1;    /* サブタイトルの文字色（例：「T」） */
}

/* ==========================================
   3. ハンバーガーメニューボタンの色設定
   ========================================== */

.menu-toggle span {
    background-color: #27ae60; /* ハンバーガーの線の色（例：緑） */
}

/* ==========================================
    4. ナビゲーションメニューの色設定
   ========================================== */
.nav {
    background-color: #2c3e50; /* メニューを展開した時の背景色（例：ダークネイビー） */
}

.nav a {
    color: #ffffff;           /* メニューのリンク文字の色（例：白） */
}

.nav a:hover {
    background-color: #34495e; /* メニューにマウスを乗せた時の背景色 */
    color: #f1c40f;           /* マウスを乗せた時の文字色（例：黄色） */
}



/* ===============================================
   5. ナビゲーション（11項目・レスポンシブル対応）
   =============================================== */
nav {
    background-color: #2b6cb0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
nav a {
    color: #fff !important;
    padding: 12px 18px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s;
}
nav a:hover {
    background-color: #2c5282;
}

/* ==========================================
   6. メインコンテンツ・セクション
   ========================================== */
.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
}
section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
h2 {
    border-left: 5px solid #2b6cb0;
    padding-left: 12px;
    margin-bottom: 20px;
    color: #1a365d;
    font-size: 1.25rem;
}
p {
    margin-bottom: 15px;
}

/* ==========================================
   7. お知らせ・部活動セクション（実績・写真）
   ========================================== */

/*フレームを横に1分割します*/
.news-grid1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0px;    
}

/*フレームを横に2分割します*/
.news-grid2 {
    display: grid;
    grid-template-columns:  1fr 1fr;
    gap: 10px;
    margin-top: 0px;    
}

/*フレームを横に3分割します*/
.news-grid3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 0px;    
}

/*フレーム内のレイアウトや色*/

.item1 {
  background-color:  #f1f5f9;
  padding: 20px;
  text-align: left;
}

.item2 h4{
text-align: center;
}

.club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 15px;
}
.club-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.club-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.club-text {
    padding: 15px;
}
.club-text h3 {
    font-size: 1rem;
    color: #2b6cb0;
    margin-bottom: 8px;
}
.club-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #4a5568;
}

/* ==========================================
   8. リンク先（6つ）
   ========================================== */
.link-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
   /* grid-template-columns: repeat(3, 1fr);*/
    gap: 12px;
}
.link-grid li a {
    display: block;
    padding: 14px 18px;
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    border-left: 4px solid #2b6cb0;
    transition: all 0.2s;
}
.link-grid li a:hover {
    background: #e2e8f0;
    transform: translateX(3px);
}

/* ==========================================
   9. アクセス（Googleマップ埋め込み）
   ========================================== */
.map-box {
    position: relative;
    width: 100%;
    height: 350px;
    margin-top: 15px;
    border-radius: 6px;
    overflow: hidden;
}
.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================
   10. フッター
   ========================================== */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a365d;
    color: #cbd5e1;
    font-size: 0.85rem;
}

/* =============================================
   11.レスポンシブル対応（スマホ画面用の微調整）
   ============================================= */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    nav a {
        padding: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    section {
        padding: 20px 15px;
    }
}

/* ==========================================
   12.項目を横並びにする
   ========================================== */
.link-box {
  display: flex; /* 横並びにする */
  gap: 25px;     /* リンク同士の隙間を25pxあける */
}


/* ==========================================================
   13. ハンバーガーメニュー・ボタン（スマホ用：初期は非表示）
   ========================================================== */
.menu-toggle {
    display: none;
}

/* ==================================================================
   14. ナビゲーションメニュー（PC時の設定：ヘッダーの下に横並び固定）
   ================================================================== */
.nav {
    position: fixed;
    top: 90px;        /* ヘッダーの高さ（60px）の直下に固定 */
    left: 0;
    width: 100%;
    background-color: #2b6cb0;
    display: flex;
    justify-content: center; /* PCでは中央に並べる */
    align-items: center;
    gap: 15px;        /* メニュー間のスペース */
    padding: 0 20px;
    height: 45px;     /* PC時のメニューバーの高さ */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
    padding: 5px 8px;
    transition: color 0.2s;
}

.nav a:hover {
    color: #0066cc;
}


/* =============================================
   15. スマホ・タブレット用（画面幅 768px 以下）
   =============================================*/
@media screen and (max-width: 768px) {

    /* スマホ用ハンバーガーボタンの表示・位置制御 */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 90px;       /* ヘッダーの高さ(60px)の中で上下中央になる位置 */
        left: 0px;     /* 画面の右端からの距離 */
        z-index: 1002;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        cursor: pointer;
        padding: 8px;
        width: 40px;
        height: 40px;
        box-sizing: border-box;
    }

    /* 3本線のスタイル */
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #333;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* スマホ時のナビゲーション（ヘッダーの下に縦並びで隠す） */
    .nav {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;

	/* 高さに上限を設けてスクロールさせる */
       	height: auto;
        max-height: 100vh;  /*画面の高さの70%を超える場合はスクロール */
        overflow-y: auto; /* 縦スクロール */

	padding: 5px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        
        /* 初期状態は上に隠す */
        transform: translateY(-150%);
        opacity: 0;
    }

    /* スマホ時のメニュー項目 */
    .nav a {
        padding: 2px 0;
        width: 100%;
        text-align: center;
        font-size: 12px;
    }

    /* ハンバーガーが押されて開いたとき */
    .nav.is-active {
        transform: translateY(0);
        opacity: 1;
    }

    /* 3本線 ⇒ × に変形するアニメーション */
    .menu-toggle.is-active {
        justify-content: center;
    }
    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(2px) rotate(45deg);
    }
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-2px) rotate(-45deg);
    }
}

/* ===============================================
   16.ページ内ジャンプで見出しが隠れないようにする
   =============================================== */

/* PC表示のとき（ヘッダー + メニューバーの高さ分：約105px） */
h2, section, [id] {
    scroll-margin-top: 115px; /* 固定メニューの高さ＋少しの余裕を持たせる */
}

/* スマホ表示のとき（ヘッダーの高さ分：約60px、メニューが開いていない状態を考慮） */
@media screen and (max-width: 768px) {
    h2, section, [id] {
        scroll-margin-top: 120px; /* スマホ時のヘッダー高さ＋少しの余裕 */
    }
}


/* =============================== 
   17.リロードボタンのスタイル設定 
   =============================== */

.reload-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999; /* フッターや他の要素より手前に表示させる */
}

.reload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #007bff; /* ボタンの色（青） */
    color: #ffffff;            /* 文字の色（白） */
    border: none;
    border-radius: 50px;       /* 丸みのある形 */
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.2s;
}

.reload-btn:hover {
    background-color: #0056b3; /* マウスを乗せた時の色 */
    transform: translateY(-2px); /* 少し浮き上がる演出 */
}

.reload-icon {
    width: 15px;
    height: 15px;
}

