@charset "UTF-8";
/* CSS Document */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
	font-family: sans-serif;
}

body {
    background-color: #353b5b;
    background-image: url('image/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#full-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    opacity: 0;
    background: transparent;
    border: none;
    color: transparent;
    z-index: 9999;
    cursor: default;
}

.character_container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 20px 0;
}

.character_container img {
    width: 19%;
    height: auto;
    object-fit: contain;
}

.contents {
    flex: 1; 
    display: flex;
    width: 100%;
}

.logo {
    max-width: 80%;
    width: 500px;
    height: auto;
}
.logo img, #main_btn img {
    width: 100%;
    height: auto;
    display: block;
}

#main_btn {
    border: 2px solid #e0d4ff;
    padding: 24px 60px;
    border-radius: 96px;
    background: rgba(30, 25, 50, 0.8);
    box-shadow: 0 0 12px rgba(224, 212, 255, 0.4), inset 0 0 8px rgba(224, 212, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

#main_btn:hover {
    box-shadow: 0 0 24px rgba(224, 212, 255, 0.8), inset 0 0 12px rgba(224, 212, 255, 0.5);
    background: rgba(50, 40, 80, 0.9);
    transform: translateY(-2px);
}

#main_btn:active {
    transform: translateY(2px) scale(0.96);
    box-shadow: 0 0 4px rgba(224, 212, 255, 0.3);
}

#main_screen {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

#result_screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 1s ease, backdrop-filter 1s ease;
}

#result_screen.active {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    pointer-events: auto;
    transition: background 3s ease, backdrop-filter 3s ease;
}

.result_modal {
    border: 2px solid #e0d4ff;
    border-radius: 20px;
    background: rgba(30, 25, 50, 0.95);
    box-shadow: 0 0 24px rgba(224, 212, 255, 0.8), inset 0 0 12px rgba(224, 212, 255, 0.5);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0; 
    transform: scale(0.95);
    pointer-events: none;
}

.result_modal.show-modal {
    animation: popUp 0.3s ease-out forwards;
    pointer-events: auto;
}

.close_text {
    color: #e0d4ff;
    font-size: 14px;
    letter-spacing: 2px;
}

#result_image {
    max-width: 100%;
    max-height: 50vh;
    height: auto;
    object-fit: contain;
}

.action_area {
    margin-top: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.price_text {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 4px;
    text-shadow: 0 0 12px rgba(224, 212, 255, 0.4);
}

.admin_setting {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    z-index: 9999;
    cursor: default;
}

.admin_setting input[type="checkbox"] {
    display: none; 
}

.practice_text {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ff9999;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
    pointer-events: none;
	white-space: nowrap;
}

.admin_setting input[type="checkbox"]:checked + .practice_text {
    display: block;
}

#admin_screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 管理ウィンドウの枠 */
.admin_modal {
    border: 2px solid #e0d4ff;
    border-radius: 20px;
    background: rgba(30, 25, 50, 0.95);
    box-shadow: 0 0 24px rgba(224, 212, 255, 0.8), inset 0 0 12px rgba(224, 212, 255, 0.5);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 80%;
    max-width: 600px;
}

.admin_title {
    color: #fff;
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(224, 212, 255, 0.5);
}

.admin_btn {
    width: 100%;
    border: 2px solid #e0d4ff;
    padding: 20px;
    border-radius: 50px;
    background: rgba(30, 25, 50, 0.8);
    box-shadow: 0 0 12px rgba(224, 212, 255, 0.4), inset 0 0 8px rgba(224, 212, 255, 0.2);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none; /* aタグ用 */
}

.admin_btn:hover {
    box-shadow: 0 0 24px rgba(224, 212, 255, 0.8), inset 0 0 12px rgba(224, 212, 255, 0.5);
    background: rgba(50, 40, 80, 0.9);
    transform: translateY(-2px);
}

.admin_btn:active {
    transform: translateY(2px) scale(0.98);
}

.admin_close_btn {
    margin-top: 20px;
    background: rgba(80, 40, 60, 0.8);
    border-color: #ffb3c6;
}

.admin_btn_group {
    display: flex;
    gap: 16px;
    width: 100%;
}

.admin_btn_group .admin_btn {
    flex: 1;
    padding: 20px 10px;
    font-size: 16px; 
    letter-spacing: 1px;
}

@keyframes popUp {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#toast_container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(30, 25, 50, 0.9);
    border: 1px solid #e0d4ff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-20px);
    animation: toastFadeIn 0.3s forwards, toastFadeOut 0.3s forwards 3s;
}

.toast.error {
    border-color: #ff9999;
    color: #ff9999;
}

@keyframes toastFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastFadeOut {
    to { opacity: 0; transform: translateY(-20px); }
}

#custom_confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm_modal {
    border: 2px solid #e0d4ff;
    border-radius: 20px;
    background: rgba(30, 25, 50, 0.98);
    box-shadow: 0 0 24px rgba(224, 212, 255, 0.8);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 80%;
    max-width: 400px;
}

#confirm_message {
    color: #fff;
    font-size: 18px;
    text-align: center;
    line-height: 1.5;
}