/* レイアウト */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f5f5f5;
}

.timer {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    width: 320px;
}

/* 時間表示 */
#time {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin: 16px 0;
}

/* プログレスバー */
#progressContainer {
    width: 100%;
    height: 10px;
    background-color: #ddd;
}

#progressBar {
    height: 100%;
    width: 0%;
    background-color: #4caf50;
    transition: width 0.1s linear;
}

/* 入力箇所レイアウト */
.inputs {
    display: flex;
    gap: 10px;
}

/* 各種ボタンレイアウト */
.buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#start {
    background-color: #4caf50;
    color: white;
}

#stop {
    background-color: #f44336;
    color: white;
}

#reset {
    background-color: #5e5c5c;
    color: white;
}

button:hover {
    opacity: 0.9;
}

button:active {
    transform: scale(0.95);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.buttons button {
    width: 100%;
    max-width: 200px;
    height: 44px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* スマホ用 */
@media (max-width: 480px) {
    .inputs {
        flex-direction: column;
        align-items: center;
    }

    .inputs input,
    .buttons button {
        max-width: 100%;
        margin-top: 10px;
    }

    .inputs input {
        width: 100%;
        max-width: 200px;
        height: 44px;
        font-size: 16px;
        padding: 0 10px;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    button:active {
        transform: scale(0.97);
    }

    button:disabled {
        background-color: #ccc;
        cursor: not-allowed;
        opacity: 0.7;
    }

    .buttons button {
        width: 100%;
        max-width: 200px;
        height: 44px;
        font-size: 16px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }

    #start {
        background-color: #4caf50;
        color: white;
    }

    #stop {
        background-color: #f44336;
        color: white;
    }

    #reset {
        background-color: #5e5c5c;
        color: white;
    }

}