/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #4a4a4a;
    background: linear-gradient(135deg, #faf8fc 0%, #f8f5f8 50%, #fcfafc 100%);
    min-height: 100vh;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #d63384 0%, #e85aa1 50%, #f0a6ca 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 15px rgba(214, 51, 132, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    letter-spacing: 0.5px;
}

.logo .subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.logo::before {
    content: '';
}

.logo a {
    text-decoration: none;
    color: white;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* カテゴリナビゲーション */
.nav-link.category-link {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

.nav-link.category-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
}

/* ページヘッダー */
.page-header {
    text-align: center;
    padding: 2rem 0 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #d63384;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(214, 51, 132, 0.1);
}

.page-description {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

/* カテゴリタブナビゲーション（ヘッダー下） */
.category-tabs-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #d63384;
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
}

.category-tab.active {
    background: linear-gradient(135deg, #d63384 0%, #e85aa1 100%);
    color: white;
    border-color: #d63384;
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.3);
    transform: translateY(-2px);
}

.category-tab.active .tab-icon {
    filter: brightness(1.2);
}

.tab-icon {
    font-size: 1.2rem;
    display: inline-block;
}

.tab-text {
    font-size: 0.95rem;
    font-weight: 600;
}

#category-tabs-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* メインコンテンツ */
.main {
    padding: 1.5rem 0;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-area {
    min-width: 0; /* グリッドオーバーフロー防止 */
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 広告スペース */
.ad-space {
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ad-space::before {
    content: '📢';
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.ad-space-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #666;
}

.ad-space-description {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* 広告バリエーション */
.ad-space.large {
    min-height: 400px;
}

.ad-space.banner {
    min-height: 120px;
    padding: 1rem;
}

.ad-space.square {
    aspect-ratio: 1;
    min-height: 300px;
}

/* ヘッダー下横長広告 */
.header-ad {
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.header-ad::before {
    content: '📺';
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.header-ad-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #666;
}

.header-ad-description {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* 記事間広告 */
.inline-ad {
    grid-column: 1 / -1; /* グリッド全体に広がる */
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    position: relative;
}

.inline-ad-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #666;
}

.inline-ad-description {
    font-size: 0.8rem;
    line-height: 1.4;
}

.articles-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 4px 20px rgba(214, 51, 132, 0.08);
    margin-bottom: 1rem;
    position: relative;
    border: 1px solid rgba(214, 51, 132, 0.1);
}

.articles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d63384, #f0a6ca);
    border-radius: 16px 16px 0 0;
}

.section-title {
    font-size: 1.4rem;
    color: #d63384;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d63384, #f0a6ca);
    border-radius: 1px;
}

/* 記事グリッド */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(214, 51, 132, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(214, 51, 132, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.article-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-image-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2.5rem;
    position: relative;
}

.article-card-image-placeholder::before {
    content: '📝';
    opacity: 0.3;
}


.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.15);
    border-color: rgba(214, 51, 132, 0.2);
}

.article-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.2);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d63384, #f0a6ca);
}

.article-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    margin-bottom: 0.75rem;
}

.article-card-title a {
    color: #2d3748;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #d63384;
}

.article-card-excerpt {
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-date::before {
    content: '•';
    font-size: 0.9rem;
    color: #d63384;
    margin-right: 0.3rem;
}

.article-category {
    background: linear-gradient(135deg, #d63384, #f0a6ca);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.reading-time::before {
    content: '•';
    font-size: 0.9rem;
    color: #d63384;
    margin-right: 0.3rem;
}

/* タグ */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.tag {
    color: #d63384;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.1rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tag::before {
    content: '';
}

.tag:hover {
    color: #b02a5b;
    border-bottom-color: #f0a6ca;
}

.no-tags {
    color: transparent;
    font-size: 0.8rem;
    height: 1.2rem;
    display: inline-block;
}

/* ローディング・エラー状態 */
.loading {
    text-align: center;
    padding: 3rem;
    color: #d63384;
    font-size: 1.1rem;
}

.loading::before {
    content: '•••';
    display: block;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 0.5rem;
}

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

.error {
    text-align: center;
    padding: 3rem;
    color: #e74c3c;
    background: #ffeaea;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.no-articles {
    text-align: center;
    padding: 3rem;
    color: #888;
    font-style: italic;
}

.no-articles::before {
    content: '•';
    display: block;
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: #d63384;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
}

/* 大画面用調整 */
@media (min-width: 1600px) {
    .main-content {
        max-width: 1200px;
        gap: 2rem;
    }
    
    .container {
        max-width: 1200px;
    }
    
    .articles-grid {
        gap: 1.5rem;
    }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr 250px;
        gap: 2rem;
    }
    
    .ad-space {
        min-height: 200px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .content-area {
        order: 0; /* メインコンテンツを上に */
    }
    
    .sidebar {
        order: 1; /* モバイルでサイドバーを下に */
    }
    
    .ad-space {
        min-height: 120px;
        padding: 1rem;
    }
    
    .ad-space.banner {
        min-height: 80px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav ul {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .nav-link.category-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .page-description {
        font-size: 0.9rem;
    }
    
    .category-tabs-header {
        padding: 0.8rem 0;
    }
    
    .category-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        justify-content: space-around !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
    }
    
    .category-tab {
        padding: 0.6rem 0.4rem !important;
        font-size: 0.8rem !important;
        text-align: center !important;
        min-width: 0 !important;
        flex: 0 0 calc(33.333% - 0.3rem) !important;
        max-width: calc(33.333% - 0.3rem) !important;
        height: auto !important;
        min-height: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .category-tab:nth-child(n+4) {
        flex: 0 0 calc(50% - 0.2rem) !important;
        max-width: calc(50% - 0.2rem) !important;
    }
    
    .category-tab:nth-child(4) {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    .category-tab:nth-child(5) {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .tab-icon {
        font-size: 1rem;
    }
    
    .tab-text {
        font-size: 0.75rem;
        line-height: 1.1;
        word-break: break-all;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
        margin-top: 0.2rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo .subtitle {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .section-title::after {
        position: static;
        margin-left: 0.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .header-ad {
        height: 80px;
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .article-card-content {
        padding: 1.5rem;
    }
    
    .article-card-title a {
        font-size: 0.9rem;
    }
    
    .article-card-image {
        height: 180px;
    }
    
    .article-card-image-placeholder {
        height: 180px;
        font-size: 2.5rem;
    }
    
    .article-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .articles-section {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
}

/* 記事詳細ページ */
.article-detail {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(214, 51, 132, 0.08);
    margin: 2rem 0;
    position: relative;
    border: 1px solid rgba(214, 51, 132, 0.1);
}

.article-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d63384, #f0a6ca);
    border-radius: 16px 16px 0 0;
}

/* 記事画像スタイル */
.article-main-image {
    margin: 0 0 30px 0;
    text-align: center;
    width: 100%;
}

.article-main-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: cover;
    aspect-ratio: 16/9; /* 統一されたアスペクト比 */
}

.article-image {
    margin: 30px 0;
    text-align: center;
    width: 100%;
}

.article-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    object-fit: cover;
    aspect-ratio: 4/3; /* 段落画像は少し縦長 */
}

/* スマホ対応 */
@media (max-width: 768px) {
    .article-main-image {
        margin: 0 0 20px 0;
    }
    
    .article-main-image img {
        border-radius: 8px;
        aspect-ratio: 16/10; /* スマホでは少し縦長に */
    }
    
    .article-image {
        margin: 20px 0;
    }
    
    .article-image img {
        border-radius: 6px;
        aspect-ratio: 1/1; /* スマホでは正方形 */
    }
}

/* 超小画面対応 */
@media (max-width: 480px) {
    .article-main-image img,
    .article-image img {
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}


.article-title {
    font-size: 1.6rem;
    color: #2d3748;
    margin-bottom: 2rem;
    line-height: 1.3;
    font-weight: 700;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.meta-icon {
    font-size: 1rem;
}

.category-badge {
    background: linear-gradient(135deg, #d63384, #f0a6ca);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 3rem;
}

.article-content h2 {
    color: #d63384;
    font-size: 1.4rem;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0a6ca;
    position: relative;
}

.article-content h2::before {
    content: '';
}

.article-content h3 {
    color: #e85aa1;
    font-size: 1.2rem;
    margin: 2rem 0 1rem 0;
}

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

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    background: linear-gradient(135deg, #faf8fc, #f8f5f8);
    border-left: 4px solid #d63384;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.3;
    color: #d63384;
    font-family: serif;
}

.article-tags {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #faf8fc, #f8f5f8);
    border-radius: 12px;
    text-align: center;
}

.tags-title {
    color: #d63384;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.tags .tag {
    color: #d63384;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tags .tag::before {
    content: '#';
    color: #f0a6ca;
    margin-right: 0.3rem;
}

.tags .tag:hover {
    color: #b02a5b;
    border-bottom-color: #f0a6ca;
    transform: translateY(-2px);
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #faf8fc;
    text-align: center;
}

.article-actions {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d63384, #f0a6ca);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(214, 51, 132, 0.2);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.3);
}


.article-share {
    color: #888;
    font-style: italic;
}

.share-text {
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .article-detail {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .tags {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .header::before,
    .header::after {
        display: none;
    }
    
    .main-content {
        padding: 0 5px;
    }
    
    .articles-section {
        padding: 1rem 0.5rem;
        margin: 0 5px;
    }
    
    .article-card-content {
        padding: 1rem;
    }
    
    .article-card-image {
        height: 160px;
    }
    
    .article-card-image-placeholder {
        height: 160px;
        font-size: 2rem;
    }
    
    .article-detail {
        padding: 1.5rem 1rem;
        margin: 0 5px;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .article-content h2 {
        font-size: 1.1rem;
    }
    
    .header-ad {
        margin: 1rem 5px;
        padding: 0.8rem;
    }
    
    .inline-ad {
        height: 80px;
        padding: 1rem;
        margin: 0.5rem 5px;
    }
}

/* プライバシーポリシー専用スタイル */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.privacy-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #d63384;
}

.privacy-section h2 {
    color: #d63384;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.privacy-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #4a4a4a;
}

.privacy-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #4a4a4a;
}

.contact-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.policy-date {
    font-weight: 600;
    color: #666;
    text-align: right;
    margin-bottom: 0.5rem !important;
}

/* フッターリンク */
.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f0a6ca;
}

/* お問い合わせフォーム */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d63384;
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #d63384, #f0a6ca);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #c02a74, #e895b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contact-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.contact-message .success {
    color: #27ae60;
    background: #d5f4e6;
    border: 1px solid #27ae60;
    padding: 0.8rem;
    border-radius: 6px;
    margin: 0;
}

.contact-message .error {
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #e74c3c;
    padding: 0.8rem;
    border-radius: 6px;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 0.9rem;
    }
}

/* =====================================
   記事内広告スタイル
   ===================================== */

/* 記事内広告の基本スタイル */
.article-ad-inline {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.article-ad-inline .ad-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.article-ad-inline .ad-content {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-ad-inline .ad-placeholder {
    background: #ffffff;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 2rem;
    width: 300px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.article-ad-inline .ad-placeholder.large {
    width: 336px;
    height: 280px;
}

.article-ad-inline .ad-placeholder.responsive {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.article-ad-inline .ad-size-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.article-ad-inline .ad-description {
    font-size: 0.8rem;
    color: #6c757d;
}

/* 位置別の調整 */
.article-ad-inline.ad-top {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.article-ad-inline.ad-bottom {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-ad-inline.ad-25,
.article-ad-inline.ad-50,
.article-ad-inline.ad-75 {
    margin: 2.5rem 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .article-ad-inline {
        margin: 1.5rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .article-ad-inline .ad-placeholder {
        width: 100%;
        max-width: 320px;
        height: 100px;
        padding: 1rem;
    }
    
    .article-ad-inline .ad-placeholder.large {
        width: 100%;
        max-width: 320px;
        height: 120px;
    }
    
    .article-ad-inline .ad-placeholder.responsive {
        height: 50px;
    }
    
    .article-ad-inline .ad-size-label {
        font-size: 0.8rem;
    }
    
    .article-ad-inline .ad-description {
        font-size: 0.7rem;
    }
}

/* =====================================
   スティッキー広告スタイル
   ===================================== */

/* スティッキー広告コンテナ */
.ad-sticky-container {
    position: relative;
    margin-bottom: 2rem;
}

/* スティッキー広告本体 */
.ad-sticky {
    position: sticky;
    top: 20px;
    z-index: 100;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ad-sticky:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ad-sticky .ad-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.ad-sticky .ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.ad-sticky .ad-placeholder.skyscraper {
    background: #ffffff;
    border: 2px dashed #28a745;
    border-radius: 6px;
    padding: 2rem 1rem;
    width: 300px;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ad-sticky .ad-size-label {
    font-size: 1rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 1rem;
}

.ad-sticky .ad-description {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    line-height: 1.4;
}

/* スティッキー広告のアニメーション効果 */
@keyframes stickyFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-sticky.is-sticky {
    animation: stickyFadeIn 0.3s ease;
    border-color: #28a745;
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.2);
}

/* タブレット対応 */
@media (max-width: 1024px) {
    .ad-sticky .ad-placeholder.skyscraper {
        width: 250px;
        height: 500px;
    }
}

/* モバイル対応 - スティッキー広告を無効化 */
@media (max-width: 768px) {
    .ad-sticky-container {
        display: none;
    }
}

/* =====================================
   モバイル専用広告スタイル
   ===================================== */

/* モバイル専用インタースティシャル広告 */
.mobile-interstitial-ad {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
}

.mobile-interstitial-ad.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.interstitial-overlay {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.interstitial-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.interstitial-close.enabled {
    opacity: 1;
}

.interstitial-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

.interstitial-content .ad-placeholder.interstitial {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    border: 2px dashed #007bff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.interstitial-timer {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 1rem;
}

#interstitial-countdown {
    font-weight: bold;
    color: #007bff;
}

/* モバイル専用固定バナー広告 */
.mobile-fixed-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #e9ecef;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
}

.mobile-fixed-banner.show {
    display: block;
}

.mobile-banner-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: #6c757d;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-banner-close:hover {
    background: #495057;
}

.mobile-fixed-banner .ad-content {
    padding: 0.5rem;
    text-align: center;
}

.mobile-fixed-banner .ad-placeholder.mobile-banner {
    background: #f8f9fa;
    border: 1px dashed #28a745;
    border-radius: 4px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.mobile-fixed-banner .ad-label {
    position: absolute;
    top: 2px;
    left: 5px;
    background: #28a745;
    color: white;
    padding: 1px 4px;
    font-size: 0.6rem;
    border-radius: 2px;
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* デスクトップでは非表示 */
@media (min-width: 769px) {
    .mobile-interstitial-ad,
    .mobile-fixed-banner {
        display: none !important;
    }
}

/* モバイル専用表示 */
@media (max-width: 768px) {
    /* 記事内広告のモバイル最適化 */
    .article-ad-inline .ad-placeholder {
        width: 100%;
        max-width: 320px;
        height: 100px;
    }
    
    .article-ad-inline .ad-placeholder.large {
        height: 120px;
    }
    
    /* モバイル専用広告の表示 */
    .mobile-interstitial-ad.show,
    .mobile-fixed-banner.show {
        display: block;
    }
    
    /* コンテンツ下部の余白調整（固定バナー分） */
    body.mobile-banner-active {
        padding-bottom: 70px;
    }
}

/* =====================================
   フッター広告・記事リスト間広告スタイル
   ===================================== */

/* フッター広告セクション */
.footer-ad-section {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-ad-container {
    position: relative;
    text-align: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-ad-container .ad-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #6f42c1;
    color: white;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.footer-ad-container .ad-placeholder.footer-ad {
    background: #ffffff;
    border: 2px dashed #6f42c1;
    border-radius: 6px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 970px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.footer-ad-container .ad-size-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6f42c1;
    margin-bottom: 0.5rem;
}

.footer-ad-container .ad-description {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 記事リスト間広告 - 非表示 */
.article-list-ad {
    display: none !important;
}

.article-list-ad .ad-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #fd7e14;
    color: white;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.article-list-ad .ad-placeholder.list-ad {
    background: #ffffff;
    border: 2px dashed #fd7e14;
    border-radius: 6px;
    padding: 2rem;
    width: 100%;
    max-width: 728px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.article-list-ad .ad-size-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fd7e14;
    margin-bottom: 0.5rem;
}

.article-list-ad .ad-description {
    font-size: 0.8rem;
    color: #6c757d;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer-ad-section {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .footer-ad-container {
        margin: 0 1rem;
        padding: 1rem;
    }
    
    .footer-ad-container .ad-placeholder.footer-ad {
        max-width: 320px;
        height: 100px;
        padding: 1.5rem 1rem;
    }
    
    .article-list-ad {
        margin: 1.5rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .article-list-ad .ad-placeholder.list-ad {
        max-width: 320px;
        height: 50px;
        padding: 1rem;
    }
    
    .article-list-ad .ad-size-label {
        font-size: 0.8rem;
    }
    
    .article-list-ad .ad-description {
        font-size: 0.7rem;
    }
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-ad-container .ad-placeholder.footer-ad {
        max-width: 728px;
        height: 200px;
    }
}

/* =====================================
   関連記事・人気記事スタイル
   ===================================== */

/* 関連記事セクション */
.related-articles-section {
    margin: 3rem 0 2rem 0;
    padding: 2rem;
    border-top: 2px solid #f8f9fa;
    border-bottom: 2px solid #f8f9fa;
    background: linear-gradient(135deg, #faf8fc 0%, #f8f5f8 50%, #fcfafc 100%);
}

.related-articles-section .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d63384;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.related-articles-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #d63384, #e91e63);
    border-radius: 2px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-image-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.related-article-image-placeholder::before {
    content: '📷';
    font-size: 2rem;
}

.related-article-content {
    padding: 1.2rem;
}

.related-article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #868e96;
}

.related-article-date {
    display: flex;
    align-items: center;
}

.related-article-category {
    background: #d63384;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

/* 人気記事ウィジェット */
.popular-articles-widget {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.popular-articles-widget .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    text-align: center;
    position: relative;
}

.popular-articles-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 1px;
}

.popular-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-article-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.popular-article-item:hover {
    background-color: #f8f9fa;
}

.popular-article-rank {
    background: linear-gradient(135deg, #d63384, #e91e63);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-article-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.popular-article-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-article-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: #868e96;
}

.popular-article-views {
    display: flex;
    align-items: center;
}

.popular-article-views::before {
    content: '👁';
    margin-right: 0.2rem;
}

.popular-article-category {
    background: #6c757d;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-weight: 500;
}

/* 読み込み・エラーメッセージ */
.loading-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 1rem 0;
}

.no-articles {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .related-article-content {
        padding: 1rem;
    }
    
    .popular-articles-widget {
        padding: 1rem;
    }
    
    .popular-article-item {
        padding: 0.6rem;
    }
}

/* =====================================
   🎨 新しいページネーション システム
   ===================================== */

/* モダンページネーションコンテナ */
.modern-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0 1rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    border-radius: 12px;
}

/* 新しいページボタンスタイル */
.page-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* ページボタンホバー効果 */
.page-btn:hover {
    background: #f8f9fa;
    border-color: #d63384;
    color: #d63384;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(214, 51, 132, 0.15);
}

.page-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* アクティブページボタン */
.page-btn.active {
    background: linear-gradient(135deg, #d63384 0%, #e91e63 100%);
    border-color: #d63384;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
}

.page-btn.active:hover {
    background: linear-gradient(135deg, #c2185b 0%, #d63384 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(214, 51, 132, 0.4);
}

/* 前へ・次へボタン */
.page-btn.prev-btn,
.page-btn.next-btn {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6f42c1 0%, #8e44ad 100%);
    border-color: #6f42c1;
    color: white;
}

.page-btn.prev-btn:hover,
.page-btn.next-btn:hover {
    background: linear-gradient(135deg, #5a2d91 0%, #6f42c1 100%);
    border-color: #5a2d91;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(111, 66, 193, 0.3);
}

/* 無効化されたボタン */
.page-btn:disabled {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 省略記号 */
.pagination .ellipsis {
    padding: 0.75rem 0.5rem;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

/* 新しいページ情報テキスト */
.page-info {
    text-align: center;
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
        margin: 2rem -1rem 1rem -1rem;
        padding: 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .pagination button {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 36px;
        height: 36px;
    }
    
    .pagination button.prev,
    .pagination button.next {
        padding: 0.6rem 1rem;
    }
    
    /* モバイルでは一部のページ番号を非表示 */
    .pagination button:not(.active):not(.prev):not(.next):nth-child(n+6) {
        display: none;
    }
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .pagination {
        gap: 0.4rem;
    }
    
    .pagination button {
        padding: 0.7rem 0.9rem;
        min-width: 40px;
        height: 40px;
    }
}