/* スマートフォン向けのスタイル */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0;
        padding-top: 180px;
        gap: 40px;

    }

    .left-content,
    .right-content {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .right-content {
        margin-top: 40px;
    }

    .service-title {
        font-size: 25px !important;
    }

    .service-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .vertical-text {
        font-size: 80px;
        margin-top: 20px;
    }

    .main-title {
        font-size: 24px;
        margin-bottom: 30px;
        text-align: center;
    }

    .description {
        text-align: center;
        font-size: 14px;
    }

    .main-wrapper {
        padding: 0;
        width: 90%;
        margin: 0 auto;
        display: flex;
        flex-direction: column-reverse;
        gap: 0;

    }

    /* 
    .content-section {
        padding: 30px 20px !important;
        height: auto;
        min-height: 400px;
    } */

    .content-section .service-number {
        font-size: 2.5rem !important;
    }

    .content-section .service-title {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }

    .content-section .service-description {
        font-size: 0.9rem !important;
    }

    .buttons-section {
        margin-top: 30px;
        width: 100%;
    }

    .service-button {
        padding: 15px;
        font-size: 0.9rem;
    }

    .service-content-section,
    .service-content-section-2 {
        margin-top: 40rem;
    }

    .service-content-section-2 .main-wrapper {
        flex-direction: column-reverse;
    }
}

/* タブレット向けのスタイル */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 30px;
        padding-top: 200px;
    }

    .service-title {
        font-size: 48px;
    }

    .vertical-text {
        font-size: 100px;
    }

    .main-wrapper {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* スマートフォン向けの調整 */
@media screen and (max-width: 768px) {
    main {
        padding-top: 60px;
        /* モバイル用のヘッダー高さに調整 */
    }

    .service-content-top {
        margin-top: -80vh;
        /* モバイル用に調整 */
        padding-bottom: 40px;
    }

    .service-content-section,
    .service-content-section-2 {
        padding: 40px 0;
    }

    .service-content-section-2 {
        margin-top: 50px;
    }

    .custom-header {
        height: 60px;
        /* モバイル用のヘッダー高さを設定 */
    }

    .header-pc {
        padding: 10px 15px;
        /* モバイル用のパディングを調整 */
    }

    .container {
        padding-top: 160px;
        /* モバイル用に調整 */
    }
}

@media screen and (max-width:431px) {
    .triangle {
        height: 180vh;
    }
}