/* 全体的なフォントサイズを小さく */
body {
    font-size: 14px; /* 例: 16pxから14pxへ */
}

/* ヘッダーやボタンの余白を減らす */
.header2 {
    margin-bottom: 5px;
    text-align: center;
}

.btn-flat-border {
    padding: 5px 10px;
    font-size: 14px;
    display: inline-block;
    text-decoration: none;
    background: #668ad8;
    color: #FFF;
    border-bottom: solid 4px #627295;
    border-radius: 3px;
}

.btn-flat-border:active {
    -webkit-transform: translateY(4px);
    transform: translateY(4px);
    border-bottom: none;
}

/* 使い方ガイドの余白とフォントサイズを調整 */
.usage-guide {
    padding: 5px 10px;
    margin-bottom: 10px;
}
.usage-guide p {
    margin: 2px 0;
    font-size: 13px;
}

/* ボタンコンテナの余白を調整 */
.wboss-buttons-container,
.wboss2-buttons-container {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* 各ボタン行の要素間のスペースを詰める */
.ch-buttons-row {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    gap: 5px;
    flex-wrap: wrap;
}

.ch-label {
    font-size: 13px;
    white-space: nowrap;
    min-width: 120px;
    text-align: right;
    margin-right: 5px;
    font-weight: bold;
}

.update-btn {
    padding: 2px 6px; /* 撃破ボタンをさらにコンパクトに*/
    font-size: 12px; /* フォントサイズを小さくする*/
    border-radius: 4px; /* 角の丸みを少し小さくする*/
    cursor: pointer;
    margin-right: 3px; /* 右マージンをさらに減らす*/
}

input[type="checkbox"] {
    margin-left: 5px;
}

.update-msg {
    margin-left: 5px;
    font-size: 12px; /* メッセージのフォントサイズを小さく*/
}

/* テーブルの表示をコンパクトに */
table {
    width: 98%;
    margin: 10px auto;
    border-collapse: collapse;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

table th, table td {
    padding: 3px 5px; /* セルのパディングを減らす*/
    border: 1px solid #ddd;
    text-align: center; /* テキストを中央揃えに (全体を見やすくするため)*/
    vertical-align: middle;
    font-size: 12px; /* テーブル内のフォントサイズを小さく*/
    white-space: nowrap; /* 強制的に1行表示に戻す */
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center;
}

/* 入力フィールドのスタイル調整 */
input[type="text"],
input[type="date"],
input[type="time"] {
    width: 95%; /* セル内のデフォルト幅 */
    padding: 1px 3px;
    font-size: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.memo1size { /* ボス名 */
    width: 100%; /* 親要素の幅いっぱいに広げる */
    max-width: 180px; /* ボス名の入力欄の最大幅を広げる */
    text-align: left; /* ボス名は左寄せのほうが見やすい場合が多い */
}

/* ch入力欄の幅を非常に狭くする */
input[id^="ch_"],
input[id^="ch2_"] {
    max-width: 35px; /* ch入力欄の最大幅をさらに狭く */
    width: 100%;
}

/* 日付と時刻の入力欄の幅を調整 */
input[type="date"] {
    max-width: 150px; /* YYYY-MM-DD が収まる程度 */
}

input[type="time"] {
    max-width: 150px; /* HH:MM:SS が収まる程度に調整 */
}

/* メモ欄の幅を調整 */
input[id^="memo2_ch"],
input[id^="memo2_ch2_"] {
    max-width: 250px; /* メモ2の入力欄の最大幅をさらに広げる */
    width: 100%;
    text-align: left; /* メモは左寄せのほうが見やすい場合が多い */
}


/* 保存ボタンのスタイル */
.save-btn {
    padding: 5px 15px;
    font-size: 14px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 5px;
}

.save-btn:hover {
    background-color: #45a049;
}

/* 時計表示のフォントサイズ */
#view_clock {
    font-size: 14px;
}

/* 水平線のマージンを調整 */
hr {
    margin: 15px 0;
}