/**
 * お知らせ個別ページ スタイルシート
 * wp-content/themes/ryuji01/css/pages/single-news.css
 */

/* ==========================================
   お知らせ個別ページ
   ========================================== */

/* ヒーローセクション */
.news-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 123, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 123, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.news-hero-content {
    position: relative;
    z-index: 1;
}

/* パンくずリスト */
.breadcrumb {
    margin-bottom: 20px;
}

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

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 8px;
    color: #adb5bd;
}

.breadcrumb li:last-child::after {
    display: none;
}

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

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

.breadcrumb li[aria-current="page"] {
    color: #495057;
    font-weight: 500;
}

/* メタ情報ヘッダー */
.news-meta-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-hero .news-date {
    font-size: 16px;
    color: #6c757d;
}

.news-hero .news-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-hero .news-category {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px;
    color: #ffffff;
    background-color: #007bff;
    transition: all 0.3s ease;
}

.news-hero .news-category:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* タイトル */
.news-hero .news-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 30px 0;
}

/* アイキャッチ画像 */
.news-thumbnail {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* コンテンツセクション */
.news-content-section {
    padding: 60px 0;
    background: #ffffff;
}

.news-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* 記事本文 */
.news-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #007bff;
}

.news-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 30px 0 15px 0;
}

.news-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
    margin: 25px 0 10px 0;
}

.news-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 20px;
}

.news-content ul,
.news-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.news-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    font-style: italic;
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

/* サイドバー */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* 目次ウィジェット */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-item.toc-h3 {
    padding-left: 20px;
}

.toc-item.toc-h4 {
    padding-left: 40px;
}

.toc-link {
    display: block;
    padding: 6px 10px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toc-link:hover {
    background: #f8f9fa;
    color: #007bff;
    transform: translateX(2px);
}

.toc-link.active {
    background: #007bff;
    color: #ffffff;
    font-weight: 500;
}

/* 関連記事 */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.related-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-list a {
    display: block;
    text-decoration: none;
    color: #495057;
    transition: color 0.3s ease;
}

.related-list a:hover {
    color: #007bff;
}

.related-list time {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.related-list span {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

/* シェアボタン */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.twitter:hover {
    background: #1a91da;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.facebook:hover {
    background: #166fe5;
}

.share-button.linkedin {
    background: #0a66c2;
}

.share-button.linkedin:hover {
    background: #0958a8;
}

/* 記事フッター */
.news-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

/* タグ */
.news-tags {
    margin-bottom: 30px;
}

.tags-label {
    font-size: 14px;
    color: #6c757d;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-size: 13px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #007bff;
    color: #ffffff;
    transform: translateY(-1px);
}

/* 前後の記事ナビゲーション */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.nav-link {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

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

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

.nav-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.4;
}

/* CTAセクション */
.news-cta {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 60px 0;
    color: #ffffff;
}

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

.cta-box h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ffffff;
    color: #007bff;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #007bff;
    transform: translateY(-2px);
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .news-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 100px 0 40px;
    }
    
    .news-hero .news-title {
        font-size: 32px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h2 {
        font-size: 24px;
    }
    
    .news-content h3 {
        font-size: 20px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .cta-box h3 {
        font-size: 26px;
    }
    
    .cta-box p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
    }
    
    .news-meta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-hero .news-title {
        font-size: 26px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}