body {
    background-color: #f5f5dc;
    /* ライトベージュ */
    color: #4b3621;
    /* 焦げ茶色 */
    font-family: sans-serif;
    margin: 0;
    padding-top: 50px;
    /* ヘッダー分 */
    padding-bottom: 100px;
    /* プレイヤー分 */
}

u {
    font-weight: bold;
    text-decoration: underline;
    color: blue;
}

u:hover {
    cursor: pointer;
}

h1 {
    font-size: 1.4em;
    margin: 10px;
}

h2 {
    font-size: 1.1em;
    margin: 10px;
}

h3 {
    font-size: 1em;
    margin: 10px;
}

/* 固定ヘッダー */
.controls {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    background-color: #f5f5dc;
    padding: 5px;
    box-sizing: border-box;
    gap: 2px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.controls button {
    flex: 1;
    font-size: 1.1em;
    border: none;
    border-radius: 15px;
    padding: 3px 0;
    cursor: pointer;
    box-shadow: 0 4px #999;
    transition: all 0.1s;
}

.controls button:active {
    box-shadow: 0 2px #666;
    transform: translateY(2px);
}

/* ボタンカラー */
.btn-play {
    background-color: #FFB7B2;
}

/* パステルレッド */
.btn-stop {
    background-color: #FFDAC1;
}

/* パステルオレンジ */
.btn-down {
    background-color: #E2F0CB;
}

/* パステルグリーン */
.btn-speed {
    background-color: #B5EAD7;
}

/* パステルミント */
.btn-up {
    background-color: #C7CEEA;
}

/* パステルパープル */
.btn-back {
    background-color: #FF9AA2;
}

.btn-flag {
    background-color: #D4F1F4;
}

.bigFont {
    font-size: 1.5em;
}

/* スクリプト行 */
.line {
    display: flex;
    align-items: flex-start;
    margin: 10px;
    padding: 0px;
    border-radius: 10px;
    transition: background 0.3s, border 0.3s, transform 0.3s;
}

.line.active {
    background-color: #fffacd;
    border: 2px solid #daa520;
    transform: scale(1.02);
}

.line-btn {
    width: 65px;
    height: 40px;
    font-size: 1.2em;
    background-color: #90ee90;
    /* レタスグリーン */
    border: none;
    border-radius: 8px;
    margin-right: 10px;
    flex-shrink: 0;
    cursor: pointer;
}

.text-content {
    font-size: 1.1em;
    line-height: 1.4;
}

.trans {
    font-size: 0.85em;
    color: #6a4f3a;
    display: block;
}

sub {
    color: #d2691e;
    font-weight: bold;
}

/* ビデオプレイヤー */
#mainVideo {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 999;
}

@media (min-width: 441px) {
    #mainVideo {
        width: 40vw;
    }
}

.footer {
    text-align: right;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}