/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.home-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.home-link:hover {
    opacity: 0.8;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-content {
    text-align: center;
}

.nav-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

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

.nav-item {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.nav-item:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero-character {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.character-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.hero-profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.character-speech {
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 20px;
    position: relative;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.character-speech::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #FFD700;
    color: #333;
}

.btn-primary:hover {
    background: #FFC107;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: white;
    color: #333;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Floating Icons */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; }
.floating-icon:nth-child(2) { top: 60%; right: 15%; }
.floating-icon:nth-child(3) { top: 30%; right: 30%; }
.floating-icon:nth-child(4) { bottom: 20%; left: 20%; }

/* Strategy Section */
.strategy-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.strategy-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.strategy-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.strategy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.strategy-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Article Cards within Strategy Cards */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.article-card {
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-card a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.article-card h4 {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.4;
}

.article-card p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.article-date {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #999;
    text-align: right;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-character {
    text-align: center;
}

.character-large {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 4rem;
    color: white;
    animation: bounce 3s infinite;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.character-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.character-status {
    color: #666;
    font-size: 0.9rem;
}

.about-text h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text ul {
    color: #666;
    padding-left: 20px;
}

.about-text li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.contact-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 120px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2rem;
    color: #667eea;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
}

.footer-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-character {
        flex-direction: column;
        gap: 15px;
    }
    
    .strategy-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
}

/* カテゴリページ用スタイル */
.category-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 80px;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.category-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.category-title {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.category-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
}

.articles-section {
    padding: 3rem 0;
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.articles-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.articles-count {
    color: #666;
    font-size: 0.9rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.category-article-card .article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.85rem;
}

.article-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
}

.article-date {
    color: #999;
}

.category-article-card .article-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0.5rem 1.5rem;
    line-height: 1.4;
}

.category-article-card .article-description {
    color: #666;
    line-height: 1.6;
    margin: 0.5rem 1.5rem;
    font-size: 0.95rem;
}

.category-article-card .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 1rem;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.85rem;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.category-article-card:hover .read-more {
    color: #5a67d8;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
}

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

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: #667eea;
    color: white;
}

.pagination-number.active {
    background: #667eea;
    color: white;
}

/* エラーメッセージ・記事なしメッセージ */
.no-articles, .error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-articles-icon, .error-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-articles h3, .error-message h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.no-articles p, .error-message p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* もっと見るボタン（トップページ用） */
.more-articles {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1rem;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.more-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .articles-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* 文字のみロゴスタイル */
.brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.brand-text:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

/* 既存のロゴスタイルを無効化 */
.logo, .footer-logo {
    display: none;
}

/* ホームリンクの調整 */
.home-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-link:hover {
    transform: translateY(-1px);
}

/* 関連記事カードのスタイル */
.related-articles-section {
    background: #f8f9fa;
    padding: 4rem 0;
    border-top: 1px solid #e9ecef;
}

.related-articles-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-articles-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-articles-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

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

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

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

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

.related-article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.related-article-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.related-article-category.mamoru {
    background: #e8f5e8;
    color: #2e7d32;
}

.related-article-category.huyasu {
    background: #fff3e0;
    color: #f57c00;
}

.related-article-category.kasegu {
    background: #fce4ec;
    color: #c2185b;
}

.related-article-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.related-article-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.related-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.related-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.related-read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.related-article-card:hover .related-read-more {
    color: #764ba2;
}

/* 関連記事がない場合のスタイル */
.no-related-articles {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.no-related-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.no-related-articles h4 {
    color: #495057;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-related-articles p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.browse-categories {
    margin-top: 2rem;
}

.browse-categories p {
    margin-bottom: 1rem;
    font-weight: 500;
    color: #495057;
}

.browse-categories .category-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.browse-categories .category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
}

.browse-categories .category-link:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .related-articles-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .related-article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .related-article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .browse-categories .category-links {
        flex-direction: column;
        align-items: center;
    }
    
    .browse-categories .category-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}


/* 楽天アフィリエイトバナー */
.affiliate-banner-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
    border-top: 1px solid #dee2e6;
}

.affiliate-banner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.affiliate-banner h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.rakuten-widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/* サイドバーの楽天バナー */
.sidebar-widget .rakuten-widget-container {
    margin: 15px 0;
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .affiliate-banner-section {
        padding: 30px 0;
    }
    
    .affiliate-banner h3 {
        font-size: 1.3rem;
    }
    
    .rakuten-widget-container {
        overflow-x: auto;
    }
}

/* フッターバナーのレスポンシブ対応 */
.desktop-banner {
    display: block;
}

.mobile-banner {
    display: none;
}

@media (max-width: 768px) {
    .desktop-banner {
        display: none;
    }
    
    .mobile-banner {
        display: block;
    }
    
    .rakuten-banner {
        text-align: center;
        padding: 20px 10px;
    }
    
    .rakuten-banner h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
}

/* 記事ページの全体的なモバイル最適化 */
@media (max-width: 768px) {
    .article-container {
        padding: 15px;
        font-size: 16px;
        line-height: 1.7;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
        margin: 30px 0 15px 0;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
        margin: 25px 0 12px 0;
    }
    
    .article-content p {
        margin-bottom: 18px;
        font-size: 16px;
        line-height: 1.8;
    }
    
    .article-content table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    /* モバイル用の追加最適化 */
    .article-content ul, .article-content ol {
        padding-left: 20px;
        margin-bottom: 18px;
    }
    
    .article-content li {
        margin-bottom: 8px;
        line-height: 1.7;
    }
    
    .article-content blockquote {
        margin: 20px 0;
        padding: 15px 20px;
        font-size: 16px;
        line-height: 1.7;
    }
    
    .cta-section {
        margin: 30px 0;
        padding: 20px 15px;
    }
    
    .cta-button {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
    }
}
