/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    line-height: 1.7;
    background-color: #f8f8f8;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

a:hover {
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, li {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
    gap: 30px;
    overflow: hidden;
    box-sizing: border-box;
    flex-wrap: wrap;
}

main {
    flex: 1;
    min-width: 0; /* flexアイテムの縮小を許可 */
}

/* ヘッダー */
header {
    background-color: #1a1a1a;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0;
    padding: 0;
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo a {
    color: #fff;
}

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

.pc-nav ul {
    display: flex;
    gap: 25px;
}

.pc-nav a {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.pc-nav a:hover {
    color: #fff;
}

.menu-trigger {
    display: none;
    width: 30px;
    height: 21px;
    position: relative;
    cursor: pointer;
}

.menu-trigger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.4s;
}

.menu-trigger span:nth-child(1) {
    top: 0;
}

.menu-trigger span:nth-child(2) {
    top: 9px;
}

.menu-trigger span:nth-child(3) {
    bottom: 0;
}

/* ヒーローセクション */
.hero {
    position: relative;
    color: #fff;
    padding: 120px 20px;
    text-align: center;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* 透明度を調整して画像の見え方を変更できます */
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* バナースライダー */
.banner-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.banner-slider {
    display: flex;
    gap: 20px;
    position: relative;
    transition: transform 0.5s ease;
    width: 100%;
    box-sizing: border-box;
}

.banner-slide {
    min-width: calc((100% - 40px) / 3); /* 3枚表示の場合 */
    max-width: calc((100% - 40px) / 3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    flex: 1;
}

.banner-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    max-width: 100%;
}

.banner-slide:hover img {
    transform: scale(1.05);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}

.banner-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 700;
}

.banner-content p {
    font-size: 14px;
    opacity: 0.9;
}

.banner-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.banner-prev, .banner-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.banner-prev:hover, .banner-next:hover {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .banner-slide {
        min-width: calc((100% - 20px) / 2); /* 2枚表示 */
    }
}

@media (max-width: 576px) {
    .banner-slide {
        min-width: calc((100% - 15px) / 2); /* 2枚表示 */
        max-width: calc((100% - 15px) / 2);
    }
    
    .banner-slide img {
        height: 120px; /* スマホでは高さを少し小さく */
    }
}

/* 特集記事スライダー */
.featured-posts {
    margin-bottom: 50px;
}

.featured-posts h3 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid #444;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.post-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    width: 100%;
}

.post-card {
    min-width: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-card .post-thumbnail {
    position: relative;
    padding-top: 66.67%; /* 3:2のアスペクト比 */
    overflow: hidden;
}

.post-card .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90px;
}

.post-category {
    display: inline-block;
    background-color: #333;
    color: #f0f0f0;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 特集記事のカテゴリー専用スタイル */
.post-card .post-category {
    display: inline-block;
    position: relative;
    padding-left: 10px;
    padding-right: 0;
    margin-left: 0;
    background-color: transparent;
    color: #333;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: none;
}

.post-card .post-category:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #333;
    border-radius: 1px;
}

/* カテゴリー別のカラー設定 */
.post-card .category-tech:before {
    background-color: #3e8691;
}

.post-card .category-business:before {
    background-color: #e67e22;
}

.post-card .category-lifestyle:before {
    background-color: #27ae60;
}

.post-card .category-ai:before {
    background-color: #8e44ad;
}


.post-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    color: #777;
    font-size: 13px;
    gap: 15px;
}

/* 記事一覧 */
.posts h3 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid #444;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    row-gap: 30px;
}

.post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.post-item .post-thumbnail {
    position: relative;
    padding-top: 66.67%; /* 3:2のアスペクト比 */
    overflow: hidden;
}

.post-item .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-item .post-content {
    padding: 15px;
}

.post-tags {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-tag {
    font-size: 11px;
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 3px;
    color: #666;
    transition: all 0.2s ease;
}

.post-tag:hover {
    background-color: #333;
    color: #fff;
}

.post-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 4.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-excerpt {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    max-height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ページネーション - 新スタイルに統合済み（1307行目参照） */

/* サイドバー */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
}

.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid #444;
}

/* プロフィールウィジェット */
.profile-content {
    text-align: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.profile-description {
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.social-links a:hover {
    background-color: #333;
    color: #fff;
}

/* カテゴリーウィジェット */
.categories ul li {
    border-bottom: 1px solid #eee;
}

.categories ul li:last-child {
    border-bottom: none;
}

.categories ul li a {
    display: block;
    padding: 10px 0;
    transition: padding 0.3s;
}

.categories ul li a:hover {
    padding-left: 5px;
}

/* 人気記事ウィジェット */
.popular-posts ul li {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.popular-posts ul li:first-child {
    padding-top: 0;
}

.popular-posts ul li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts .post-thumbnail {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

.popular-posts .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-posts .post-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-posts .post-meta {
    font-size: 12px;
}

/* タグクラウド */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagcloud a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 3px;
    font-size: 13px;
}

.tagcloud a:hover {
    background-color: #333;
    color: #fff;
}

/* フッター */
footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 50px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #999;
}

.footer-widget p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li:last-child {
    margin-bottom: 0;
}

.footer-widget ul li a {
    color: #fff;
    opacity: 0.8;
    font-size: 14px;
}

.footer-widget ul li a:hover {
    opacity: 1;
    color: #999;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    opacity: 0.7;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 50px;
    }
    
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-branding {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pc-nav {
        display: none;
    }
    
    .menu-trigger {
        display: block;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .post-grid, .featured-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .post-slider {
        flex-direction: column;
    }
    
    .post-card {
        min-width: 100%;
    }
}

/* ランキングバッジ - 三角形ラベル */
.ranking-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    overflow: hidden;
    width: 80px;
    height: 80px;
}

.ranking-badge::before {
    position: absolute;
    content: "";
    display: block;
    width: 150%;
    height: 150%;
    background-color: #333;
    transform: rotate(-45deg) translateY(-70%);
    z-index: -1;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

/* 1位のスタイル - ゴールド */
.ranking-badge.rank-1::before {
    background-color: #FFD700; /* ゴールド */
}

/* 2位のスタイル - シルバー */
.ranking-badge.rank-2::before {
    background-color: #C0C0C0; /* シルバー */
}

/* 3位のスタイル - ブロンズ */
.ranking-badge.rank-3::before {
    background-color: #CD7F32; /* ブロンズ */
}

/* 4位以降のスタイル（濃いグレー） */
.ranking-badge:not(.rank-1):not(.rank-2):not(.rank-3)::before {
    background-color: #555;
}

.ranking-badge span {
    position: absolute;
    color: white;
    font-weight: bold;
    top: 15px;
    left: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    z-index: 1;
    font-family: Arial, sans-serif;
    text-shadow: 0px 1px 2px rgba(0,0,0,0.3);
}

/* 1位の数字 */
.ranking-badge.rank-1 span {
    font-size: 22px;
    font-weight: 900;
}

/* 2位の数字 */
.ranking-badge.rank-2 span {
    font-size: 22px;
    font-weight: 800;
}

/* 3位の数字 */
.ranking-badge.rank-3 span {
    font-size: 22px;
    font-weight: 800;
}

/* ランキングバッジホバー効果 */
.product-item:hover .ranking-badge::before {
    filter: brightness(1.1);
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* モバイルメニュー用スタイル */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #222;
        padding-top: 0;
        transition: right 0.3s ease;
        z-index: 99;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    /* ヘッダーの位置を固定 */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 90;
        background-color: #1a1a1a;
    }
    
    .header-inner {
        position: relative;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    body {
        padding-top: 0; /* ヘッダーの高さ分を削除 */
    }
    
    .header-nav.active {
        right: 0;
    }
    
    .header-nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    .header-nav li {
        margin: 0;
        width: 100%;
    }
    
    .header-nav a {
        display: block;
        padding: 15px 25px;
        border-bottom: 1px solid #333;
    }
    
    /* ハンバーガーメニューがアクティブのとき（×マークに変換） */
    .menu-toggle.active {
        position: fixed;
        top: 27px;
        right: 15px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        position: absolute;
        top: 9px; /* 中央に配置 */
        transform: rotate(45deg);
        width: 100%;
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        position: absolute;
        top: 9px; /* 中央に配置 */
        transform: rotate(-45deg);
        width: 100%;
    }
    
    /* メニュー表示時に背景をオーバーレイ */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 98;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

/* キャンペーンバナースタイル */
.campaign-banner-section {
    margin-bottom: 20px;
}

.campaign-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.campaign-banner {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campaign-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.campaign-banner img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.campaign-banner:hover img {
    transform: scale(1.05);
}

.campaign-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.campaign-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.campaign-period {
    font-size: 12px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .campaign-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .campaign-banner:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .campaign-banner-grid {
        grid-template-columns: 1fr;
    }
    
    .campaign-banner:last-child {
        grid-column: auto;
    }
    
    .campaign-banner img {
        height: 140px;
    }
}


/* サブバナースタイル - 4つ並び */
.sub-banner-container {
    background-color: #f8f8f8;
    padding: 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    width: 100%;
    margin-top: 0;
}

.sub-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.sub-banner {
    position: relative;
    overflow: hidden;
    display: block;
    transition: transform 0.3s ease;
}

.sub-banner:hover {
    transform: translateY(-5px);
}

.sub-banner img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sub-banner:hover img {
    transform: scale(1.05);
}

.sub-banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background-color: rgba(0,0,0,0.7);
    color: white !important; /* !importantを追加 */
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.sub-banner:hover .sub-banner-text {
    background-color: #e2264d; /* 直接色を指定 */
}

@media (max-width: 1100px) {
    .sub-banner-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .sub-banner img {
        height: 250px;
    }
}

@media (max-width: 900px) {
    .sub-banner img {
        height: 200px;
    }
    
    .sub-banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
}

@media (max-width: 768px) {
    .sub-banner img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .sub-banner-container {
        padding: 0;
    }
    
    .sub-banner img {
        height: 180px;
    }
    
    .sub-banner-text {
        padding: 10px;
        font-size: 16px;
    }
}



/* お知らせ欄スタイル */
.notice-section {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.notice-content {
    padding: 15px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-date {
    color: #666;
    font-size: 13px;
    min-width: 100px;
    padding-right: 15px;
}

.notice-title {
    flex: 1;
    font-size: 14px;
}

.notice-title a {
    color: #333;
    text-decoration: none;
}

.notice-title a:hover {
    color: #e2264d; /* 直接色を指定 */
    text-decoration: underline;
}

/* セクションリンクホバースタイル */
.section-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    background-color: transparent !important;
}

/* ページナビゲーション */
/* WordPress標準のページネーション */
.navigation.pagination,
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.navigation.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    background-color: #f5f5f5;
    color: #333;
}

.navigation.pagination .page-numbers:hover {
    background-color: #e0e0e0;
}

.navigation.pagination .page-numbers.current {
    background-color: #e2264d;
    color: white;
    font-weight: bold;
}

.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
    padding: 0 15px;
}

.navigation.pagination .page-numbers.dots {
    background: none;
    cursor: default;
}

.navigation.pagination .page-numbers.dots:hover {
    background: none;
}

/* paginate_links用のスタイル */
.pagination-wrapper ul.page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-wrapper ul.page-numbers li {
    display: inline-block;
}

.pagination-wrapper ul.page-numbers a.page-numbers,
.pagination-wrapper ul.page-numbers span.page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid transparent;
}

.pagination-wrapper ul.page-numbers a.page-numbers:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.pagination-wrapper ul.page-numbers span.current {
    background-color: #e2264d;
    color: white;
    font-weight: bold;
    border-color: #e2264d;
}

.pagination-wrapper ul.page-numbers a.prev,
.pagination-wrapper ul.page-numbers a.next {
    padding: 0 15px;
}

.pagination-wrapper ul.page-numbers span.dots {
    background: none;
    cursor: default;
    border: none;
}

.pagination-wrapper ul.page-numbers span.dots:hover {
    background: none;
}

/* スクリーンリーダー用のテキストを非表示 */
.pagination-wrapper .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* paginate_links デフォルト形式用のスタイル */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid transparent;
}

.pagination a.page-numbers:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.pagination span.current {
    background-color: #e2264d;
    color: white;
    font-weight: bold;
    border-color: #e2264d;
}

.pagination .prev,
.pagination .next {
    padding: 0 15px;
}

.pagination .dots {
    background: none;
    cursor: default;
    border: none;
}

/* レスポンシブ対応：ページナビゲーション */
@media (max-width: 576px) {
    .navigation.pagination .nav-links,
    .pagination-wrapper ul.page-numbers,
    .pagination {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .navigation.pagination .page-numbers,
    .pagination-wrapper ul.page-numbers a.page-numbers,
    .pagination-wrapper ul.page-numbers span.page-numbers,
    .pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        margin: 0;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .navigation.pagination .page-numbers.prev,
    .navigation.pagination .page-numbers.next,
    .pagination-wrapper ul.page-numbers a.prev,
    .pagination-wrapper ul.page-numbers a.next,
    .pagination .prev,
    .pagination .next {
        padding: 0 12px;
    }
    
    .notice-item {
        flex-direction: column;
    }
    
    .notice-date {
        min-width: auto;
        margin-bottom: 5px;
    }
}