header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    border-color: rgba(255, 255, 255, .5);
}


#mainvisual {
    width: 100%;
    position: relative;
}

#main-message {
    position: absolute;
    z-index: 9;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 0 5%;
    background: rgba(75, 75, 100, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 126px;
}

#main-message h1 {
    margin: 0;
    font-weight: bold;
    color: #FFF;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1rem;
}

#main-message h1 span {
    font-weight: normal;
    font-size: 1.5rem;
    line-height: 2rem;
}

#main-message h2 {
    text-align: center;
    color: #FFF;
    margin: 0;
    line-height: 1.5;
    font-size: 0.85rem;
}

#main-message h2 span {
    display: inline-block;
}

.swiper-slide {
    width: 100%;
    padding-top: 100%;
    padding-top: calc(100% + 126px);
    overflow: hidden;
    position: relative;
}

#mainvisual .swiper-pagination-progressbar {
    top: auto;
    bottom: 0;
}

#mainvisual .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background-color: #111;
}

.swiper-slide span {
    width: 100%;
    height: 100%;
    background: center center/cover no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}

.swiper-slide-active span,
.swiper-slide-duplicate-active span,
.swiper-slide-prev span {
    animation: mainvisual 10s linear 0s 1 normal both;
}

@keyframes mainvisual {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }

}

@media (min-width:768px) {

    .swiper-slide {
        padding-top: 35%;
        padding-top: calc(35% + 126px);
    }

    #main-message h1 {
        font-size: 4rem;
    }
}

#message {
    padding: 2rem 1rem;
    font-size: .95rem;
    background: #111;
    color: #FFF;
}

#service {
    position: relative;
    padding: 2rem 0;
}

#service h1 {
    margin: 0 0 2rem;
    font-weight: bold;
    font-size: 2.5rem;
    text-align: center;
}

#service a {
    display: block;
    background: #FFF;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, .1);
    margin-bottom: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
}

#service a figure {
    width: 70px;
    height: 70px;
    padding: 10px;
    margin-right: 1rem;
}

#service h2 {
    font-size: 1rem;
    margin: 0;
}

#service h2 span {
    font-size: .65rem;
    display: block;
    color: #555;
}

#service:after {
    content: ' ';
    width: 100%;
    padding-top: 56.25%;
    display: block;
    background: url(../images/bg-service.jpg) no-repeat center center/cover #888;
}

@media screen and (min-width:1024px) {
    .service-inner {
        width: 50%;
        margin-left: 50%;
        padding: 3rem 2rem 2rem 5vw;
    }

    #service h1 {
        text-align: left;
    }

    #service:after {
        width: 50%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        padding-top: 0;
    }
}

#news {
    padding: 2rem 0;
}

#news h1 {
    margin: 0;
    font-weight: bold;
}

.news-inner a {
    padding: 1rem;
    display: block;
    border-bottom: 1px solid #DDD;
}

.news-txt {
    display: flex;
    padding: 1rem 0 0;
    align-items: center;
}

.news-txt h2 {
    margin: 0;
    font-size: 1rem;
}

.news-txt h2 span {
    font-size: .75rem;
    display: block;
    color: #555;
}

.news-txt .day {
    font-weight: bold;
    font-size: .5rem;
    margin-right: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.news-txt .day span {
    display: block;
    font-size: 3.5em;
    letter-spacing: 0.05em;
}

.news-inner a figure {
    width: 100%;
}

@media screen and (min-width:768px) {
    .news-inner a {
        display: flex;
        justify-content: space-between;
    }

    .news-inner a figure {
        order: 2;
        width: 30%;
        transition: .5s;
        transform: scale(0.9);
    }

    .news-inner a:hover figure {
        transform: scale(1);

    }

    .news-txt .day {
        font-size: .7rem;
    }
}