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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.8s ease;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 4rem;
    color: #8B7355;
}

.moirai-one-regular {
    font-family: "Moirai One", system-ui;
    font-weight: 400;
    font-style: normal;
}

/* 背景色のクラス */
body.bg-light {
    background-color: #fff6da;
    /* クリームイエロー */
}

body.bg-dark {
    background-color: rgb(255, 239, 214);
    /* オレンジイエロー */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

/* 鳩のアイコン */
.pigeon-icon {
    width: 100px;
    height: 100px;
    animation: subtle-bounce 3s ease-in-out infinite;
}

@keyframes subtle-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* 時計 */
.clock-container {
    width: 180px;
    height: 180px;
}

#clock {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 時計の針 - transitionなしでナチュラルな動きに */

/* 設定ボタン */
.settings-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgb(238, 172, 41);
    color: rgb(255, 2555, 255);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background-color: #a0826d00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.settings-btn:active {
    transform: translateY(0);
}

/* デバッグボタン */
.debug-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #fff7db;
    color: rgb(238, 172, 41);
    border: 2px solid rgb(238, 172, 41);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);*/
    transition: all 0.3s ease;
}

.debug-toggle:hover {
    background-color: #fff4b4;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.debug-toggle:active {
    transform: translateY(0);
}

/* デバッグパネル */
.debug-panel {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 249, 230, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    z-index: 500;
}

.debug-panel.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.debug-panel h3 {
    color: #8B7355;
    margin-bottom: 15px;
    font-size: 18px;
}

.debug-info {
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.debug-info p {
    margin: 8px 0;
}

.debug-info strong {
    color: #8B7355;
}

.debug-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.debug-btn {
    background-color: #8B7355;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.debug-btn:hover {
    background-color: #A0826D;
    transform: translateY(-1px);
}

.debug-btn:active {
    transform: translateY(0);
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #FFF9E6;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #8B7355;
    margin-bottom: 15px;
    font-size: 50px;
    text-align: center;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
    text-align: center;
    font-size: 0.8rem;
}
.modal-content small {
    font-size: 0.7rem;
    text-align: center;
    width: 100%;
    margin-top: 20px;
    display: inline-block;
}
.modal-content small a {
    color: #666;
    text-decoration: none;
}
.interval-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.radio-option:hover {
    background-color: #FFFCF0;
    border-color: #F5E6B3;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8B7355;
}

.radio-option span {
    font-size: 18px;
    color: #333;
}

.save-btn {
    width: 100%;
    background-color: #8B7355;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background-color: #A0826D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.save-btn:active {
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pigeon-icon {
        width: 100px;
        height: 100px;
    }

    .clock-container {
        width: 150px;
        height: 150px;
    }

    .settings-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 12px;
    }

    .debug-toggle {
        bottom: 20px;
        left: 20px;
        padding: 8px 14px;
        font-size: 12px;
    }

    .debug-panel {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 15px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-content h2 {
        font-size: 50px;
    }

    .radio-option span {
        font-size: 16px;
    }

    .save-btn {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pigeon-icon {
        width: 80px;
        height: 80px;
    }

    .clock-container {
        width: 130px;
        height: 130px;
    }

    .container {
        gap: 20px;
    }
}
