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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #000000;
    font-weight: 700;
}

.timer-display {
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#clockCanvas {
    max-width: 100%;
    height: auto;
}

.status {
    margin: 1.2rem 0;
    font-size: 1.2rem;
    font-weight: 700;
}

#modeLabel {
    color: #000000;
}

#modeLabel.work {
    color: #ff6600;
}

#modeLabel.break {
    color: #000000;
}

#timerDisplay {
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.timer-work {
    color: #ff6600;
}

.timer-break {
    color: #808080;
}

.controls {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    font-family: 'Noto Sans JP', sans-serif;
    padding: 0.4rem 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn:hover:not(:disabled) {
    background-color: #ff6600;
    border-color: #ff6600;
    color: #ffffff;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.info {
    margin-top: 2rem;
}

.cycle-info {
    font-size: 1rem;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
}

.cycle-info span {
    font-weight: 700;
}

.btn-reset {
    font-family: 'Noto Sans JP', sans-serif;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 400;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background-color: #000000;
    color: #ffffff;
}

footer {
    font-size: 0.6rem;
    margin-top: 2rem;
}
footer a {
    color: #000000;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .title {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .status {
        font-size: 1rem;
    }
}