/* Vault Control Button */
.vault-control {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1000;
    touch-action: manipulation; /* タッチ操作の最適化 */
}

.vault-icon {
    height: 60px;
    width: 60px;
    position: relative;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vault-icon:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Vault Padlock styling */
.vault-padlock {
    font-size: 3px;
    position: relative;
    width: 16em;
    height: 20em;
    transform-origin: 50% 2em;
}

.vault-icon:hover .vault-padlock {
    animation: 0.5s swing ease-in-out;
}

/* Modal Window */
.vault-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2b2b2b;
    padding: 20px;
    border-radius: 10px;
    z-index: 1001;
    width: 300px;
}

.modal-content {
    position: relative;
}

.close-modal {
    position: absolute;
    right: 0;
    top: -10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

.close-modal:hover {
    color: #ff0000;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Form Elements */
.vault-modal h2 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

#vaultPassword {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    background: #333;
    color: #fff;
    border-radius: 5px;
}

.vault-submit {
    width: 100%;
    padding: 10px;
    background: #7CFC00;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: large;
}

.vault-submit:hover {
    background: #7efc0067;
}

/* パドロックのアニメーション */
@keyframes swing {
    from, to { transform: rotate(0); }
    25% { transform: rotate(-20deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
}

/* パドロックの各パーツのスタイル */
.vault-padlock__top,
.vault-padlock__top-a,
.vault-padlock__top-b,
.vault-padlock__bottom {
    position: absolute;
}

.vault-padlock__top {
    width: 7em;
    right: 1.6em;
    height: 14.5em;
    top: 3em;
}

.vault-padlock__top-a {
    left: 0;
    width: 100%;
    height: 8.5em;
    border-radius: 70% 70% 0 0 / 5em 5em 0 0;
    box-shadow: 0 0 0 1.5em #7a7a7a inset;
}

.vault-padlock__top-b {
    left: 0;
    width: 100%;
    box-shadow: -2em 0 0 #fff inset;
    height: 0em;
    top: 12em;
}

.vault-padlock__bottom {
    background: #6b6105;
    border-radius: 0.5em;
    width: 100%;
    height: 7em;
    top: 9.25em;
}

.password-result {
    margin: 10px 0;
    text-align: center;
    min-height: 20px;
}

.incorrect {
    color: #ff0000;
}

#passwordPrompt {
    text-align: center;
    margin-bottom: 15px;
    color: #fff;
}

.success-message {
    text-align: center;
    color: #00ff00;
    font-size: 1.2em;
    margin: 20px 0;
}

/* 目のコンテナのスタイルを明示的に指定 */
#eyes-container {
    width: 100%;
    height: 80px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    overflow: visible;
    position: relative;
    z-index: 1002;
}