/* ===== レスポンシブスタイル ===== */

/* ===== テキスト設定 ===== */
@media (max-width: 767px) {
    div, p, span {
        font-size: 14px;
    }
    p, #primary span {
        line-height: 28px;
    }
}

/* ===== コンテナ設定 ===== */
@media (min-width: 1224px) {
    .container {
        max-width: 1200px;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 1224px) {
    .container {
        width: 100%;
        max-width: 100%;
    }
}

/* ===== モバイル対応 ===== */
@media (max-width: 767px) {
    .show_adminbar {
        height: 54px;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ===== スライドショー ===== */
@media (min-width: 2048px) {
    #mv-slideshow{
        height: calc(100vh - 100px);
    }
}

@media (max-width: 767px) {
    #mv-slideshow {
        height: 500px;
    }
}



@media (max-width: 767px) {
    #mv-text {
        top: 300px;
        left: 10px;
    }

    .mv-bg {
        padding: 5px 20px;
    }
}

@media (768px <= width <= 1200px) {
    #mv-text {
        left: 15px;
    }
}

/* ===== 見出し ===== */
@media (max-width: 767px) {
    .section-title {
        margin-bottom: 48px;
        padding-top: 16px;
    }
    
    .section-title .en {
        font-size: 14px;
    }
    
    .section-title .ja {
        font-size: 24px;
    }
    
    .section-title::after {
        width: 30px;
    }
}

/* ===== 強みセクション ===== */
@media (max-width: 1024px) {
    #strength .grid:nth-of-type(1) h3::before,
    #strength .grid:nth-of-type(2) h3::before,
    #strength .grid:nth-of-type(3) h3::before {
        font-size: 100px;
        line-height: 100px;
        top: -16px;
        right: 10px;
    }
}

/* ===== スマホ・タブレット向け調整 ===== */
@media (max-width: 768px) {
    #strength .grid {
        display: flex;
        flex-direction: column;
    }
    
    #strength .grid h3 {
        order: 1;
        margin-bottom: 40px;
    }
    
    #strength .grid img {
        order: 2;
    }
    
    #strength .grid p {
        order: 3;
    }
    
    #strength .grid:nth-of-type(1) h3::before,
    #strength .grid:nth-of-type(2) h3::before,
    #strength .grid:nth-of-type(3) h3::before {
        top: -10px;
        right: 10px;
    }
    
    #strength .grid:nth-of-type(1) div:first-child,
    #strength .grid:nth-of-type(3) div:first-child {
        order: 2;
    }
    
    #strength .grid:nth-of-type(1) div:last-child,
    #strength .grid:nth-of-type(3) div:last-child {
        order: 1;
    }
    
    #strength .grid:nth-of-type(1) div:first-child {
        order: 1;
    }
    
    #strength .grid:nth-of-type(3) div:last-child {
        order: 2;
    }
}

@media (max-width: 768px) {
    .decoration_div::before {
        font-size: 120px !important;
        top: -20px !important;
    }
}

/* ===== ビジネスセクション ===== */
@media (max-width: 1200px) {
    .business-item:nth-of-type(1)::before,
    .business-item:nth-of-type(2)::before {
        font-size: 50px;
        line-height: 50px;
        top: 20px;
    }
}

@media (max-width: 1024px) {
    .business-item:nth-of-type(1)::before,
    .business-item:nth-of-type(2)::before {
        font-size: 30px;
        line-height: 30px;
        top: 40px;
        right: 30px;
    }
}

@media (max-width: 768px) {
    .business-title {
        font-size: 24px;
    }
    
    .business-item:nth-of-type(1)::before,
    .business-item:nth-of-type(2)::before {
        font-size: 30px;
        line-height: 30px;
        top: 80px;
        left: 23px;
        right: auto;
    }
    
    .business-item:nth-of-type(2)::before {
        content: "Panel beating";
    }
    
    .business-link {
        bottom: 20px;
    }
    
    .business-link-text {
        font-size: 16px;
        line-height: 16px;
    }
    
    .business-link-arrow {
        font-size: 20px;
        line-height: 20px;
        margin: 8px auto 0;
    }
}

@media (max-width: 576px) {
    .business-title {
        font-size: 18px;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
    }
    
    .business-item:nth-of-type(1)::before,
    .business-item:nth-of-type(2)::before {
        font-size: 24px;
        line-height: 24px;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .business-link {
        bottom: 10px;
    }
    
    .business-link-text {
        font-size: 14px;
        line-height: 14px !important;
    }
    
    .business-link-arrow {
        font-size: 20px;
        line-height: 20px !important;
        margin: 4px auto 0;
    }
}

@media (max-width: 480px) {
    .business-title {
        font-size: 14px;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
    }

    .business-link {
        position: absolute;
        bottom: 5px;
    }
    
    .business-link-text {
        font-size: 12px;
        line-height: 12px !important;
    }
    
    .business-link-arrow {
        font-size: 16px;
        line-height: 16px !important;
    }
}

/* ===== 車専門家・ラインナップ・キャッチフレーズセクション ===== */
@media (max-width: 1200px) {
    #freelife_catchp::before,
    #vehicle_lineup::before,
    #car_professional::before {
        font-size: 120px;
        line-height: 120px;
        bottom: -120px;
        left: 10px;
    }
}

@media screen and (max-width: 1024px) {
    #freelife_catchp::before,
    #vehicle_lineup::before,
    #car_professional::before {
        font-size: 90px;
        line-height: 90px;
        bottom: -90px;
    }
}

@media (max-width: 576px) {
    #freelife_catchp::before,
    #vehicle_lineup::before,
    #car_professional::before {
        font-size: 50px;
        line-height: 50px;
        bottom: -56px;
    }
}

@media (max-width: 480px) {
    #freelife_catchp::before,
    #vehicle_lineup::before,
    #car_professional::before {
        font-size: 40px;
        line-height: 40px;
    }
}

/* ===== 共通ボタン ===== */
@media (max-width: 768px) {
    .common_btn {
        padding: 0;
        width: 90%;
    }
} 