/* style.css - サイト全体共通のスタイル */

/* 基本設定 */
:root {
    --primary-color: #ff9900; /* Kanan Truckのイメージカラー */
    --secondary-color: #333333; /* 主なテキスト色 */
    --bg-color: #f9f9f9; /* ページ全体の背景色を少し明るく */
    --heading-color: #1a1a1a;
    --text-color: #555555;
    --link-color: #0066cc;
    --border-color: #e0e0e0;
    --font-family: 'Noto Sans JP', sans-serif;
    --header-height: 60px;
}

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

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7; /* 行間を少し広げて読みやすく */
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 50px;
    vertical-align: middle;
}

/* ナビゲーション */
.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.nav-list li a:hover {
    color: var(--primary-color);
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none; /* PCでは非表示 */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* ナビゲーションより手前に */
}

.menu-toggle .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: transform 0.4s, opacity 0.4s;
}

.menu-toggle.open .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(-45deg);
}
.menu-toggle.open .icon-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(45deg);
}


/* ボタン */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px; /* 角を丸くして柔らかい印象に */
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: #fff; /* 白文字に変更 */
    border: 1px solid #fff; /* 白枠に変更 */
}

.secondary-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* セクション共通スタイル */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

/* フッター */
.footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

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

.footer-links a:hover {
    color: var(--primary-color);
}

/* レスポンシブデザイン */
/* タブレット & PC */
@media (min-width: 768px) {
    .nav {
        display: block !important;
    }
    .nav-list li a {
        padding: 0.5rem 1.2rem;
        font-size: 1rem;
    }
    section {
        padding: 6rem 0;
    }
    section h2 {
        font-size: 2.5rem;
    }
}

/* モバイル */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        padding-top: calc(var(--header-height) + 2rem);
        overflow-y: auto;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list li:first-child {
        border-top: 1px solid var(--border-color);
    }

    .nav-list li a {
        display: block;
        padding: 1.5rem 1rem;
        font-size: 1.1rem;
        width: 100%;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* アニメーション用 */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}
/* NASVA運転者適性診断セクション */
.nasva-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
    text-align: center;
}

.nasva-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

.nasva-section .section-description {
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.nasva-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nasva-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left; /* カード内のテキストは左寄せ */
}

.nasva-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.nasva-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nasva-card .nasva-icon {
    height: 40px; /* アイコンサイズ */
    width: auto;
}

.nasva-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.nasva-card p:last-child {
    margin-bottom: 0;
}
.nasva-card strong {
    font-weight: 700;
    color: var(--heading-color);
}

.nasva-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.detail-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    width: 100%;
    max-width: 300px; /* カードの最大幅 */
}

.detail-item img {
    height: 50px; /* アイコンサイズ */
    margin-bottom: 1rem;
}

.detail-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.detail-item p:last-child {
    margin-bottom: 0;
}

.detail-item .phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
}
.detail-item .phone-number a {
    color: var(--secondary-color);
    text-decoration: none;
}
.detail-item .phone-number a:hover {
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nasva-section h2 {
        font-size: 1.8rem;
    }
    .nasva-section .section-description {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    .nasva-info-grid, .nasva-details {
        padding: 0 1rem;
        gap: 1rem;
    }
    .nasva-card {
        padding: 1.5rem;
    }
    .nasva-card h3 {
        font-size: 1.2rem;
    }
    .nasva-card .nasva-icon {
        height: 30px;
    }
    .detail-item {
        padding: 1.5rem;
    }
    .detail-item h4 {
        font-size: 1.1rem;
    }
    .detail-item img {
        height: 40px;
    }
    .detail-item .phone-number {
        font-size: 1.3rem;
    }
}