@charset "UTF-8";

/* ==========================================================================
   1. ベース設定 & 変数
   ========================================================================== */
:root {
    --bg-color: #fff5e6; 
    --main-text: #333;
    --orange-accent: #ff9900;
    --blue-badge: #5bc0de;
    --btn-blue: #00bfff;
    --btn-green: #9acd32;
    --footer-bg: #333;
    
    /* 下層ページ用 */
    --table-th-bg: #ffaf4f; 
    --table-td-bg: #ffefdb; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Verdana, Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "sans-serif";
    background-color: var(--bg-color);
    color: var(--main-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* ==========================================================================
   2. ヘッダー
   ========================================================================== */
.site-header {
    background-color: #323232;
    color: #fff;
    padding: 5px 0;
    border-bottom: 3px solid var(--orange-accent);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 55px;
    width: auto;
    display: block;
}

.header-reg-btn {
    background-color: var(--btn-blue);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    display: none;
}

/* ==========================================================================
   3. レイアウト共通
   ========================================================================== */
.wrapper {
    padding: 20px 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* メインコンテンツエリア */
.main-content {
    flex: 1;
    min-width: 0;
}

/* 共通カードスタイル（白背景ボックス） */
.content-card {
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    margin-bottom: 20px;
}

.mb-20 { margin-bottom: 20px; }


/* ==========================================================================
   4. トップページ要素（お知らせ・サイドバー）
   ========================================================================== */

/* --- お知らせセクション --- */
.news-section { margin-top: 0px; }

.section-title {
    font-size: 20px;
    border-left: 6px solid var(--orange-accent);
    padding-left: 10px;
    margin-bottom: 0px;
    color: #666;
    font-weight: bold;
}

.news-list li {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    display: flex;
    align-items: baseline;
    font-size: 16px;
}

.badge {
    background-color: var(--blue-badge);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 10px;
    white-space: nowrap;
}

.date {
    color: var(--orange-accent);
    margin-right: 15px;
    font-weight: bold;
    white-space: nowrap;
}

.news-title { color: #0066cc; text-decoration: underline; }
.news-title:hover { color: #004499; }

.news-footer {
    margin-top: 20px;
    text-align: right;
}

.more-btn {
    background-color: var(--btn-green);
    color: #fff;
    padding: 5px 20px;
    font-size: 13px;
    border-radius: 2px;
    display: inline-block;
}

.past-news-btn-sp { display: none; }

/* --- サイドバー --- */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-reg-btn-large {
    display: block;
    background: linear-gradient(to bottom, #4fc3f7, #03a9f4);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-banner {
    display: block;
    margin-bottom: 10px;
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
}

.twitter-link {
    display: block;
    margin-top: 10px;
    color: var(--blue-badge);
    font-size: 13px;
    text-decoration: underline;
}

/* ==========================================================================
   5. 下層ページ（記事詳細）用スタイル
   ========================================================================== */

/* 記事タイトル */
.content-card .content-title {
    font-size: 24px;
    color: #444;
    border-left: solid 5px var(--orange-accent);
    padding-left: 10px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* スケジュールテーブル */
.schedule table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 30px;
    font-size: 18px;
}

.schedule th {
    width: 25%;
    background: var(--table-th-bg);
    border-bottom: 2px solid #fff;
    color: white;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
    font-weight: bold;
}

.schedule td {
    background: var(--table-td-bg);
    border-bottom: 2px solid #fff;
    padding: 10px;
    vertical-align: top;
}

/* 詳細ページ本文（スケジュール表内）のテキストリンク */
.schedule a {
    color: #0066cc;
    text-decoration: underline;
}
.schedule a:hover {
    color: #004499;
}

/* ボタン関連 */
.btn-top {
    text-align: center;
    margin: 20px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    min-width: 250px;
    box-shadow: 0 4px 0 rgba(11, 120, 223, 0.2);
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
    text-decoration: none;
}

.btn-blue {
    background-color: #48bed5;
}

/* テキスト装飾ユーティリティ */
.red { color: #f00; }
.bold { font-weight: bold; }


/* ==========================================================================
   6. フッター
   ========================================================================== */
.site-footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: 20px 0;
    font-size: 14px;
    border-top: 2px solid var(--orange-accent);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a { color: #ccc; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.copyright {
    text-align: center;
    color: #ccc;
}


/* ==========================================================================
   7. レスポンシブ対応 (SP版)
   ========================================================================== */
@media (max-width: 768px) {
    /* ヘッダー */
    .header-inner { padding: 0 10px; }
    .logo-img { max-height: 40px; }
    .header-reg-btn { display: block; font-size: 12px; padding: 5px 10px; }

    /* レイアウト（縦積み） */
    .container {
        flex-direction: column;
        padding: 0;
    }
    .wrapper { padding: 0; }
    
    /* サイドバー非表示 */
    .sidebar { display: none; }

    /* メインコンテンツ（カード） */
    .content-card {
        background-color: #fff;
        box-shadow: none;
        border-radius: 0;
        padding: 0; 
        margin-bottom: 0;
    }

    /* お知らせ（トップ）のSPレイアウト */
    .news-section {
        background-color: #fff;
        padding-bottom: 20px;
    }

    .content-card section {
        padding: 15px 0px 15px 0px; 
    }

    .content-card .news-section {
        padding: 0 0 20px 0;
    }

    .section-title {
        background-color: var(--orange-accent);
        color: #fff;
        border-left: none;
        padding: 5px 10px;
        font-size: 18px;
        margin-bottom: 8px;
        border-radius: 0;
    }

    .news-list { padding: 0 15px; }
    
    .news-list li {
        flex-wrap: wrap;       
        align-items: center;   
        padding: 10px 0;
    }

    .badge {
        margin-right: 10px;
        margin-bottom: 0;
    }

      .date {
        font-size: 14px;
        margin-right: 0;
        display: inline-block; 
        width: auto;           
        margin-bottom: 0;
        color: var(--orange-accent);
    }

    .news-title {
        width: 100%;
        display: block;
        margin-top: 5px;
    }

    .news-footer { padding: 0 15px; text-align: right; }
    .more-btn { display: none; }
    
    .past-news-btn-sp {
        display: inline-block;
        background-color: var(--orange-accent);
        color: #fff;
        padding: 8px 15px;
        font-size: 13px;
        border-radius: 20px;
    }

    /* 下層ページ：テーブルのスマホ対応 */
    .schedule th, .schedule td {
        display: block;
        width: 100%;
        border-bottom: 1px solid #fff;
    }
    .schedule th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    .schedule td {
        padding-top: 5px;
        margin-bottom: 10px;
        word-break: break-all;
    }

    /* 下層ページ：ボタン */
    .btn {
        width: 80%;
        min-width: auto;
    }

    /* フッター */
    .footer-links {
        flex-wrap: wrap;
        gap: 10px 20px;
        justify-content: center;
    }
    .copyright { text-align: center; margin-top: 15px; }

    .article-detail a {
        text-decoration: underline;
    }

    .article-detail a.btn {
        text-decoration: none;
    }
}

/* ==========================================================================
   8. お知らせ一覧ページ用追加スタイル
   ========================================================================== */

.news-archive-list li {
    border-bottom: 1px dotted #ccc;
    padding: 15px 0;
    display: flex;
    align-items: baseline;
    font-size: 16px;
}

/* ページネーション（ページ送り） */
.pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: var(--main-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .current {
    background-color: var(--orange-accent);
    color: #fff;
    border-color: var(--orange-accent);
    font-weight: bold;
}

.pagination .disabled {
    color: #ccc;
    pointer-events: none;
    border-color: #eee;
}

/* スマホ版での微調整 */
@media (max-width: 768px) {
    .news-archive-list li {
        flex-wrap: wrap;
        align-items: center;
    }
    
    .pagination {
        margin-bottom: 0;
        padding-bottom: 40px;
    }

}

.pagination a {
    cursor: pointer;
}

/* ==========================================================================
   9. お問い合わせページ用スタイル
   ========================================================================== */

/* セレクトボックスのデザイン */
.styledSelect {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

/* 表示切り替えエリア（初期状態） */
.category-info {
    display: none; /* 最初は隠しておく */
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.category-info h2 {
    font-size: 18px;
    color: var(--orange-accent);
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* 共通説明エリア */
.description-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--orange-accent);
}

.description-area h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 5px solid #ccc;
}

/* リンクボタン風の装飾 */
.link-button-area {
    margin: 20px 0;
    text-align: center;
}

.link-button-area a {
    display: inline-block;
    background-color: #fff;
    border: 2px solid var(--orange-accent);
    color: var(--orange-accent);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}

.link-button-area a:hover {
    background-color: var(--orange-accent);
    color: #fff;
    text-decoration: none;
}

/* 個人情報保護方針のリンク */
.privacy-link {
    text-align: right;
    font-size: 14px;
    margin-bottom: 10px;
}