@charset "utf-8";
/* CSS Document */

html,
body{
    overflow-x: hidden;
}

.title {
    padding-top: 64px;
    text-align: center;
}

.title h1 {
    font-family: "Roboto";
    font-size: 96px;
    font-weight: bold;
    color: #002F49;
    padding: 0 4.3%;
}

.title p {
    font-size: 24px;
    font-weight: 500;
    color: #111111;
    line-height: 160%;
    padding: 0 4.3%;
    margin-top: 24px;
}

.title .title-image {
    margin-top: 80px;
    font-size: 0;
}

/*================================

    セクションの設定

=================================*/
.content-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 4.3%;
    box-sizing: border-box;
}

.main-section{
    padding: 160px 0;
}

.main-section#section2 {
    padding: 96px 0;
    background: rgba(0, 122, 178, 0.1)
}

.section-title {
    font-family: "Roboto";
    font-size: 64px;
    font-weight: 600;
    color: #002F49;
}

.box-wrapper {
    margin-top: 64px;
    display: flex;
    gap: 120px;
}

.box-wrapper .image-field {
    width: 480px;
    height: 560px;
}

.image-field[data-id="about-us"] {
    margin-right: -120px;
    overflow: hidden;
    position: relative;
}

.image-field[data-id="about-us"] img {
    width: 871px;
    position: absolute;
    top: -93px;
    left: -186px;
}

.image-field[data-id="our-culture"] {
    margin-left: -120px;
    overflow: hidden;
    position: relative;
}

.image-field[data-id="our-culture"] img {
    width: 895px;
    position: absolute;
    top: -101px;
    left: -152px;
}

.box-wrapper .text-field {
    flex: 1;
    margin-top: 24px;
}

.box-text .main-text {
    font-size: 24px;
    line-height: 160%;
    color: #333333;
    font-weight: 500;
}

.box-text .sub-text {
    font-size: 18px;
    line-height: 180%;
    color: #333333;
}

.text-field .box-text {
    margin-top: 40px;
}

.text-field .box-text:first-child {
    margin-top: 0;
}

.text-field .footnote {
    margin-top: 32px;
    border-top: solid 1px #cccccc;
    padding-top: 16px;
    color: #666666;
}

.footnote-content{
    display: flex;
    gap: 8px;
}

.footnote-title{
    flex-shrink: 0;
    width: 120px;
}

.footnote p {
    font-size: 15px;
    line-height: 160%;
    font-weight: 500;
}

.card-wrapper {
    margin-top: 104px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    gap: 80px;
    box-sizing: border-box;
}

.card-content {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    max-width: 560px;
    height: 100%;
    background: #ffffff;
    position: relative;
    border-radius: 24px;
    padding: 0 32px 64px;
    box-sizing: border-box;
    justify-items: center;
    gap: 0;
}

.card-icon {
    width: 160px;
    aspect-ratio: 1 / 1;
    position: relative;
    top: -40px;
    font-size: 0;
}

.card-content .card-title {
    display: grid;
    font-size: 32px;
    font-weight: 600;
    color: #007AB2;
    text-align: center;
    line-height: 160%;
    align-items: center;
} 

.card-content p {
    margin-top: 24px;
    font-size: 18px;
    line-height: 180%;
    color: #333333;
}

.contact-section {
    background: #F7F7F7;
    padding: 64px 0;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-container .contact-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 180%;
    color: #444444;
}

.contact-container .contact-btn {
    font-family: "Roboto";
    display: flex;
    gap: 74px;
    background: #333333;
    border-radius: 40px;
    padding: 26px 46px 26px 96px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    align-items: center;
    flex-shrink: 0;
}

.contact-container .contact-btn::after {
    content: "";
    width: 20px;
    aspect-ratio: 1/1;
    background-image: url("../images/contact_icon.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.contact-container .contact-btn p {
    font-size: 24px;
    font-weight: 600;
}

.footer-section {
    padding: 64px 0;

}

.footer-container {
    display: flex;
    justify-content: space-between;
}

.corporate-info {
    display: flex;
    align-items: flex-end;
    gap: 24px;

}

.footer-logo {
    width: 72px;
    font-size: 0;
}

.footer-corp {
    font-size: 28px;
    font-weight: 600;
    line-height: 100%;
    color: #111111;
}

.footer-address {
    margin-top: 16px;
    font-size: 16px;
}

.footer-copyright {
    position: relative;
    margin-top: -15px;
    color: #666666;
    line-height: 15px;
    font-size: 15px;
    font-weight: 500;
}

@media (hover: hover) {
    .contact-container .contact-btn:hover {
        background: #007AB2;
    }
}

/* タブレット */
@media screen and (max-width: 1024px) {
    html,
    body{
        overflow-x: auto;
    }

    .br-on-pc {
        display: none;
    }

    .title {
        padding-top: 48px;
    }

    .title h1 {
        font-size: 72px;
    }

    .title .title-image {
        margin-top: 52px;
    }

    .main-section {
        padding: 120px 0;
    }

    .box-wrapper {
        flex-direction: column;
        margin-top: 40px;
        gap: 64px;
    }

    .main-section#section2 {
        padding: 76px 0;
    }

    .section-title {
        font-size: 42px;
    }

    .box-wrapper {
        gap: 48px;
    }

    .box-wrapper .image-field {
        width: 100%;
        height: auto;
    }

    .box-wrapper .text-field{
        margin-top: 0;
    }


    .image-field[data-id="about-us"] {
        margin-right: 0;
        overflow: hidden;
        position: relative;
        height: 360px;
    }

    .image-field[data-id="about-us"] img {
        width: 100%;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .image-field[data-id="our-culture"] {
        margin-left: 0;
        overflow: hidden;
        position: relative;
        height: 360px;
    }

    .image-field[data-id="our-culture"] img {
        width: 100%;
        top: unset;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 0%);
    }

    .card-wrapper {
        grid-template-columns: repeat(1, 1fr);
        gap: 56px;
        margin-top: 72px;
    }

    .card-content {
        max-width: unset;
    }

    .card-icon {
        width: 132px;
        top: -36px;
    }

    .contact-container {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
    }

    .footer-address {
        line-height: 160%;
    }

    .corporate-info {
        gap: 18px;
    }

    .footer-logo {
        width: 56px;
    }

    .footer-copyright {
        margin-top: 24px;
        line-height: normal;
    }

    .map-frame {
        width: 100%;
    }
}

/* スマートフォン */
@media screen and (max-width: 599px) {
    .title {
        padding-top: 32px;
    }

    .title h1{
        font-size: 48px;
    }
    
    .title p{
        font-size: 20px;
        margin-top: 20px;
    }

    .title .title-image {
        margin-top: 24px;
    }

    .title-image img {
        height: 320px;
        object-fit: cover;
    }

    .main-section {
        padding: 80px 0;
    }

    .main-section#section1 {
        padding: 80px 0 128px;
    }
    
    .main-section#section2 {
        padding: 56px 0;
    }
    
    .content-wrapper {
        width: 100%;
        /* padding: 0; */
    }

    #section1 .content-wrapper,
    #section3 .content-wrapper{
        padding: 0;
    }
    #section1 .content-wrapper .section-title,
    #section3 .content-wrapper .section-title,
    #section1 .content-wrapper .box-content.text-field,
    #section3 .content-wrapper .box-content.text-field{
        padding: 0 4.3%;
    }

    .section-title {
        font-size: 36px;
    }

    .box-wrapper {
        margin-top: 40px;
        gap: 32px;
    }

    .text-field .box-text {
        margin-top: 20px;
    }

    .box-text .main-text {
        font-size: 20px;
    }

    .box-text .sub-text {
        font-size: 16px;
        line-height: 160%;
    }

    .footnote p {
        font-size: 14px;
    }

    .text-field .footnote {
        margin-top: 20px;
    }

    .box-wrapper .image-field {
        width: 100%;
        height: 200px;
    }

    .image-field[data-id="about-us"] {
        margin-right: 0;
        /* overflow: auto;
        position: static; */
    }

    .image-field[data-id="about-us"] img {
        width: 106%;
        /* position: static; */
        min-height: calc(200px + 10%);
        object-fit: cover;
        bottom: -10%;
        top: unset;
        transform: translate(-50%, 0%);
    }

    .image-field[data-id="our-culture"] {
        margin-left: 0;
        /* overflow: auto;
        position: static; */
    }

    .image-field[data-id="our-culture"] img {
        width: 110%;
        /* position: static; */
        min-height: calc(200px + 7%);
        object-fit: cover;
        bottom: -7%;
    }

    .card-wrapper {
        grid-template-columns: repeat(1, 1fr);
        gap: 56px;
        margin-top: 72px;
    }

    .card-content {
        padding: 0 16px 48px;
    }

    .card-icon {
        width: 104px;
        height: 96px;
        top: -32px;
    }

    .card-content .card-title {
        font-size: 24px;
    }

    .card-content p  {
        font-size: 16px;
        margin-top: 16px;
        line-height: 160%;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-container {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .contact-container .contact-text {
        font-size: 18px;
        line-height: 160%;
    }

    .contact-container .contact-btn {
        gap: 20%;
        padding: 30px 40px 30px 20px;
        width: 100%;
        max-width: 320px;
        box-sizing: border-box;
        justify-content: flex-end;
    }

    .contact-container .contact-btn p {
        font-size: 20px;
    }

    .footer-section {
        padding: 40px 0 24px;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
    }

    .corporate-info {
        gap: 12px;
    }

    .footer-logo {
        width: 50px;
    }

    .footer-corp {
        font-size: 24px;
    }

    .footer-address {
        font-size: 15px;
        margin-top: 12px;
    }

    .footer-copyright {
        margin-top: 24px;
        font-size: 14px;
    }

    .map-frame {
        width: 100%;
    }
}
