/* ======================================= */
/* 1. ベースとフォント設定                    */
/* ======================================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Yu Gothic', 'Meiryo', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #ffffff;
    /* ヘッダー固定のためのパディング */
    padding-top: 60px; 
}

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

/* コンテンツ全体を中央に寄せるための幅設定 */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}


/* ======================================= */
/* 2. ヘッダー (header.html)                   */
/* ======================================= */
header {
    background-color: #2c3e50; /* 濃いめの色 */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* ヘッダー固定 */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

/* ハンバーガーボタン（デフォルトは非表示） */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001; 
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* メニューを開いた状態のアイコン (X印) */
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ナビゲーション（PC版） */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: #fff;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #34495e;
    border-radius: 4px;
}


/* ======================================= */
/* 3. メインコンテンツ共通・Hero             */
/* ======================================= */

/* セクションタイトル */
.section-title {
    text-align: center;
    font-size: 28px;
    color: #3498db; 
    margin-top: 60px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

/* メインビジュアル (Hero) */
.hero {
    background-color: #eaf2f8; 
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 8px;
}
.hero h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-top: 0;
}
.hero p {
    font-size: 18px;
    color: #7f8c8d;
}


/* ======================================= */
/* 4. お知らせセクション (news_script.js関連) */
/* ======================================= */
.news-section {
    padding: 20px 0;
    background-color: #f7f7f7; 
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0 20px;
}

.news-list li {
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    align-items: center;
}
.news-list li:last-child {
    border-bottom: none;
}

.news-list li a {
    color: #333;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.news-list li a:hover {
    color: #3498db;
}

.date {
    flex-shrink: 0;
    width: 100px;
    font-weight: bold;
    color: #7f8c8d;
    margin-right: 20px;
}

.news-category-main {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 8px; 
    margin-right: 20px;
    border-radius: 4px;
    color: #fff; 
    text-align: center;
    min-width: 60px;
}
.category-study { background-color: #3498db; }
.category-important { background-color: #e74c3c; }

.more-link {
    display: block;
    text-align: right;
    color: #3498db;
    margin: 20px 30px 0 0;
    font-weight: bold;
}


/* --- 4.1 お知らせ一覧ページ専用スタイル (news_list.html用) --- */

.page-title {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 50px;
    border-bottom: 3px solid #ccc;
    padding-bottom: 15px;
}

.archive-list {
    list-style: none;
    padding: 0;
}

.archive-list li {
    border-bottom: 1px solid #eee;
    display: flex; 
    align-items: center;
    padding: 15px 0;
    transition: background-color 0.3s;
}

.archive-list li:hover {
    background-color: #f9f9f9; 
}

.archive-list li a {
    display: inline-flex; 
    align-items: center;
    color: #333;
    flex-grow: 0; 
    padding: 0; 
}

.archive-list .news-date {
    flex-shrink: 0; 
    width: 100px;
    font-weight: bold;
    color: #7f8c8d; 
    margin-right: 30px;
}

.news-category {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 8px;
    margin-right: 20px;
    border-radius: 4px;
    color: #fff; 
    text-align: center;
    min-width: 60px;
}

.archive-list .news-title {
    flex-grow: 1; 
    margin-right: 15px;
}


/* ======================================= */
/* 5. お問い合わせCTA (CTA)                  */
/* ======================================= */
.contact-cta {
    text-align: center;
    background-color: #f4f7f9; 
    padding: 60px 20px;
    margin-top: 60px;
    border-radius: 8px; 
}
.contact-cta p {
    font-size: 18px;
    margin-bottom: 35px;
    color: #555;
}
.contact-button {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3);
    transition: background-color 0.3s, transform 0.1s;
}
.contact-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(231, 76, 60, 0.4);
}


/* ======================================= */
/* 6. 掲示板 (bulletin-board.html)           */
/* ======================================= */

.bulletin-section {
    max-width: 1000px; 
    margin: 60px auto; 
    padding: 0 20px; 
}

/* 投稿フォームエリア全体のコンテナ */
.post-form-container {
    padding: 30px;
    background-color: #ffffff; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
    margin-bottom: 40px;
    border: 1px solid #f0f0f0;
}

.post-form input, .post-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #dcdcdc; 
    border-radius: 6px;
    box-sizing: border-box; 
    font-size: 16px;
    transition: border-color 0.3s;
}

.post-form input:focus, .post-form textarea:focus {
    border-color: #3498db; 
    outline: none;
}

.post-form textarea {
    height: 120px;
    resize: vertical;
}

/* 匿名性の注釈 */
.anonymous-note {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-top: -8px;
    margin-bottom: 15px;
}


#post-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    transition: background-color 0.3s, opacity 0.3s;
}

#post-submit:hover:not(:disabled) {
    background-color: #34495e; 
}

#post-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.8;
}

/* 投稿リスト全体のコンテナ */
.posts-list {
    padding-top: 20px;
}

/* 投稿アイテム */
.post-item {
    padding: 20px;
    border-bottom: 1px solid #eee; 
    background-color: #ffffff;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.post-name {
    font-weight: bold;
    color: #3498db; 
    font-size: 1.1em;
    margin-right: 15px;
}

.post-date {
    color: #888;
    font-size: 0.85em;
}

.post-text {
    margin: 0;
    line-height: 1.7;
    color: #555;
    white-space: pre-wrap;
}


/* ======================================= */
/* 7. フッター (footer.html)                 */
/* ======================================= */
footer {
    text-align: center;
    background-color: #34495e;
    color: #bdc3c7;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 14px;
}

/* SNSリンクのスタイル */
.sns-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 15px auto;
    display: flex;
    justify-content: center;
    gap: 30px; 
    max-width: 1000px;
}

.sns-list a {
    color: #fff; 
    font-size: 30px; 
    transition: color 0.3s;
}

.sns-list a:hover {
    color: #3498db; 
}

.sns-list a[aria-label="YouTube"]:hover {
    color: #ff0000;
}
.sns-list a[aria-label="Instagram"]:hover {
    color: #E1306C;
}

.sns-list a[aria-label="discord"]:hover{
    color: #680bea; 
}

/* フッターナビゲーション */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-nav a {
    color: #bdc3c7;
    font-weight: bold;
}
.footer-nav a:hover {
    color: #fff;
}


/* トップへ戻るボタンのスタイル */
.back-to-top {
    display: block;
    margin: 20px auto 10px auto;
    color: #3498db;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s;
}

.back-to-top:hover {
    color: #fff;
}

.back-to-top i {
    margin-right: 5px;
}


/* ======================================= */
/* 8. モバイル・タブレット対応 (レスポンシブ) */
/* ======================================= */

@media (max-width: 768px) {
    
    /* 1. 全体のパディングを調整 */
    main {
        padding: 10px;
    }
    
    /* 2. ヘッダーのレイアウト調整 */
    .header-inner {
        /* ロゴとボタンを横並びに戻す */
        flex-direction: row; 
        justify-content: space-between; 
        padding: 10px 20px;
        align-items: center;
    }
    
    .logo {
        margin-bottom: 0;
    }

    /* 3. ハンバーガーボタンの表示 */
    .menu-toggle {
        display: block; /* モバイルでボタンを表示 */
    }

    /* 4. ナビゲーションメニューを隠す/表示 */
    #main-nav {
        display: none; /* デフォルトで非表示 */
        position: absolute;
        top: 60px; 
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    #main-nav.is-open {
        display: block; /* JSでis-openクラスが付くと表示 */
    }

    /* 5. ナビゲーションリストの縦並び */
    #main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    #main-nav li {
        margin: 0;
    }

    #main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #3c546b; 
        text-align: left;
    }

    /* 6. Heroセクションの調整 */
    .hero {
        padding: 40px 10px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    /* 7. お知らせセクションの調整 */
    .news-list li a {
        flex-direction: column; 
        align-items: flex-start;
        width: 100%;
    }

    .date {
        width: auto;
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 0.9em;
    }
    
    .news-category-main {
        margin-left: 0;
        margin-top: 5px;
    }

    /* 8. 掲示板セクションの調整 */
    .bulletin-section {
        margin: 40px auto;
        padding: 0 10px;
    }

    .post-form-container {
        padding: 20px;
    }
    
    .post-header {
        flex-direction: column; 
        align-items: flex-start;
    }
    
    .post-name {
        margin-bottom: 5px;
    }
    
    /* 9. フッターの調整 */
    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .sns-list {
        gap: 20px;
    }
}

.YouTube_link{
    color:#3498db;
}