/* Base styles (PC版 1025px~) */
.consulting-back {
    background-image: url('/static/img/business-item-2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100vh;
    padding: 100px 0;
    position: relative;
}

.consulting-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.consulting-back p {
    background-color: #fff;
    font-color: #0070f0;
}

.consulting-back .back-title {
    font-size: 80px;
    font-weight: 700;
    color: #0070f0;
    width: fit-content;
    margin-bottom: 20px;
    padding: 8px;
}

.consulting-back .back-desc {
    font-size: 32px;
    font-weight: 400;
    color: #0070f0;
    width: fit-content;
    padding: 8px;
}

.consulting-container {
    position: absolute;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.page-url {
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: end;
}

.page-url a {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
}

/* Section 1 */
.consulting-section1 {
    height: 600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.consulting-section1-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.consulting-section1-content pre {
    font-size: 32px;
    font-weight: 400;
    color: #303030;
    width: 100%;
    text-align: center;
}

.consulting-section1-content a {
    width: 508px;
    height: 140px;
    background-color: #0070f0;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 32px;
    font-weight: 400;
    margin-top: 20px;
    padding: 40px;
}

/* Section 2 */
.consulting-section2 {
    background: url('/static/img/consulting2-back.jpg') center/cover no-repeat;
    height: 600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: multiply;
}

.consulting-section2-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.consulting-section2-content p:first-child {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.consulting-section2-content p:last-child {
    text-align: center;
    font-size: 78px;
    font-weight: 400;
    color: #fff;
}

/* Section 3 */
.consulting-section3 {
    height: 540px;
    width: 100%;
    padding-block: 160px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.consulting-section3-right {
    width: 920px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 20px;
}

.section3-left p {
    font-size: 48px;
    font-weight: 400;
}

.s3-right-list {
    display: flex;
    align-items: start;
    gap: 20px;
}

.section3-right {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 40px;
}

.section3-right-title p {
    font-size: 32px;
    font-weight: 400;
}

.s3-right-lists {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.s3-right-list p {
    font-size: 18px;
    font-weight: 400;
}

/* Section 4 */
.consulting-section4 {
    height: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('/static/img/con-s4-back.jpg') center/cover no-repeat;
    background-color: rgba(0, 0, 0, 0.2);
    background-blend-mode: multiply;
    background-position: center;
    gap: 60px;
}

.consulting-section4 p:first-child {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.consulting-section4 p:last-child {
    font-size: 80px;
    font-weight: 400;
    color: #fff;
}

/* Section 5 */
.consulting-section5 {
    background-color: rgba(249, 250, 251, 1);
}

.consulting-section5 .container {
    height: 740px;
    padding-block: 160px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 60px;
}

.s5-header {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 20px;
    width: 100%;
}

.s5-header-title {
    font-size: 48px;
    font-weight: 400;
}

.s5-header-desc {
    font-size: 32px;
    font-weight: 400;
}

.s5-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.s5-item {
    width: 370px;
    height: 218px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}

.s5-item-img {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.s5-item-title {
    font-size: 24px;
    font-weight: 400;
}

/* Section 6 */
.consulting-section6 {
    background: url('/static/img/con-s6-back.jpg') center/cover no-repeat;
    height: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: multiply;
    background-position: center;
    gap: 60px;
    color: #fff;
}

.consulting-section6 p:first-child {
    font-size: 16px;
    font-weight: 400;
}

.consulting-section6 p:nth-child(2) {
    font-size: 80px;
    font-weight: 400;
}

.consulting-section6 pre {
    font-size: 20px;
    font-weight: 400;
}

/* section 7 */
.consulting-section7 {
    height: 796px;
    width: 100%;
    padding-block: 160px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    justify-content: start;
    align-items: center;
}

.s7-items {
    width: 100%;
    display: flex;
    gap: 40px;
}

.s7-item {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: start;
    align-items: start;
    background-color: #fff;
    padding: 20px;
}

.s7-item-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: start;
    align-items: start;
}

.s7-title {
    width: 100%;
    font-size: 48px;
    font-weight: 400;
    text-align: left;
}

.s7-item-icon {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.s7-item-title {
    font-size: 24px;
    font-weight: 400;
}

.s7-item-desc {
    font-size: 16px;
    font-weight: 400;
}

/* section 8 */
.consulting-section8 {
    height: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('/static/img/con-s8-back.jpg') center/cover no-repeat;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: multiply;
    background-position: center;
    color: #fff;
    gap: 60px;
}

.consulting-section8 p:first-child {
    font-size: 16px;
    font-weight: 400;
}

.consulting-section8 p:last-child {
    text-align: center;
    padding-inline: 100px;
    font-size: 80px;
    font-weight: 400;
}

/* ========== TABLET STYLES (601px - 1024px) ========== */
@media screen and (max-width: 1024px) and (min-width: 601px) {
    
    .consulting-back .back-title {
        font-size: 60px;
    }
    
    .consulting-back .back-desc {
        font-size: 24px;
    }
    
    .consulting-section1-content pre {
        font-size: 24px;
        padding: 0 20px;
    }
    
    .consulting-section1-content a {
        width: 400px;
        height: 120px;
        font-size: 24px;
    }
    
    .consulting-section2-content p:last-child {
        font-size: 60px;
    }
    
    .consulting-section3 {
        flex-direction: column;
        height: auto;
        padding-block: 80px;
        gap: 40px;
    }
    
    .section3-left p {
        font-size: 36px;
        text-align: center;
    }
    
    .section3-right-title p {
        font-size: 24px;
    }
    
    .consulting-section4 p:last-child {
        font-size: 60px;
        text-align: center;
        padding: 0 20px;
    }
    
    .s5-header-title {
        font-size: 36px;
    }
    
    .s5-header-desc {
        font-size: 24px;
    }
    
    .s5-items {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .s5-item {
        width: 45%;
        min-width: 300px;
    }
    
    .consulting-section6 p:nth-child(2) {
        font-size: 60px;
        text-align: center;
        padding: 0 20px;
    }
    
    .s7-title {
        font-size: 36px;
        text-align: center;
    }
    
    .s7-items {
        flex-direction: column;
        gap: 20px;
    }
    
    .s7-item {
        width: 100%;
    }
    
    .consulting-section8 p:last-child {
        font-size: 60px;
        padding-inline: 40px;
    }
}

/* ========== MOBILE STYLES (~600px) ========== */
@media screen and (max-width: 600px) {
    
    .consulting-back {
        height: 80vh;
        padding: 40px 0;
    }
    
    .consulting-back .back-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .consulting-back .back-desc {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .consulting-container {
        bottom: 10px;
        align-items: flex-start;
        left: 20px;
        right: auto;
    }
    
    .page-url {
        justify-content: center;
        margin-top: 20px;
    }
    
    .page-url a {
        font-size: 14px;
    }
    
    /* Section 1 Mobile */
    .consulting-section1 {
        height: auto;
        padding: 60px 0;
    }
    
    .consulting-section1-content pre {
        font-size: 18px;
        padding: 0 20px;
        white-space: pre-wrap;
        line-height: 1.6;
    }
    
    .consulting-section1-content a {
        width: 90%;
        max-width: 350px;
        height: 100px;
        font-size: 18px;
        padding: 20px;
        text-align: center;
    }
    
    /* Section 2 Mobile */
    .consulting-section2 {
        height: 400px;
        padding: 0 20px;
    }
    
    .consulting-section2-content p:first-child {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .consulting-section2-content p:last-child {
        font-size: 28px;
        line-height: 1.3;
    }
    
    /* Section 3 Mobile */
    .consulting-section3 {
        flex-direction: column;
        height: auto;
        padding: 60px 20px;
        gap: 40px;
    }
    
    .section3-left p {
        font-size: 24px;
        text-align: center;
    }
    
    .section3-right {
        width: 100%;
        gap: 30px;
    }
    
    .section3-right-title p {
        font-size: 20px;
        line-height: 1.4;
        text-align: center;
    }
    
    .s3-right-lists {
        gap: 15px;
    }
    
    .s3-right-list {
        align-items: flex-start;
        gap: 15px;
    }
    
    .s3-right-list img {
        width: 20px;
        height: 20px;
        margin-top: 2px;
    }
    
    .s3-right-list p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Section 4 Mobile */
    .consulting-section4 {
        height: 400px;
        padding: 0 20px;
        gap: 30px;
    }
    
    .consulting-section4 p:first-child {
        font-size: 14px;
    }
    
    .consulting-section4 p:last-child {
        font-size: 28px;
        line-height: 1.3;
        text-align: center;
    }
    
    /* Section 5 Mobile */
    .consulting-section5 .container {
        height: auto;
        padding: 60px 20px;
        gap: 40px;
    }
    
    .s5-header-title {
        font-size: 24px;
        text-align: center;
    }
    
    .s5-header-desc {
        font-size: 18px;
        text-align: center;
        line-height: 1.4;
    }
    
    .s5-items {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .s5-item {
        width: 100%;
        height: auto;
        min-height: 160px;
        padding: 24px;
        gap: 20px;
    }
    
    .s5-item-img {
        width: 60px;
        height: 60px;
    }
    
    .s5-item-img img {
        width: 100%;
        height: 100%;
    }
    
    .s5-item-title {
        font-size: 18px;
        line-height: 1.3;
    }
    
    /* Section 6 Mobile */
    .consulting-section6 {
        height: 500px;
        padding: 0 20px;
        gap: 30px;
    }
    
    .consulting-section6 p:first-child {
        font-size: 14px;
    }
    
    .consulting-section6 p:nth-child(2) {
        font-size: 28px;
        line-height: 1.3;
        text-align: center;
    }
    
    .consulting-section6 pre {
        font-size: 16px;
        text-align: center;
        line-height: 1.5;
        white-space: pre-wrap;
    }
    
    /* Section 7 Mobile */
    .consulting-section7 {
        height: auto;
        padding: 60px 20px;
        gap: 40px;
    }
    
    .s7-title {
        font-size: 24px;
        text-align: center;
    }
    
    .s7-items {
        flex-direction: column;
        gap: 30px;
    }
    
    .s7-item {
        width: 100%;
        padding: 24px;
        gap: 20px;
    }
    
    .s7-item-icon {
        width: 60px;
        height: 60px;
    }
    
    .s7-item-icon img {
        width: 100%;
        height: 100%;
    }
    
    .s7-item-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .s7-item-desc {
        font-size: 14px;
        line-height: 1.6;
        white-space: pre-wrap;
    }
    
    /* Section 8 Mobile */
    .consulting-section8 {
        height: 500px;
        padding: 0 20px;
        gap: 30px;
    }
    
    .consulting-section8 p:first-child {
        font-size: 14px;
    }
    
    .consulting-section8 p:last-child {
        font-size: 28px;
        line-height: 1.3;
        padding-inline: 0;
    }
    
    /* General container adjustments for mobile */
    .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }
}

/* ========== EXTRA SMALL MOBILE (~400px) ========== */
@media screen and (max-width: 400px) {
    .consulting-back .back-title {
        font-size: 24px;
        padding: 6px 10px;
    }
    
    .consulting-back .back-desc {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .consulting-section1-content pre {
        font-size: 16px;
    }
    
    .consulting-section1-content a {
        font-size: 16px;
        height: 80px;
    }
    
    .consulting-section2-content p:last-child,
    .consulting-section4 p:last-child,
    .consulting-section6 p:nth-child(2),
    .consulting-section8 p:last-child {
        font-size: 24px;
    }
    
    .section3-left p,
    .s5-header-title,
    .s7-title {
        font-size: 20px;
    }
    
    .s5-item {
        padding: 20px;
    }
    
    .s7-item {
        padding: 20px;
    }
}