@charset "UTF-8";

/* ヘッダー */
.header {
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.header_inner {
    position: relative;
}

.header_nav {
    position: absolute;
    right: 0;
    right: 0;
    top: 0;
    width: 345px;
    height: 100dvh;
    padding: 10svh 0 36px;
    transform: translateX(100%);
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.30);
    transition: ease .4s;
}

.nav_items_item:not(:last-of-type) {
    margin-bottom: 24px;
}

.nav_items_item a {
    position: relative;
    color: var(--white);
    width: 100%;
    font-size: clamp(2.4rem, 2.4vw, 3rem);
    line-height: 1;
}

.nav_items_item a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: 0.3s ease-out;
}

.bnn_items_wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bnn_item {
    margin: auto;
}

.bnn_item a {
    transition: 0.5s;
}

@media (hover:hover) {
    .bnn_item a:hover {
        opacity: 0.6;
    }
}

@media (hover:hover) {
    .nav_items_item a:hover::after {
        width: 100%;
    }
}

.nav_items_item:last-child a {
    margin-bottom: 0;
}

/* ハンバーガーメニュー */
body.nav-open {
    overflow: hidden;
}

#js_nav {
    overflow-y: auto;
}

.header_hamburger {
    width: 48px;
    height: fit-content;
}

.hamburger {
    position: absolute;
    top: 30px;
    right: 40px;
    background-color: transparent;
    border-color: transparent;
    z-index: 9999;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 1px;
    background-color: var(--white);
    position: relative;
    transition: ease .4s;
    display: block;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    margin: 8px 0;
}

.hamburger span:nth-child(3) {
    top: 0;
}


/* ハンバーガーメニュークリック後のスタイル */
.header_nav.active {
    transform: translateX(0);
}

.hamburger.active span:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;

}

.hamburger.active span:nth-child(3) {
    top: -13px;
    transform: rotate(-45deg);
}

/* Xモーダル */
.sns_items {
    display: inline-flex;
    align-items: center;
    gap: 22px;
}

.sns_items_item {
    position: relative;
}

.sns_items_item a:hover {
    opacity: 0.7;
}

@media (hover:hover) {
    .sns_items_item a:hover {
        opacity: 0.7;
    }
}

.modal-open {
    position: relative;
}

.x_modal {
    position: absolute;
    top: -130px;
    left: 0;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    box-sizing: border-box;
}

.x_modal:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
    margin-left: -0.2em;
}

.x_modal.is-active {
    opacity: 1;
    visibility: visible;
}

.x_link_wrap a {
    color: var(--black);
    transition: 0.3s ease-out;
}

@media (hover:hover) {
    .x_link_wrap a:hover {
        opacity: 0.4;
    }
}

/* モーダル内側の指定 */
.modal-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    max-width: 600px;
    width: 90%;
}

/* モーダルを閉じるボタンの指定 */
.modal-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: -20px;
    width: 40px;
    height: 40px;
    color: #fff;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
}

.modal-close::before,
.modal-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 18px;
    background: #fff;
}

.modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーダルのコンテンツ部分の指定 */
.modal-content {
    background: rgb(255, 255, 255, 0.7);
    text-align: left;
    line-height: 1.8;
    padding: 20px;
}

/* モーダルのコンテンツ部分のテキストの指定 */
.modal-content p {
    margin: 1em 0;
}

@media screen and (max-width:569px) {
    .header_nav {
        width: 100%;
        padding: 72px 0 36px;
        gap: 32px;
        background: rgba(0, 0, 0, 0.5);
    }

    .hamburger {
        top: 24px;
        right: 24px;
    }

    .header_hamburger {
        width: 38px;
    }

        .nav_items_item a {
            font-size: clamp(1.8rem, 5.4vw, 2.4rem);
        }

    .bnn_item {
        width: 80%;
    }
}

/* 言語切り替え */
.language {
    position: fixed;
    top: 29px;
    right: 132px;
    z-index: 1000;
}

.language ul {
    display: flex;
}

.language ul li {
    margin-left: 16px;
    color: #fff;
}

.language ul li:first-child {
    margin-left: 0;
}

.language ul li a {
    color: #fff;
    text-decoration: none;
}

.language ul li.fb {
    font-weight: bold;
}

@media screen and (max-width:569px) {
    .language {
        top: 22px;
        right: 100px;
    }
}