/* ==========================================================================
   common.css : 全ページ共通スタイル & レスポンシブ対応
   ========================================================================== */

/* --- 基本設定・リセット --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-padding-top: 150px; /* ヘッダー固定用の余白 */
    scroll-behavior: smooth;
}
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
    color: #333333;
    background-color: #f8f9fa;
}
a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #003d82;
    text-decoration: underline;
}
ul {
    list-style: none;
}

/* --- レイアウトコンテナ --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー・フッターの外枠 --- */
header {
    background-color: #ffffff;
    border-bottom: 3px solid #004085;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
footer {
    background-color: #343a40;
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}
footer p {
    opacity: 0.8;
}

/* --- メインビジュアル (Hero) --- */
.hero {
    background: linear-gradient(135deg, #004085 0%, #007bff 100%);
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}
.hero h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.4;
}
.hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

/* --- メインコンテンツ（2カラムレイアウト） --- */
.main-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}
main {
    flex: 3;
    min-width: 0;
}
aside {
    flex: 1;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
}

/* --- セクション・要素共通 --- */
section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
section h3 {
    font-size: 20px;
    color: #004085;
    border-left: 5px solid #004085;
    padding-left: 12px;
    margin-bottom: 20px;
}

/* --- お知らせ・イベント一覧 --- */
.info-list {
    margin-bottom: 25px;
}
.info-item {
    padding: 15px 0;
    border-bottom: 1px dashed #dee2e6;
}
.info-item:last-child {
    border-bottom: none;
}
.info-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    font-size: 14px;
    flex-wrap: wrap;
}
.info-date {
    color: #6c757d;
    font-weight: bold;
}
.info-tag {
    background-color: #e7f1ff;
    color: #004085;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.info-tag.past {
    background-color: #f1f3f5;
    color: #495057;
}
.info-content {
    font-size: 15px;
}

/* --- ボタン --- */
.btn {
    display: inline-block;
    background-color: #004085;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s ease;
    text-align: center;
}
.btn:hover {
    background-color: #002752;
    color: #ffffff;
    text-decoration: none;
}

/* --- ニュースレター用 特殊スタイル --- */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.newsletter-card {
    background: #ffffff;
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.pagination button {
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    color: #0056b3;
    cursor: pointer;
    border-radius: 4px;
}
.pagination button.active {
    background-color: #004085;
    color: #ffffff;
    border-color: #004085;
}

/* --- 役員一覧用 特殊スタイル (テーブル) --- */
.officer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.officer-table th, .officer-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
}
.officer-table th {
    background-color: #f8f9fa;
    color: #004085;
    width: 25%;
    font-weight: bold;
}

/* --- サイドバー --- */
.sidebar h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 5px solid #dee2e6;
}
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-menu a {
    display: block;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #495057;
    font-size: 14px;
}
.sidebar-menu a:hover {
    background-color: #e9ecef;
    color: #004085;
    text-decoration: none;
}

/* ==========================================================================
   レスポンシブ対応（タブレット・スマートフォン表示用設定）
   ========================================================================== */
@media screen and (max-width: 992px) {
    .main-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    aside {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    html {
        scroll-padding-top: 190px;
    }  
    .hero {
        padding: 40px 0;
        margin-bottom: 25px;
    }
    .hero h2 {
        font-size: 22px;
        padding: 0 15px;
    }
    .hero p {
        font-size: 14px;
    }
    section {
        padding: 20px;
        margin-bottom: 20px;
    }
    .btn {
        width: 100%;
    }
    .newsletter-buttons {
        flex-direction: column;
        gap: 10px !important;
    }
    .officer-table th, .officer-table td {
        display: block;
        width: 100% !important;
    }
    .officer-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
}

@media screen and (max-width: 480px) {
    html {
        scroll-padding-top: 210px;
    }
    .hero h2 {
        font-size: 19px;
    }
    section h3 {
        font-size: 18px;
    }
}