/* ダークモードトグルボタン */
.dark-mode-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Removed backdrop-filter for better cross-browser compatibility */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.15) translateY(-2px);
}

/* Icon styles - simplified and more consistent */
.dark-mode-toggle i.fas {
    color: #ff8800;
    /* Match site theme */
}

body.dark-mode .dark-mode-toggle i.fas {
    color: #ffea00;
    /* Lighter color in dark mode */
}

/* ホームボタンコンテナ */
.home-button-container {
    position: absolute;
    top: 35px;
    left: 50px;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* ホームボタン */
.home-button {
    position: relative;
    font-size: 1rem;
    cursor: pointer;
    color: #000000;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Noto Serif JP', serif;
    margin-top: -10px;
    /* Move the text up relative to the image */
    text-align: center;
}

/* ホームボタン用画像 */
.home-image {
    position: absolute;
    transform: scale(0.1) scaleX(0.6) translateY(15px) translateX(35px);
    /* 横幅を80%に圧縮し、2px下に移動 */
    z-index: 1000;
    transition: all 0.3s ease;
    text-align: center;
}

.dark-mode .home-image .light-mode-img {
    display: none;
}

.home-image .dark-mode-img {
    display: none;
}

.dark-mode .home-image .dark-mode-img {
    display: inline;
}

/* ダークモード時のスタイル */
body.dark-mode .dark-mode-toggle {
    background: rgba(65, 60, 105, 0.3);
}

body.dark-mode .home-button {
    color: #f0f0f0 !important;
}

/* メディアクエリでのレスポンシブ対応 */
@media (max-width: 768px) {
    .home-button-container {
        top: 35px;
        left: 30px;
    }
}