@charset "UTF-8";

/* =========================================
   太陽運輸 | Cinematic Premium Web Experience
   ========================================= */

:root {
    --primary-red: #d31a38; /* より深く、上品なブランドレッド */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(10, 15, 25, 0.45);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

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

body, html {
    width: 100%;
    height: 100%;
    background-color: #000;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    overflow: hidden; /* メインスクロールはコンテナに委譲 */
    -webkit-font-smoothing: antialiased;
}

/* ---- Loading Screen ---- */
.loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #02040a;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-logo {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    letter-spacing: 8px;
    margin-bottom: 20px;
    color: var(--text-main);
    opacity: 0;
    animation: pulse 2s infinite;
}
.loader-line {
    width: 0;
    height: 1px;
    background: var(--primary-red);
    animation: loadLine 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
@keyframes loadLine { to { width: 100px; } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---- Header & SNS ---- */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--primary-red);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* 視認性確保のための影 */
}
.sns-group { display: flex; gap: 24px; }
.sns-icon {
    color: var(--text-main);
    width: 32px; height: 32px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); /* 視認性確保のための影 */
}
.sns-icon:hover { transform: scale(1.2); }

/* ---- Scroll Container ---- */
.scroll-container {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}
.scroll-container::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* ---- Sections ---- */
.section {
    position: relative;
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

/* ---- Background Images with Seamless Blending Magic ---- */
.bg-image {
    position: absolute;
    top: -5%; left: -5%;
    width: 110%; height: 110%; /* パララックス用に少し大きめに設定 */
    z-index: 0;
    transition: transform 0.5s ease-out;
}
.bg-hero::before, .bg-hero::after { background-image: url('mini_1.png'); }
.bg-info::before, .bg-info::after { background-image: url('mini_02.png'); }
.bg-message::before, .bg-message::after { background-image: url('mini_03.png'); }

.bg-image::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%; width: 120%; height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.7); /* ぼかした背景の色がちゃんと見えるように明るさを上げる */
}

.bg-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 幅を画面にピッタリ合わせ、高さは自動。これで左右の線が消滅し、トラックは見切れず、ちょうど良いサイズになります */
    background-size: 100% auto; 
    background-position: center;
    background-repeat: no-repeat;
    /* transform縮小は使わず、グラデーションで上下だけを溶かす */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* ---- Overlays ---- */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
}
.gradient-bottom { background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%); }
.gradient-top { background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 50%); }

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}
.scroll-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 6px;
    margin-bottom: 15px;
    color: var(--text-muted);
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--text-muted);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--text-main);
    animation: scrollDrop 2s infinite ease-in-out;
}
@keyframes scrollDrop {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ---- Advanced Glassmorphism: Info Panel ---- */
.info-glass {
    position: absolute;
    top: 15%; /* 画面上部に配置し、トラックを避ける */
    left: 8%;
    max-width: 300px; /* サイズを小さめに微調整 */
    z-index: 10;
}
.glass-inner {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 4px; /* シャープでモダンなエッジ */
    padding: 25px 25px; /* 余白を削ってよりコンパクトに */
    box-shadow: var(--glass-shadow);
    border-left: 3px solid var(--primary-red); /* ブランドカラーのアクセント */
}
.section-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--primary-red);
    margin-bottom: 10px;
}
.company-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
}
.info-block { margin-bottom: 25px; }
.info-block:last-child { margin-bottom: 0; }
.info-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.info-value {
    font-size: 0.95rem;
    line-height: 1.8;
    letter-spacing: 1px;
}
.tel-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 2px;
}
.small-text { font-size: 0.75rem; color: var(--text-muted); }

/* ---- Message Glass ---- */
.message-glass {
    position: absolute;
    top: 18%; /* 夕焼け空の美しい部分に配置 */
    left: 0;
    right: 0;
    margin: 0 auto; /* アニメーションと競合しない安全な中央配置 */
    width: 90%;
    max-width: 400px;
    z-index: 10;
    text-align: center;
}
.message-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    letter-spacing: 6px;
    margin-bottom: 35px;
    color: var(--text-main);
}
.message-body {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    line-height: 2.4;
    margin-bottom: 40px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.8); /* 空に溶けないようドロップシャドウ */
}
.message-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.sig-line {
    width: 30px;
    height: 1px;
    background: var(--primary-red);
}
.message-signature p {
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--text-main); /* 白に変更して視認性を確保 */
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5); /* 夕焼け空でも読みやすく */
}

/* ---- JS Reveal Animations ---- */
.reveal-target {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-target.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---- PC閲覧時の最適化 (スマホ比率を維持して中央表示) ---- */
@media (min-width: 768px) {
    body { background-color: #020202; }
    .scroll-container {
        max-width: 480px;
        margin: 0 auto;
        border-left: 1px solid rgba(255,255,255,0.05);
        border-right: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 0 100px rgba(0,0,0,0.8);
    }
    .header {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}
