@charset "UTF-8";

/* =========================================
   全体共通の初期設定
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* =========================================
   ヘッダー（全ページ共通）
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 40px;
}

.header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;

    /* ロゴと文字を横並びにして縦の中央で揃える */
    display: flex;
    align-items: center;
    gap: 10px; /* ロゴと文字の隙間 */
}

/* ヘッダー用ロゴ画像のサイズ調整 */
.header-logo {
    height: 30px; /* アイコンの高さ。好みに合わせて数字を変えてください */
    width: auto;
}

.global-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.global-nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.global-nav a:hover {
    background-color: #f0f4f8;
    color: #D23F2F; /* 赤テーマ */
}

.global-nav a.active {
    background-color: #D23F2F; /* 赤テーマ */
    color: #ffffff;
}

/* =========================================
   ボタン（全ページ共通）
========================================= */
.btn {
    display: inline-block;
    padding: 18px 50px;
    background-color: #D23F2F; /* 赤テーマ */
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    width: 250px;
}

.btn:hover {
    background-color: #BB3426; /* 濃い赤 */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn.btn-secondary {
    background-color: #1a1a1a;
}

.btn.btn-secondary:hover {
    background-color: #000000;
}

.btn.btn-third {
    width: 280px;
}

/* =========================================
   トップページ (index.html) 専用
========================================= */
.poster-section {
    padding-top: 80px; 
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
}

.poster-img {
    width: 100%;
    height: auto;
    display: block;
}

.action-section {
    background-color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* =========================================
   下層ページ (greeting, access, program 等) 共通
========================================= */
.page-wrapper {
    padding-top: 120px; 
    padding-bottom: 80px;
}

.content-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.content-box h2 {
    font-size: 26px;
    color: #2c3e50;
    border-bottom: 2px solid #D23F2F; /* 赤テーマ */
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.content-box h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-top: 50px;
    margin-bottom: 20px;
    border-left: 5px solid #D23F2F; /* 赤テーマ */
    padding-left: 15px;
}

.content-box p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* --- 会場案内ページ専用 --- */
.venue-info {
    background-color: #f4f7f6;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid #2c3e50;
    margin-bottom: 40px;
}

.venue-name {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.map-container {
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- ご挨拶ページ (greeting.html) 専用レイアウト --- */
.greeting-section {
    display: flex; /* 横並びにする */
    gap: 40px; /* 画像と文章の間の余白 */
    align-items: flex-start; /* 上端で揃える */
    margin-bottom: 30px;
}

.greeting-img {
    flex: 0 0 250px; /* 画像エリアの横幅を250pxに固定 */
}

.greeting-img img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* 角を少し丸くする */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* ほんのり影をつける */
}

.greeting-text {
    flex: 1; /* 余ったスペースを文章エリアが全て使う */
}

/* =========================================
   フッター（全ページ共通）
========================================= */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 50px 20px;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.footer-content h2 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #D23F2F; /* 赤テーマ */
    padding-bottom: 10px;
    display: inline-block;
}

.footer-content p {
    font-size: 15px;
    margin-bottom: 10px;
}

/* --- 会場案内ページ専用：詳細案内画像 --- */
.access-detail-section {
    margin-top: 50px; /* Googleマップとの余白 */
    text-align: center; /* 画像を中央揃え */
}

.access-detail-img {
    width: 100%;
    height: auto;
    max-width: 900px; /* パソコン等で画像が大きくなりすぎるのを防ぐ最大幅 */
    border-radius: 8px; /* 角を少し丸くする */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* ほんのり影をつける（不要なら消してもOK） */
}

/* =========================================
   スマホ用レスポンシブ設定
========================================= */
@media (max-width: 850px) {
    .header-inner { flex-direction: column; padding: 10px 20px; }
    .global-nav ul { margin-top: 10px; flex-wrap: wrap; justify-content: center; gap: 5px; }
    .global-nav a { font-size: 13px; padding: 6px 10px; }
    
    .poster-section { padding-top: 120px; }
    .button-group { flex-direction: column; align-items: center; gap: 15px; }
    .btn { width: 100%; max-width: 300px; }

    .page-wrapper { padding-top: 140px; padding-left: 15px; padding-right: 15px; }
    .content-box { padding: 30px 20px; }
    .content-box h2 { font-size: 22px; }
    .content-box h3 { font-size: 18px; margin-top: 40px; }

/* スマホ用の greeting レイアウト追加 */
    .greeting-section {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center; /* 中央揃え */
        gap: 20px;
    }
    .greeting-img {
        flex: 0 0 auto;
        width: 80%; /* スマホでは画面の80%の幅で画像を表示 */
        max-width: 300px;
    }

/* 会場案内ページ専用：スマホ用設定追加 */
    .access-detail-section {
        margin-top: 30px; /* スマホでは余白を少し狭める */
    }
    .access-detail-img {
        width: 100%; /* スマホでは画面幅いっぱいに */
    }
}

/* =========================================
   スクロール時のフェードイン効果
========================================= */
.fade-in {
    opacity: 0; /* 最初は透明 */
    transform: translateY(30px); /* 30px下にずらしておく */
    transition: opacity 0.5s ease-out, transform 0.8s ease-out; /* 0.8秒かけてふわっと動かす */
}

.fade-in.is-visible {
    opacity: 1; /* はっきり表示 */
    transform: translateY(0); /* 元の位置に戻す */
}