@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;900&display=swap');
@import url('https://fonts.cdnfonts.com/css/freestyle-script');

article,
article h1, 
article h2, 
article h3{
    font-family: ten-mincho, serif;
    font-style: normal;
    font-weight: 400;
    color: #000;
}
.sp{
    display: none;
}
.text-center{
    text-align: center;
}
.img{
    opacity: 0;
    transform: translateY(20px);
}
.fullimg{
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    height: 600px;
    opacity: 0;
}
.contents{
    width: 1100px;
    max-width: 100%;
    margin: auto;
}
.img_contents{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 180px auto;
}
.vertical{
    writing-mode: vertical-rl;
    line-height: 2.5em;
    margin: auto;
}
.vertical span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}
#mainvisual{
    background-image: url(../img/wabi-goggle_main_pc.jpg);
    position: relative;
}
#wabi_text h1{
    color: #fff;
    margin: 0 0 5px;
    font-size: 2em;
    line-height: 1.4em;
}
.catch{
    text-align: center;
    margin: 120px auto;
}
#image01{
    background-image: url(../img/wabi-goggle_01.jpg);
}
/*.text-block{
    margin-right: 30px;
}*/
.text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Safariが潰さないように以下を追加 */
    min-width: 10em;
    flex-shrink: 0;
    overflow: hidden;
}
.text-block h4{
    font-size: 2em;
    line-height: 1.8em;
}
.img-block{
    position: relative;
}
.img-block img{
    opacity: 0;
    display: block;
    max-width: 100%;
    height: auto;
}
.img-block h3 {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 4.5em;
    font-weight: bold;
    white-space: nowrap;
}
.img_over{
    position: relative;
}
.img_over img{
    opacity: 0;
}
.img_over1 img.image-left{
    width: 65%;
}
.img_over1 .image-right-wrapper {
    position: absolute;
    width: 45%;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.img_over2{
    text-align: right;
}
.img_over2 img.image-right2{
    width: 65%;
}
.img_over2 .image-left-wrapper {
    position: absolute;
    width: 45%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.img_over3{
    margin: 0 auto;
    text-align: center;
}
.img_over3 img.image-center{
    width: 65%;
    margin: 250px auto;
}
.img_over3 img.image-left{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 30%;
    opacity: 0;
}
.img_over3 .image-right-wrapper {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 30%;
    transform: translateY(0);
}
.img_over4 img.image-left{
    width: 50%;
}
.img_over4 .image-right-wrapper {
    position: absolute;
    width: 50%;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
p.bottomtext{
    color: #000;
    margin-bottom: 0;
    font-size: 18px;
}
#wabi_text_bottom{
    margin: 80px auto 150px;
}
#wabi_text_bottom_inner{
    display: inline-block;
    background-color: rgba(0,0,0,0.4);
    padding: 20px 50px;
    max-width: 100%;
    box-sizing: border-box;
    font-family: 'Shippori Mincho', serif;
    font-size: 1.3em;
    color: #fff;
}
#wabi_text_bottom_inner p{
    color: #fff;
    padding: 0;
    margin: 0 0 5px;
    font-size: 2em;
    line-height: 1.4em;
}
#wabi_text_bottom_inner a{
    transition: 0.4s;
    color: #fff;
    font-family: 'Shippori Mincho', serif;
}
#wabi_text_bottom_inner a:hover{
    opacity: 0.6;
}

@media screen and (max-width: 850px) {
    .img_over3 img.image-center{
        margin: 180px auto;
    }
}
@media screen and (max-width: 600px) {
    h2,
    .vertical{
        font-size: 2em;
    }
    .catch{
        margin: 80px auto;
    }
    .fullimg{
        height: 400px;
    }
    .img_contents{
        margin: 120px auto;
    }
    .img-block h3{
        font-size: 2.5em;
    }
    .text-block{
        min-width: 6em;
    }
    .text-block h4{
        font-size: 1.3em;
        line-height: 1.8em;
    }
    .img_over3 img.image-center{
        margin: 120px auto;
    }
    p.bottomtext{
        padding: 0 10px;
        box-sizing: border-box;
        text-align: left;
    }
    #wabi_text_bottom{
        margin: 60px auto 120px;
    }
}
@media screen and (max-width: 480px) {
    .pc{
        display: none;
    }
    .sp{
        display: unset;
    }
    h2, .vertical{
        font-size: 1.6em;
    }
    #mainvisual{
        background-image: url(../img/wabi-goggle_main_sp.jpg);
    }
    .catch{
        margin: 60px auto;
    }
    .fullimg{
        height: 300px;
    }
    .img_contents{
        margin: 80px auto;
    }
    .img-block h3{
        font-size: 2em;
    }
    .img_over3 img.image-center{
        margin: 80px auto;
    }
    p.bottomtext{
        font-size: 16px;
    }
}