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

/* KV画像（PC/SP切り替え） */
body.location-test4-page .game-image picture {
    width: 100%;
}

/* 更新情報（KV直下） */
body.location-test4-page .location-update-info {
    background-color: #eee;
    padding: 1.25rem 20px;
    margin-bottom: 0;
    box-sizing: border-box;
}
body.location-test4-page .location-update-info__inner {
    max-width: 1000px;
    margin: 0 auto;
}
body.location-test4-page .location-update-info__title {
    display: inline-block;
    margin: 0 0 0.75em;
    padding: 0.35em 0.75em;
    font-size: 1em;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    border: 1px solid #222;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #eee;
}
body.location-test4-page .location-update-info__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* content.css の .main-content .inner li:before は適用しない */
body.location-test4-page .main-content .inner .location-update-info li:before {
    content: none;
    display: none;
}
body.location-test4-page .main-content .inner .location-update-info li {
    text-indent: 0;
    margin-left: 0;
}
body.location-test4-page .location-update-info__item {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    font-size: 0.95em;
    line-height: 1.7;
    color: #222;
}
body.location-test4-page .location-update-info__item + .location-update-info__item {
    margin-top: 0.5em;
}
body.location-test4-page .location-update-info__date {
    font-weight: 700;
    color: #333;
}
body.location-test4-page .location-update-info__text {
    display: block;
}
@media (min-width: 769px) {
    body.location-test4-page .location-update-info {
        padding: 1.25rem 30px;
    }
    /* 日付の右側で本文のみ折り返し（日付の下には回り込まない） */
    body.location-test4-page .location-update-info__item {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 0.75em;
    }
    body.location-test4-page .location-update-info__date {
        flex-shrink: 0;
        white-space: nowrap;
    }
    body.location-test4-page .location-update-info__text {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* 実施時間の更新バッジ */
body.location-test4-page .info-update-badge {
    display: inline-block;
    margin-left: 0.35em;
    padding: 0.1em 0.45em;
    font-size: 0.78em;
    font-weight: 700;
    color: #fff;
    background-color: #d6192a;
    border-radius: 3px;
    vertical-align: middle;
    line-height: 1.4;
}

/* 終了会場：ブラインド（オーバーレイ） */
body.location-test4-page .location-card--ended {
    overflow: hidden;
}
body.location-test4-page .location-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.58);
    pointer-events: auto;
}
body.location-test4-page .location-card__ended-message {
    margin: 0;
    text-align: center;
    color: #fff;
    font-size: clamp(1rem, 2.8vw, 1.25rem);
    font-weight: 700;
    line-height: 1.75;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
body.location-test4-page .location-card--ended .details-link {
    pointer-events: none;
}

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

/* 総合ランキング：styles.css .location-play .summary-content と同様の濃いグレー背景 */
body.location-test4-page .location-ranking .summary-content {
    height: 300px;
    max-height: none;
    min-height: 300px;
    overflow: visible;
    overflow-y: visible;
    background: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: .6em;
    color: #fff;
}
body.location-test4-page .location-ranking .summary-content > * {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* ランキング：カード表示 */
body.location-test4-page .location-ranking .ranking-card {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0;
    color: var(--text-primary);
}
body.location-test4-page .location-ranking .cta-button {
    margin-top: 0;
    margin-bottom: 0;
    text-decoration: none;
}
body.location-test4-page .location-ranking .cta-button:hover,
body.location-test4-page .location-ranking .cta-button:focus-visible {
    text-decoration: none;
}

/* ランキング：参加特典 .benefits-block と同じグレー背景 */
body.location-test4-page .location-ranking .ranking-content.benefits-block {
    background: #eee;
    padding: 20px;
    border-radius: .6em;
    box-sizing: border-box;
    overflow: visible;
}
@media (min-width: 769px) {
    body.location-test4-page .location-ranking .ranking-content.benefits-block {
        padding: 30px;
    }
}

body.location-test4-page .ranking-content {
    width: 100%;
}
body.location-test4-page .ranking-lead {
    margin: 0 0 1.5em;
    font-size: 1.05em;
    font-weight: 700;
    color: #222;
    line-height: 1.6;
}
body.location-test4-page .ranking-update-badge {
    display: inline-block;
    margin-left: 0.35em;
    padding: 0.1em 0.45em;
    font-size: 0.78em;
    font-weight: 700;
    color: #fff;
    background-color: #d6192a;
    border-radius: 3px;
    vertical-align: middle;
    line-height: 1.4;
}
body.location-test4-page .ranking-block + .ranking-block {
    margin-top: 2em;
}
body.location-test4-page .ranking-block__title {
    margin: 0 0 0.75em;
    font-size: 1em;
    font-weight: 700;
    color: #d6192a;
    line-height: 1.5;
}
body.location-test4-page .ranking-block__images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
body.location-test4-page .ranking-block__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
body.location-test4-page .ranking-block__item .ranking-block__title {
    margin-bottom: 0.75em;
}
@media (min-width: 769px) {
    body.location-test4-page .ranking-block__images {
        gap: 20px;
    }
}
body.location-test4-page .ranking-image-trigger {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    transition: opacity 0.2s ease;
}
body.location-test4-page .ranking-image-trigger:hover,
body.location-test4-page .ranking-image-trigger:focus-visible {
    opacity: 0.9;
    outline: 2px solid #d6192a;
    outline-offset: 2px;
}
body.location-test4-page .ranking-image-trigger img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
body.location-test4-page .ranking-image-trigger__zoom {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    pointer-events: none;
}
body.location-test4-page .ranking-image-trigger:hover .ranking-image-trigger__zoom,
body.location-test4-page .ranking-image-trigger:focus-visible .ranking-image-trigger__zoom {
    background: rgba(214, 25, 42, 0.85);
}

/* ランキング下部：ワンガングマ（下半分はグレー背景からはみ出し） */
body.location-test4-page .ranking-footer-visual {
    width: 100%;
    margin-top: 2em;
    margin-bottom: 0;
    line-height: 0;
    overflow: visible;
}
@media (min-width: 769px) {
    body.location-test4-page .ranking-footer-visual {
        width: 60%;
        margin-left: auto;
        margin-right: 0;
    }
}
body.location-test4-page .ranking-footer-visual__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 316;
    /* transform: translateY(50%); */
    margin-bottom: -18.4296875%;
}

/* 会場別ランキング */
body.location-test4-page .location-ranking-venue {
    margin-top: 2em;
}
body.location-test4-page .location-ranking-venue .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 .location-ranking-venue .summary-content > * {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}
/* content.css の .main-content .inner li:before は適用しない */
body.location-test4-page .main-content .inner .ranking-venue-grid li:before {
    content: none;
    display: none;
}
body.location-test4-page .main-content .inner .ranking-venue-grid li {
    text-indent: 0;
    margin-left: 0;
}
body.location-test4-page .ranking-venue-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 769px) {
    body.location-test4-page .ranking-venue-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
body.location-test4-page .ranking-venue-grid__item {
    min-width: 0;
}
body.location-test4-page .ranking-venue-grid__link {
    display: block;
    line-height: 0;
    transition: opacity 0.2s ease;
}
body.location-test4-page .ranking-venue-grid__link:hover,
body.location-test4-page .ranking-venue-grid__link:focus-visible {
    opacity: 0.9;
    outline: 2px solid #d6192a;
    outline-offset: 2px;
    border-radius: 4px;
}
body.location-test4-page .ranking-venue-grid__link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ランキング画像ライトボックス */
body.location-test4-page .ranking-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 16px;
    box-sizing: border-box;
}
body.location-test4-page .ranking-lightbox.is-active {
    display: flex;
}
body.location-test4-page .ranking-lightbox__overlay {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}
body.location-test4-page .ranking-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}
body.location-test4-page .ranking-lightbox__close:hover,
body.location-test4-page .ranking-lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}
body.location-test4-page .ranking-lightbox__close-icon {
    font-size: 1.75rem;
    line-height: 1;
}
body.location-test4-page .ranking-lightbox__inner {
    position: relative;
    z-index: 1;
    max-width: min(100%, 1200px);
    max-height: calc(100vh - 64px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
body.location-test4-page .ranking-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 64px);
    width: auto;
    height: auto;
    margin: 0 auto;
}

.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,
body.location-test4-page section.location-summary.white:not(.location-participation-benefits):not(.location-play) .summary-list > .summary-block > 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;
}

/* データ移行について */
body.location-test4-page section.location-summary.white:has(+ section.location-data-migration) {
    padding-bottom: 30px;
}
body.location-test4-page section.location-summary.white:has(+ section.location-data-migration) .summary-list > p,
body.location-test4-page section.location-summary.white:has(+ section.location-data-migration) .summary-list > .summary-block > p {
    margin-bottom: 0;
    font-size: 1em;
}
body.location-test4-page section.location-summary.white:has(+ section.location-data-migration) .summary-list > .summary-block {
    margin-bottom: 1em;
}
body.location-test4-page section.location-summary.white:has(+ section.location-data-migration) .summary-list > .summary-block:last-child {
    margin-bottom: 0;
}
body.location-test4-page section.location-data-migration .container {
    border: 3px solid #E70014;
    border-radius: 8px;
    padding: 1.5em 1.25em;
    box-sizing: border-box;
}
body.location-test4-page section.location-data-migration .tuning-section {
    margin-top: 0;
    margin-bottom: 0;
}
body.location-test4-page section.location-data-migration .tuning-title {
    margin-bottom: 10px;
}
body.location-test4-page section.location-data-migration .tuning-title .summary-data-migration__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-right: 15px;
}
body.location-test4-page section.location-data-migration .summary-list > p {
    padding-left: 1em;
    text-indent: -1em;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 2;
    color: #222;
}
body.location-test4-page section.location-data-migration .summary-list > p.bullet-indent {
    margin-bottom: 0;
}
body.location-test4-page section.location-data-migration .summary-list > p.summary-data-migration__detail {
    padding-left: 0;
    text-indent: 0;
    margin: 0;
}
body.location-test4-page section.location-data-migration > p.summary-data-migration__inquiry {
    margin: .25em 0 0;
    padding-left: calc(1.25em + 3px);
    font-size: 1em;
    line-height: 2;
    color: #222;
}
body.location-test4-page section.location-data-migration > p.summary-data-migration__inquiry a {
    color: #D6192A;
}

/* 参加特典：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;
}
