@charset "UTF-8";

/* =========================
   基本設定
========================= */

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #999;
    font-family: sans-serif;
}

/* =========================
   背景
========================= */

.container{
    background-image: url("images/background.JPG");
    background-size: cover;
    background-position: center;
}
.bg {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
}

/* =========================
   キャラクター
========================= */

.character {
    position: absolute;
    left: 50%;
    bottom: 0;

    width: clamp(250px, 45vw, 600px);

    opacity: 0;
    transform: translateX(-50%) translateY(30px);

    animation: characterAppear 2s ease forwards;
}

@keyframes characterAppear {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-60px);
    }
}

/* =========================
   アイコン
========================= */

.icon,
.icon2,
.icon3 {
    position: absolute;
    left: 20px;

    width: clamp(40px, 6vw, 70px);

    z-index: 20;
    cursor: pointer;
}

.icon {
    top: 30px;
}

.icon2 {
    top: 100px;
}

.icon3 {
    top: 170px;
}

/* =========================
   スタートボタン
========================= */

.starticon {
    position: absolute;
    left: 50%;
    bottom: -50px;

    transform: translateX(-50%);

    width: clamp(180px, 25vw, 350px);

    z-index: 20;
}

/* =========================
   モーダル背景
========================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;

    background: rgba(0, 0, 0, 0.7);

    justify-content: center;
    align-items: center;

    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
}

/* =========================
   モーダル本体
========================= */

.modal-content {
    position: relative;

    width: min(90%, 700px);
    height: min(80vh, 700px);

    background: #fff;
    border-radius: 12px;

    padding: 25px;
    box-sizing: border-box;

    overflow-y: auto;

    animation: fadeIn 0.4s ease;
}

/* =========================
   閉じるボタン
========================= */

.close-btn {
    position: sticky;
    top: 0;

    float: right;

    border: none;
    background: #444;
    color: white;

    font-size: 18px;

    padding: 8px 12px;

    border-radius: 6px;
    cursor: pointer;

    z-index: 10;
}

/* =========================
   スクロールバー
========================= */

.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-track {
    background: #eee;
}

/* =========================
   アニメーション
========================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   タブレット
========================= */

@media (max-width: 1024px) {

    .character {
        width: 50vw;
    }

    .starticon {
        width: 30vw;
    }
}

/* =========================
   スマホ
========================= */

@media (max-width: 768px) {

    .character {
        width: 75vw;
        bottom: 10%;
    }

    .icon,
    .icon2,
    .icon3 {
        width: 50px;
        left: 15px;
    }

    .icon {
        top: 20px;
    }

    .icon2 {
        top: 85px;
    }

    .icon3 {
        top: 150px;
    }

    .starticon {
        width: 65vw;
        bottom:-50px;
    }

    .modal-content {
        width: 95%;
        height: 85vh;
        padding: 15px;
    }

    .close-btn {
        font-size: 16px;
        padding: 6px 10px;
    }
}