/* Google FontsのMedievalSharpを読み込む */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

body {
    margin: 0;
    padding: 20px;
    font-family: 'MedievalSharp', cursive;
    color: #f5deb3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    
    background-image: url('../img/background-map.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: flex-start; /* コンテナを上部に配置 */
    min-height: 100vh;
    background-color: #6a4f31;
}

.setting-container {
    background-color: rgba(43, 35, 29, 0.9);
    border: 3px solid #d2b48c;
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    width: 90%;
    margin-top: 50px; /* 上からのマージン */
}

.setting-title {
    font-size: 3em;
    margin: 0 0 15px 0;
    text-align: center;
    color: #f5deb3;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
}

.back-to-top-link {
    display: block;
    margin-bottom: 25px;
    color: #d2b48c;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.2s ease;
    text-align: center;
}

.back-to-top-link:hover {
    color: #f0e68c;
}

.separator {
    border: none;
    border-top: 1px solid #7a6a5d;
    margin-bottom: 30px;
}

.setting-item {
    display: flex;
    justify-content: space-between; /* ラベルとボタンを両端に配置 */
    align-items: center;
    padding: 20px 10px;
    border-bottom: 1px solid #5c4a3b;
}

.setting-item:last-child {
    border-bottom: none; /* 最後の項目の下線は消す */
}

.item-label {
    font-size: 1.4em;
    color: #d2b48c;
}

.logout-button {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.2em;
    background: linear-gradient(#8b0000, #5c0000); /* 赤系のグラデーション */
    color: #fff;
    border: 2px solid #d2b48c;
    border-radius: 8px; /* 長方形らしさを出す */
    padding: 10px 25px;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: linear-gradient(#a30000, #7a0000);
    transform: translateY(-2px);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
}