/* お知らせ機能専用CSS - 軽量版 */

/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    vertical-align: middle;
}

.nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: nowrap;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 8px 10px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.nav-list a:hover {
    color: #2c5aa0;
    background-color: rgba(44, 90, 160, 0.1);
    transform: translateY(-1px);
}

/* 特設サイトバナー */
.header-special {
    margin-left: 15px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.special-banner {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.special-banner:hover {
    transform: scale(1.05);
}

/* ヘッダーのレスポンシブ微調整 */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 20px;
        gap: 15px;
    }
    .nav-list {
        gap: 8px;
    }
    .nav-list a {
        font-size: 0.9rem;
        padding: 8px 6px;
    }
    .special-banner {
        height: 45px;
    }
}

@media (max-width: 1024px) {
    .nav-list a {
        font-size: 0.85rem;
        padding: 6px 4px;
    }
    .logo-img {
        height: 40px;
    }
    .special-banner {
        height: 40px;
    }
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-btn {
    background-color: #2c5aa0;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    outline: none;
    box-shadow: none;
}

.contact-btn:hover {
    background-color: #1e4a8a;
    color: #fff;
    outline: none;
    box-shadow: none;
}

.contact-btn:focus {
    outline: none;
    box-shadow: none;
}

/* ページヘッダー */
.page-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4a8a 100%);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* フッター */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-info h3 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-info p {
    margin-bottom: 5px;
    color: #ccc;
}

.footer-links h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    border-top: 1px solid #555;
    text-align: center;
    color: #ccc;
}

/* お知らせ一覧ページ */
.news-list-page {
    padding: 80px 0;
    background-color: #f8f9fa;
    width: 100%;
}

.news-list-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.news-header {
    margin-bottom: 40px;
    text-align: center;
}

.news-filter {
    margin-bottom: 50px;
    text-align: center;
}

.news-filter h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c5aa0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2c5aa0;
    color: #fff;
}

/* お知らせタイムライン */
.news-timeline {
    position: relative;
    padding: 40px 0;
    width: 100%;
}

.news-timeline .timeline-item {
    display: flex;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 200px;
    width: 100%;
}

.news-timeline .timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.news-timeline .timeline-date {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4a8a 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-timeline .timeline-day {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: block;
}

.news-timeline .timeline-month {
    font-size: 1.1rem;
    color: #e0e7ef;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
}

.news-timeline .timeline-content {
    flex: 1;
    background-color: #fff;
    padding: 25px;
    transition: box-shadow 0.3s ease;
}

.news-timeline .timeline-category {
    display: inline-block;
    background-color: #2c5aa0;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-timeline .timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-timeline .timeline-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-timeline .timeline-content h3 a:hover {
    color: #2c5aa0;
}

.news-timeline .timeline-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    display: inline-block;
    padding: 10px 15px;
    background: #fff;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: #2c5aa0;
    color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-timeline .timeline-item {
        flex-direction: column;
    }
    
    .news-timeline .timeline-date {
        width: 100%;
        padding: 15px;
    }
    
    .news-timeline .timeline-content {
        padding: 20px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* お知らせ投稿フォーム */
.news-post-page {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.post-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.news-post-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #2c5aa0;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1e4a8a;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* お知らせ詳細ページ */
.news-detail-page {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news-detail-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.news-detail-content {
    padding: 40px;
}

.news-detail-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.news-detail-date {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4a8a 100%);
    color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.detail-date-day {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.detail-date-month {
    font-size: 1rem;
    opacity: 0.9;
}

.news-detail-category {
    display: inline-block;
    background-color: #2c5aa0;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-detail-body {
    line-height: 1.8;
}

.news-detail-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5aa0;
    margin: 30px 0 15px 0;
}

.news-detail-body p {
    margin-bottom: 15px;
    color: #555;
}

.news-detail-image {
    margin: 30px 0;
    text-align: center;
}

.news-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
} 