/* ==========================================
   キャンピングカー完全ガイド - メインスタイル
   ========================================== */

/* ========== リセット & 基本設定 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c7da0;
    --secondary-color: #f77f00;
    --dark-color: #001219;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --success-color: #06d6a0;
    --warning-color: #ffd60a;
    --danger-color: #ef476f;
    
    --font-main: 'Noto Sans JP', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fff;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style-position: inside;
}

/* ========== コンテナ & レイアウト ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ========== ヘッダー & ナビゲーション ========== */
header {
    background: linear-gradient(135deg, var(--primary-color), #014f86);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-top {
    background: rgba(0,0,0,0.1);
    padding: 10px 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    gap: 20px;
}

.header-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav {
    background: rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 5px;
    list-style: none;
}

.nav-menu li a {
    display: block;
    padding: 10px 20px;
    color: white;
    font-weight: 500;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,0.15);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== ヒーローセクション ========== */
.hero {
    background: linear-gradient(135deg, rgba(44,125,160,0.95), rgba(1,79,134,0.95)),
                url('https://images.unsplash.com/photo-1527786356703-4b100091cd2c?w=1600') center/cover;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== ボタン ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(247,127,0,0.3);
}

.btn-primary:hover {
    background: #d66e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247,127,0,0.4);
}

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

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: #014f86;
}

/* ========== カード ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--light-color);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.card-text {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.card-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ========== テーブル ========== */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: var(--primary-color);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ========== FAQ アコーディオン ========== */
.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question.active {
    background: var(--primary-color);
    color: white;
}

.faq-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 20px 25px;
    color: #666;
    line-height: 1.8;
    border-top: 1px solid var(--border-color);
}

.faq-answer.active {
    max-height: 500px;
}

/* ========== ブログ記事スタイル ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    min-height: 200px; /* JavaScriptで記事が生成されるまでの最小高さ */
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #888;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary-color);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-color);
    line-height: 1.4;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-read-more:hover {
    color: var(--secondary-color);
}

/* ========== ブログフィルター ========== */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========== 記事本文スタイル ========== */
.article-header {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #666;
    font-size: 0.95rem;
}

.article-hero-image {
    width: 100%;
    max-width: 1000px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 40px auto;
    box-shadow: var(--shadow-lg);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 50px 0 25px;
    color: var(--dark-color);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 35px 0 20px;
    color: var(--dark-color);
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.9;
    font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 30px;
    line-height: 1.9;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content img {
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.article-highlight {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.article-info-box {
    background: #d1ecf1;
    border-left: 4px solid #0dcaf0;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.article-cta {
    background: linear-gradient(135deg, var(--primary-color), #014f86);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 50px 0;
}

.article-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.article-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

/* ========== 関連記事 ========== */
.related-articles {
    background: var(--light-color);
    padding: 60px 0;
    margin-top: 60px;
}

/* ========== フッター ========== */
footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ========== ユーティリティクラス ========== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.bg-light {
    background-color: var(--light-color);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ブログカードは即座に表示 */
.blog-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ========== レスポンシブデザイン ========== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-color);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        padding: 15px 20px;
        border-radius: 8px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .header-info {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========== 印刷スタイル ========== */
@media print {
    header, footer, .mobile-menu-toggle, .btn, .blog-filters {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .article-content {
        max-width: 100%;
    }
}