html {
    /* スムーズにスクロールさせる設定（お好みで） */
    scroll-behavior: smooth;

    /* ★ここが重要：ヘッダーの高さに合わせて数値を調整してください */
    /* ヘッダーが狭くなったのであれば、60px〜80pxくらいが目安です */
    scroll-padding-top: 180px; 
}

/* --- 背景固定の設定 --- */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('飛燕原画.jpg'); /* 背景画像 */
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* --- ヒーローセクションの設定 --- */
.hero-section {
    height: 100vh;
    width: 100vw;           /* ★画面の横幅いっぱい(100vw)を確実に確保 */
    display: flex;
    justify-content: center; /* 左右の中央 */
    align-items: center;     /* 上下の中央 */
    position: relative;
    left: 50%;              /* 一旦画面の50%の位置に移動 */
    transform: translateX(-50%); /* 自分の幅の半分戻して真ん中に固定 */
    color: #227924;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow: hidden;       /* はみ出し防止 */
}

.hero-overlay {
    /* 左右中央に配置するための設定 */
    display: flex;
    flex-direction: column;
    align-items: center;    /* 子要素（タイトル等）を中央揃え */
    justify-content: center;
    width: 100%;
    margin: 0 auto;         /* 左右マージンを自動調整 */
    background: none;
    box-shadow: none;
    color: #227924;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

.hero-overlay .title {
    font-family: "Kaisei Decol", serif;
    font-size: 3.5em;
    margin: 0;
    padding: 0;
    width: 100%;            /* 幅をしっかり取って中央揃えを効かせる */
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

.hero-overlay .subtitle {
    font-size: 1.5em;
    margin: 10px 0;
    font-weight: bold;
    width: 100%;
}

.hero-overlay .page-name {
    font-size: 1.5em;
    color: #ffffff;
    border-top: 1px solid #358f94;
    display: inline-block;
    padding-top: 5px;
    margin-top: 10px;
}

/* --- コンテンツセクションの調整 --- */
.content-section {
    /* ヒーローセクションに少し被せるように配置 */
    margin-top: -30px; 
    position: relative;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 0;
}

/* スクロールダウンボタン */
.scroll-down-btn {
    position: relative;
    z-index: 21; /* ボタンを最前面へ */
    pointer-events: auto; /* クリックを確実に許可 */
    display: inline-block;
    background-color: #44cabd;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* ★マウスを合わせた時（ホバー時）の状態 */
.scroll-down-btn:hover {
    background-color: #ffffff; /* マウスを置いた時の色（少し濃い色など） */
    color: #35a89d;            /* 文字色を変えたい場合はここも変更 */
    transform: translateY(-3px); /* おまけ：少し上に浮き上がらせる演出 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* 影をつけて浮かせる */
}

/* --- 全体設定 --- */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: #333;
}

/* --- コンテンツセクション（白い膜） --- */
.content-section {
    position: relative;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.85); /* ホームと同じ透明度の白 */
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- ヘッダー --- */
header {
    background-color: #c3d825;
    color: #227924;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-family: "Kaisei Decol", serif;
    font-size: 2.2em;
    margin: 0;
}

/* --- セクションのデザイン --- */
section {
    max-width: 900px;
    margin: 0 auto 30px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    font-family: "Kaisei Decol", serif;
    color: #227924;
    border-bottom: 3px solid #c3d825;
    padding-bottom: 5px;
}

/* --- ホームに戻るボタン（右下固定） --- */
/* 1. 外側の枠（白い四角）の背景を消す */
.back-home-container {
    background-color: transparent; /* 背景を透明にする */
    position: absolute;            /* 配置を独立させる */
    top: 0;
    left: 0;
    z-index: 1000;
}

.back-home-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #227924;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.back-home-button:hover {
    background-color: #c3d825;
    color: #227924;
}

/* --- 委員会セクションのレイアウト --- */
.committee-content {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

.committee-photo {
    width: 300px;
    height: auto;
    border-radius: 8px;
}

/* モバイル対応（左寄せ） */
@media (max-width: 768px) {
    header h1 { font-size: 1.6em; }
    
    .committee-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .committee-photo {
        width: 100%;
        max-width: none;
    }
    
    section {
        margin: 10px;
        padding: 20px;
    }

    .hero-section {
        height: 100vh;
        display: flex;
        flex-direction: column;  /* 要素を縦に並べる */
        justify-content: center; /* 垂直方向（上下）を真ん中に */
        align-items: center;     /* 水平方向（左右）を真ん中に */
        padding-bottom: 0;       /* 下の余白をリセット */
    }
    .hero-overlay .title {
        font-size: 1.8em;
        font-size: 2.2em;
        margin: 0;
        text-align: center;      /* 念のため */
    }
    .hero-overlay {
        width: 90%;              /* 画面幅に合わせる */
        text-align: center;      /* ★文字を中央寄せ */
        padding: 0;              /* 余計な余白を消す */
        background: transparent;
    }
    .hero-overlay .subtitle {
        font-size: 1.3em;
        margin: 5px 0;
    }
}
