/* --- ベーススタイル --- */
:root {
    --primary-color: #00479d; /* 信頼の青 */
    --accent-color: #f39800;  /* エネルギーのオレンジ */
    --text-color: #333;
    --bg-color: #f4f7f6;
    --card-bg: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    scroll-behavior: smooth; /* CSSでのスムーススクロール（補佐） */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ナビゲーション --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* --- ★ヒーローセクション（大幅修正） --- */
.hero {
    margin-top: 60px; /* ナビゲーションの高さ分 */
    background-color: #fff; /* 画像がある時の背景は白 */
    overflow: hidden;
}

/* 画像がない（読み込み失敗）時のヘッダースタイル */
.hero.no-image {
    background-color: var(--primary-color); /* 青背景にする */
    padding: 100px 0; /* 上下に余白を作る */
    text-align: center;
}

.hero-container {
    max-width: 1200px; /* 画像の最大横幅を制限（好みで調整可） */
    margin: 0 auto;
    line-height: 0; /* 画像下の謎の隙間を消す */
}

.hero-img {
    width: 100%;       /* コンテナの幅いっぱいに広げる */
    height: auto;      /* 高さは自動調整（アスペクト比を維持） */
    display: block;
    /* object-fit: cover; は削除。見切れさせないため */
}

/* 画像読み込み成功時は非表示にするためのクラス */
.hide-text {
    display: none;
}

/* 画像がない時に表示されるテキストエリアのスタイル */
.no-image .hero-overlay {
    display: block; /* JSで.hide-textが削除された後に適用 */
    color: #fff;    /* 文字色を白に */
    padding: 0 20px;
}

.no-image .hero-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: none; /* 影を消す */
}

.no-image .hero-overlay p {
    font-size: 1.2rem;
    text-shadow: none; /* 影を消す */
}

/* --- セクション共通 --- */
.section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* --- 開催概要 --- */
.info-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

.info-card p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-card strong {
    color: var(--primary-color);
    width: 80px;
    display: inline-block;
}

.description {
    font-size: 1rem;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* --- ワークショップ（グリッド） --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card p {
    font-size: 0.95rem;
    color: #666;
}

/* --- アクセス・注意事項 --- */
.access-info, .notice-list {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.transport-list, .notice-list {
    margin-top: 15px;
    margin-left: 20px;
    list-style: disc;
}

.transport-list li, .notice-list li {
    margin-bottom: 10px;
}

/* --- 運営団体（テーブル） --- */
.org-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; /* 角丸を適用するため */
}

.org-table th, .org-table td {
    text-align: left;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.org-table th {
    background-color: #f9f9f9;
    color: var(--primary-color);
    width: 30%;
    font-weight: bold;
}

/* --- フッター --- */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* --- レスポンシブ (スマホ対応) --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 0.8rem;
    }

    .no-image .hero-overlay h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }
}