h1 {
    font-size: 23px;
}

h2 {
    display: inline-block;
    vertical-align: middle;
    font-size: 19px;
}

body {
    font-size: 18px;
    /* 必要に応じてサイズを調整 */
}

.video-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    text-align: center;
}

.video-container iframe {
    width: 90%;
    /* 幅を指定 */
    height: auto;
    display: block;
    margin: 0 auto;
    /* 中央揃えにする */
    aspect-ratio: 16 / 9;
    /* アスペクト比を指定 */
}

/* ボタンのスタイルを追加 */
button {
    font-size: 18px;
    /* フォントサイズを調整 */
    padding: 10px 20px;
    /* 内側のスペースを調整 */
    background-color: #ffc0cb;
    /* 背景色を設定 */
    color: black;
    /* 文字色を設定 */
    border: none;
    /* ボーダーを削除 */
    border-radius: 5px;
    /* 角を丸める */
    cursor: pointer;
    /* ポインタカーソルを表示 */
    transition: background-color 0.3s ease;
    /* ホバー時の色変更をスムーズに */
    font-weight: bold;
    /* 文字を太字にする */
}

.display-button {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

/* 説明コンテナのスタイル */
.description-container {
    display: block;
    background-color: #fff;
    /* 背景色を白に設定 */
    border: 2px solid #ddd;
    /* 薄いグレーの枠線を設定 */
    border-radius: 10px;
    /* 角を丸める */
    padding: 20px;
    /* 内側のスペースを設定 */
    margin: 20px auto;
    /* 上下の余白を設定し、中央揃え */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 軽い影を追加 */
    text-align: left;
    /* テキストを左揃え */
    max-width: 90%;
}

.description-container-view {
    display: block;
    background-color: #fff;
    /* 背景色を白に設定 */
    border: 2px solid #ddd;
    /* 薄いグレーの枠線を設定 */
    border-radius: 10px;
    /* 角を丸める */
    padding: 20px;
    /* 内側のスペースを設定 */
    margin: 20px auto;
    /* 上下の余白を設定し、中央揃え */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 軽い影を追加 */
    text-align: left;
    /* テキストを左揃え */
    max-width: 90%;
}

.section-title {
    margin-bottom: 0px;
    font-size: 18px;
}

/* PC表示（768px以上で横並び） */
@media (min-width: 768px) {
    .description-container-view {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .description-container-view > div:not(.img-list) {
        width: 30%; /* 3つ横並び */
    }

    .description-container-view p {
        width: 100%;
    }
}

.video-item {
    display: flex;
    flex-direction: column; /* ← 縦にする */
}

audio {
    pointer-events: auto;
}

audio::-webkit-media-controls-enclosure {
    overflow: hidden;
}

.audio-block {
    display: flex;
    flex-direction: column; /* 中身を上下に並べる */
    margin-bottom: 20px;
}

.speed-buttons {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end; /* 右寄せ */
    gap: 5px; /* ボタン同士の間隔 */
}

.speed-buttons button {
    background-color: #e0e0e0; /* 薄いグレー */
    color: #333;              /* 文字は濃いグレー */
    border: 1px solid #ccc;   /* 枠線 */
    border-radius: 4px;       /* 角を少し丸く */
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;   /* 文字サイズ */
}

.speed-buttons button:hover {
    background-color: #d5d5d5; /* ホバー時ちょっと濃く */
}

.no-access {
    color: black;              /* 文字色を黒 */
    background-color: #f0f0f0; /* 薄いグレー */
    text-align: center;        /* 中央揃え */
    padding: 8px;              /* 余白をつけて見やすく */
    border-radius: 5px;        /* 角を少し丸める（お好み） */
}

@media (min-width: 768px) {
    .description-container {
        max-width: 450px;  /* 大きい画面では最大800px */
    }
}
/* ピンクの枠で囲まれた部分 */
.highlight-container {
    display: block;
    border: 2px solid #ff69b4;
    /* ピンク色の枠線 */
    border-radius: 10px;
    /* 角を丸める */
    padding: 15px;
    /* 内側のスペースを設定 */
    margin: 20px auto;
    /* 上下の余白を設定し、中央揃え */
    max-width: 90%;
    /* 必要に応じて最大幅を設定 */
    background-color: #fff0f5;
    /* 薄いピンクの背景色（必要に応じて調整） */
    text-align: left;
    /* テキストを左揃えにする */
}

.highlight-container p {
    font-size: 14px;
    /* 段落のフォントサイズを調整 */
    margin: 5px 0;
    /* 各段落の上下にスペースを設定 */
}

.custom-table {
    width: 100%;
    font-size: 10pt;
    text-align: left;
}

.custom-table td {
    padding: 10px;
    font-size: 10pt;
    text-align: left;
    font-size: 20px; /* 必要に応じてサイズを調整 */
}

.responsive-video {
    width: 30%;
}

.profile-img {
    width: 150px;       /* サイズは調整可 */
    height: 150px;
    object-fit: cover;  /* はみ出した部分を切り取って丸に収める */
    border-radius: 50%; /* 丸くする */
    border: 2px solid #ccc; /* 枠線（任意） */
}

/* スマホ用のメディアクエリ */
@media only screen and (max-width: 768px) {
    body {
        font-size: 13px;
        /* 必要に応じてサイズを調整 */
    }

    .custom-table td {
        font-size: 14px; /* 必要に応じてサイズを調整 */
    }

    .responsive-video {
        width: 90%;
        /* スマホ時の幅 */
    }
}

.video-item p {
    text-align: left;
}

.youtube-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 の比率 = 9 ÷ 16 = 0.5625 */
    height: 0;
}

.youtube-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.training-title {
    margin-top: 0px;   /* ← 上の余白 */
}

.img-list {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.img-item {
    flex: 1; /* ← これが重要（均等に広がる） */
}

.img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Style the submit button */
input[type="submit"] {
    background-color: #e65f12; /* Pale violet-red background */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #e65f12; /* Medium violet-red on hover */
}

input[type="text"],
input[type="password"] {
    display: block;
    margin: 0 auto; /* 入力欄を中央に配置 */
    width: 80%; /* 入力欄をセル内で最大限広げる */
    max-width: 300px; /* オプション: 入力欄の最大幅を設定 */
    padding: 8px;
    border: 1px solid #e65f12;
    border-radius: 5px;
    background-color: #fff7ef;
    color: #333;
}

div.submit {
    display: flex;
    justify-content: center;
}
