@charset "UTF-8";

#mainimg {
    position: relative;
    color: #fff;
    width: 100%;
    height: 100vh; /* disable Fallback */
    height: calc((var(--vh, 1vh) * 100) - 80px);
    min-height: 800px;
    overflow: hidden;
    z-index: 1;
    background-color: #fff;
    transition: all 0.3s;
}
#mainimg img {
    width: 100%;
}
#mainimg section {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}
.main_tx {
    width: 60%;
    max-width: 900px;
    line-height: 0;
    /*filter: drop-shadow(0 0 10px rgba(0,0,0,0.7));*/
}
.main_tx h2 {
    width: 50%;
    max-width: 500px;
    margin: 0 auto 4em;
}
.main_tx h4 {
    width: 25%;
    max-width: 250px;
    margin: 4em auto 0;
}
#mainimg section h6 {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.84em;
    font-weight: 400;
    line-height: 1;
}
@media screen and (max-width: 960px) {
#mainimg {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio:1 / 1.1;
    min-height: auto;
}
.main_tx {
    width: 70%;
    line-height: 0;
}
.main_tx h2 {
    width: 50%;
    max-width: 500px;
    margin: 0 auto 8vw;
}
#mainimg section h6 {
    bottom: 15px;
    right: 15px;
    font-size: 0.84em;
}

}

@media screen and (max-width: 520px) {
#mainimg {
    aspect-ratio:1 / 1.2;
}
.main_tx {
    width: 80%;
    line-height: 0;
}
.main_tx h2 {
    width: 50%;
    max-width: 500px;
    margin: 0 auto 10%;
}
#mainimg section h6 {
    bottom: 10px;
    right: 10px;
    font-size: 0.84em;
}

}