@charset "UTF-8";
#face {
    background: #122943;
}

.face_content {
    position: relative;
    width: 100%;
    height: 100%;
}

.face_content .bg {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-image: url(../img/top_img1.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 10;
    opacity: 0;
    animation-name: fade;
    animation-duration: 21s;
    animation-iteration-count: infinite;
    z-index: 10;
}

@keyframes fade {
  0%{
    opacity: 0;
  }
  30%{
    opacity: 1;
  }
  80%{
    opacity: 0;
  }
  100%{
    opacity: 0;
    z-index: 0;
  }
}

.face_content .bg:nth-child(1) {
    background-image: url(../img/top_img1.webp);
}

.face_content .bg:nth-child(2) {
    background-image: url(../img/top_img2.webp);
    animation-delay: 7s;
}

.face_content .bg:nth-child(3) {
    background-image: url(../img/top_img3.webp);
    animation-delay: 14s;
}

.face_content h1 {
    position: absolute;
    content: "";
    display: block;
    width: 130px;
    right: 100px;
    bottom: 50px;
    opacity: 0;
    z-index: 20;
}

.face_content h1 img {
    filter: drop-shadow(3px 3px 5px #000);
}

@media all and (max-width: 767px) {
    .face_content {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 550px;
        background-image: url(../img/top_img.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: left 65% bottom;
    }

    .face_content h1 {
        position: absolute;
        content: "";
        display: block;
        width: 28vw;
        max-width: 140px;
        right: 10vw;
        bottom: 10vw;
    }

    .face_content h1 img {
        filter: drop-shadow(3px 3px 5px #000);
    }
}

/*========== lead ==========*/
.lead_wrap {
    display: flex;
    justify-content: center;
}

.lead_wrap p {
    font-size: 16px;
    line-height: 2;
    width: 30%;
    text-align: justify;
    margin-right: 50px;
    padding: 50px 30px;
    position: relative;
}

.lead_wrap p:before {
    content: "";
    display: block;
    width: 125px;
    height: 50px;
    background-image: url(../img/top_lead_border.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    left: -30px;
}

.lead_wrap p:after {
    content: "";
    display: block;
    width: 125px;
    height: 50px;
    background-image: url(../img/top_lead_border.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    bottom: 0;
    right: -30px;
    transform: rotate(180deg);
}

.lead_wrap figure {
    width: 30%;
    overflow: hidden;
    position: relative;
}

.lead_wrap figure img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    width: 100%;
}

@media all and (max-width: 767px) {
    .lead_wrap {
        flex-wrap: wrap;
    }

    .lead_wrap p {
        font-size: 14px;
        width: 100%;
        margin: 0 20px;
        padding: 40px 20px;
    }

    .lead_wrap p:before {
        width: 100px;
        height: 40px;
        left: -25px;
    }

    .lead_wrap p:after {
        width: 100px;
        height: 40px;
        right: -25px;
    }

    .lead_wrap figure {
        width: 100%;
        height: 200px;
        margin-top: 20px;
    }

    .lead_wrap figure img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        width: 100%;
    }
}

/*========== advantage ==========*/
.advantage_list  {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.advantage_list li {
    display: flex;
    align-items: center;
    width: 33%;
    min-width: 425px;
}

.advantage_list li {
    margin: 0 40px;
}

.advantage_list li:nth-last-child(n+3) {
    margin-bottom: 30px;
}

.advantage_list li img {
    width: 80px;
    margin-right: 20px;
}

.advantage_list li h3 {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 5px;
}

.advantage_list.on li.fadein_right {
    animation-name: fadein_rightAnime;
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-iteration-count: 1;
    animation-timing-function: ease;
    animation-delay: 0.5s;
    animation-direction: normal;
    opacity: 0;
}

.advantage_list.on li:nth-child(2).fadein_right {
    animation-delay: 0.75s;
}
.advantage_list.on li:nth-child(3).fadein_right {
    animation-delay: 1s;
}
.advantage_list.on li:nth-child(4).fadein_right {
    animation-delay: 1.25s;
}

@keyframes fadein_rightAnime {
    0% {
        opacity: 0;
        transform:translate(50px,0px);
    }

    100% {
        opacity: 1;
        transform:translate(0px,0px);
    }
}

@media all and (max-width: 767px) {
    .advantage_list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .advantage_list li {
        align-items: flex-start;
        width: 100%;
        min-width: auto;
    }

    .advantage_list li {
        margin: 0px;
    }

    .advantage_list li:nth-last-child(n+3) {
        margin-bottom: 0px;
    }

    .advantage_list li:not(:last-child) {
        margin-bottom: 30px;
    }

    .advantage_list li img {
        width: 40px;
        margin-right: 15px;
    }

    .advantage_list li h3 {
        font-weight: bold;
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .advantage_list li p {
        font-size: 14px;
    }
}

/*========== service ==========*/
#service {
    background-image: url(../img/service_back.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#service_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
    color: white;
    gap: 1.5em;
}

#service_list li {
    background: #0b1f36;
    transition: all 0.2s;
    opacity: 0;
}

#service_list li:hover {
    background: #1b3855;
}

#service_list li figure {
    background: #ddd;
    width: 100%;
    height: 12vw;
    max-height: 160px;
    overflow: hidden;
    position: relative;
}

#service_list li figure img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    width: 101%;
    transition: all 0.2s;
}

#service_list li figure:after {
    content: "";
    display: block;
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 35px 35px;
    border-color: transparent transparent #dca11d transparent;
    transition: all 0.2s;
}

#service_list li:hover figure:after {
    right: 0px;
    bottom: 0px;
}

#service_list li:hover figure img {
    width: 110%;
    opacity: 0.8;
}

#service_list li h3 {
    font-size: 17px;
    text-align: center;
    margin: 15px 15px 10px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

#service_list.on li {
    animation-name: fadein_bottomAnime;
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-iteration-count: 1;
    animation-timing-function: ease;
    animation-delay: 0.5s;
    animation-direction: normal;
    opacity: 0;
}

#service_list.on li:nth-child(2) {
    animation-delay: 0.75s;
}
#service_list.on li:nth-child(3) {
    animation-delay: 1s;
}
#service_list.on li:nth-child(4) {
    animation-delay: 1.25s;
}
#service_list.on li:nth-child(5) {
    animation-delay: 1.5s;
}
#service_list.on li:nth-child(6) {
    animation-delay: 1.75s;
}
#service_list.on li:nth-child(7) {
    animation-delay: 2s;
}
#service_list.on li:nth-child(8) {
    animation-delay: 2.25s;
}

@keyframes fadein_bottomAnime {
    0% {
        opacity: 0;
        transform:translate(0px,30px);
    }

    100% {
        opacity: 1;
        transform:translate(0px,0px);
    }
}


@media all and (max-width: 767px) {
    #service_list {
        grid-template-columns: repeat(auto-fit, minmax(9em, 1fr));
        gap: 1.5em;
    }
    
    #service_list li {
        width: 100%;
    }

    #service_list li figure {
        height: 20vw;
    }

    #service_list li figure:after {
        border-width: 0 0 20px 20px;
    }

    #service_list li h3 {
        font-size: 14px;
    }
}

/*========== information ==========*/
#info_list {
    width: 80%;
    margin: 0 auto 40px;
    background: white;
    height: 250px;
    overflow-y: scroll;
    border: 40px solid #fff;
}

#info_list li {
    
}

#info_list li:not(:last-child) {
    margin-bottom: 15px;
}

#info_list dl {
    display: flex;
    font-size: 15px;
    line-height: 1.5;
}

#info_list dl dt {
    width: 10em;
    text-align: center;
    font-weight: normal;
    border: 1px solid #ddd;
    margin-right: 1em;
    align-self: flex-start;
}

#info_list dd {
    width: calc(100% - 11em);
}

#news_box {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

#news_box div {
    width: 48%;
    height: 300px;
    background: white;
    padding: 30px;
}

#news_box div h3 {
    text-align: center;
    border-bottom: 1px solid #005371;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#news_box div iframe {
    height: calc(100% - 50px);
}

@media all and (max-width: 767px) {
    #info_list {
        width: 100%;
        margin: 0 auto 30px;
        height: 250px;
        border: 15px solid #fff;
    }

    #info_list li:not(:last-child) {
        margin-bottom: 15px;
    }

    #info_list dl {
        font-size: 12px;
        flex-wrap: wrap;
    }

    #info_list dl dt {
        margin-right: 0em;
        margin-bottom: 5px;
    }

    #info_list dd {
        width: 100%;
        text-align: justify;
    }

    #news_box {
        width: 100%;
        flex-wrap: wrap;
    }

    #news_box div {
        width: 100%;
        height: 300px;
        padding: 15px;
    }
    
    #news_box div:first-child {
        margin-bottom: 30px;
    }

    #news_box div h3 {
        text-align: center;
        border-bottom: 1px solid #005371;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    #news_box div iframe {
        height: calc(100% - 50px);
    }
}

/*========== bizup ==========*/
#bizup_list {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto;
}

#bizup_list li a {
    display: flex;
    flex-flow: column;
    width: 180px;
    height: 180px;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

#bizup_list li a:hover {
    background: #f7f7f7;
}

#bizup_list li a img {
    width: 70px;
    margin-bottom: 5px;
}

#bizup_list li a h3 {
    text-align: center;
    line-height: 1.2;
    margin-bottom: 20px;
}

#bizup_news {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 80%;
    margin: 40px auto 0;
}

#bizup_news p {
    width: 100%;
    color: #122943;
    margin-bottom: 15px;
}

#bizup_news iframe {
    width: calc(100% - 280px);
    height: 200px;
}

#bizup_news .btn_a {
    background: #005371;
    display: block;
    align-self: flex-end;
    color: white;
    padding: 10px 1em;
    width: 250px;
    text-align: center;
    border-radius: 10px;
}

@media all and (max-width: 1299px) {
    #bizup_list {
        width: 100%;
    }

    #bizup_list li a {
        width: 16vw;
        height: 16vw;
        max-width: 180px;
        max-height: 180px;
    }

    #bizup_list li a img {
        width: 7vw;
    }

    #bizup_list li a h3 {
        font-size: 15px;
    }

    #bizup_news {
        width: 100%;
    }

    #bizup_news iframe {
        width: calc(100% - 260px);
    }

    #bizup_news .btn_a {
        width: 230px;
    }
}

@media all and (max-width: 767px) {
    #bizup_list {
        flex-wrap: wrap;
        width: 100%;
    }
    
    #bizup_list li {
        width: 48%;
    }
    
    #bizup_list li:not(:last-child) {
        margin-bottom: 15px;
    }

    #bizup_list li a {
        display: flex;
        flex-flow: wrap;
        justify-content: space-between;
        width: 100%;
        height: auto;
        border-radius: 0%;
        max-width: 100%;
        max-height: auto;
    }

    #bizup_list li a img {
        width: 50px;
        margin: 0px;
    }

    #bizup_list li a h3 {
        font-size: 14px;
        margin-bottom: 0px;
        margin-right: 5px;
        width: calc(100% - 55px);
    }

    #bizup_news {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        margin: 40px auto 0;
    }

    #bizup_news p {
        width: 100%;
        color: #122943;
        margin-bottom: 15px;
    }

    #bizup_news iframe {
        width: 100%;
        height: 200px;
        margin-bottom: 20px;
    }
}

/*========== 追加 ==========*/
#limited {
    padding: 2vw;
}

#limited .limited_wrap {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #005371;
    width: 40em;
    margin: 0 auto;
    padding: 1em 2em;
    gap: 0.5em;
}

#limited p {
    display: inline-block;
    color: white;
    font-weight: bold;
    letter-spacing: 0.1em;
    font-size: 15px;
}

#limited a {
    background-color: white;
    padding: 0.3em 1em;
    font-size: 13px;
    font-weight: bold;
    color: #0b1f36;
    transition: all 0.2s;
    border-radius: 5px;
}

#limited a:hover {
    background-color: #0b1f36;
    color: white;
}

@media all and (max-width: 767px) {
    #limited {
        padding: 5vw 5vw;
    }

    #limited .limited_wrap {
        text-align: center;
        width: 100%;
        padding: 1em;
        gap: 0.5em;
    }

    #limited p {
        font-size: 13px;
    }

    #limited a {
        font-size: 12px;
    }
}