/* ==================================

    Company - 会社概要

================================== */

.company-profile {
    width: 80%;
    max-width: 800px;
    margin: 0 auto 80px;
    color: #5E5E5E;
}

@media (max-width: 1024px) {

    .company-profile {
        font-size: 1.6rem;
    }

}

@media (max-width: 768px) {

    .company-profile {
        width: calc(100% - 32px);
        font-size: 1.6rem;
    }

}

.profile-item {
    display: flex;
    justify-content: space-between; /* ラベルと値を左右に配置 */
    padding: 32px;
}

.profile-item .label {
    font-weight: bold;
    width: 40%;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 0;
}

.profile-item .value {
    text-align: left;   /* 左寄せに変更 */
    flex: 1;            /* ラベルと値の間のスペースを確保 */
    margin-left: 20px;  /* ラベルとの間隔 */
}

@media (max-width: 1024px) {
    
    .profile-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-item .value {
        margin-left: 0;
        margin-top: 4px;
        text-align: left;   /* スマホでも左寄せ */
    }
}

@media (max-width: 768px) {

    .profile-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-item .value {
        margin-left: 0;
        margin-top: 4px;
        text-align: left;   /* スマホでも左寄せ */
    }
}

.section-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 80px;   /* 下に余白 */
    margin-bottom: 200px;
}

/* 背景 */
.bg-shift {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background-color: #DCE9FF;
    border-top-left-radius: 100px;
    z-index: 1;
}

/* ボックス群 */
.box-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 40px;
    top: 100px; /* 背景からはみ出す量を指定 */
}

/* 各ボックス */
.box {
    width: 600px;
    height: 450px;
    background-color: #FFFFFF;
    align-items: center;
    justify-content: center;
    color: #5E5E5E;
    font-weight: 500;
    text-align: center;
    border: 1px solid #CCCCCC;
}

.box p:nth-of-type(1) {
    font-size: 2.8rem;
    padding-bottom: 24px;
}

.box p:nth-of-type(2) {
    font-size: 1.6rem;
}

.box p:nth-of-type(3) {
    font-size: 1.6rem;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    
    .bg-shift {
        height: 1500px; /* 背景高さを縮小 */
    }

    .box-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        top: 120px; /* スマホで調整 */
    }

    .box {
        display: block;
        width: 90%;
        height: auto;
        margin: 0 auto 64px;
        padding-top: 32px;
    }

    .box iframe {
        width: 100%;
    }

    .box p span {
        display: block;
    }

}

@media (max-width: 768px) {
    .box-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        top: 120px; /* スマホで調整 */
    }

    .box {
        display: block;
        width: 100%;
        height: auto;
        margin-bottom: 64px;
    }

    .box iframe {
        width: 100%;
    }

    .bg-shift {
        height: 200px; /* 背景高さを縮小 */
    }

    .box p span {
        display: block;
    }

    .box p:nth-of-type(1) {
        font-size: 2.0rem;
    }

    .box p:nth-of-type(2) {
        font-size: 1.4rem;
    }

    .box p:nth-of-type(3) {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
}

