body {
    font-family: sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding-top: 5vh; /* 上部の余白 */
    padding-bottom: 5rem; /* フッターのためのスペース */
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    margin: 0 auto; /* 水平方向の中央揃え */
}

h1 {
    color: #333;
}

p {
    color: #666;
    line-height: 1.6;
}

.note {
    font-size: 0.9em;
    color: #777;
    margin-top: 1rem;
}

.controls {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#start-stop-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#start-stop-button:hover {
    background-color: #0056b3;
}

#start-stop-button.active {
    background-color: #dc3545;
}

#start-stop-button.active:hover {
    background-color: #c82333;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#delay-slider {
    width: 200px;
}

#delay-value {
    font-weight: bold;
    min-width: 30px;
}

/* --- Footer --- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid #e7e7e7;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9em;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-content a {
    color: #007bff;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-content p {
    margin: 0;
    color: #333;
}

.footer-content p a {
    color: #007bff;
}
