/* 自定义字体 */
@font-face {
    font-family: myFont;
    src: url("../static/font/yt.ttf");
}
*{
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: myFont;
    font-weight: 800;
}

.box {
    width: 100%;
    scroll-behavior: smooth;
}

.nav-h {
    width: 100%;
    height: 60px;
    background-color: transparent;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px #2228317f solid;
    transition: all 1s ease;
    position: absolute;
    top: 0;
    z-index: 99;
}

.logo-box,
.logo-box>img {
    width: 125px;
    height: 50px;
}

.item-box {
    width: 200px;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item>a {
    color: #222831;
    text-decoration: none;
}

.video-box {
    width: 100%;
}

.video-box>video {
    width: 100%;
    object-fit: cover;
    position: absolute;
}

.video-mask {
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.title,
.des {
    font-size: 60px;
    color: transparent;
    background-image: url("../static/img/1983.png");
    background-clip: text;
    -webkit-background-clip: text;
    object-fit: cover;
    animation: title 6s infinite alternate linear;
}

.des {
    display: none;
    transition: all;
    background-image: url("../static/img/21845.png");
    animation: title 1s infinite alternate linear;
    transition: all 1s ease;
}

.title::selection,
.item-box::selection,
.des::selection {
    background-color: inherit;
    color: inherit;
}

.button-box {
    width: 100%;
    height: 60px;
    position: absolute;
    top: 70px;
    display: flex;
    justify-content: flex-end;
    justify-items: center;
}

.button-item {
    width: 30px;
    height: 30px;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px #ffffff solid;
    border-radius: 50%;
    background-color: gray;
}

.button-item>img {
    width: 60%;
    height: 60%;
}

.row-down {
    position: absolute;
    bottom: 100px;
    transition: all ease 1s;
    animation: down 1.5s infinite;
}

.content {
    width: 100%;
    height: 100vh;
    background-image: url("../static/img/t-bg.png");
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 15px;
}

.lb-img {
    width: 60%;
    height: 60%;
    background-color: transparent;
    position: absolute;
    z-index: 1;
}

.lb-item,
.lb-item>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 2;
}

.lb-item {
    transition: all 1s ease;
    display: none;
}

.lb-item[mask] {
    display: block;
    animation: lb 0.5s alternate;
}

.lb-button {
    width: 90%;
    height: 60px;
    position: absolute;
    z-index: 6;
    display: flex;
    justify-content: space-between;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lb-button>button {
    width: 50px;
    height: 50px;
    border: none;
    background-color: rgba(240, 248, 255, 0.553);
    border-radius: 50%;
}

.index-box {
    width: 100%;
    height: 30px;
    position: absolute;
    z-index: 6;
    background-color: transparent;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dot:not(:first-child) {
    margin-left: 10px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ffffffab;
    transition: all 1s ease;
}

.dot[current] {
    background-color: #ffffff;
}

.content-other {
    width: 100%;
    height: 100vh;
    background-image: url("../static/img/te.png");
    background-size: cover;
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow: hidden;
}

.fg-box {
    height: 90%;
    transition: all 0.5s ease;
    transform: scale(0.85) translate(0, 100%);
}

.fg-box>img {
    width: 100%;
    height: 100%;
}

.fg-box[show] {
    transform: scale(0.85) translate(0, 0);
}

.fg-box:hover {
    transform: scale(1);
}

.contact {
    width: 100%;
    height: 100vh;
    background-color: pink;
    background-image: url("../static/img/fg/アイキャッチ_ムラサメ.PNG"), url("../static/img/fg/アイキャッチ_芳乃.PNG");
    background-size: cover;
    background-repeat: no-repeat, no-repeat;
    background-position: 100%;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.contact-item {
    width: 200px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 30px;
    background-size: cover;
    background-position: 100%;
}

.contact-item:not(:first-child) {
    margin-top: 25px;
}

.contact-item[qq] {
    background-image: url("../static/img/13839.png");
}

.contact-item[wc] {
    background-image: url("../static/img/13849.png");
}

.contact-item[dy] {
    background-image: url("../static/img/13844.png");
}

.mask-top {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #0f1215be;
    display: none;
    transition: all 0.5s ease;
    animation: show 0.3s alternate linear;
}

.mask-top[out] {
    animation: out 1s forwards linear;
}

.mask-top[show] {
    display: flex;
}

.mask-top>img {
    width: 200px;
}

.mask-top>div {
    width: 50px;
    height: 50px;
    background-color: #222831;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-top: 20px;
}

.link {
    width: 100%;
    height: 45vh;
    background-color: #dbe2ef;
    background-image: url("../static/img/fg/アイキャッチ_茉子.PNG");
    background-size: cover;
    background-position: 0 50%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
}

.link-box {
    width: 50%;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.link-box>div>a {
    text-decoration: none;
    color: #f9f7f7;
}

.footer {
    width: 100%;
    height: 25px;
    font-size: 15px;
    color: white;
    text-align: center;
}
.footer-link{
    display: block;
    text-decoration: none;color: white;
}

/* 文字动画 */
@keyframes title {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 100%;
    }
}

@keyframes down {
    0% {
        bottom: 100px;
    }

    100% {
        bottom: 0;
    }
}

/* 轮播图切换动画 */
@keyframes lb {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes show {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes out {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

/* 媒体查询适应移动端 */
@media screen and (orientation: portrait) {

    .logo-box,
    .logo-box>img {
        width: 100px;
        height: 40px;
    }

    .nav-item {
        font-size: 13px;
    }

    .title,
    .des {
        font-size: 35px;
    }

    /* 隐藏滚动条 */
    .box::-webkit-scrollbar {
        display: none;
    }

    .lb-img {
        width: 90%;
        height: 30%;
    }

    .contact {
        background-position: 100%;
        background-size: 100vh;
    }

    .fg-box {
        /* width: 150px; */
        height: 20%;
        transition: all 0.6s ease;
        transform: scale(0.85) translate(0, 100vh);
    }

    .fg-box:hover {
        transform: scale(1);
    }
}