html {
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    background-image: url('../img/webback.png?ver3.0.2');
    background-attachment: fixed;
    background-size: cover;
}

body {
    margin: 0;
    height: 100vh;
}

/* すべてのブラウザ向け基本設定 */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE, Edge 向け */
    scrollbar-width: none;
    /* Firefox 向け */
}

/* WebKit (Safari, Chrome) 向け */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.Text_bold {
    font-weight: bold;
    display: contents;
}

.Text_under_red {
    text-decoration: underline;
    text-decoration-color: red;
    text-decoration-thickness: 3px;
    display: inline;
}

.Text_under {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    display: inline;
}

.Text_wave_red {
    text-decoration: red wavy underline;
    display: inline;
    -webkit-text-decoration: red wavy underline;
}

.Text_center {
    text-align: center;
}

.w10 {
    width: 100%;
    margin: auto;
}

.w6 {
    width: 60%;
    margin: auto;
}

.w3 {
    width: 30%;
    margin: auto;
}

.to-book {
    width: 80px;
    margin: 0 20px 0 auto;
}

.to-book>img {
    width: 80px;
}

.youtube {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------------------------- */

/* ヘッダー */
.header {
    width: 100vw;
    height: 64px;
    z-index: 99;
}

.header-container {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    height: 64px;
    text-align: center;
    box-shadow: 0 1px 8px #000;
    background-color: #fef7ec;
    z-index: 98;
}

.header-container__item {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #000;
}

.item-logo {
    flex: 1;
}

.item-logo>img {
    max-width: 90%;
    max-height: 54px;
}

.item-button {
    width: 120px;
    margin-right: 12px;
}

.item-menu {
    width: 40px;
    margin-right: 12px;
}

.sum-button {
    width: 100%;
    height: 40px;
    background-image: url("../img/importantInfo-button.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
}

/* ---------------------------- */

/* 重要事項まとめモーダル */
.modalScroll,
.ScrollContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.32);
    z-index: 100;
}

.modalScroll {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 85vw;
    max-width: var(--max-width);
    height: 90vh;
    padding: 20px;
    border-radius: 10px;
    overflow-y: auto;
}

.modal_bg {
    background: rgba(0, 0, 0, 0.32);
    height: 100vh;
    position: absolute;
    width: 100%;
}

.js-modal-close {
    color: #555;
}

.ScrollContent {
    overflow-y: scroll;
    height: 90%;
    width: 95%;
    border-radius: 20px;
}

::-webkit-scrollbar {
    border-radius: 10px;
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: #b6b6b6;
    border-radius: 10px;
}

.modal_content {
    color: rgb(49, 49, 49);
    text-align: center;
    text-align: center;
}

.important_text>img {
    width: 90%;
}

.no-scroll {
    overflow: hidden;
}

.close-button {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 40px;
    color: #555;
    text-decoration: none;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}

/* ---------------------------- */

/* ハンバーガーメニューのボタン */
.header_ham-menu {
    width: 100%;
    height: 40px;
    border-radius: 50%;
    background-color: #ffb200;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

.menu-btn {
    position: relative;
    /*ボタン内側の基点となるためrelativeを指定*/
    width: 100%;
    height: 100%;
}

/*ボタン内側:三本線のスタイル*/
.menu-btn span {
    display: inline-block;
    transition: all 0.4s;
    /*アニメーションの設定*/
    position: absolute;
    left: 9px;
    top: 5px;
    height: 2px;
    /*Android端末で線の太さの違い出る対策*/
    transform: scaleY(0.5) translateY(1px);
    /*Android端末で線の太さの違い出る対策*/
    border-radius: 2px;
    background: #fff;
    width: 50%;
}

/* 上の線 */
.menu-btn span:nth-of-type(1) {
    top: 11px;
}

/* 真ん中の線 */
.menu-btn span:nth-of-type(2) {
    top: 18px;
}

/* 下の線 */
.menu-btn span:nth-of-type(3) {
    top: 25px;
}

/*activeクラスが付与されると線が回転して×に*/
.menu-btn.active span:nth-of-type(1) {
    top: 12px;
    left: 9px;
    transform: translateY(6px) rotate(-45deg);
    width: 50%;
    height: 1px;
    /*Android端末で線の太さの違い出る対策*/
}

.menu-btn.active span:nth-of-type(2) {
    opacity: 0;
    /*真ん中の線は透過*/
}

.menu-btn.active span:nth-of-type(3) {
    top: 24px;
    left: 10px;
    transform: translateY(-6px) rotate(45deg);
    width: 50%;
    height: 1px;
    /*Android端末で線の太さの違い出る対策*/
}

/* ドロップダウンメニュー */

/* ナビゲーション全体を囲うタグ */
#menu-nav {
    position: fixed;
    z-index: 97;
    color: #fff;
    background-color: #ffb200;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.3;
    width: 100%;
    top: -120%;
    transition: all 0.3s;
}

/*アクティブクラスがついたら表示位置変更*/
#menu-nav.panel-active {
    max-width: var(--max-width);
    width: 100%;
    top: 64px;
    transition: all 0.3s;
}

/* ナビゲーション本体 */
.nav-container {
    width: 100%;
}

.nav-container__item {
    height: 50px;
    border-bottom: 1px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-container__item:last-of-type {
    border-bottom: 0;
}

.nav-container__item>a {
    display: inline-block;
}

/* body */
.content {
    padding: 20px 15px;
    margin-bottom: 30%;
}

.content img {
    width: 100%;
    margin: auto;
}

/* 画像枠線 */
.content .bracket-frame {
    position: relative;
    display: inline-block;
}

.content .bracket-frame::before,
.content .bracket-frame::after {
    content: "";
    position: absolute;
    width: 95%;
    height: 90%;
    border: 1px solid grey;
}

.content .bracket-frame::before {
    top: -5px;
    right: -5px;
    border-left: none;
    border-bottom: none;
}

.content .bracket-frame::after {
    bottom: 0;
    left: -5px;
    border-right: none;
    border-top: none;
}

.logo-bottom {
    max-width: 240px;
    max-height: 40px;
    float: right;
    padding-top: 30px;
}

/* ---------------------------- */

/* フッター */
.footer {
    width: 100vw;
    height: 64px;
    z-index: 1000;
}

.footer-container {
    display: flex;
    position: fixed;
    bottom: 10px;
    left: 10px;
    width: fit-content;
    height: 64px;
    text-align: center;
    background-color: transparent;
}

.footer-container__item {
    display: flex;
    position: relative;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #9b9b9b;
}

.footer-item__link {
    width: 90%;
    height: 100%;
    margin: auto;
    text-decoration: none;
}

.footer-item__icon {
    display: block;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1.2rem;
}

.image-button {
    width: 50px;
    height: 50px;
    background-image: url("../img/phone.png");
    background-color: #ff4f00;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 10px #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/*モーダル用*/
.js-modal__bg {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    display: none;
    transition: background-color 0.3s ease;
    /* 背景色の変化にトランジションを追加 */
}

.js-modal__bg.darkened {
    background-color: rgba(0, 0, 0, 0.6);
    /* 暗くなるエフェクト */
}

.phone-modal-container {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.phone-bar::after {
    content: "";
    position: absolute;
    top: 15px;
    /* 親要素の上に配置するために負の値を使用 */
    left: 0;
    right: 0;
    height: 5px;
    background-color: #fff;
    margin: 0 auto;
    border-radius: 3px;
    width: 20%;
    /* 必要に応じて調整 */
}

.js-modal__main {
    z-index: 100;
    width: 90%;
    height: calc(var(--vh, 1vh) * 100 - 140px);
    padding: 35px 10px 10px 10px;
    bottom: calc(0vh + 16px);
    margin: auto;
    background: #000;
    border-radius: 30px;
    position: fixed;
    z-index: 11;
    opacity: 0;
    display: none;
}

.js-modal__bg._active,
.js-modal__main._active {
    display: block;
}

.js-modal__main._hidden {
    display: none;
}

.js-modal__main._ac .js-modal__btn {
    color: #76952f;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.js-modal__btn--close {
    margin-top: 40px;
    text-align: center;
    text-decoration: underline;
}

.js-modal__btn--close--fix {
    width: 30px;
    height: 30px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: -15px;
    right: 5px;
    color: #000;
    z-index: 101;
}

.js-modal__btn--close--fix:before {
    content: "";
    width: 20px;
    height: 20px;
    border-right: 3px solid #fff;
    transform: rotate(-45deg);
    position: absolute;
    top: 12px;
    left: -3px;
}

.js-modal__btn--close--fix:after {
    content: "";
    width: 20px;
    height: 20px;
    border-right: 3px solid #fff;
    transform: rotate(45deg);
    position: absolute;
    top: -2px;
    left: -3px;
}

/*下から上*/
@keyframes SlideUp {
    0% {
        opacity: 0;
        transform: translateY(60%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*上から下*/
@keyframes SlideDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(60%);
    }
}

.js-modal__main._slideUp {
    z-index: 88;
    animation: SlideUp 0.5s ease-in-out forwards;
}

.js-modal__main._slideDown {
    z-index: 88;
    animation: SlideDown 0.5s ease-in-out forwards;
}

/* スマホモーダル中身 */
.tabs {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    border-radius: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}

/* 手紙通知用のポップアップ */

.letter_popup {
    display: none;
    width: 100%;
    opacity: 1;
    position: fixed;
    top: 64px;
    left: 0;
}

.letter_popup .slideout {
    display: none;
    width: 100%;
    opacity: 1;
    position: fixed;
    top: 64px;
    left: 0;
    z-index: 90;
}


.letter_popup_content {
    background: #fff;
    padding: 20px;
    width: 50%;
    border: 2px solid #000;
}

.letter_popup.activate {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideinTop 1s;
}

.letter_popup.slideout {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideoutTop 1s;
    animation-fill-mode: forwards;
}

.main-letter-message {
    text-align: center;
}

.sub-letter-message {
    text-align: center;
}

@keyframes slideinTop {
    0% {
        transform: translateY(-70px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes slideoutTop {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-120%);
        display: none;
    }
}

.letter_popup.activate {
    z-index: 90;
}

.check_letter_button {
    background: #ff4f00;
    border-radius: 3px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 250px;
    padding: 10px 25px;
    font-family: "Noto Sans Japanese";
    color: white;
    line-height: 1.8;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    font-weight: 500;
    border: none;
}

/* ゲームプレイ時間外 */
.gameplay-restriction {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: fit-content;
    max-width: 60%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    z-index: 1000;
    background-color: #ff4f00;
    color: white;
    border-radius: 7px;
}

/* サブテキスト用 */
.to-book-msg,
.sub-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    color: #fff;
}



.check_loc#to-book-img {
    display: none;
}

.check_loc_msg {
    color: white;
}

.alpha_6-sub-next-container {
    background: #fff;
    padding: 20px;
    width: 50%;
    border: 2px solid #000;
    border-radius: 5%;
    display: none;
    margin-bottom: 5%;
    margin-top: 5%;
}

.alpha_6-sub-next-container>p {
    color: #000;
}

:root {
    --max-width: 540px
}


@media screen and (min-width: 540px) {

    html {
        font-size: 20px;
    }

    .header {
        margin: auto;
        width: var(--max-width);
    }

    #menu-nav {
        width: var(--max-width) !important;
    }

    .header-container {
        width: var(--max-width);
    }

    .body-main-content {
        width: var(--max-width);
        margin: auto;
    }

    .footer {
        width: var(--max-width);
    }

    .js-modal__main._active {
        width: calc(var(--max-width) - 30px);
        margin: auto !important;
    }

    .image-button {
        width: 80px;
        height: 80px;
    }

    .entering-content {
        width: var(--max-width);
        margin: auto;
    }

}