@charset "utf-8";

.mein_visual {
    position: relative;
}

.slide {
    margin-top: 100px;
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
}

.slide-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: slider-1 24s linear infinite;
}

.slide-image:nth-child(1) {
    background-image: url(../img/slider/slider01.jpg);
    animation-delay: -2s;
}

.slide-image:nth-child(2) {
    background-image: url(../img/slider/slider04.jpg);
    animation-delay: 4s;
}

.slide-image:nth-child(3) {
    background-image: url(../img/slider/slider03.jpg);
    animation-delay: 10s;
}

.slide-image:nth-child(4) {
    background-image: url(../img/slider/slider02.jpg);
    animation-delay: 16s;
}

@keyframes slider-1 {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    4.16% {
        opacity: 1;
    }

    33.33% {
        opacity: 1;
    }

    41.66% {
        opacity: 0;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
    }
}

.mein_visual h1 {
    color: #fff;
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-20%, -50%) !important;
    font-size: 4.5rem;
    max-width: 1120px;
    font-weight: bold;
}

.mein_visual h1 span {
    display: block;
    font-size: 1rem;
}

h2 {
    font-size: 3rem;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    text-align: center;
    color: #c30d23;
}

h2 span {
    font-size: 1rem;
    display: block;
    color: #000;
}

h2 span::after {
    display: block;
    content: "│";
    font-size: 3rem;
    margin: 0 auto 25px;
    color: #eee;
}

.about_us {
    padding-top: 100px;
    /*
    background-image: url(../img/about_box_bg.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    */
}

.about_box {
    max-width: 1280px;
    margin: 50px auto;
    display: flex;
}

.about_box > div {
    width: 50%;
    padding-right: 40px;
}

.about_box p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.more_button a {
    background: #eee;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 240px;
    padding: 10px 25px;
    color: #313131;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}

.more_button a:before {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    right: -2em;
    transform: translateY(calc(-50% - 2px)) rotate(30deg);
    width: 12px;
    height: 2px;
    background-color: #c30d23;
    transition: 0.3s;
}

.more_button a:after {
    content: "";
    position: absolute;
    top: 50%;
    right: -2em;
    transform: translateY(-50%);
    width: 60px;
    height: 2px;
    background-color: #c30d23;
    transition: 0.3s;
}

.more_button a:hover:before,
.more_button a:hover:after {
    right: -2.5em;
}

.more_button a:hover {
    background: #000000;
    color: #fff;
    font-weight: bold;
}

.service {
    margin-top: 100px;
    padding-top: 100px;
    background: #f5f5f5;
}

.service_box > div {
    max-width: 1000px;
    margin: 50px auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.service_box div.more_button {
    width: 25%;
}

.service ul {
    display: flex;
}

.service li {
    width: calc(100% / 3);
    position: relative;
}

.service-img {
    cursor: pointer;
    overflow: hidden;
    width: 100%;
}

.service-img img {
    width: 100%;
    transition: transform 0.6s ease;
}

.service-img:hover img {
    transform: scale(1.1);
}

.service-txt {
    position: absolute;
    bottom: 0;
    left: 0;
    color: #fff;
    padding: 35px;
    z-index: 2;
}

.service-txt h3 {
    font-size: 1.5rem;
    font-weight: bold;
}

.service-img::before {
    background: rgb(199, 0, 0, 0.6);
    bottom: 0;
    content: "";
    height: auto;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.6s ease;
    width: 100%;
    z-index: 1;
}

.service-img:hover::before {
    opacity: 1;
}

/**/

.l-inner {
    position: relative;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10rem;
}

[class*="swiper"]:focus {
    outline: none;
}

.slide-media,
.thumb-media {
    position: relative;
    overflow: hidden;
}

.slide-media img,
.thumb-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
    display: grid;
    place-content: center;
    width: 6.4rem;
    height: 6.4rem;
    cursor: pointer;
    -webkit-transition: 0.8s;
    transition: 0.8s;
}

.swiper-button-prev::before,
.swiper-button-next::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    border-radius: 50%;
    background: #00000040;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    width: 1.2rem;
    height: 1.2rem;
    content: "";
    border: 1px solid #fff;
    border-width: 3px 3px 0 0;
}

.swiper-button-prev::after {
    margin-left: 0.4rem;
    transform: rotate(-135deg);
}

.swiper-button-next::after {
    margin-right: 0.4rem;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.swiper-button-disabled {
    pointer-events: none;
    opacity: 0;
}

.news {
    overflow: hidden;
    background: #c30d23;
    padding-top: 100px;
    padding-bottom: 100px;
    display: none;
}

.news h2 {
    text-shadow:
        1px 1px 0 #fff,
        -1px 1px 0 #fff,
        1px -1px 0 #fff,
        -1px -1px 0 #fff;
    font-size: 8rem;
    text-align: left;
}

.news .swiper {
    overflow: visible;
}

.news .swiper-controller {
    display: flex;
    gap: 1.6rem;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-top: 3.2rem;
}

.news .swiper-pagination {
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1.2rem 0.8rem;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin: 0 auto 0 0;
    text-align: center;
}

.news .swiper-pagination-bullet {
    width: 1.6rem;
    height: 3px;
    cursor: pointer;
    -webkit-transition: 0.8s;
    transition: 0.8s;
    vertical-align: top;
    background-color: #74000f;
    opacity: 100;
    border-radius: 0%;
}

.news .swiper-pagination-bullet-active {
    width: 4rem;
    background-color: #fff;
}

.news .swiper-button-prev,
.news .swiper-button-next {
    position: relative;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin: 0;
}

.news .swiper-button-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.news .swiper-button-disabled::before {
    box-shadow: green;
}

.news .swiper-slide {
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
}

.news .news_box {
    overflow: hidden;
    width: 25rem;
    border-radius: 4px;
    background: #fff;
    box-shadow: green;
}

.news .slide-media {
    padding-top: 62.5%;
}

.news .slide-media img {
    height: calc(100% + 16px);
    -webkit-transform: translateY(-16px);
    transform: translateY(-16px);
}

.news .slide-content {
    padding: 25px;
}

.news .slide-date {
    font-size: 1.2rem;
    line-height: 1;
    display: block;
}

.news .slide-title {
    line-height: 1.6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 3.2em;
    margin-top: 1.6rem;
}

@media only screen and (max-width: 1024px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    .l-inner {
        padding: 0 2rem;
    }
}

@media only screen and (max-width: 599px) {
    .pc-tab {
        display: none !important;
    }

    .news .news_box {
        width: 18rem;
    }
}

@media only screen and (min-width: 1025px) {
    .tab-sp {
        display: none !important;
    }

    .swiper-button-prev::before,
    .swiper-button-next::before {
        -webkit-transition: 0.8s;
        transition: 0.8s;
    }

    .swiper-button-prev:hover::before,
    .swiper-button-next:hover::before {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }

    .news .news_box {
        -webkit-transition: 0.8s;
        transition: 0.8s;
    }

    .news .news_box img {
        -webkit-transition: 0.8s;
        transition: 0.8s;
    }

    .news .news_box:hover {
        -webkit-transform: translateY(-16px);
        transform: translateY(-16px);
    }

    .news .news_box:hover img {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .slide {
        margin-top: 0;
    }

    .mein_visual h1 {
        left: 17%;
        transform: translate(-17%, -50%) !important;
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h2 span::after {
        margin: 0 auto;
    }

    .slide {
        height: 500px;
    }

    .about_us {
        background-position: top center;
        background-size: cover;
        padding-top: 50px;
    }

    .about_box {
        flex-direction: column-reverse;
        width: 100%;
        margin: 20px auto;
    }

    .about_box > div {
        width: 100%;
        padding: 20px;
    }

    .more_button a {
        max-width: 70%;
    }

    .service {
        padding-bottom: 100px;
    }

    .service_box .active p {
        padding: 15px;
    }

    .service_box div.more_button {
        width: 100%;
    }

    .service ul {
        flex-direction: column;
    }

    .service li {
        width: 90%;
        margin: 10px auto;
    }

    .service-txt {
        padding: 15px;
        background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    }

    .service_box > div {
        flex-direction: column;
        align-items: center;
        max-width: 1000px;
        margin: 10px auto 50px;
    }

    .service-txt h3 {
        font-size: 1.2rem;
        background: #c30d23;
        display: inline-block;
        padding: 0 15px;
    }

    .service-txt p {
        font-size: 0.9rem !important;
        margin-top: 15px;
    }

    .news {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .news h2 {
        font-size: 3rem;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}
