.mega-table-container {
    margin: 6rem 0 12rem;

    .comp-table-row {
        display: flex;
        position: relative;
        flex-direction: row;
        align-items: center;
        padding: 5rem 4rem 5rem 0;
        isolation: isolate;
        background: #FFFFFF;
        mix-blend-mode: normal;
        border-bottom: 1px solid #CFCFCF;
        
        &::after {
            content: "";
            position: absolute;
            background-color: #006ACD;
            width: 3rem;
            height: 0.1rem;
            bottom: 0;
        }

        .comp-row-title {
            font-style: normal;
            font-weight: 700;
            font-size: 1.8rem;
            line-height: 3.6rem;
            letter-spacing: 0.09em;
            color: #1D1D1D;
            width: 37.4rem;
        }

        .comp-row-txt {
            font-style: normal;
            font-weight: 500;
            font-size: 1.8rem;
            line-height: 3.6rem;
            letter-spacing: 0.09em;
            color: #1D1D1D;
        }
    }
}

.comp-img-container {
    width: 104rem;
    margin: 0 auto 15rem;
}

.comp-map-flex-container {
    display: flex;
    margin: 6rem 0 15rem;
    gap: 11rem;

    .map-container {
        width: 90rem;
        height: 58rem;

        & iframe {
            width: 100%;
            height: 100%;
        }
    }

    .map-txt-container {
        padding-top: 4rem;

        .title-map {
            font-style: normal;
            font-weight: 700;
            font-size: 3.2rem;
            /* line-height: 4.8rem; */
            letter-spacing: 0.1em;
            color: #000000;
            margin-bottom: 3rem;
        }

        .map-txt {
            font-style: normal;
            font-weight: 500;
            font-size: 1.8rem;
            line-height: 3.7rem;
            letter-spacing: 0.04em;
            color: #000000;
            margin-bottom: 6rem;
        }
    }
}

.history-section-container {
    position: relative;
    margin: 6rem 0 21rem 13rem;

    &::before {
        content: "";
        position: absolute;
        background: url(../../img/company/history-bk.png) no-repeat;
        background-size: 100%;
        width: 186.7rem;
        height: 181rem;
        top: -6rem;
        right: -11rem;
        z-index: -1;
    }

    &::after {
        content: "";
        position: absolute;
        background: #006ACD;
        width: 0.2rem;
        height: 210.3rem;
        top: -1rem;
        left: 24.8rem;
    }

    .history-row {
        display: flex;
        align-items: baseline;
        margin-bottom: 8.6rem;

        .history-date {
            font-family: 'Montserrat';
            font-style: normal;
            font-weight: 700;
            font-size: 4.4rem;
            /* line-height: 64px; */
            letter-spacing: 0.01em;
            color: #006ACD;
            margin-right: 0.8rem;
            width: 17.6rem;
            text-align: right;
        }

        .history-year {
            font-style: normal;
            font-weight: 700;
            font-size: 2.4rem;
            /* line-height: 32px; */
            letter-spacing: 0.04em;
            color: #006ACD;
            width: 4.1rem;
            margin-right: 1.6rem;
        }

        .separator-history {
            width: 1.6rem;
            height: 1.6rem;
            background: #006ACD;
            border-radius: 50%;
        }

        .history-content-flex {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            align-items: center;

            .history-anti-flex {
                display: flex;
                margin-left: 5.1rem;
                width: 124rem;
                
                .history-month {
                    font-style: normal;
                    font-weight: 700;
                    font-size: 2.2rem;
                    /* line-height: 44px; */
                    display: flex;
                    align-items: center;
                    letter-spacing: 0.04em;
                    color: #000000;
                    width: 5.1rem;
                    margin-right: 1rem;
                }

                .hisoty-content-txt {
                    font-style: normal;
                    font-weight: 500;
                    font-size: 1.8rem;
                    /* line-height: 37px; */
                    letter-spacing: 0.04em;
                    color: #000000;
                    padding-left: 2.2rem;
                    height: 5.6rem;
                    border-left:  2px solid #CFCFCF;
                    display: flex;
                    align-items: center;
                }
            }
        }
    }
}

.orga-chart-section {
    background: #ECF3FE;
    padding: 10rem 0 10.4rem;

    .chart-container {
        width: 120rem;
        margin: 7.5rem auto 0;
        background-color: #FFFFFF;
        padding: 8rem 13.9rem 8.1rem 14.1rem;

        .chart-img {
            width: 58rem;
            margin: 0 auto;
        }

        .chart-blue-container {
            background: #E4F2FD;
            border-radius: 1rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2.8rem 3rem;
            padding: 5.1rem 4.1rem 5.2rem 3.9rem;

            .chart-blue-cat {
                font-style: normal;
                font-weight: 700;
                font-size: 1.8rem;
                line-height: 2.7rem;
                text-align: center;
                letter-spacing: 0.04em;
                color: #1D1D1D;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                /* padding: 20px 30px; */
                width: 26rem;
                height: 9rem;
                background: #FFFFFF;
                border-radius: 0.4rem;
            }
        }
    }
}

.margin-section {
    padding: 15rem 0 0;

    .btn-like-margin {
        font-style: normal;
        font-weight: 700;
        font-size: 2.2rem;
        /* line-height: 44px; */
        text-align: center;
        letter-spacing: 0.04em;
        color: #FFFFFF;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* padding: 30px 169px; */
        width: 60rem;
        height: 7.6rem;
        background: #006ACD;
        margin: 5rem auto;
    }

    .margin-p {
        font-style: normal;
        font-weight: 500;
        font-size: 1.8rem;
        /* line-height: 37px; */
        text-align: center;
        letter-spacing: 0.04em;
        color: #000000;
    }

    .margin-formula-img {
        width: 102.6rem;
        margin: 7rem auto 8rem;
    }

    .margin-table {
        margin: 0 auto 12rem;
        width: 108.1rem;
        
        .margin-row-container {
            display: flex;
            width: 108.1rem;
            border: 1px solid #e5e9fa;
            border-bottom: none;

            &.bd-yes {
                border-bottom: 1px solid #e5e9fa;
            }

            .margin-table-header {
                font-style: normal;
                font-weight: 500;
                font-size: 1.8rem;
                line-height: 3.7rem;
                display: flex;
                align-items: center;
                text-align: center;
                letter-spacing: 0.04em;
                color: #000000;
                width: 30rem;
                background: #ECF3FE;
                justify-content: center;
            }

            .margin-table-content {
                font-style: normal;
                font-weight: 500;
                font-size: 1.8rem;
                line-height: 3.7rem;
                letter-spacing: 0.04em;
                color: #000000;
                padding: 4rem 3.3rem 4.4rem 4rem;
            }
        }

    }

    
}


/* =========================================
   COMPANY PAGE - SP (max-width: 767px)
   ========================================= */

@media screen and (max-width: 767px) {

    /* ------------------------------------------- */
    /* Mega table */
    /* ------------------------------------------- */
    .mega-table-container {
        margin: 3rem 0 4rem;

        .comp-table-row {
            padding: 3rem 2rem 3rem 8rem;
            align-items: flex-start;

            &::after {
               left: 0;
            }

            .comp-row-title {
                position: absolute;
                left: 0;
                top: 2.6rem;
                width: auto;
                font-size: 1.4rem;
                font-weight: 700;
                line-height: 3.6rem;
                letter-spacing: 0.09em;
            }

            .comp-row-txt {
                font-size: 1.4rem;
                line-height: 2.8rem;
                max-width: 25.1rem;
            }
        }
    }

    /* ------------------------------------------- */
    /* Image */
    /* ------------------------------------------- */
    .comp-img-container {
        width: 100%;
        max-width: 33.5rem;
        margin: 0 auto 8rem;
        padding: 0;

        img {
            width: 100%;
            height: auto;
            display: block;
        }
    }

    /* ------------------------------------------- */
    /* Map / Access */
    /* ------------------------------------------- */
    .comp-map-flex-container {
        flex-direction: column;
        margin: 3rem 0 8rem;
        gap: 3rem;

        .map-container {
            width: 100%;
            max-width: 33.5rem;
            height: 21.6rem;
            margin: 0 auto;

            iframe {
                width: 100%;
                height: 100%;
            }
        }

        .map-txt-container {
            width: 100%;
            max-width: 33.5rem;
            margin: 0 auto;
            padding-top: 0;

            .title-map {
                font-size: 2.2rem;
                line-height: 3.3rem;
                letter-spacing: 0.1em;
                margin-bottom: 2rem;
            }

            .map-txt {
                font-size: 1.4rem;
                line-height: 2.8rem;
                margin-bottom: 4rem;
            }

            .common-btn {
                margin: 0 auto;
            }
        }
    }

    /* ------------------------------------------- */
    /* History */
    /* ------------------------------------------- */
    .history-section-container {
        position: relative;
        margin: 6rem auto 8rem;
        padding-left: 0;
        width: 100%;
        max-width: 33.5rem;

        /* Décoration de fond masquée sur SP */
        &::before {
            display: none;
        }

        /* Ligne verticale bleue */
        &::after {
            left: 7.9rem;
            top: 0.7rem;
            height: calc(105% - 7rem);
        }

        .history-row {
            display: flex;
            position: relative;
            align-items: flex-start;
            margin-bottom: 3rem;
            padding-left: 10rem;
            padding-top: 1.2rem;
            min-height: 5rem;

            .history-date {
                position: absolute;
                left: 0;
                top: 0.7rem;
                width: 4.8rem;
                margin-right: 0;
                font-family: 'Montserrat', sans-serif;
                font-weight: 700;
                font-size: 1.6rem;
                line-height: 6.4rem;
                letter-spacing: 0.01em;
                color: #006ACD;
                text-align: right;
            }

            .history-year {
                position: absolute;
                left: 5rem;
                top: 2.2rem;
                width: 2.1rem;
                margin-right: 0;
                font-weight: 700;
                font-size: 1.2rem;
                line-height: 3.2rem;
                letter-spacing: 0.04em;
                color: #006ACD;
            }

            .separator-history {
                position: absolute;
                left: 7.2rem;
                top: 3.1rem;
                width: 1.6rem;
                height: 1.6rem;
                background: #006ACD;
                border-radius: 50%;
                z-index: 2;
            }

            .history-content-flex {
                width: 100%;
                gap: 2rem;
                padding-top: 0;
                align-items: flex-start;

                .history-anti-flex {
                    flex-direction: row;
                    align-items: center;
                    margin-left: 0;
                    width: 100%;

                    .history-month {
                        width: 3.5rem;
                        margin-right: 0;
                        font-size: 1.2rem;
                        line-height: 2.8rem;
                        text-align: center;
                        flex-shrink: 0;
                    }

                    .hisoty-content-txt {
                        flex: 1;
                        height: auto;
                        min-height: 5.6rem;
                        padding-left: 1rem;
                        font-size: 1.4rem;
                        line-height: 2.1rem;
                        border-left: 0.2rem solid #CFCFCF;
                    }
                }
            }
        }
    }

    /* ------------------------------------------- */
    /* Org chart */
    /* ------------------------------------------- */
    .orga-chart-section {
        padding: 8rem 0 8rem;

        .chart-container {
            width: 100%;
            max-width: 33.5rem;
            margin: 6rem auto 0;
            padding: 5rem 1.7rem;

            .chart-img {
                width: 100%;
                max-width: 28.1rem;

                img {
                    width: 100%;
                    height: auto;
                    display: block;
                }
            }

            .chart-blue-container {
                justify-content: center;
                gap: 1.5rem;
                padding: 1.7rem 1rem;
                background: #fff;
                border: 0.3rem solid #006ACD;

                .chart-blue-cat {
                    width: 12.6rem;
                    height: 4.4rem;
                    font-size: 1rem;
                    line-height: 1.3rem;
                    padding: 0.9rem 1rem;
                    text-align: center;
                    background: #E4F2FD;
                }
            }
        }
    }

    /* ------------------------------------------- */
    /* Margin Rate */
    /* ------------------------------------------- */
    .margin-section {
        padding: 8rem 0 0;

        .btn-like-margin {
            width: 100%;
            max-width: 33.8rem;
            height: 5rem;
            font-size: 1.4rem;
            line-height: 2.8rem;
            margin: 4rem auto 0;
        }

        .margin-p {
            width: 100%;
            max-width: 33.5rem;
            font-size: 1.4rem;
            line-height: 2.8rem;
            text-align: left;
            margin: 3rem auto 0;
        }

        .margin-formula-img {
            width: 100%;
            max-width: 33.5rem;
            margin: 3rem auto 6rem;

            img {
                width: 100%;
                height: auto;
                display: block;
            }
        }

        .margin-table {
            width: 100%;
            max-width: 33.5rem;
            margin: 0 auto 8rem;

            .margin-row-container {
                width: 100%;

                .margin-table-header {
                    width: 12.6rem;
                    padding: 2.4rem 0.5rem;
                    font-size: 1.2rem;
                    line-height: 1.8rem;
                }

                .margin-table-content {
                    width: 20.9rem;
                    padding: 2.4rem 1.3rem;
                    font-size: 1.4rem;
                    line-height: 2.8rem;
                }
            }
        }
    }

    /* ------------------------------------------- */
    /* Next Banner */
    /* ------------------------------------------- */
    .next-banner {

        width: 100%;
        max-width: 33.5rem;
        height: auto;
        min-height: 25.3rem;
        margin: 6rem auto 0;
        gap: 0;
        flex-direction: column;
        padding: 2.3rem 2rem 0;
        text-align: center;

        .next-banner-title {
            line-height: 2.2rem;
        }

        .next-banner-txt {
            font-size: 1.6rem;
            padding-right: 2.4rem;

            &::after {
                width: 1.9rem;
                height: 1.3rem;
                right: -0.5rem;
            }
        }

        &::before {
            top: 9rem;
        }
    }
}