@charset "UTF-8";

*,
*::before,
*::after {
    box-sizing: border-box;
}

#step-indicator {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 22px;
    font-weight: bold;
    z-index: 10;
    display: none;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.7);
    text-align: center;
    white-space: nowrap;
}

#status-div {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    text-align: center;
    z-index: 10;
    display: none;
}

.a-enter-vr-button {
    display: none !important;
}

#guide-image {
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    height: auto;
    z-index: 25;
    display: none;
}

#guide-image-step2 {
    position: absolute;
    top: 51%;
    left: 52%;
    transform: translate(-50%, -50%);
    max-width: 65%;
    height: auto;
    z-index: 25;
    display: none;
}

/* ローディング画面のスタイル */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #c9e3ef;
    z-index: 100;
    /* 他の要素より前面に */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    /* ローディングメッセージの色 */
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 24px;
}

/* --- モーダル用のスタイルを追加 --- */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg_re.png');
    /* 背景画像を追加 */
    background-size: cover;
    /* 画像中央部分を使うイメージ */
    background-position: center;
    /* 画像中央部分を使うイメージ */
    background-repeat: no-repeat;
    /* 繰り返しなし */
    z-index: 30;
    display: none;
    justify-content: center;
    align-items: center;
    color: black;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

.modal-overlay.is-visible {
    display: flex;
}

.modal-content {
    padding: 30px;
    background-color: transparent;
    /* 背景を透明にする */
    border-radius: 0;
    /* 角丸をなくす */
    border: none;
    /* ボーダーをなくす */
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: space-between;
    /* 上下に配置 */
    padding-top: 27vh;
    /* 上の余白 */
    padding-bottom: 7vh;
    /* 下の余白 */
    box-sizing: border-box;
    /* paddingを高さに含める */
}

.top-content,
.bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.star-icon {
    width: 28px;
    /* star.svgの適切なサイズに調整 */
    height: auto;
    margin-bottom: 10px;
}

.thanks-text-img {
    width: 85%;
    /* 表示サイズを大きく調整 */
    height: auto;
}

.modal-title {
    margin-bottom: 50px;
}

.modal-title img {
    max-width: 100%;
    height: auto;
    margin-left: 1rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-button {
    /* 以前のスタイルは基本的に不要 */
    margin-top: 0;
    /* modal-buttonsで管理 */
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
    /* カーソルはポインタに */
    text-decoration: none;
    /* aタグから変更したので念のため */
}

.modal-button img {
    display: block;
    /* 画像をブロック要素にして、親要素の幅いっぱいに広がるように */
    max-width: 100%;
    height: auto;
}

/* --- 再生開始モーダル（ポップアップ形式） --- */
#start-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    background-color: white;
    z-index: 35;
    display: none;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-sizing: border-box;
}

#start-modal h2 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 18px;
}

#start-modal-content {
    width: 100%;
    text-align: center;
    position: relative;
}

#start-modal-content img {
    max-width: 80%;
    height: auto;
    margin-top: 20px;
}

#start-modal-content p {
    margin: 5px 0px;
}

#close-start-modal-button {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sound-toggle-button {
    position: absolute;
    bottom: 5%;
    /* 画面下部に変更 */
    right: 10%;
    /* 位置を調整 */
    z-index: 40;
    cursor: pointer;
    background-color: transparent;
    /* 背景色は不要 */
    border: none;
    /* 枠線は不要 */
    object-fit: contain;
    /* 画像がボタン内に収まるように */
}

#back-to-top-button {
    position: absolute;
    z-index: 40;
    cursor: pointer;
    object-fit: contain;
    top: 5%;
    left: 3%;
}

#temporary-message-div {
    position: absolute;
    bottom: 180px;
    /* status-divの上に配置するために調整 */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
    padding: 10px 20px;
    background-color: transparent;
    /* 背景色を削除 */
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    text-align: center;
    z-index: 11;
    /* status-divより前面に */
    display: none;
    /* 初期状態は非表示 */
    border-radius: 5px;
}

/* --- キャプチャ関連のスタイル --- */
#capture-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    /* 中央に配置 */
    transform: translateX(-50%);
    /* 中央揃えのための調整 */
    border-radius: 50%;
    z-index: 40;
    cursor: pointer;
    padding: 0;
    background-color: transparent;
    /* 背景色は不要 */
    border: none;
    /* 枠線は不要 */
    object-fit: contain;
}

#preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 50;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

#preview-modal-content {
    background-color: white;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 75%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 2.5px solid #8FC31F;
}

#preview-image {
    max-width: 100%;
    max-height: 60vh;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    object-fit: contain;
}

#preview-modal-content p {
    color: #333;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.preview-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.preview-buttons .button {
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* 閉じるボタンのスタイル */
#close-preview-button {
    position: relative;
    /* 位置を相対配置に変更 */
    margin-top: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 55;
    padding: 0;
    width: 60px;
    /* 画像のサイズに合わせて調整 */
    height: auto;
}

/* --- サムネイルのスタイル --- */
#thumbnail-container {
    position: absolute;
    bottom: 35px;
    left: 20px;
    width: 80px;
    height: 80px;
    z-index: 45;
    display: none;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

#thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}