* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

h3 {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    color: #fff;
}

section {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* height: calc(var(--vh, 1vh) * 100);
    max-height: calc(var(--vh, 1vh) * 100); */
}

.parallax-bg {
    position: absolute;
    /* top: 0; */
    top: -50svh;
    left: 0;
    width: 100%;
    height: 210svh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translateZ(-1px) scale(2);
}

.content {
    max-width: 1200px;
    width: 95%;
    padding: 40px 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    /* position: relative; */
    position: absolute;
    top: 0;
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #a90000;
    margin-bottom: 40px;
    background-image: url('/img/title_txt_bg.jpg');
    background-repeat: repeat-x;
    background-size: contain;
    background-position: center;
}

.section-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    width: 300px;
}

.section-title img {
    max-width: 100%;
}

/* Hero Section */
#hero {
    height: 100dvh;
    /* height: calc(var(--vh, 1vh) * 100);
    max-height: calc(var(--vh, 1vh) * 100); */
    /* min-height: 100dvh;
    max-height: 100%; */
    background-image: url('/img/hero_bg.jpg?v=25052701');
    background-size: cover;
    background-position:top center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 80%;
    max-width: 600px;
    margin-bottom: 50px;
}

/* Pre-registration Section */
#pre-register {
    position: relative;
}

#pre-register .parallax-bg {
    background-image: url('/img/bg_1.jpg');
}

.register-btn {
    background-color: #a90000;
    color: #fff;
    padding: 15px 80px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin: 20px 0;
    width: 80%;
    max-width: 400px;
}

/* News Section */
#news {
    position: relative;
}

#news .parallax-bg {
    background-image: url('/img/bg_3.jpg?v=25052801');
}

.news-container {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    padding: 20px;
    color: black;
    margin: 50px auto;
}

.news-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.news-date {
    padding: 2px 8px;
    margin-right: 10px;
    background-color: #f6b318;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    white-space: nowrap;
}

.news-tag {
    padding: 2px 8px;
    margin-right: 10px;
    background-color: #e0392b;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    white-space: nowrap;
}

.news-title {
    flex-grow: 1;
    font-size: 14px;
}

/* SNS Section */
.sns-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.sns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* width: 80px; */
    width: 250px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    margin: auto;
}

.sns-btn img {
    max-width: 100%;
}

/* Game Introduction Section */
#game-intro {
    position: relative;
}

#game-intro .parallax-bg {
    background-image: url('/img/bg_4.jpg?v=25052802');
}

.slide-container {
    width: 97%;
    max-width: 800px;
    margin: 40px 0;
    position: relative;
}

.slides {
    display: flex;
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
}

.slide {
    min-width: 100%;
    transition: 0.5s ease;
}

.slide img {
    width: 100%;
    height: auto;
}

.slide-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slide-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.slide-dot.active {
    background-color: #fff;
}



/* Footer */

/* .store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.store-btn {
    height: 40px;
}

.footer-info {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    text-align: left;
    font-size: 10px;
    line-height: 1.6;
}

.copyright {
    margin-top: 20px;
    font-size: 10px;
    color: #888;
} */






/* ----------------------- footer ------------------------ */
footer {
    font-size: 0.8rem;
    background-color: black;

    position: relative;
    /* background-color: #000; */
    /* padding: 30px 0;
    text-align: center;
    font-size: 12px;
    height: 400px; */
    /* 固定の高さ */
    /* display: flex;
    flex-direction: column;
    justify-content: space-between; */
}

.footer-store-info-bnr img {
    height: 45px;
    margin: auto 10px;
}

@media screen and (max-width:768px) {
    .footer-store-info-bnr img {
        height: 35px;
        margin: auto 5px;
    }
}

.footer-store-text-box {
    width: 760px;
    margin: auto;
}

@media screen and (max-width:768px) {
    .footer-store-text-box {
        width: 100%;
    }
}

.footer-store-text-box table {
    width: 390px;
    margin: auto;
    border-collapse: separate;
    border: 1px solid white;
    border-radius: 15px;
    padding: 10px 1px;
}

@media screen and (max-width:768px) {
    .footer-store-text-box table {
        width: 90%;
    }
}

.footer-store-text-box table td {
    /* border-bottom:2px solid white;
	border-right:2px solid white; */
}

.footer-store-text-box table td {
    padding: 0 5spx;
}

.footer-store-text-box table td {
    border-radius: 18px 0 0 0;
}

.footer-store-text-box table td:last-child {
    border-radius: 0 18px 0 0;
}

.footer-store-text-box table tr:last-child td {
    border-radius: 0 0 0 18px;
}

.footer-store-text-box table tr:last-child td:last-child {
    border-radius: 0 0 18px 0;
}

.footer-store-icon {
    border-radius: 5px;
}





@media (max-width: 768px) {
    .hero-logo {
        width: 90%;
    }

    .news-item {
        /* flex-direction: column; */
        flex-wrap: wrap;
    }

    .news-date,
    .news-tag {
        margin-bottom: 5px;
        display: inline-block;
    }

    .sns-links {
        flex-wrap: wrap;
    }

    .section-header {
        height: 80px;
        background-size: cover;
    }

    .section-title {
        font-size: 20px;
        width: 240px;
    }

    footer {
        height: 350px;
    }
}



.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 10%;
    /* 上部に配置 */
}

.game-logo {
    /* max-width: 80%; */
    max-width: 650px;
    width: 80%;
    height: auto;
    margin-bottom: 1rem;
}

.game-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* 下部のストアボタンコンテナ */
.store-buttons {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 3;
}

.store-button img {
    height: 60px;
    transition: transform 0.3s, filter 0.3s;
}

.store-button:hover img {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* 事前登録受付中の画像 */
.pre-register {
    position: absolute;
    bottom: calc(10% + 90px);
    /* ストアボタンの上に配置 */
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.pre-register img {
    max-width: 450px;
    height: auto;
}

.pre-register-img {
    width: 97%;
    margin-top: 5%;
}

.pre-register-img img {
    max-width: 100%;
    width: 500px;
    border-radius: 10px;
}

.pre-register-img .store-button img {
    height: 60px;
    width: auto;
    transition: transform 0.3s, filter 0.3s;
}

.pre-register-img .store-button:hover img {
    transform: translateY(-3px);
    filter: brightness(1.1);
}



.characters-container {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    /* 中央寄せに変更 */
    align-items: flex-end;
    /* 下部揃え */
    /* bottom: 10%; */
    bottom: 3%;
    z-index: 1;
    /* gap: 40px; */
    gap: 0px;
    /* キャラクター間の間隔をgapでも確保 */
}

.characters-container-heros img{
    max-width: 100%;
    max-height: 50svh;
}


.character {
    position: relative;
    transition: transform 0.3s ease;
    /* min-width: 500px; */
    /* PC/タブレットでの最小幅を500pxに固定 */
    /* max-width: 600px; */
    max-width: 100%;
    text-align: center;
}

/* PC用のキャラクター重なり設定（個別調整可能） */
.desktop-overlap-left {
    /* margin-right: -135px; */
    /* margin-right: -10px;
    margin-left: -140px; */
    /* 右側に重なる量 - 後から調整可能 */
    width: 25%;
}

.desktop-overlap-center {
    margin-left: -20px;
    /* 左側に重なる量 - 後から調整可能 */
    margin-right: -20px;
    /* 右側に重なる量 - 後から調整可能 */
    width: 50%;
}

.desktop-overlap-right {
    /* margin-left: -40px; */
    /* margin-left: -50px; */
    /* 左側に重なる量 - 後から調整可能 */
    width: 25%;
}

.character img {
    height: auto;
    width: 100%;
    /* width: auto; */
    /* max-height: 60vh; */
    max-width: 100%;
}

.character.front {
    z-index: 2;
    /* 前面のキャラクターを他のキャラクターより前に */
    transform: scale(1.1);
    /* 前面のキャラクターを少し大きく */
    min-width: 600px;
}
.character.front img{
    /* max-height: 75vh; */
    max-width: 75%;
}

.character.back {
    z-index: 1;
    /* 後ろのキャラクターのz-indexを設定 */
}

/* スマホ用の後ろのキャラクターの位置調整用クラス */
.character.back-left {
    transform: translateY(-30px);
    /* 上に少しずらす - 後から調整可能 */
}

.character.back-right {
    transform: translateY(-20px);
    /* 上に少しずらす - 後から調整可能 */
}

/* キャラクターのアニメーション用クラス */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

.float-animation-delay-1 {
    animation: float 3.5s ease-in-out infinite;
    /* アニメーション時間を延長 */
    animation-delay: 0.5s;
}

.float-animation-delay-2 {
    animation: float 4s ease-in-out infinite;
    /* さらにアニメーション時間を延長 */
    animation-delay: 1s;
}

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

    50% {
        transform: translateY(-5px);
    }

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.2));
    z-index: 1;
}

/* レスポンシブデザイン */
@media (max-width: 1600px) {
    .character {
        /* min-width: 500px; */
        min-width: 300px;
        /* 大きめ画面でも最小幅を500pxに固定 */
    }
}

@media (max-width: 1200px) {
    .character {
        /* min-width: 500px; */
        /* 中間サイズ画面でも最小幅を500pxに固定 */
    }
}

@media (max-width: 1024px) {
    .game-subtitle {
        font-size: 1.2rem;
    }

    .character {
        /* min-width: 500px; */
        /* タブレットでも最小幅を500pxに固定 */
        /* max-height: 60vh; */
    }

    .character img {
        max-height: 60vh;
    }

    .store-button img {
        height: 50px;
    }

    .pre-register img {
        max-width: 450px;
    }

    .hero-content {
        top: 10%;
        /* タブレットでのタイトル位置 */
    }
}

@media (max-width: 768px) {
    .characters-container {
        flex-direction: row;
        bottom: 10%;
        /* キャラを下部に */
        justify-content: center;
    }

    .character {
        min-width: 300px;
        /* スマホでは最小幅を300pxに */
    }

    /* タブレット用のキャラクター重なり設定（個別調整可能） */
    .tablet-overlap-left {
        margin-right: -40px;
        /* 右側に重なる量 - 後から調整可能 */
    }

    .tablet-overlap-center {
        margin-left: -40px;
        /* 左側に重なる量 - 後から調整可能 */
        margin-right: -40px;
        /* 右側に重なる量 - 後から調整可能 */
    }

    .tablet-overlap-right {
        margin-left: -40px;
        /* 左側に重なる量 - 後から調整可能 */
    }

    .character img {
        max-height: 50vh;
    }

    .store-button img {
        height: 40px;
    }

    .pre-register-img .store-button img {
        height: 50px;
        /* モバイルでのボタンサイズ調整 */
    }

    .pre-register img {
        max-width: 350px;
    }

    .store-buttons {
        bottom: 5%;
        gap: 15px;
    }

    .pre-register {
        bottom: calc(5% + 50px);
    }

    .hero-content {
        top: 15%;
        /* スマホでのタイトル位置 */
    }
}

@media (max-width: 480px) {
    #hero{
        height: 650px !important;
        min-height: 0;
    }


    .game-subtitle {
        font-size: 1rem;
    }

    .characters-container {
        bottom: 5%;
        /* モバイルでキャラクターを下部に */
        overflow: visible;
        position: relative;
        height: 50vh;
        /* コンテナの高さを設定 */
        display: flex;
        justify-content: center;
    }

    .character {
        /* min-width: 200px;  */
        min-width: 290px;
        /* 小型スマホ用の幅調整 */
        position: absolute;
        /* 絶対位置でスマホ用のレイアウトを実現 */
        bottom: 0;
        transform: none;
        /* デフォルトのtransformをリセット */
    }

    .character img {
        /* max-height: 45svh; */
        max-height: none;
        width: auto;
    }

    .character.front {
        z-index: 3;
        /* 前面のキャラクターを最前面に */
        left: 50%;
        /* 中央に配置 */
        transform: translateX(-50%) scale(1);
        /* 中央揃え */
        top: 55%;
        width: 320px;
        min-width: auto;
    }
    .character.front img{
        max-height: 52svh;
        max-height: none;
        max-width: 100%;
    }
    .character.back {
        z-index: 1;
        /* 背面のキャラクターのz-indexを設定 */
    }

    /* 個別に調整可能なスマホ用キャラクター位置 */
    .character.back-left {
        left: 50%;
        /* 中央から計算開始 */
        /* transform: translateX(calc(-50% - 50px)) translateY(-30px) scale(0.8);  */
        transform: translateX(calc(-50% - 100px)) translateY(-120px) scale(0.7);
        /* 左後ろのキャラクター - 後から調整可能 */
    }

    .character.back-right {
        left: 50%;
        /* 中央から計算開始 */
        /* transform: translateX(calc(-50% + 50px)) translateY(-20px) scale(0.8); */
        transform: translateX(calc(-50% + 85px)) translateY(-120px) scale(0.8);
        /* 右後ろのキャラクター - 後から調整可能 */
    }

    .store-buttons {
        flex-direction: row;
        /* モバイルでも横並びを維持 */
        align-items: center;
        gap: 10px;
        bottom: 8%;
        z-index: 4;
        /* キャラクターより前面に */
    }

    .store-button img {
        height: 40px;
        /* モバイルでのボタンサイズ調整 */
    }

    .pre-register-img .store-button img {
        height: 45px;
        /* モバイルでのボタンサイズ調整 */
    }

    .pre-register {
        bottom: calc(8% + 55px);
        /* ストアボタンの上に配置（調整） */
        z-index: 4;
        /* キャラクターより前面に */
    }

    .pre-register img {
        max-width: 280px;
    }

    .hero-content {
        top: 10%;
        /* モバイルでタイトルロゴを上部から20%の位置に */
        z-index: 4;
        /* キャラクターより前面に */
    }

    .game-logo {
        /* max-width: 70%; */
        max-width: 300px;
        width: 90%;
        /* モバイルでのロゴサイズ調整 */
    }
    .pre-register-img .sns-btn{
        width: 180px;
    }
}










/*==================================================
スライダーのためのcss
===================================*/
.slick-slide {
    height: auto !important;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
}

.slider {
    /*横幅94%で左右に余白を持たせて中央寄せ*/
    width: 94%;
    margin: 0 auto;
    padding: 0;
}

.slider img {
    /*width:30vw;*/
    /*スライダー内の画像を60vwにしてレスポンシブ化 */
    width: auto;
    height: 60svh;
    border-radius: 15px;
}

@media screen and (max-width:768px) {
    .slider img {
        height: 55svh;
    }
}

.slider .slick-slide {
    transform: scale(0.8);
    /*左右の画像のサイズを80%に*/
    transition: all .5s;
    /*拡大や透過のアニメーションを0.5秒で行う*/
    opacity: 0.5;
    /*透過50%*/
}

.slider .slick-slide.slick-center {
    transform: scale(1);
    /*中央の画像のサイズだけ等倍に*/
    opacity: 1;
    /*透過なし*/
}



.slider2 .slick-slide {
    height: auto !important;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
}

.slider2 {
    /*横幅94%で左右に余白を持たせて中央寄せ*/
    width: 94%;
    margin: 0 auto;
    padding: 0;
}

.slider2 img {
    /*width:30vw;*/
    /*スライダー内の画像を60vwにしてレスポンシブ化 */
    width: auto;
    height: 20svh;
    border-radius: 15px;
}

@media screen and (max-width:768px) {
    .slider2 img {
        height: 20svh;
    }
}

.slider2 .slick-slide {
    transform: scale(0.8);
    /*左右の画像のサイズを80%に*/
    transition: all .5s;
    /*拡大や透過のアニメーションを0.5秒で行う*/
    opacity: 0.5;
    /*透過50%*/
}

.slider2 .slick-slide.slick-center {
    transform: scale(1);
    /*中央の画像のサイズだけ等倍に*/
    opacity: 1;
    /*透過なし*/
}



/*矢印の設定*/

/*戻る、次へ矢印の位置*/
.slick-prev,
.slick-next {
    position: absolute;
    /*絶対配置にする*/
    top: 50%;
    cursor: pointer;
    /*マウスカーソルを指マークに*/
    outline: none;
    /*クリックをしたら出てくる枠線を消す*/
    border-top: 5px solid #c6c7c8;
    /*矢印の色*/
    border-right: 5px solid #c6c7c8;
    /*矢印の色*/
    height: 15px;
    width: 15px;
}

.slick-prev::before,
.slick-next::before {
    content: '' !important;
}

.slick-prev {
    /*戻る矢印の位置と形状*/
    left: -3.5%;
    transform: rotate(-135deg);
}

.slick-next {
    /*次へ矢印の位置と形状*/
    right: -3.5%;
    transform: rotate(45deg);
}

/*ドットナビゲーションの設定*/

.slick-dots {
    text-align: center;
    margin: 20px 0 0 0;
    padding-left: 0;
}

.slick-dots li {
    display: inline-block;
    margin: 0 5px;
    width: 10px;
    height: 10px;
}

.slick-dots li button {
    width: 10px;
    height: 10px;
}

.slick-dots button {
    color: transparent;
    outline: none;
    width: 16px;
    /*ドットボタンのサイズ*/
    height: 16px;
    /*ドットボタンのサイズ*/
    display: block;
    border-radius: 50%;
    background: #ccc;
    /*ドットボタンの色*/
}

/* .slick-dots .slick-active button{
    background:white;
    width: 10px;
    height: 10px;
    font-size: 12px;

} */
.slick-dots li button::before {
    /* font-size:2px!important; */
    content: '●';
    width: 10px;
    height: 10px;
    color: gray;
    font-size: 12px;
    line-height: 10px;
}

.slick-dots li.slick-active button:before {
    /* color: rgb(155, 18, 18); */
    color: white;
}


/* ------------------------ お知らせモーダル表示 -------------------- */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 9;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.mordalContents {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #eee;
    border-radius: 15px;
    width: 450px;
    /* height: 450px; */
    max-height: 75svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* row-gap: 65px; */
    row-gap: 3px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 10;
    padding: 15px;
    color: black;
}

.mordalContents.open {
    opacity: 1;
    visibility: visible;
}

.mordalContents p {
    overflow-y: auto;
}

.btn {
    width: 150px;
    height: 40px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    color: #fff;
    text-align: center;
}

.btn:hover {
    background-color: gray;
}

.closeBtn {
    background-color: #333;
}

.openBtn {
    /* background-color: rgb(234, 55, 55); */
    margin-top: 250px;
    margin-bottom: 250px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mordalContents {
        width: 330px;
        /* height: 330px; */
        max-height: 75svh;
        width: 90%;
        /* height: 60svh; */
        overflow-y: scroll;
    }

    .mordalContents p {
        font-size: 14px;
        overflow-y: scroll;
        padding: 3px;
    }
}

.md-news-title {
    padding: 10px 5px 15px;
    overflow-y: hidden !important;
    /* line-height: 1rem; */
    border-bottom: 1px solid gray;
    width: 100%;
}

@media (max-width: 768px) {
    .md-news-title {
        padding: 10px 5px 15px !important;
    }
}

.news-title-news-text-box .new::after {
    content: 'New!';
    /* 最後に入れたい任意の文字を入力 */
    font-size: 11px;
    /* 文字サイズを11pxに指定 */
    font-weight: bold;
    /* 太文字に指定 */
    line-height: 1.3;
    /* 行間を指定 */
    display: inline-block;
    /* line-heightの背景にも色を入れるため */
    color: #fff;
    /* 文字色を白に指定 */
    background: #F00;
    /* 背景色を赤に指定 */
    border-radius: 15px;
    /* 楕円形にするため角丸 */
    padding: 0 5px;
    /* 上下左右に少し余白 */
    margin-left: 10px;
    /* これを指定すれば上寄せや下寄せが可能 */
    vertical-align: baseline;
    /* これを指定すれば上寄せや下寄せが可能 */
}