/*====== 9-1-1 縦線が動いてスクロールを促す =======*/

/*スクロールダウン全体の場所*/

.scrolldown1 {
    /*描画位置※位置は適宜調整してください*/
    position: absolute;
    left: 50%;
    bottom: 10px;
    height: 50px;
}

/*Scrollテキストの描写*/

.scrolldown1 span {
    /*描画位置*/
    position: absolute;
    left: -15px;
    top: -15px;
    /*テキストの形状*/
    color: black;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* 線の描写 */

.scrolldown1::after {
    content: "";
    /*描画位置*/
    position: absolute;
    top: 0;
    /*線の形状*/
    width: 1px;
    height: 30px;
    background: black;
    /*線の動き1.4秒かけて動く。永遠にループ*/
    animation: pathmove 1.4s ease-in-out infinite;
    opacity: 0;
}

/*高さ・位置・透過が変化して線が上から下に動く*/

@keyframes pathmove {
    0% {
        height: 0;
        top: 0;
        opacity: 0;
    }

    30% {
        height: 30px;
        opacity: 1;
    }

    100% {
        height: 0;
        top: 50px;
        opacity: 0;
    }
}

/*==================================================
印象編 4 最低限おぼえておきたい動き
===================================*/

/*印象編　4-9、4-10　背景色が伸びて出現（左から・右から）　*/

.bgextend {
    animation-name: bgextendAnimeBase;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    position: relative;
    overflow: hidden;
    /*　はみ出た色要素を隠す　*/
    opacity: 0;
}

/*.bgextend::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
}*/

@keyframes bgextendAnimeBase {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*中の要素*/

.bgappear {
    animation-name: bgextendAnimeSecond;
    animation-duration: 1s;
    animation-delay: 0.6s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes bgextendAnimeSecond {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/*印象編　4-9 背景色が伸びて出現（左から）*/

.bgLRextend::before {
    animation-name: bgLRextendAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    /*伸びる背景色の設定*/
}

@keyframes bgLRextendAnime {
    0% {
        transform-origin: left;
        transform: scaleX(0);
        background-color: #111;
    }

    50% {
        transform-origin: left;
        transform: scaleX(1);
        background-color: #111;
    }

    50.001% {
        transform-origin: right;
        background-color: #111;
    }

    100% {
        transform-origin: right;
        transform: scaleX(0);
        background-color: #111;
    }
}

/*印象編　4-9 背景色が伸びて出現（右から）*/

.bgRLextend::before {
    animation-name: bgRLextendAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #111;
    /*伸びる背景色の設定*/
}

@keyframes bgRLextendAnime {
    0% {
        transform-origin: right;
        transform: scaleX(0);
    }

    50% {
        transform-origin: right;
        transform: scaleX(1);
    }

    50.001% {
        transform-origin: left;
    }

    100% {
        transform-origin: left;
        transform: scaleX(0);
    }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/

.bgappearTrigger, .bgUDextendTrigger, .bgDUextendTrigger, .bgLRextendTrigger, .bgLRextendTrigger {
    opacity: 0;
}

.gnavi {
    flex-wrap: wrap;
    /*スマホ表示折り返し用なのでPCのみなら不要*/
    list-style: none;
}

.gnavi li a {
    display: block;
    text-decoration: none;
    color: #333;
}

.gnavi li {
    margin-bottom: 20px;
}

/*==================================================
　5-3-3 左から右に線が伸びる（下部）
===================================*/

.gnavi li a {
    /*線の基点とするためrelativeを指定*/
    position: relative;
    display: inline-block;
}

.gnavi li.current a, .gnavi li a:hover {
    color: #000;
}

.gnavi li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    bottom: -5px;
    left: 0;
    /*線の形状*/
    width: 100%;
    height: 2px;
    background: #000;
    /*アニメーションの指定*/
    transition: all .3s;
    transform: scale(0, 1);
    /*X方向0、Y方向1*/
    transform-origin: left top;
    /*左上基点*/
}

.gnavi_1 li a::after {
    width: 100%;
    left: 0;
}

/*現在地とhoverの設定*/

.gnavi li.current a::after, .gnavi li a:hover::after {
    transform: scale(1, 1);
    /*X方向にスケール拡大*/
}

/*========= レイアウトのためのCSS ===============*/

.lead {
    padding: 50px 20px;
}

body {
    overflow: hidden
}

.loadingAnim {
    width: 100%;
    height: 100vh;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000
}

.loadingAnim::after {
    content: "";
    display: block;
    width: 0;
    height: 100vh;
    background: black;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001
}

.loadingAnimAdd {
    -webkit-animation: loadingAnimAnim .7s forwards 2s ease-in-out;
    animation: loadingAnimAnim .7s forwards 2s ease-in-out
}

.loadingAnimAdd::after {
    -webkit-animation: loadingAnimAfrerAnim 1s forwards .5s ease-in-out;
    animation: loadingAnimAfrerAnim 1s forwards .5s ease-in-out
}

.catchWrapWrap {
    width: 50vw;
    height: calc(50vw * 0.22);
    position: absolute;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    z-index: 99
}

@media screen and (max-width: 768px) {
    .catchWrapWrap {
        width: 90vw;
        height: calc(90vw * 0.22)
    }
}

.catchWrap {
    width: 0;
    height: 100%;
    margin-bottom: 1em;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0
}

.catchWrapAdd {
    -webkit-animation: catchWrapAnim 1.5s forwards 3s;
    animation: catchWrapAnim 1.5s forwards 3s
}

.catchImg {
    width: 50vw;
    position: absolute;
    top: 0;
    left: 0
}

@media screen and (max-width: 768px) {
    .catchImg {
        width: 90vw
    }
}

.catchImg2 {
    width: 100%;
    opacity: 0
}

.catchImgAdd {
    -webkit-animation: imgAnim .1s forwards 3.5s;
    animation: imgAnim .1s forwards 3.5s
}

@-webkit-keyframes loadingAnimAfrerAnim {
    0% {
        width: 0%
    }

    100% {
        width: 100%
    }
}

@keyframes loadingAnimAfrerAnim {
    0% {
        width: 0%
    }

    100% {
        width: 100%
    }
}

@-webkit-keyframes loadingAnimAnim {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(100vw)
    }
}

@keyframes loadingAnimAnim {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(100vw)
    }
}

@-webkit-keyframes catchWrapAnim {
    0% {
        width: 0
    }

    100% {
        width: 100%
    }
}

@keyframes catchWrapAnim {
    0% {
        width: 0
    }

    100% {
        width: 100%
    }
}

@-webkit-keyframes imgAnim {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@keyframes imgAnim {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@media (max-width: 640px) {
    #hm3 {
        background-image: none
    }

    #hm1 {
        background-image: none
    }
}

.sub_wrapper .imgtitlebox .bgLRextendTrigger {
    width: 50%;
    position: absolute;
    right: 0;
    height: 100%;
    top: 0;
    bottom: 0;
}

.service_image {
    width: 100% !important;
    object-fit: cover !important;
    height: 100% !important;
}

.sub_wrapper .titlebox h2.en .title {
    padding-left: 30px;
    font-size: unset !important;
    letter-spacing: 3px;
    font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Helvetica Neue", HelveticaNeue, YuGothic, "Yu Gothic Medium", "Yu Gothic", Verdana, Meiryo, sans-serif;
}