/* ====================================
   BAND CONNECT 事務局お知らせ機能 CSS
   ====================================*/

/* === ベース設定 === */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === お知らせ一覧ページ === */

/* ヘッダー */
.announcements-header {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.header-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo img {
    height: 60px;
    width: auto;
}

.page-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    color: white;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title i {
    color: #ffcc00;
    font-size: 2.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

/* パンくずナビゲーション */
.breadcrumb {
    margin: 30px 0;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: #666;
    font-weight: bold;
}

.breadcrumb a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: #ccc;
}

/* メインコンテンツ */
.announcements-main {
    padding: 40px 0;
    min-height: calc(100vh - 500px);
}

/* お知らせ一覧 */
.announcements-list {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.announcement-card {
    background: #333;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    border-left: 5px solid #ffcc00;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #444;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 204, 0, 0.2);
    background: #444;
    border-color: #ffcc00;
}

.announcement-header {
    margin-bottom: 20px;
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.announcement-date {
    color: #ffcc00;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.announcement-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.announcement-badge.pinned {
    background: linear-gradient(135deg, #ff6b35, #ff8a50);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.announcement-content {
    margin-bottom: 20px;
}

.announcement-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.announcement-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.announcement-link:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.announcement-excerpt {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.announcement-image {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcement-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.announcement-card:hover .announcement-image img {
    transform: scale(1.02);
}

.announcement-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #555;
    padding-top: 20px;
}

.read-more-link {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #ffcc00;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    background-color: #ffcc00;
    color: #000;
    gap: 12px;
}

/* === お知らせ詳細ページ === */

/* 詳細ページヘッダー */
.announcement-detail-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
}

.announcement-detail-header .header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.announcement-detail-header .header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.announcement-detail-main {
    padding: 40px 0;
    min-height: calc(100vh - 400px);
}

/* 記事コンテンツ */
.announcement-article {
    background: #333;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    border: 1px solid #444;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #555;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.article-date {
    color: #ffcc00;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-badge.pinned {
    background: linear-gradient(135deg, #ff6b35, #ff8a50);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.article-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin: 30px 0;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-label {
    color: #ccc;
    font-weight: 500;
    font-size: 0.95rem;
}

.share-buttons-list {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background-color: #000; /* 背景色を黒に変更 */
    color: white;
}

.share-btn.twitter:hover {
    background-color: #333; /* ホバー時は濃いグレーに */
    transform: translateY(-2px);
}

.share-btn.facebook {
    background-color: #4267b2;
    color: white;
}

.share-btn.facebook:hover {
    background-color: #365899;
    transform: translateY(-2px);
}

.share-btn.copy-url {
    background-color: #6c757d;
    color: white;
}

.share-btn.copy-url:hover {
    background-color: #545b62;
    transform: translateY(-2px);
}

/* 前後の記事ナビゲーション */
.article-navigation {
    margin: 40px 0;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-link {
    background: #333;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-left: 4px solid #ffcc00;
    border: 1px solid #444;
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.2);
    background: #444;
}

.nav-link.prev-link {
    text-align: left;
}

.nav-link.next-link {
    text-align: right;
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.nav-link.next-link .nav-direction {
    justify-content: flex-end;
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
    color: #ccc;
    line-height: 1.4;
}

/* 一覧に戻るボタン */
.back-to-list {
    text-align: center;
    margin: 40px 0;
}

.back-to-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border: 2px solid #ffcc00;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-to-list-btn:hover {
    background-color: #ffcc00;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

/* === 空状態 === */
.no-announcements {
    padding: 80px 20px;
    text-align: center;
}

.no-content-message {
    background: rgba(255, 204, 0, 0.1);
    border: 3px dashed #ffcc00;
    border-radius: 16px;
    padding: 60px 40px;
    color: #ffcc00;
    max-width: 600px;
    margin: 0 auto;
}

.no-content-message i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-content-message h2 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.no-content-message p {
    margin: 0 0 30px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #000;
    background-color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-to-home-btn:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

/* === ページネーション === */
.pagination-wrapper {
    margin: 50px 0;
    display: flex;
    justify-content: center;
}

/* === フッター === */
.announcements-footer {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a365d 100%);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* === レスポンシブ対応 === */
@media (max-width: 768px) {
    .announcements-header {
        height: 300px;
    }
    
    .page-title {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .page-title i {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .header-logo img {
        height: 50px;
    }
    
    .announcement-card {
        padding: 20px;
    }
    
    .announcement-title {
        font-size: 1.3rem;
    }
    
    .announcement-article {
        padding: 25px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .nav-link.next-link {
        text-align: left;
    }
    
    .nav-link.next-link .nav-direction {
        justify-content: flex-start;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .breadcrumb ol {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .announcements-header {
        height: 250px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .announcement-card {
        padding: 15px;
        margin: 0 5px;
    }
    
    .announcement-article {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 15px;
    }
    
    .no-content-message {
        padding: 40px 20px;
    }
}

/* === アニメーション === */
@media (prefers-reduced-motion: no-preference) {
    .announcement-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .announcement-card:nth-child(2) {
        animation-delay: 0.1s;
    }
    
    .announcement-card:nth-child(3) {
        animation-delay: 0.2s;
    }
    
    .announcement-card:nth-child(4) {
        animation-delay: 0.3s;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === プリント対応 === */
@media print {
    .announcements-header,
    .breadcrumb,
    .share-buttons,
    .article-navigation,
    .back-to-list,
    .announcements-footer {
        display: none;
    }
    
    .announcement-article {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .article-title {
        color: #000;
    }
    
    .article-content {
        color: #000;
    }
}