img {
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: #FFFFFF;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    color: #FFFFFF;
    background-image: url("../images/bgimage.webp");
    background-repeat: repeat;
}
.inline-block {
    display: inline-block;
}
.main_visual {
    width: 100%;
    height: 80vh;
    position: relative;
}
.main_visual .line {
    background-image: url(../images/header_line.svg);
    height: 46px;
    background-repeat: repeat;
    width: 100%;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.slide_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out; 
    z-index: 1; 
}

.slide_img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.slide_img.active {
    opacity: 1; 
    z-index: 2; 
}
.main_visual img.main_title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%)translateY(20px);
    bottom: -15vh;
    max-width: 829px;
    width: 70%;
    opacity: 0;
    transition: 2s ease;
    z-index: 10;
}
.main_visual img.main_title.active {
    opacity: 1;
    transform: translateX(-50%)translateY(0);
}
.main_contents {
    margin: 25vh auto 0;
    padding-top: 0;
    max-width: 1080px;
    width: 90%;
    position: relative;
}
.main_contents .pattern {
    position: absolute;
    width: 55%;
    aspect-ratio: 1 / 1;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(../images/pattern.svg);
    mix-blend-mode: multiply;
    opacity: 0.38;
}
.main_contents .content_box {
    position: relative;
    z-index: 10;
}
.main_contents hgroup {
    text-align: center;
}
.main_contents hgroup h1 {
    color: #FFFF00;
    margin: 0;
    font-size: clamp(18px, 3.6vw, 60px);
    font-weight: 900;
}
.main_contents hgroup p {
    margin: 0;
    font-size: clamp(18px, 1.8vw, 30px);
    font-weight: 900;
}
.default_text {
    text-align: center;
    font-size: clamp(18px, 1.8vw, 25px);
    font-weight: bold;
    line-height: 1.8;
}
.present_box {
    border: 1px solid #FFFFFF;
    position: relative;
    z-index: 10;
    max-width: 740px;
    width: 80%;
    margin: 25px auto;
    padding: 20px;
    box-sizing: border-box;
}
.present_box img {
    position: absolute;
    right: 2%;
    top: 42%;
    transform: translateY(-50%);
    width: 32%;
}
.present_box .text span {
    font-size: clamp(12px, 2vw, 22px);
    font-weight: bold;
}
.present_box .text p {
    font-size: clamp(18px, 3.7vw, 40px);
    font-weight: 900;
    margin: 5px 0 0 0;
    line-height: 1.2;
}
.form_link {
    display: block;
    margin: 0 auto 20px;
    background-image: url(../images/botton.png);
    max-width: 563px;
    aspect-ratio: 563 / 119;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(18px, 3.7vw, 40px);
    font-weight: 900;
    transition: all 0.4s;
}
.form_link:hover {
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.8);
    color: #FFFF00;
}
.caution_text {
    text-align: center;
    font-weight: bold;
    font-size: clamp(12px, 2vw, 18px);
}
.day_comment {
    margin: 0 auto 20px;
    max-width: 651px;
    width: 58%;
    img {
        width: 100%;
        height: auto;
    }
}
footer {
    width: 100%;
    margin-top: 70px;
    background-color: #000;
    padding: 15px 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media  screen and (max-width:767px) {
    .main_visual {
        height:350px;
    }   
    .main_visual img.main_title {
        width: 90%;
        bottom: -20px;
        max-width: 450px;
    }
    .main_contents {
        margin: 15% auto 0;
    }
    .main_contents .pattern {
        width: 90%;
    }
}
@media  screen and (max-width:767px) {
    .main_contents hgroup p {
        font-size: 20px;
    }
    .main_contents hgroup h1 {
        font-size: 30px;
    }
    .default_text {
        font-size: 16px;
    }
    .present_box {
        width: 95%;
        padding: 10px 10px 15px;
        max-width: 350px
    }
    .present_box img {
        width: 80px;
        top: 70%;
    }
    .present_box .text p {
        font-size: 20px;
    }
    .present_box .text span {
        font-size: 14px;;
    }
    .form_link {
        background-size: contain;
        max-width: 350px;
        font-size: 20px;
    }
    .caution_text {
        font-size: 14px;
    }
    .main_visual .line {
        height: 25px;
        top: 20px;
        background-size: contain;
        background-repeat: no-repeat;
    }
    .day_comment {
        width: 70%;
    }
}