/* location-test/2026-05/index.php 専用
   モーダル内に iframe を2段表示するなど、このページ固有の上書き */

.location-test4-page #locationModal .modal-content {
    overflow-y: auto !important;
}

/* このページは body に location-test4-page が付くため、
   styles.css の「location-test4：プレイ可能エリア」上書きが当たってしまう。
   ここでは従来どおり、グレー背景＋上下左右中央寄せに戻す。 */
body.location-test4-page .location-play .summary-content {
    height: 300px;
    overflow-y: auto;
    background: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
body.location-test4-page .location-play .summary-content > * {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.location-test4-page #locationModal .location-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-test4-page #locationModal .location-modal-iframe {
    width: 100%;
    border: none;
    display: block;
}

/* 限定体験会（ロケテスト）概要／プレイ可能なモード・車種：
   【】行の直下から本文末まで左に 1em 。改行後の折り返し行も同じ字下げになる。 */
body.location-test4-page section.location-summary.white:not(.location-participation-benefits):not(.location-play) .summary-list > p {
    padding-left: 1em;
    text-indent: -1em;
    box-sizing: border-box;
}

/* 〈ロケテスト限定モード〉を独立行にする（直後の br は付けない） */
body.location-test4-page section.location-summary.white:not(.location-participation-benefits):not(.location-play) .summary-list > p strong.summary-line-outdent {
    display: block;
}

/* 参加特典：location-play 用の固定枠（300px・中央）を外し、長文＋画像を表示 */
body.location-test4-page .location-participation-benefits .summary-content {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    background: rgba(255, 255, 255, 0.95);
    display: block;
    text-align: left;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

body.location-test4-page .participation-benefits-detail h4 {
    font-size: 1.15em;
    font-weight: 700;
    color: #222;
    margin: 0 0 1em;
    line-height: 1.5;
}
body.location-test4-page .participation-benefits-detail h5 {
    font-size: 1.05em;
    font-weight: 700;
    color: #d6192a;
    margin: 1.5em 0 0.6em;
    line-height: 1.5;
}
body.location-test4-page .participation-benefits-detail h5:first-of-type {
    margin-top: 0;
}
body.location-test4-page .participation-benefits-detail h6 {
    font-size: 1em;
    font-weight: 700;
    color: #222;
    margin: 1.5em 0 0.6em;
    line-height: 1.5;
}

/* 参加特典：プレイ特典/走行距離達成特典のブロック（注意事項と同じグレー） */
body.location-test4-page .participation-benefits-detail .benefits-block {
    background: #eee;
    padding: 20px;
    border-radius: .6em;
    box-sizing: border-box;
}
body.location-test4-page .participation-benefits-detail .benefits-block p {
    font-size: 1em;
}
body.location-test4-page .participation-benefits-detail .benefits-block .game-image.game-image--lt01 {
    margin-bottom: 50px;
}
body.location-test4-page .participation-benefits-detail .benefits-block .game-image.game-image--lt02 {
    margin-bottom: 50px;
}
body.location-test4-page .participation-benefits-detail .benefits-block .game-image.game-image--lt03 {
    margin-bottom: 50px;
}
body.location-test4-page .participation-benefits-detail .benefits-note {
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #e70014;
    margin-bottom: 20px;
}
@media (min-width: 769px) {
    body.location-test4-page .participation-benefits-detail .benefits-note {
        padding: 10px;
    }
}
body.location-test4-page .participation-benefits-detail .benefits-note p {
    font-size: 1em;
    margin: 0;
    line-height: 1.7;
    color: #222;
}
body.location-test4-page .participation-benefits-detail .benefits-block > h5 {
    margin-top: 0;
}
body.location-test4-page .participation-benefits-detail .benefits-block + .benefits-block {
    margin-top: 20px;
}
@media (min-width: 769px) {
    body.location-test4-page .participation-benefits-detail .benefits-block {
        padding: 30px;
    }
}

/* 「※」付き注記：折り返し行を「※」の直後の縦位置に揃える */
body.location-test4-page .note-indent {
    padding-left: 1em;
    text-indent: -1em;
    margin-bottom: 0;
    box-sizing: border-box;
}
body.location-test4-page span.note-indent {
    display: block;
}
/* 全角スペース＋「※」で始まる1行のぶら下げ */
body.location-test4-page .note-indent--2ch {
    padding-left: 2em;
    text-indent: -2em;
}

/* 「・」付き箇条書き：折り返し行を「・」の直後の縦位置に揃える */
body.location-test4-page .bullet-indent {
    padding-left: 1em;
    text-indent: -1em;
    box-sizing: border-box;
}

/* 注意事項（.notes-list）以外で「※」を含む p のフォントサイズ */
body.location-test4-page .participation-benefits-detail p.note-indent {
    font-size: 0.8em;
}
body.location-test4-page section.location-summary .summary-list p span.note-indent {
    font-size: 0.8em;
}
