/* ========================================
   商用車・バン活用マガジン - スタイルシート
   カラースキーム: ダークブルー×オレンジ（信頼性とエネルギー）
   ======================================== */

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

:root {
    --primary-color: #1a365d;
    --primary-dark: #0d1b2a;
    --accent-color: #e67e22;
    --accent-hover: #d35400;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* ヘッダー */
.header {
    background-color: var(--primary-color);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo a {
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
}

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

.logo-text {
    font-size: 1rem;
    line-height: 1.3;
}

.sp-only {
    display: none;
}

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

.nav-desktop a {
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-desktop a:hover {
    color: white;
    border-bottom-color: var(--accent-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
}

.header-cta {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* モバイルメニュー */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    padding: 1.5rem;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
    display: block;
    color: white;
    padding: 1rem 0;
    font-size: 1rem;
}

.mobile-cta {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8rem 1.5rem 5rem;
    text-align: center;
    margin-top: 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero-description {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* カテゴリーセクション */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
}

.category-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.category-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--text-light);
    font-size: 1rem;
}

/* 記事グリッド */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.article-card.pillar {
    border-left: 4px solid var(--accent-color);
}

.card-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    margin-bottom: 0.75rem;
    font-weight: bold;
}

.article-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.article-card h3 a {
    color: var(--text-color);
}

.article-card h3 a:hover {
    color: var(--accent-color);
}

.article-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.read-more {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: bold;
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
    border-radius: 15px;
    margin-top: 3rem;
}

.cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button.large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

/* フッター */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: left;
    align-items: center;
    Margin-left: flex;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
    font-size: 2rem;
}

.footer-logo .logo-text {
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-nav ul {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-cta {
    margin-bottom: 2rem;
}

.footer-cta p {
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   記事ページ用スタイル
   ======================================== */

.article-page {
    padding-top: 80px;
}

.article-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 1.5rem;
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.article-header h1 {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.article-content {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.article-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 2rem 0 0.75rem;
}

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

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

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

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.article-content th, .article-content td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.article-content th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.article-content tr:nth-child(even) {
    background-color: var(--bg-color);
}

.article-content blockquote {
    background-color: #fff8e6;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.highlight-box {
    background-color: #e6f4ff;
    border: 1px solid #1a365d;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* 記事内CTA */
.article-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2.5rem 0;
}

.article-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.article-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* 関連記事 */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-articles h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.related-card {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.related-card:hover {
    background-color: var(--border-color);
}

.related-card a {
    font-size: 0.95rem;
    font-weight: bold;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .sp-only {
        display: inline;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-description br {
        display: none;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-content h2 {
        font-size: 1.4rem;
    }

    .cta-content p br {
        display: none;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* 記事ページ */
    .article-header h1 {
        font-size: 1.4rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.3rem;
    }

    .article-content table {
        font-size: 0.8rem;
    }

    .article-content th, .article-content td {
        padding: 0.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .article-card {
        padding: 1.2rem;
    }

    .article-card h3 {
        font-size: 1rem;
    }
}

/* ===========================
   フッター
   =========================== */
footer {
    background-color: #2C3E50;
    color: #fff;
    padding: 40px 20px 20px;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #D4AF37;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
}

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

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

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #D4AF37;
}

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

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.85rem;
    color: #aaa;
}
