h2 {
    margin: 0;
}

.company-title-sp {
    display: none;
}

.company-introduction {
    float: left;
    overflow: hidden;
    width: 100%;
    background-color: #fff;
    padding: 80px 100px 0;
}

.company-introduction p {
    text-align: justify;
    font-size: 24px;
    line-height: 58px;
    letter-spacing: 0.12em;
    margin-bottom: 0;
}

.company-container {
    float: left;
    overflow: hidden;
    width: 100%;
    padding: 100px 100px 0 100px;
}

.company-div-wrap {
    float: left;
    overflow: hidden;
    width: 48.5%;
    height: auto;
    margin: 0 50px 50px 0;
}

.company-div-wrap:nth-child(even) {
    margin-right: 0;
}

.company-div-title {
    float: left;
    overflow: hidden;
    width: 100%;
    background: #B5A078;
    padding: 30px 45px;
}

.company-div-title h3 {
    color: #fff;
}

.company-div-content figure,
iframe {
    float: left;
    overflow: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 565px;
    border: 1px solid #333;
}

.company-div-content img,
iframe {
    float: left;
    overflow: hidden;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.company-div-content .wp-block-image {
    display: flex;
}
.company-div-content .wp-block-image img {
    height: 100%;
}

.header-content img {
    position: relative;
}

.top-line {
    margin-top: 133px;
}

.break {
    display: none;
    visibility: hidden;
}

.company-div-content .wp-block-image, .company-div-content .map {
  height: 30vw;
}

.company-item-title {
    padding: 60px 90px 90px;
    font-size: 41px;
    white-space: pre;
}

.company-item-block .header-wrap {
    float: unset;
}

.company-item-message {
    background-color: #EDF8FE;
    display: grid;
    grid-template-columns: 50% 45%;
    padding: 140px 90px 200px;
    gap: 30px;
}

.item-message {
    font-size: 46px;
    font-weight: 600;
    color: #B4B4B4;
    letter-spacing: 4.6px;
    line-height: 38px;
}

.item-message-text {
    font-size: 46px;
    font-weight: 600;
    white-space: pre-line;
    letter-spacing: 4.6px;
    line-height: 103px;
}

.company-item-content {
    padding: 74px 90px;
}

.item-content-text {
    font-size: 20px;
    white-space: pre-line;
    line-height: 57px;
    margin-bottom: 60px;
    letter-spacing: 0;
}

.item-message-end {
    display: flex;
    justify-content: flex-end;
    font-size: 20px;
    line-height: 41px;
}

.company-item-block .header-content .wp-block-heading {
    color: #fff;
}

.company-item-2 .company-item-title {
    padding: 90px 74px 36px;
}

.company-item-2 .item-content-text {
    padding: 0 74px 30px;
    margin-bottom: 0;
}

.company-item-2 .item-message-image {
    padding: 60px 74px 0;
}

.company-item-2 .item-message-image img {
    height: 537px;
    object-fit: cover;
    width: calc(100vw - 157px);
    object-position: 20% 70%;
}

@media screen and (min-width:821px) and (max-width: 1885px) {
    .company-div-wrap {
        margin: 0 2vw 4vh 0;
    }

    .company-div-title {
        padding: 3vh 3vw;
    }

    .company-div-content figure {
        height: auto;
    }

    iframe {
        height: 100%;
        aspect-ratio: 11/6.85;
    }

    .company-div-title {
        padding: 2.5vh 3vw;
    }

    /* .company-div-content img.float-left {
        margin-right: 4vw;
        margin-bottom: 4vw;
    } */

    /* .company-div-content img {
        margin-left: 4vw;
        margin-bottom: 4vw;
    } */

    .company-item-title {
        padding: 3.125vw 4.6875vw 4.6875vw;
        font-size: 2.14vw;
    }

    .company-item-message {
        padding: 7.3vw 4.6875vw 10.4vw;
        gap: 1.5625vw;
    }

    .item-message {
        font-size: 2.4vw;
        letter-spacing: 0.24vw;
        line-height: 1.98vw;
    }

    .item-message-text {
        font-size: 2.4vw;
        letter-spacing: 0.24vw;
        line-height: 5.3646vw;
    }

    .company-item-content {
        padding: 3.854vw 4.6875vw;
    }

    .item-content-text {
        font-size: 1.042vw;
        line-height: 3.125vw;
        margin-bottom: 3.125vw;
    }

    .item-message-end {
        font-size: 1.042vw;
        line-height: 2.14vw;
    }

    
    .company-item-2 .company-item-title {
        padding: 4.6875vw 3.85vw 1.875vw;
    }

    .company-item-2 .item-content-text {
        padding: 0 3.85vw 1.5625vw;
        margin-bottom: 0;
    }

    .company-item-2 .item-message-image {
        padding: 3.125vw 3.85vw 0;
    }

    
    .company-item-2 .item-message-image img {
        height: 28vw;
        width: 91.8vw;
    }


}

@media screen and (max-width: 1366px) {
    .company-introduction{
        padding: 80px 7vw 0;
    }

    .company-container {
        padding: 10vh 7vw 0;
    }
}

@media screen and (max-width: 820px) {
    .company-title-sp {
        display: block;
    }

    .company-title-sp header {
        text-align: center;
        margin-bottom: 10vw;
    }

    .company-div-content p {
        margin-top: 5vw;
    }
    .company-introduction {
        padding: 5vh 9vw 0;
    }

    .company-introduction p {
        font-size: 3.17vw;
        line-height: 7.32vw;
    }

    .company-container {
        padding: 9vh 5vw 0;
    }

    .company-div-title {
        padding: 3vh 4vw;
    }

    .company-div-wrap {
        width: 100%;
        height: auto;
        margin: 0 0 4vh 0;
        padding: 0;
    }

    .company-div-content figure {
        height: auto;
    }

    iframe {
        height: 100%;
        aspect-ratio: 11/9;
    }

    .top-line {
        margin-top: 0;
    }

    .break {
        display: block;
        visibility: visible;
    }
    

    /* 
    .company-div-content img {
        width: 100%;
        margin-bottom: 10vw;
    } */

    /* 
    .company-div-content img.float-left {
        width: 100%;
        margin-bottom: 10vw;
    } */

    /* .company-div-content header {
        float: left !important;
    } */

    /* .background-h2 {
        width: 100%;
        background: none;
        color: #333;
        padding: 2vw;
    } */

    /* .background-h2:after {
        width: 100%;
    } */

    .header-content .wp-block-heading {
        font-size: 4.8vw;
    }

    .company-item-block .header-content {
        height: 49vw;
    }

    .company-item-block .header-content img {
        height: 100%;
    }

    .company-item-title {
        font-size: 5.6vw;
        padding: 5vw 10vw;
        white-space: normal;
    }

    .company-item-message {
        display: flex;
        flex-direction: column-reverse;
        padding: 4vw;
        gap: 6.67vw;
    }

    .item-message {
        font-size: 4.3vw;
        line-height: 5.1vw;
        margin-bottom: 0;
    }

    .item-message-text {
        font-size: 4.3vw;
        line-height: 5.6vw;
    }
    
    .company-item-content {
        padding: 4vw;
    }

    .item-message-end, .item-content-text {
        font-size: 2.67vw;
        line-height: 7.6vw;
    }

    .company-item-2 .company-item-title {
        padding: 9vw 4vw 4vw;
    }

    .company-item-2 .item-content-text {
        padding: 0 4vw 3vw;
        margin-bottom: 0;
    }

    .company-item-2 .item-message-image {
        padding: 1vw 4vw 0;
        height: 61.2vw;
    }
    .company-item-2 .item-message-image  img{
        height: 61.2vw;
        width: 91vw;
    }

}

@media screen and (max-width: 480px) {
    .company-introduction p {
        font-size: 5vw;
        line-height: 1.7;
    }
}

@media screen and (max-width: 390px) {
    .company-introduction p {
        font-size: 3.85vw;
        line-height: 2;
    }
}

@media (hover: hover) and (pointer: fine) {
    .company-div-content img:hover {
        transform: scale(1.3);
        transition: transform 1s ease-in-out;
    }
}