body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    overflow-x: hidden;
    color: #374151; /* gray-700 */
    /* テキスト選択の禁止 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    /* 画像のドラッグ禁止 */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
}

.pattern-bg {
    background-image: radial-gradient(#e6f7df 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* スライダー用アニメーション */
@keyframes crossfade {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    43.33% { opacity: 1; }
    53.33% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}
.slide-bg-1 { animation: crossfade 15s infinite; animation-delay: -1.5s; }
.slide-bg-2 { animation: crossfade 15s infinite; animation-delay: 5s; opacity: 0; }
.slide-bg-3 { animation: crossfade 15s infinite; animation-delay: 10s; opacity: 0; }

/* FV 斜め切り抜きスタイル */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(61, 161, 22, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 161, 22, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-diagonal {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 55%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
    background: #f8f9fa;
}

.hero-slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-accent-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, transparent, #3da116, transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 5% 0 8%;
    max-width: 55%;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3da116;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 40px;
    height: 2px;
    background: rgba(61, 161, 22, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: #3da116;
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* SVG 重機アニメーション */
@keyframes drive {
    0% { transform: translateX(-150px); }
    100% { transform: translateX(110vw); }
}
@keyframes moveRoad {
    0% { background-position: 0 0; }
    100% { background-position: -60px 0; }
}
.anim-excavator {
    animation: drive 15s linear infinite;
}
.anim-road-green {
    background-image: repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(61,161,22,0.3) 15px, rgba(61,161,22,0.3) 30px);
    background-size: 60px 3px;
    animation: moveRoad 1s linear infinite;
}

@media (max-width: 1024px) {
    .hero-content {
        max-width: 60%;
        padding: 0 4% 0 6%;
    }
    .hero-diagonal {
        width: 50%;
        clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: unset;
        flex-direction: column;
        align-items: stretch;
        padding-top: 60px;
    }
    .hero-accent-line, .hero-scroll { display: none; }
    .hero-diagonal {
        position: relative;
        width: 100%;
        height: 50vh;
        min-height: 300px;
        clip-path: none;
    }
    .hero-content {
        padding: 40px 20px 20px;
        max-width: 100%;
    }
    .text-2xl {
        font-size: 20px !important;
    }
}
