/* 基本設定 */
:root {
    --primary-red: #C8102E;
    --dark-bg: #050a15;
    --text-light: #ffffff;
    --glass-bg: rgba(10, 20, 35, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    color: var(--text-light);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 1000;
    display: flex;
    justify-content: flex-start; /* 左寄せに変更 */
    align-items: center;
    gap: 30px; /* ロゴとアイコンの間に余白を作る */
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.nav-sns {
    display: flex;
    gap: 15px;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-red); /* 太陽運輸レッドに変更 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* 赤色が背景に負けないように影を少し濃く調整 */
}

/* セクション共通設定 */
section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- TOPセクション --- */
.hero-section {
    background-image: url('./トラック_Image.png');
    /* モバイルでもトラックが中央に来るように調整 */
    background-position: center 70%; 
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* トラックの鮮やかさを活かすため、黒い幕（フィルター）を完全に透明に変更 */
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-top: 15vh; /* 上の夜空部分に配置 */
    margin-bottom: auto; /* トラックに被らないよう上部にキープ */
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero-subtitle {
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    opacity: 0.9;
}

/* --- ヘッダーのカラーSNSアイコン --- */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    /* うっすら透ける黒ガラスの台座 */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-icon:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* インスタグラムのアイコンはSVG内でグラデーション指定済みなのでそのまま */

/* Xのアイコンは公式風の黒ベースに調整 */
.x-icon {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.x-icon:hover {
    background: #222222;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

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


/* --- INFOセクション --- */
.info-section {
    background-image: url('./トラック_Image_02.png');
    background-position: center;
    align-items: center; /* 画面中央にコンテナを配置 */
    justify-content: flex-start;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* トラックを鮮やかに見せるため、フィルターを極限まで薄くします */
    background: rgba(0, 0, 0, 0.1); 
    z-index: 1;
}

/* 画像サイズとぴったり同じ箱を作り、その中で左寄せにする魔法のコンテナ */
.info-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-width: 80vh; /* トラック画像の横幅に合わせる */
    display: flex;
    justify-content: flex-start; /* コンテナ内で左に寄せる */
    align-items: flex-start; /* コンテナ内で上に寄せる */
    padding-top: 5vh;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px; /* タイトルがなくなったので少しスッキリさせる */
    width: 90%;
    max-width: 320px; /* パネルを極限までスリムにして、絶対に看板に被らないようにする */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin-left: 20px; /* 画像の左端から少しだけ離す */
}

.info-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .info-details {
        grid-template-columns: 1fr; /* 縦並び（1列）に戻す */
        gap: 15px;
    }
}

.info-item h3 {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1.1rem;
    font-weight: 500;
}


/* --- MESSAGEセクション --- */
.message-section {
    background-image: url('./トラック_Image_03.png');
    background-position: center;
}

.message-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 朝焼けの美しさをそのまま活かすため、フィルターを透明に */
    background: transparent;
    z-index: 1;
}

.message-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 700px;
    margin-top: 10vh; /* 美しい朝焼けの空の部分に配置 */
    margin-bottom: auto; /* トラックに被らないよう上部にキープ */
}

.message-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    letter-spacing: 5px;
}

.message-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 2;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.message-signature {
    font-size: 1.2rem;
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 2px;
}

/* フッター */
.footer {
    background-color: #000;
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

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

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

/* PC向けの背景画像調整 (画像全体を収める) */
@media (min-width: 768px) {
    section {
        background-size: contain;
    }
}
