body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 80px;
    /* フッターボタン分の余白 */
    padding-top: 90px;
    /* ロゴ分の余白を追加 */
}

#timer {
    font-size: 35vw;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.2em;
    min-height: 1.2em;
    margin: 40px 0;
    overflow: hidden;
    letter-spacing: 0.01em;
    position: fixed;
    top: calc(190px + 50px);
    font-family: "Kozuka Gothic Pro", "Kozuka Gothic Pr6N", "小塚ゴシック", "Kozuka Gothic", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
}

.buttons {
    margin-top: 20px;
}

button {
    font-size: 1em;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
}

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

/* ボタンの共通スタイル */
.buttons button {
    padding: 10px 20px;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
}

/* 水平方向のボタン */
.horizontal-buttons {
    display: flex;
    justify-content: center;
    gap: 115px;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    top: calc(100vh - 300px)
}

/* 縦方向に並べるボタン */
.vertical-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* ボタンを中央に配置 */
}

/* 選択中のタイマーボタン */
button.selected {
    background-color: #28a745 !important;
    color: #fff !important;
    border: 2px solid #155724;
}

/* タイマー操作ボタンの丸型・色分け */
#resetTimer {
    background: #888;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 0.95em;
    padding: 0;
    margin: 0 10px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
}

#resetTimer:hover {
    background: #666;
}

#startTimer {
    background: #28a745;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 0.95em;
    padding: 0;
    margin: 0 10px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
}

#startTimer:hover {
    background: #218838;
}

#stopTimer {
    display: none;
    background: #dc3545;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 0.95em;
    padding: 0;
    margin: 0 10px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
}

#stopTimer:hover {
    background: #b52a37;
}

#resetTimer,
#startTimer,
#stopTimer {
    width: 76px;
    height: 76px;
    font-size: 0.95em;
}

/* 下部フッターボタン */
.footer-buttons {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    background: #000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 20px 0;
    z-index: 100;
}

.footer-buttons button {
    flex: 1;
    margin: 0 4px;
    font-size: 1em;
    border-radius: 6px;
    background: #000;
    color: #fff;
    border: 1px solid #444;
    padding: 12px 0;
    max-width: 120px;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}

.footer-buttons button:hover {
    background: #222;
    color: #fff;
}

.footer-buttons button#showDescription {
    background: #000;
    color: #fff;
}

.logo {
    width: 80vw;
    max-width: 400px;
    margin-top: 0;
    margin-bottom: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding-top: 50px;
}

/* モーダル全体 */
.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    width: 80%;
    max-width: 500px;
    max-height: 78vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
    text-align: left;
}

/* 閉じるボタン */
.close {
    color: #aaa;
    float: right;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.help-section {
    margin-bottom: 1.5em;
}