@charset "UTF-8";

/* ==========================================================================
   ベース・共通スタイル
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #312738;
    background-color: #f4f6f8;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #003366;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* 全体レイアウト（1080px幅・サイドバー構成） */
.container {
    max-width: 1080px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   最上部 ナビゲーションバー（白背景・校章・各校リンク・プルダウン）
   ========================================================================== */
.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.top-bar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-nav a {
    color: #312738;
    font-size: 1.5rem;
    font-weight: normal;
    text-decoration: none;
}

.top-bar-nav a:hover {
    color: #3D9429;
    text-decoration: underline;
}

/* --- プルダウンメニュー --- */
.nav-item.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle .arrow {
    font-size: 0.75rem;
    margin-left: 2px;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 180px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 8px 0;
    z-index: 1001;
    margin-top: 4px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 0.95rem;
    color: #312738;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f4f6f8;
    color: #3D9429;
    text-decoration: none;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* ==========================================================================
   ヘッダーエリア
   ========================================================================== */
.site-header {
    margin-bottom: 25px;
    border-bottom: 4px solid #3D9429;
}

.header-hero {
    position: relative;
    width: 100%;
    min-height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.header-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.main-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #312738 !important;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    border-bottom: 3px solid #3D9429;
    display: inline-block;
    padding-bottom: 4px;
}

.sub-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333333;
    margin: 12px 0 14px 0;
}

.header-desc {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 12px;
}

.header-note {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.6;
}

/* ==========================================================================
   メインコンテンツ（記事表示エリア）
   ========================================================================== */
.main-content {
    flex: 1;
    min-width: 0;
}

.page-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #312738;
    padding-left: 10px;
}

/* 記事エリア（影・角丸・外枠なし） */
.article-card {
    background: #ffffff;
    border-radius: 0;
    padding: 25px;
    margin-bottom: 25px;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px dotted #dddddd;
    padding-bottom: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.article-day {
    font-size: 1.2rem;
    font-weight: bold;
    color: #312738;
}

.article-meta {
    font-size: 0.85rem;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-text {
    font-size: 0.85rem;
    color: #555555;
    font-weight: normal;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #2b2b2b;
    margin-bottom: 15px;
    word-break: break-word;
}

.article-body p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

.article-body br {
    display: inline;
}

.article-img {
    margin-top: 15px;
    text-align: center;
}

.article-img img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    border: 1px solid #eee;
    cursor: pointer;
}

/* ==========================================================================
   画面右側ペイン（サイドバー）
   ========================================================================== */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #ffffff;
    padding: 20px;
    border-radius: 0;
    height: fit-content;
}

.principal-profile {
    text-align: center;
    margin-bottom: 20px;
}

.profile-img {
    margin-bottom: 12px;
}

.profile-img img {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 0;
    border: 1px solid #e0e0e0;
}

.profile-title {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 2px;
    font-weight: normal;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #312738;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.profile-text {
    font-size: 0.85rem;
    color: #444444;
    line-height: 1.6;
    text-align: left;
    word-break: break-word;
}

.sidebar-divider {
    border: 0;
    border-top: 1px dashed #dddddd;
    margin: 20px 0;
}

.archive-section h3 {
    font-size: 1.05rem;
    color: #312738;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #3D9429;
}

.archive-list {
    list-style: none;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.archive-list::-webkit-scrollbar {
    width: 5px;
}

.archive-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 0;
}

.archive-list li {
    margin-bottom: 4px;
}

.archive-list a {
    display: block;
    padding: 7px 10px;
    border-radius: 0;
    font-size: 0.9rem;
    color: #444444;
}

.archive-list a:hover {
    background-color: #f0f4f8;
    text-decoration: none;
}

.archive-list a.active {
    background-color: #3D9429;
    color: #ffffff;
    font-weight: bold;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
    background: #363537;
    color: #ffffff;
    padding: 40px 0 20px;
    text-align: center;
}

.footer_address {
    font-size: 0.95rem;
    margin-top: 15px;
    color: #ddd;
}

.copyright {
    border-top: 1px solid #555;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #aaa;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media (max-width: 768px) {
    .top-bar-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 8px 12px;
    }
    
    .top-bar-logo img {
        height: 30px;
    }

    .top-bar-nav {
        gap: 12px;
        flex-wrap: wrap;
    }

    .top-bar-nav a {
        font-size: 0.85rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
        padding-left: 10px;
    }

    .main-title {
        font-size: 1.6rem;
    }
    
    .sub-title {
        font-size: 1.1rem;
    }

    .container {
        flex-direction: column;
        margin: 0 auto 20px auto;
        padding: 0 12px;
    }

    .sidebar {
        width: 100%;
    }

    .archive-list {
        max-height: 200px;
    }

    .article-card {
        padding: 18px;
    }
}