/* --- 全体レイアウト --- */
body {
    background-color: #2A3990; /* テーマカラーの青 */
    margin: 0;
    padding: 0;
    padding-top: 110px; /* 固定ヘッダーの高さ分、コンテンツを下げる */
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* --- 固定ヘッダー --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #2A3990 0%, #002d57 100%); /* 高級感のあるグラデーション */
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 両端に配置 */
    padding: 0 5%;
    box-sizing: border-box;
}

/* 左側：ロゴとタイトルのセット */
.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.header-logo {
    height: 60px; /* ロゴのサイズ */
    width: auto;
    margin-right: 15px;
    /* 背景透過のロゴを想定。必要に応じて影をつける */
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-main {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.brand-sub {
    font-size: 10px;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

/* 右側：ナビゲーション */
.header-nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    text-decoration: none;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-main {
    display: block;
    font-size: 15px;
    font-weight: bold;
}

.nav-sub {
    display: block;
    font-size: 9px;
    opacity: 0.7;
    margin-top: 2px;
}

/* --- メインコンテンツ容器 --- */
.white {
    background-color: #ffffff;
    width: 95%; 
    max-width: 900px; 
    margin: 20px auto;
    padding: 30px; 
    box-sizing: border-box; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    border-radius: 12px;
    min-height: 800px;
    height: auto;
    overflow: visible;
}

/* --- テキスト・装飾エリア --- */
.main_txt {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
    line-height: 1.8;
}

h3 {
    border-bottom: 2px solid #00407a;
    padding-bottom: 8px;
    margin-top: 40px;
    color: #00407a;
    font-size: 1.25rem;
}

.intro-section {
    margin-bottom: 40px;
    background-color: #f8f9fa; /* 紹介文を少し目立たせる */
    padding: 20px;
    border-radius: 8px;
}

.inline-link {
    color: #00407a;
    font-weight: bold;
    text-decoration: underline;
}

.inline-link:hover {
    color: #e67e22;
}

/* スマホ向けの微調整 */
@media (max-width: 600px) {
    .site-header {
        height: auto;
        flex-direction: column; /* 縦並びにする */
        padding: 10px;
    }
    .header-nav {
        margin-top: 10px;
        gap: 10px;
    }
    body {
        padding-top: 150px; /* スマホではヘッダーが広がる分さらに下げる */
    }
    .brand-main {
        font-size: 18px;
    }
}

/* --- 写真ギャラリーセクション --- */
.photo-gallery {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed #ccc;
}

.gallery-grid {
    display: grid;
    /* PCでは3列、スマホでは1列に自動調整 */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-item {
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* マウスを乗せた時の動き */
.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 写真の比率を保ったまま枠に収める */
    border-radius: 4px;
    display: block;
}

/* キャプションエリア全体の調整 */
.photo-info {
    margin-top: 12px;
    text-align: center;
}

/* 山の名前（上の段） */
.mountain-name {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

/* 場所（下の段） */
.mountain-location {
    display: block;
    font-size: 11px;
    color: #777; /* 少し薄めの色にして補足情報感を出す */
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase; /* 英字を大文字に統一しておしゃれに */
}

/* --- フッターのデザイン --- */
.site-footer {
    background-color: #2e438e; /* 画像から抽出した青色 */
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px; /* コンテンツとの間隔 */
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* リンクがある場合の色の調整 */
.site-footer a {
    color: #ffffff;
    text-decoration: underline;
}

/* --- フォーム全体のレイアウト調整 --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* 入力欄とはみ出し防止の設定 */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;           /* 枠の幅いっぱいに広げる */
    max-width: 100%;       /* 枠を絶対にはみ出さない */
    padding: 10px;
    box-sizing: border-box; /* パディングを含めて幅を計算 */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;       /* スマホでズームされないためのサイズ */
}

/* コメント欄の高さ調整 */
.form-group textarea {
    resize: vertical;      /* ユーザーが上下にだけサイズ調整できるようにする */
    min-height: 150px;
}

/* 送信ボタンをおしゃれに */
.submit-btn {
    background-color: #2e438e; /* ロゴの青 */
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #e67e22; /* ホバーでアクセントのオレンジに */
    transform: scale(1.05);
}

.form-instruction {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}

/* --- イベント一覧のスタイル --- */
.event-list-container {
    margin-top: 20px;
}

.event-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
}

.event-table th {
    background-color: #2e438e; /* ロゴの青色 */
    color: #ffffff;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

.event-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #333;
}

/* 行にマウスを乗せた時の演出 */
.event-table tr:hover {
    background-color: #f9f9fb;
}

/* 参加人数のバッジ風デザイン */
.count-badge {
    background-color: #e67e22; /* アクセントのオレンジ */
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* スマホ表示での調整（表を横スクロール可能に） */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.year-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.year-list li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

/* 箇条書きのポインタをおしゃれに */
.year-list li::before {
    content: "●";
    color: #2e438e;
    position: absolute;
    left: 0;
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.archive-toggle {
    display: inline-block;
    cursor: pointer;
    color: #2e438e;
    font-weight: bold;
    font-size: 14px;
    margin: 15px 0;
    padding: 5px 10px;
    border: 1px solid #2e438e;
    border-radius: 5px;
    transition: 0.3s;
}

.archive-toggle:hover {
    background-color: #2e438e;
    color: #fff;
}

.archive-section {
    display: none; /* 初期状態は非表示 */
    padding-left: 20px;
    border-left: 2px solid #eee;
}