@charset "UTF-8";
/*
 * SC_NWT-3104 G2（塾生徒・塾管理者・講師）用 Bootstrap 5 互換 CSS
 *
 * Bootstrap 3.3.7 → 5.3.3 の移行で見た目・レイアウトが変わらないよう、BS3 の既定値を補う。
 * G1 の culture/css/common/bs5-compat-g1.css と同じ方針で、G2 の画面用に別ファイルにしたもの（G1 の CSS は変更しない）。
 * 読込順（templates/shared/_bs5_g2_assets.ftl）:
 *   assets/application-bs5-pre.css（移行前の A バンドルで BS3 より前にあった独自 CSS）
 *   → BS5 → この CSS（BS3 があった位置）→ glyphicons.css → Select2 4.0.13
 *   → assets/application-bs5-post.css（移行前に BS3 より後ろにあった独自 CSS・Font Awesome 等。BS3 を上書きしていた部分）
 *
 * 数値は culture/lib/css/bootstrap.css（BS 3.3.7）の定義値。
 * テンプレートの置換規則は G1 と同じ（col-xs → col / col-sm → col-md / col-md → col-lg / col-lg → col-xl、
 * pull-* → float-*、btn-default → btn-secondary、btn-block → d-block w-100、data-* → data-bs-* 等）。
 * G1 と違う点: glyphicon は置換せず glyphicons.css で表示する。<span class="caret"> は残し、BS5 の自動の ▾ は消す（8. ドロップダウン）。
 */

/* ------------------------------------------------------------------
 * 1. 基本タイポグラフィ・リンク
 *    BS5 は本文 16px / line-height 1.5、リンクは下線付き。BS3（14px / 1.42857143、下線なし）に戻す。
 * ------------------------------------------------------------------ */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
}
a {
    color: #337ab7;
    text-decoration: none;
}
a:hover,
a:focus {
    color: #23527c;
    text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.1;
}
h1, h2, h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}
h4, h5, h6 {
    margin-top: 10px;
    margin-bottom: 10px;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
p {
    margin: 0 0 10px;
}
label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: bold;
}
b,
strong {
    font-weight: bold;
}
small,
.small {
    font-size: 85%;
}
/* BS3（normalize）の値。BS5 の Reboot には同じ指定がない */
td,
th {
    padding: 0;
}
th {
    text-align: left;
}
button,
input,
optgroup,
textarea {
    color: inherit;
}
/* BS3（normalize）はフォーム部品の font を親から継承していた（font: inherit）。BS5 の Reboot は字体・大きさ・行の高さだけ継承し、
   太さは継承しない（変更前後の比較で検出: アンケート回答の太字のラベル内のラジオ・チェックボックス） */
button,
input,
optgroup,
select,
textarea {
    font-style: inherit;
    font-weight: inherit;
}
/* BS3 の input[type="file"]・input[type="range"]（block）。BS5 にはない（変更前後の比較で検出: アンケート回答のファイル選択） */
input[type="file"] {
    display: block;
}
input[type="range"] {
    display: block;
    width: 100%;
}
/* BS5 の Reboot は日付・時刻の入力欄の内側の余白を 0 にし、欄が 2px 低くなる（BS3 はブラウザ既定）。ブラウザ既定に戻す
   （変更前後の比較で検出: アンケート回答の日時の入力欄） */
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
    padding: revert;
}
input[type="radio"],
input[type="checkbox"] {
    margin: 4px 0 0;
    line-height: normal;
}
hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
    opacity: 1;
}
/* BS5 の Reboot は ul / ol に padding-left 2rem・margin-bottom 1rem を付ける。
   BS3 は padding を指定せず（ブラウザ既定の 40px）、margin-bottom 10px（G1 と違い、G2 の独自 CSS は ul をリセットしていない） */
ul,
ol {
    padding-left: 40px;
    margin-bottom: 10px;
}
dl {
    margin-top: 0;
    margin-bottom: 20px;
}
dt {
    font-weight: bold;
}
dd {
    margin-bottom: 0;
    margin-left: 0;
}
fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}
legend {
    float: none;
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    font-size: 21px;
    line-height: inherit;
    color: #333;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
}
/* BS3 の文字色ユーティリティ（BS5 は !important 付きの別の色） */
.text-muted { color: #777 !important; }
.text-primary { color: #337ab7 !important; }
.text-success { color: #3c763d !important; }
.text-info { color: #31708f !important; }
.text-warning { color: #8a6d3b !important; }
.text-danger { color: #a94442 !important; }
/* BS3 の .sr-only（BS5 は .visually-hidden に改名され、.sr-only はない。ないと読み上げ用の文字が画面に出る） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.center-block {
    display: block;
    margin-right: auto;
    margin-left: auto;
}
/* A の独自 CSS の「.logo-login .img-responsive { display: inline-block !important }」を、置換後のクラス名（img-fluid）で残す
   （変更前後の比較で検出: ログイン画面のロゴ） */
.logo-login .img-fluid {
    display: inline-block !important;
}

/* ------------------------------------------------------------------
 * 2. グリッド（G1 と同じ）
 *    - コンテナ幅・ガター幅を BS3（750/970/1170px、ガター 30px）に戻す
 *    - BS3 と同じ block + float のグリッドに戻す
 * ------------------------------------------------------------------ */
.container,
.container-fluid,
.row {
    --bs-gutter-x: 30px;
}
.container {
    max-width: none;
}
@media (min-width: 768px) {
    .container { width: 750px; }
}
@media (min-width: 992px) {
    .container { width: 970px; }
}
@media (min-width: 1200px) {
    .container { width: 1170px; }
}
.row {
    display: block;
    margin-top: 0;
}
.row::before,
.row::after {
    display: table;
    content: " ";
}
.row::after {
    clear: both;
}
/* :where() で詳細度を BS5 の .row > *（0,1,0）と同じにする（独自 CSS の margin 等を打ち消さないため） */
.row > :where(:not([class^="col-"]):not([class*=" col-"])) {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
    margin-top: 0;
}
/* add for backlog3104 by izuno */
/* NG18: Bootstrap 5 では .row 配下の .modal に width: auto が適用され、予約方法の選択メニューが左寄りになるため、幅を100%にする */
.row > .modal {
    width: 100%;
}
/* .row の直下の見出し。BS5 の .row > *（詳細度 0,1,0）と上の規則が margin-top・左右の padding を 0 にし、
   要素セレクタの指定（BS3 の h1〜h6 の margin-top、A の独自 CSS の h2 { padding: .8em }）より強くなるため、同じ詳細度で戻す
   （変更前後の比較で検出: ログイン画面等の「ログイン」の帯が 20px 上がり、文字が左に寄る） */
.row > :where(h1, h2, h3) {
    margin-top: 20px;
}
.row > :where(h4, h5, h6) {
    margin-top: 10px;
}
.row > :where(h2) {
    padding: .8em;
}
/* margin-top は指定しない（独自 CSS の margin-top 系のクラスを打ち消さないため。G1 の 2961a959 と同じ）。
   flex は BS3 と同じく縮められる 0 1 auto（G1 の 6869d2c7 と同じ） */
[class^="col-"],
[class*=" col-"] {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 1 auto;
}
/* float は BS3 と同じく breakpoint ごとに付ける（G2 の段階 2 の比較で検出）。
   BS3 の col-sm-*（置換後 col-md-*）等は、breakpoint 未満では float しない block だった。
   常に float にすると、スマホ幅で列が float を内側に閉じ込め（BS3 では次の列の見出しの横に回り込んでいた）、
   列の中の要素の margin も列の外と相殺されなくなる（高さが 10px 程度ずれる） */
[class^="col-1"], [class*=" col-1"], [class^="col-2"], [class*=" col-2"], [class^="col-3"], [class*=" col-3"],
[class^="col-4"], [class*=" col-4"], [class^="col-5"], [class*=" col-5"], [class^="col-6"], [class*=" col-6"],
[class^="col-7"], [class*=" col-7"], [class^="col-8"], [class*=" col-8"], [class^="col-9"], [class*=" col-9"] {
    float: left;
}
@media (min-width: 768px) {
    [class^="col-md-"], [class*=" col-md-"] { float: left; }
}
@media (min-width: 992px) {
    [class^="col-lg-"], [class*=" col-lg-"] { float: left; }
}
@media (min-width: 1200px) {
    [class^="col-xl-"], [class*=" col-xl-"] { float: left; }
}
.container::before,
.container::after,
.container-fluid::before,
.container-fluid::after {
    display: table;
    content: " ";
}
.container::after,
.container-fluid::after {
    clear: both;
}

/* ------------------------------------------------------------------
 * 3. ボタン（G1 と同じ ＋ btn-xs・span 等の disabled）
 * ------------------------------------------------------------------ */
.btn {
    --bs-btn-font-size: 14px;
    --bs-btn-line-height: 1.42857143;
    --bs-btn-border-radius: 4px;
    white-space: nowrap;
}
.btn-sm {
    --bs-btn-padding-y: 5px;
    --bs-btn-padding-x: 10px;
    --bs-btn-font-size: 12px;
    --bs-btn-line-height: 1.5;
    --bs-btn-border-radius: 3px;
}
.btn-lg {
    --bs-btn-padding-y: 10px;
    --bs-btn-padding-x: 16px;
    --bs-btn-font-size: 18px;
    --bs-btn-line-height: 1.3333333;
    --bs-btn-border-radius: 6px;
}
/* BS3 の .btn-xs（BS5 では廃止） */
.btn-xs {
    --bs-btn-padding-y: 1px;
    --bs-btn-padding-x: 5px;
    --bs-btn-font-size: 12px;
    --bs-btn-line-height: 1.5;
    --bs-btn-border-radius: 3px;
}
/* BS3 は disabled 属性を持つ要素すべて（span・a を含む）を無効の見た目にした（.btn[disabled]）。
   BS5 は :disabled（button・input のみ）と .disabled だけのため、ヘッダーのオンライン表示（span.btn[disabled]）等で外れる */
.btn[disabled] {
    cursor: not-allowed;
    opacity: .65;
    box-shadow: none;
}
.btn-secondary {
    --bs-btn-color: #333;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #ccc;
    --bs-btn-hover-color: #333;
    --bs-btn-hover-bg: #e6e6e6;
    --bs-btn-hover-border-color: #adadad;
    --bs-btn-focus-shadow-rgb: 204, 204, 204;
    --bs-btn-active-color: #333;
    --bs-btn-active-bg: #e6e6e6;
    --bs-btn-active-border-color: #adadad;
    --bs-btn-disabled-color: #333;
    --bs-btn-disabled-bg: #fff;
    --bs-btn-disabled-border-color: #ccc;
}
.btn-primary {
    --bs-btn-bg: #337ab7;
    --bs-btn-border-color: #2e6da4;
    --bs-btn-hover-bg: #286090;
    --bs-btn-hover-border-color: #204d74;
    --bs-btn-active-bg: #286090;
    --bs-btn-active-border-color: #204d74;
    --bs-btn-disabled-bg: #337ab7;
    --bs-btn-disabled-border-color: #2e6da4;
}
.btn-success {
    --bs-btn-bg: #5cb85c;
    --bs-btn-border-color: #4cae4c;
    --bs-btn-hover-bg: #449d44;
    --bs-btn-hover-border-color: #398439;
    --bs-btn-active-bg: #449d44;
    --bs-btn-active-border-color: #398439;
    --bs-btn-disabled-bg: #5cb85c;
    --bs-btn-disabled-border-color: #4cae4c;
}
.btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: #5bc0de;
    --bs-btn-border-color: #46b8da;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #31b0d5;
    --bs-btn-hover-border-color: #269abc;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #31b0d5;
    --bs-btn-active-border-color: #269abc;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #5bc0de;
    --bs-btn-disabled-border-color: #46b8da;
}
.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: #f0ad4e;
    --bs-btn-border-color: #eea236;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ec971f;
    --bs-btn-hover-border-color: #d58512;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ec971f;
    --bs-btn-active-border-color: #d58512;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #f0ad4e;
    --bs-btn-disabled-border-color: #eea236;
}
.btn-danger {
    --bs-btn-bg: #d9534f;
    --bs-btn-border-color: #d43f3a;
    --bs-btn-hover-bg: #c9302c;
    --bs-btn-hover-border-color: #ac2925;
    --bs-btn-active-bg: #c9302c;
    --bs-btn-active-border-color: #ac2925;
    --bs-btn-disabled-bg: #d9534f;
    --bs-btn-disabled-border-color: #d43f3a;
}
/* BS3 の .btn-link（文字色はリンク色） */
.btn-link {
    --bs-btn-color: #337ab7;
    --bs-btn-hover-color: #23527c;
    --bs-btn-active-color: #23527c;
    text-decoration: none;
}
/* BS3 の押下中・選択中のボタン（内側の影） */
.btn.active,
.btn:active {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}
/* BS3 の .btn-group は inline-block（BS5 は inline-flex）。中のボタンは float: left */
.btn-group {
    display: inline-block;
}
.btn-group > .btn {
    float: left;
}
/* 移行前の A バンドルの BS3 の写し（2 回目）に入っていた独自の修正（add for backlog1202 by u037）。
   メニュー（shared/_menu.ftl）の水色のボタンが 3px 下がる。BS3 の部分を除いたため、ここで残す（変更前後の比較で検出） */
.btn-info {
    margin-top: 3px;
}
/* A の独自 CSS（application-bs5-pre.css。BS5 より前に読む）の .btn-grey { background-color: #3A3A3A }（予約の時間割の休日の枠）。
   BS3 の .btn は背景色を指定しなかったので効いていたが、BS5 の .btn・.btn:disabled は背景色を CSS 変数で指定し、後から読むため上書きされる
   （G2 の段階 3 の比較で検出: SC の生徒のレッスン予約）。独自 CSS の中で同じ形の規則はこの 1 件（調査/tools/g2/custom_btn_rules.js） */
.btn.btn-grey,
.btn.btn-grey:disabled {
    background-color: #3A3A3A;
}
/* .btn-light は BS3 になく（課題提出の「ファイルを選択」、課題の添削の発音記号のボタン（移行前は BS3 にない btn-secondary）で使用）、移行前は .btn だけの見た目（ブラウザの既定のボタンの背景・枠は透明・文字色は継承）だった。
   BS5 の .btn-light（#f8f9fa）にならないよう、BS3 の見た目に合わせる（G2 の段階 3 の比較で検出） */
.btn-light {
    --bs-btn-color: #333;
    --bs-btn-bg: ButtonFace;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #333;
    --bs-btn-hover-bg: ButtonFace;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #333;
    --bs-btn-active-bg: ButtonFace;
    --bs-btn-active-border-color: transparent;
}

/* ------------------------------------------------------------------
 * 4. フォーム（G1 と同じ ＋ form-group・help-block）
 * ------------------------------------------------------------------ */
.form-control {
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    border-color: #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
.form-control:focus {
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}
.form-control:disabled,
.form-control[readonly],
fieldset:disabled .form-control {
    background-color: #eee;
    opacity: 1;
}
.form-control:disabled,
fieldset:disabled .form-control {
    cursor: not-allowed;
}
.form-control::placeholder {
    color: #999;
    opacity: 1;
}
/* BS5 の .form-control は appearance: none（BS3 は指定なし＝ブラウザ既定）。select は右端の ▼ が消え、
   テキスト入力・textarea も iOS Safari 等で既定の見た目が変わるため、BS3 と同じく既定に戻す（ファイル選択は BS5 の見た目のまま） */
select.form-control,
input.form-control:not([type="file"]),
textarea.form-control {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}
select.form-control:not([multiple]):not([size]) {
    height: 34px;
}
/* BS3 の日付・時刻の入力欄（.form-control の高さ 34px、webkit 向けの line-height: 34px）。BS5 は高さを指定しないため、
   日時の部品の余白（上の ::-webkit-datetime-edit-* の padding: revert）の分だけ 2px 高くなる。
   G2 の静的 HTML の比較で検出（入退室履歴の開始日付・終了日付。G2 で .form-control の日付の入力欄はこの画面だけ） */
input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control {
    height: 34px;
    line-height: 34px;
}
.input-group > .form-control:only-child {
    border-radius: 0;
}
select {
    color: inherit;
}
.radio,
.checkbox {
    position: relative;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
}
.radio label,
.checkbox label {
    min-height: 20px;
    padding-left: 20px;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}
.radio input[type="radio"],
.checkbox input[type="checkbox"] {
    position: absolute;
    margin-left: -20px;
}
.radio + .radio,
.checkbox + .checkbox {
    margin-top: -5px;
}
/* BS3 の .radio-inline・.checkbox-inline（BS5 では廃止。塾の生徒のログインの「ログイン状態を保存する」。G2 の段階 3 の比較で検出） */
.radio-inline,
.checkbox-inline {
    position: relative;
    display: inline-block;
    padding-left: 20px;
    margin-bottom: 0;
    font-weight: 400;
    vertical-align: middle;
    cursor: pointer;
}
.radio-inline input[type="radio"],
.checkbox-inline input[type="checkbox"] {
    position: absolute;
    margin-left: -20px;
}
.radio-inline + .radio-inline,
.checkbox-inline + .checkbox-inline {
    margin-top: 0;
    margin-left: 10px;
}
/* .form-label・.col-form-label は BS3 になく（BS4 以降の書き方。課題提出・課題の添削で使用）、移行前は BS3 の label（下の余白 5px）の見た目だった。
   BS5 が付ける余白・文字の大きさを BS3 の label に合わせる（line-height は画面ごとの指定を使う）。G2 の段階 3 の比較で検出 */
.form-label,
.col-form-label {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 5px;
    font-size: inherit;
}
/* BS3 の .form-group・.help-block（BS5 では廃止。テンプレートはこのクラスのまま使う） */
.form-group {
    margin-bottom: 15px;
}
.help-block {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #737373;
}

/* ------------------------------------------------------------------
 * 5. アラート（G1 と同じ）
 * ------------------------------------------------------------------ */
.alert {
    --bs-alert-padding-x: 15px;
    --bs-alert-padding-y: 15px;
    --bs-alert-margin-bottom: 20px;
    --bs-alert-border-radius: 4px;
}
.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}
.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}
.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}
.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

/* ------------------------------------------------------------------
 * 6. 閉じるボタン（G1 と同じ）
 * ------------------------------------------------------------------ */
.close {
    float: right;
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
}
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: .5;
}
button.close {
    -webkit-appearance: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
}
.btn-close {
    --bs-btn-close-opacity: .2;
    --bs-btn-close-hover-opacity: .5;
}
/* 閉じられるアラート（devise 系の画面のエラー表示等）。BS3 は余白 35px・× は float で右上（.alert-dismissible .close）。
   BS5 は余白 3rem・× は absolute で右上に大きな余白付き。× の大きさは BS3 の .close（21px の「×」）に合わせる */
.alert-dismissible {
    padding-right: 35px;
}
.alert-dismissible .btn-close {
    position: relative;
    float: right;
    top: -2px;
    right: -21px;
    box-sizing: border-box;
    width: 17.5px;
    height: 21px;
    padding: 0;
    background-size: 12px auto;
}

/* ------------------------------------------------------------------
 * 7. 表示切替・埋め込み・well（G1 と同じ）
 * ------------------------------------------------------------------ */
.hidden {
    display: none !important;
}
.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
}
.well-sm {
    padding: 9px;
    border-radius: 3px;
}
.well-lg {
    padding: 24px;
    border-radius: 6px;
}
.embed-responsive {
    position: relative;
    display: block;
    height: 0;
    padding: 0;
    overflow: hidden;
}
.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    /* 移行前の A バンドルの BS3 の写し（2 回目）に入っていた独自の修正（画面切替 hujunjie 2020/09/24・modify for backlog2113）。BS3 は 100% */
    height: 99.9%;
    border: 0;
}
.embed-responsive-4by3 {
    padding-bottom: 75%;
}
.embed-responsive-16by9 {
    padding-bottom: 56.25%;
}

/* ------------------------------------------------------------------
 * 8. ドロップダウン
 *    G2 は <span class="caret"> を残し（BS3 の .caret の定義を下に置く）、BS5 が .dropdown-toggle に自動で付ける ▾ は消す。
 *    G2 には caret のないドロップダウン（ハンバーガーメニュー等）が多く、BS3 では caret のある要素だけに ▾ が出ていたため。
 * ------------------------------------------------------------------ */
.dropdown-toggle::after {
    display: none;
}
.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}
.btn .caret {
    margin-left: 0;
}
.dropup .caret {
    content: "";
    border-top: 0;
    border-bottom: 4px dashed;
}
.dropdown-menu {
    --bs-dropdown-font-size: 14px;
    --bs-dropdown-color: #333;
    --bs-dropdown-item-padding-x: 20px;
    --bs-dropdown-item-padding-y: 3px;
    --bs-dropdown-border-radius: 4px;
    --bs-dropdown-padding-y: 5px;
    --bs-dropdown-border-color: rgba(0, 0, 0, .15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    --bs-dropdown-link-color: #333;
    --bs-dropdown-link-hover-color: #262626;
    --bs-dropdown-link-hover-bg: #f5f5f5;
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: #337ab7;
    /* BS3 は .dropdown-menu > li > a の clear: both・white-space: nowrap */
    text-align: left;
}
/* BS3 の .dropdown-menu > li > a は幅の指定なし（メニューの幅は項目の内容で決まる）。BS5 の .dropdown-item は width: 100% のため、
   メニューが最小幅 160px に縮む（変更前後の比較で検出: ヘッダーの「メニュー」が 173px → 160px） */
.dropdown-item {
    width: auto;
    line-height: 1.42857143;
    clear: both;
}
/* BS3 の .pull-right > .dropdown-menu（右端そろえ）。pull-right は float-end に置換したため、同じ指定を float-end に付ける。
   BS5 は data-bs-display="static" のとき left: 0 になり、ヘッダーの「メニュー」が画面の右にはみ出す（変更前後の比較で検出） */
.float-end > .dropdown-menu {
    right: 0;
    left: auto;
    /* A の独自 CSS の「.pull-right > .dropdown-menu { z-index: 2000 }」を、置換後のクラス名で残す */
    z-index: 2000;
}
.dropdown-menu .divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}
/* BS3 の .dropdown-header（12px・#777・padding 3px 20px）。BS5 は値を .dropdown-menu の中の CSS 変数で持つため、
   メニューの外で使っている箇所（A のヘッダーの #header_menu「dropdown dropdown-header」）で値が外れる */
.dropdown-header {
    display: block;
    padding: 3px 20px;
    font-size: 12px;
    line-height: 1.42857143;
    color: #777;
    white-space: nowrap;
}

/* ------------------------------------------------------------------
 * 8-2. nav・nav-tabs・nav-pills・pagination・breadcrumb（BS3 の定義値）
 * ------------------------------------------------------------------ */
.nav {
    --bs-nav-link-padding-x: 15px;
    --bs-nav-link-padding-y: 10px;
    --bs-nav-link-color: #337ab7;
    --bs-nav-link-hover-color: #23527c;
}
.nav-pills {
    --bs-nav-pills-border-radius: 4px;
    --bs-nav-pills-link-active-bg: #337ab7;
}
.nav-pills > .nav-item + .nav-item {
    margin-left: 2px;
}
.nav > .nav-item > .nav-link:hover,
.nav > .nav-item > .nav-link:focus,
.nav > .nav-item > .nav-link.show {
    background-color: #eee;
}
.nav-tabs {
    --bs-nav-tabs-border-color: #ddd;
    --bs-nav-tabs-border-radius: 4px;
    --bs-nav-tabs-link-hover-border-color: #eee #eee #ddd;
    --bs-nav-tabs-link-active-color: #555;
    --bs-nav-tabs-link-active-bg: #fff;
    --bs-nav-tabs-link-active-border-color: #ddd #ddd transparent;
}
.nav-tabs > .nav-item > .nav-link {
    margin-right: 2px;
    line-height: 1.42857143;
}
/* BS3 の .pagination（kaminari/_paginator.ftl 等は ul.pagination > li > a の BS3 の構造のまま使う。
   BS5 は .page-item・.page-link が前提で、li > a には見た目が付かない。JS のない部品のため、.well と同じく BS3 の定義を残す） */
.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}
.pagination > li {
    display: inline;
}
.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
    z-index: 2;
    color: #23527c;
    background-color: #eee;
    border-color: #ddd;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    z-index: 3;
    color: #fff;
    cursor: default;
    background-color: #337ab7;
    border-color: #337ab7;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #ddd;
}
/* BS3 の .breadcrumb（A の _breadcrumb.ftl は div.breadcrumb の中に a・span を並べる。BS5 の .breadcrumb は flex・背景なし） */
.breadcrumb {
    display: block;
    padding: 8px 15px;
    margin-bottom: 20px;
    list-style: none;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* ------------------------------------------------------------------
 * 9. モーダル（G1 と同じ。BS3: 幅 600px / 外側余白 30px、768px 未満は幅 auto / 余白 10px）
 * ------------------------------------------------------------------ */
.modal {
    --bs-modal-margin: 10px;
    --bs-modal-padding: 15px;
    --bs-modal-header-padding: 15px;
    --bs-modal-border-color: rgba(0, 0, 0, .2);
    --bs-modal-border-radius: 6px;
    --bs-modal-inner-border-radius: 5px;
    --bs-modal-header-border-color: #e5e5e5;
    --bs-modal-footer-border-color: #e5e5e5;
    --bs-modal-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}
@media (max-width: 767.98px) {
    .modal-dialog {
        max-width: none;
    }
}
@media (min-width: 768px) {
    .modal {
        --bs-modal-width: 600px;
        --bs-modal-margin: 30px;
        --bs-modal-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    }
    .modal-dialog {
        width: var(--bs-modal-width);
        max-width: none;
    }
}
@media (min-width: 992px) {
    .modal-lg {
        --bs-modal-width: 900px;
    }
}
@media (min-width: 768px) {
    .modal-sm {
        --bs-modal-width: 300px;
    }
}
.modal-title {
    line-height: 1.42857143;
    margin: 0;
}
.modal-content {
    box-shadow: var(--bs-modal-box-shadow);
    display: block;
}
.modal-footer {
    display: block;
    text-align: right;
    padding: 15px;
}
.modal-footer > * {
    margin: 0;
}
.modal-footer .btn + .btn {
    margin-left: 5px;
}
/* ヘッダーは BS3 と同じ block（× は右に float、clearfix）。G2 のテンプレートは × がタイトルより前にある（BS3 の書き方。32 箇所すべて。
   調査/tools/g2/modal_header_order.js）ため、BS5 の flex のままだと × が左端に来てタイトルを押す。
   G2 の段階 3 の比較で検出（SC の生徒 TOP の教材サンプル: A の独自 CSS の h2（position: relative・背景色）が、移行前は × の上に重なって × が見えなかった） */
.modal-header {
    display: block;
}
.modal-header::before,
.modal-header::after {
    display: table;
    content: " ";
}
.modal-header::after {
    clear: both;
}
/* 大きさは BS3 の × の文字（幅 約 17.5px・高さ 21px）を内容の大きさとする（content-box）。画面の独自 CSS が padding を付ける場合
   （A の check.css.scss の #environmentcheck button { padding: 10px 30px }。環境チェックのモーダル）も、BS3 と同じく内容＋padding の大きさになる */
.modal-header .btn-close {
    box-sizing: content-box;
    float: right;
    width: 17.5px;
    height: 21px;
    padding: 0;
    margin: -2px 0 0 0;
    background-size: 12px auto;
}
/* ログイン画面（login.ftl）のお知らせポップアップ。移行前の × は文字 32px（<span style="font-size: 32px">）だったため、
   その大きさ（幅 約 26.7px・高さ 32px）に合わせる（G1 の cloudt/login.ftl・jumpPage.ftl と同じ） */
#msgDialogOther .modal-header .btn-close {
    width: 26.7px;
    height: 32px;
    background-size: 18px auto;
}

/* ------------------------------------------------------------------
 * 10. ラベル・バッジ（BS3 の .label・.badge。BS5 に .label はなく、.badge は背景色なし）
 * ------------------------------------------------------------------ */
.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}
.label:empty {
    display: none;
}
.label-default { background-color: #777; }
.label-primary { background-color: #337ab7; }
.label-success { background-color: #5cb85c; }
.label-info { background-color: #5bc0de; }
.label-warning { background-color: #f0ad4e; }
.label-danger { background-color: #d9534f; }
.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #777;
    border-radius: 10px;
}
.badge:empty {
    display: none;
}

/* ------------------------------------------------------------------
 * 11. A のヘッダー（layouts/_header.ftl・_oleco_lesson_header.ftl・_school_lesson_header.ftl・no_sign_in_application.ftl）
 *     header.navbar.navbar-default > .container > .navbar-header > .navbar-brand（BS3 の navbar の構造のまま使う）。
 *     BS5 の .navbar は flex レイアウトで、.navbar-default・.navbar-header はないため、BS3 の定義値で block に戻す。
 * ------------------------------------------------------------------ */
.navbar {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0;
    position: relative;
    display: block;
    min-height: 50px;
    padding: 0;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
@media (min-width: 768px) {
    .navbar {
        border-radius: 4px;
    }
}
.navbar-default {
    background-color: #f8f8f8;
    border-color: #e7e7e7;
}
.navbar > .container,
.navbar > .container-fluid {
    display: block;
}
.navbar::before,
.navbar::after,
.navbar-header::before,
.navbar-header::after {
    display: table;
    content: " ";
}
.navbar::after,
.navbar-header::after {
    clear: both;
}
@media (min-width: 768px) {
    .navbar-header {
        float: left;
    }
}
.container > .navbar-header,
.container-fluid > .navbar-header {
    margin-right: -15px;
    margin-left: -15px;
}
@media (min-width: 768px) {
    .container > .navbar-header,
    .container-fluid > .navbar-header {
        margin-right: 0;
        margin-left: 0;
    }
}
.navbar-brand {
    float: left;
    height: 50px;
    padding: 15px 15px;
    margin-right: 0;
    font-size: 18px;
    line-height: 20px;
}
.navbar-brand > img {
    display: block;
}
@media (min-width: 768px) {
    .navbar > .container .navbar-brand,
    .navbar > .container-fluid .navbar-brand {
        margin-left: -15px;
    }
}
.navbar-default .navbar-brand {
    color: #777;
}
.navbar-default .navbar-link {
    color: #777;
}
.navbar-default .navbar-link:hover {
    color: #333;
}

/* ------------------------------------------------------------------
 * 12. ツールチップ（G1 と同じ。移行前は A に同梱の jQuery UI 1.12.1 が $.fn.tooltip を上書きしており、
 *     画面には jQuery UI のツールチップが表示されていた。位置は application-bs5.js のツールチップ初期化で指定する）
 * ------------------------------------------------------------------ */
.tooltip {
    --bs-tooltip-max-width: 300px;
    --bs-tooltip-padding-x: 8px;
    --bs-tooltip-padding-y: 8px;
    --bs-tooltip-font-size: 14px;
    --bs-tooltip-color: #333;
    --bs-tooltip-bg: #fff;
    --bs-tooltip-border-radius: 3px;
    --bs-tooltip-opacity: 1;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.42857143;
}
.tooltip .tooltip-inner {
    text-align: left;
    border: 1px solid #c5c5c5;
    box-shadow: 0 0 5px #666;
}
.tooltip .tooltip-arrow {
    display: none;
}

/* ------------------------------------------------------------------
 * 13. 表（BS3 の .table・.table-condensed・.table-bordered・.table-striped・.table-hover・.table-responsive）
 *     BS5 の .table は余白 .5rem・下罫線・CSS 変数の背景（box-shadow）で描くため、BS3 の上罫線の表に戻す。
 * ------------------------------------------------------------------ */
.table {
    --bs-table-color: inherit;
    --bs-table-bg: transparent;
    --bs-table-border-color: #ddd;
    --bs-table-striped-color: inherit;
    --bs-table-striped-bg: #f9f9f9;
    --bs-table-hover-color: inherit;
    --bs-table-hover-bg: #f5f5f5;
    --bs-table-active-color: inherit;
    --bs-table-active-bg: #f5f5f5;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    vertical-align: top;
}
.table > :not(caption) > * > * {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
    border-bottom-width: 0;
}
.table > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
}
.table > caption + thead > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > th,
.table > thead:first-child > tr:first-child > td {
    border-top: 0;
}
/* BS5 は 2 つ目以降の tbody 等に上罫線 2px（currentcolor）を付ける。BS3 は tbody + tbody だけ 2px #ddd */
.table > :not(:first-child) {
    border-top: 0;
}
.table > tbody + tbody {
    border-top: 2px solid #ddd;
}
.table-condensed > :not(caption) > * > * {
    padding: 5px;
}
.table-bordered {
    border: 1px solid #ddd;
}
.table-bordered > :not(caption) > * {
    border-width: 0;
}
.table-bordered > :not(caption) > * > * {
    border: 1px solid #ddd;
}
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
    border-bottom-width: 2px;
}
@media screen and (max-width: 767px) {
    .table-responsive {
        width: 100%;
        margin-bottom: 15px;
        overflow-y: hidden;
        border: 1px solid #ddd;
    }
    .table-responsive > .table {
        margin-bottom: 0;
    }
    .table-responsive > .table > :not(caption) > * > * {
        white-space: nowrap;
    }
}

/* BS3 の表の状態クラス（td.info 等。BS5 は .table-info 等に変わった）。塾の生徒の予約確認（student_juku/reservations/reservation_check.ftl）の td.info。
   G2 の段階 3 の比較で検出 */
.table > thead > tr > td.active,
.table > thead > tr.active > td,
.table > thead > tr > th.active,
.table > thead > tr.active > th,
.table > tbody > tr > td.active,
.table > tbody > tr.active > td,
.table > tbody > tr > th.active,
.table > tbody > tr.active > th,
.table > tfoot > tr > td.active,
.table > tfoot > tr.active > td,
.table > tfoot > tr > th.active,
.table > tfoot > tr.active > th {
    background-color: #f5f5f5;
}
.table > thead > tr > td.success,
.table > thead > tr.success > td,
.table > thead > tr > th.success,
.table > thead > tr.success > th,
.table > tbody > tr > td.success,
.table > tbody > tr.success > td,
.table > tbody > tr > th.success,
.table > tbody > tr.success > th,
.table > tfoot > tr > td.success,
.table > tfoot > tr.success > td,
.table > tfoot > tr > th.success,
.table > tfoot > tr.success > th {
    background-color: #dff0d8;
}
.table > thead > tr > td.info,
.table > thead > tr.info > td,
.table > thead > tr > th.info,
.table > thead > tr.info > th,
.table > tbody > tr > td.info,
.table > tbody > tr.info > td,
.table > tbody > tr > th.info,
.table > tbody > tr.info > th,
.table > tfoot > tr > td.info,
.table > tfoot > tr.info > td,
.table > tfoot > tr > th.info,
.table > tfoot > tr.info > th {
    background-color: #d9edf7;
}
.table > thead > tr > td.warning,
.table > thead > tr.warning > td,
.table > thead > tr > th.warning,
.table > thead > tr.warning > th,
.table > tbody > tr > td.warning,
.table > tbody > tr.warning > td,
.table > tbody > tr > th.warning,
.table > tbody > tr.warning > th,
.table > tfoot > tr > td.warning,
.table > tfoot > tr.warning > td,
.table > tfoot > tr > th.warning,
.table > tfoot > tr.warning > th {
    background-color: #fcf8e3;
}
.table > thead > tr > td.danger,
.table > thead > tr.danger > td,
.table > thead > tr > th.danger,
.table > thead > tr.danger > th,
.table > tbody > tr > td.danger,
.table > tbody > tr.danger > td,
.table > tbody > tr > th.danger,
.table > tbody > tr.danger > th,
.table > tfoot > tr > td.danger,
.table > tfoot > tr.danger > td,
.table > tfoot > tr > th.danger,
.table > tfoot > tr.danger > th {
    background-color: #f2dede;
}

/* ------------------------------------------------------------------
 * 14. datetimepicker（Eonasdan 4.17.47。assets/application-bs5.js 内の複製）
 *     ウィジェットの表は BS3 の .table-condensed（セルの余白 5px）、ボタンは BS3 の a の文字色（#337ab7）が前提
 *     （調査/SC_NWT-3104_G2_調査.md §8 の検証で確認）
 * ------------------------------------------------------------------ */
.bootstrap-datetimepicker-widget .table-condensed > thead > tr > th,
.bootstrap-datetimepicker-widget .table-condensed > tbody > tr > td {
    padding: 5px;
}
.bootstrap-datetimepicker-widget a.btn,
.bootstrap-datetimepicker-widget a[data-action] {
    color: #337ab7;
}

/* ------------------------------------------------------------------
 * 15. カルーセル（BS3 の .carousel-control・.carousel-indicators の見た目。shared/exercise/_page_sample.ftl の教材サンプル等）
 *     項目は BS5 の .carousel-item（JS の切替は BS5）。矢印は BS3 の構造（a.left/right.carousel-control ＋ glyphicon）のまま、
 *     表示器は li[data-bs-target] のまま使うため、BS3 の定義を残す（BS5 の .carousel-indicators [data-bs-target] は 30x3 の棒）
 *     G2 の段階 3 の比較で検出（SC の生徒 TOP の教材サンプルのモーダル）
 * ------------------------------------------------------------------ */
.carousel-inner > .carousel-item > img {
    display: block;
    max-width: 100%;
    height: auto;
    line-height: 1;
}
.carousel-control {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 15%;
    font-size: 20px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
    background-color: rgba(0, 0, 0, 0);
    opacity: .5;
}
.carousel-control.left {
    background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .0001) 100%);
    background-repeat: repeat-x;
}
.carousel-control.right {
    right: 0;
    left: auto;
    background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0, rgba(0, 0, 0, .5) 100%);
    background-repeat: repeat-x;
}
.carousel-control:hover,
.carousel-control:focus {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: .9;
}
.carousel-control .glyphicon-chevron-left,
.carousel-control .glyphicon-chevron-right {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-block;
    margin-top: -10px;
}
.carousel-control .glyphicon-chevron-left {
    left: 50%;
    margin-left: -10px;
}
.carousel-control .glyphicon-chevron-right {
    right: 50%;
    margin-right: -10px;
}
.carousel-indicators {
    position: absolute;
    display: block;
    right: auto;
    bottom: 10px;
    left: 50%;
    z-index: 15;
    width: 60%;
    padding-left: 0;
    margin: 0 0 0 -30%;
    text-align: center;
    list-style: none;
}
.carousel-indicators [data-bs-target] {
    box-sizing: border-box;
    display: inline-block;
    flex: none;
    width: 10px;
    height: 10px;
    padding: 0;
    margin: 1px;
    text-indent: -999px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #fff;
    border-radius: 10px;
    opacity: 1;
    transition: none;
}
.carousel-indicators [data-bs-target].active {
    width: 12px;
    height: 12px;
    margin: 0;
    background-color: #fff;
}
@media screen and (min-width: 768px) {
    .carousel-control .glyphicon-chevron-left,
    .carousel-control .glyphicon-chevron-right {
        width: 30px;
        height: 30px;
        margin-top: -10px;
        font-size: 30px;
    }
    .carousel-control .glyphicon-chevron-left {
        margin-left: -10px;
    }
    .carousel-control .glyphicon-chevron-right {
        margin-right: -10px;
    }
    .carousel-indicators {
        bottom: 20px;
    }
}
/* ------------------------------------------------------------------
 * 16. BS5 でなくなった BS3 の部品（.thumbnail・.caption・.img-circle・.media）
 *     G2 の画面で使われているもの（調査/tools/g2/bs3_only_classes.js で抽出）。JS のない部品のため、.well と同じく BS3 の定義を残す
 *       .thumbnail・.caption: 塾の生徒の教材・ゲームの動画（student_juku/exercises/show.ftl・top/game_movie.ftl）。G2 の段階 3 の比較で検出
 *       .img-circle・.media 系: 講師のプロフィール（shared/teacher/_profile.ftl）・SC の生徒 TOP
 *     .media > .pull-left は置換後の名前（.float-start）で書く
 * ------------------------------------------------------------------ */
.thumbnail {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border .2s ease-in-out;
}
.thumbnail > img,
.thumbnail a > img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
    border-color: #337ab7;
}
.thumbnail .caption {
    padding: 9px;
    color: #333;
}
.img-circle {
    border-radius: 50%;
}
.media {
    margin-top: 15px;
}
.media:first-child {
    margin-top: 0;
}
.media,
.media-body {
    overflow: hidden;
    zoom: 1;
}
.media-body {
    width: 10000px;
}
.media-object {
    display: block;
}
.media-right,
.media > .float-end {
    padding-left: 10px;
}
.media-left,
.media > .float-start {
    padding-right: 10px;
}
.media-left,
.media-right,
.media-body {
    display: table-cell;
    vertical-align: top;
}
.media-heading {
    margin-top: 0;
    margin-bottom: 5px;
}