@charset "utf-8";
/* CSS Document */
/* Reset */

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}



/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero__content {
    position: relative;
}

.hero__image {
    width: 100%;
    height: auto;
}

.hero__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
}

/* Location Test Section */
.location-test,.team {
    
    padding: 40px 0; position: relative;
}
.location-test figure,.team figure { display: inline-block; position: relative;}
.location-test:before,.team:before { content: ""; display: block; width: 100%; height: 100%; position: absolute; top:0; left: 0;background-color: #D6192A; z-index: -1; mix-blend-mode:multiply;}
.team:before { background-color: #FFF100;}

.location-test figure:after,.team figure:after { content: "This event has ended"; display: flex; width: 100%; height: 100%; background-color: rgba(0,0,0,.7); color: #FFF; text-align: center;align-items: center; position: absolute; top:0; left: 0;justify-content: center;}

.location-test__banner {
    display: block;
    text-align: center;
}

.location-test__image {
    max-width: 800px;
    width: 100%;
    height: auto;
}

/* Social Feed Section */
.social-feed {
    padding: 40px 0;
   /* background-color: #fff;*/
}

.twitter-embed {
    max-width: 550px;
    margin: 0 auto; height: 220px; overflow: auto;
}

/* Social Links Section */
.social-links {
    padding: 40px 0;
    text-align: center; background-color: #FFF;
}

.social-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

.social-link img {
    width: 32px;
    height: 32px;
}


/* Responsive Design */
@media (max-width: 768px) {
	.sp { display: block; }
	.pc { display: none;}
    .hero__logo {
        width: 90%;
    }

    .location-test {
        padding: 20px 0;
    }

    .location-test__image {
        width: 100%;
    }

    .social-feed {
        padding: 20px 0;
    }

    .twitter-embed {
        width: 100%;
    }

    .copyright {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {

    .hero__logo {
        width: 95%;
    }
}

/* 追加スタイル */

/* ページヒーロー */
.page-hero {
    position: relative;
    height: 240px;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.page-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero__title {
    color: #fff;
    font-size: 36px;
    font-weight: bold;
}

/* セクションタイトル */
.section-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}
.yellow .section-title {background-color: #FFF100;
    mix-blend-mode: multiply; padding: 1em;}

.br-pc {
    display: none;
}
@media (min-width: 769px) {
    .br-pc {
        display: inline;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #D6192A;
}

/* ロケテスト概要 */
.location-summary {
    padding: 60px 0;
}

.summary-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}
.yellow .summary-list { padding: 0 15px;}

.summary-list li {
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.summary-list li::before {
    content: '･';
    
}

/* ロケテスト情報 */
.location-details {
    padding: 60px 0;
  
}

/* プレイ可能なモード・車種：表示枠 */
.location-play .summary-content {
    height: 300px;
    overflow-y: auto;
    background: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: .6em;
    color: #fff;
}
.location-play .summary-content a {
    color: #fff;
}
.location-play .summary-content p {
    color: #fff !important;
}
.location-play .coming-soon {
    margin: 0;
    font-weight: 700;
    color: #222;
}

/* location-test4：プレイ可能エリアに本文を載せる場合（固定枠・中央寄せ解除／flex は使わない） */
body.location-test4-page .location-play .summary-content {
    height: auto;
    max-height: none;
    display: block;
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
}
body.location-test4-page .location-play .summary-content p {
    margin: 0 0 1.2em;
    line-height: 1.7;
    color: #222;
    width: 100%;
    box-sizing: border-box;
}
body.location-test4-page .location-play .summary-content p:last-child {
    margin-bottom: 0;
}

/* location-test4：参加特典ブロック内の段落 */
body.location-test4-page .location-participation-benefits .summary-content > p {
    margin: 0 0 1.2em;
    line-height: 1.7;
    color: #222;
}
body.location-test4-page .location-participation-benefits .summary-content > p:last-child {
    margin-bottom: 0;
}

.location-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.location-card {
    background: #fff;
    border-radius: 8px;
    padding: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: relative;
}

.location-name {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 0px solid #D6192A;
    padding: 20px 20px 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 0.4em;
}

/* Material Symbols Outlined: location_on（FILL 0 / opsz 24 / #EA3323） */
.location-name::before {
    content: "location_on";
    font-family: "Material Symbols Outlined";
    font-size: 24px;
    line-height: 1.25;
    font-weight: normal;
    font-style: normal;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    -webkit-font-smoothing: antialiased;
    color: #ea3323;
    flex-shrink: 0;
}

.location-info { padding: 0 20px 20px 20px;}

.info-group {
    margin-bottom: 20px;
}

.info-group table th { text-align: left;}
.info-group table th,.info-group table td { padding: .5em 0;  border-bottom: 1px solid #ddd;}
.info-group table { margin-bottom: 1em;}

.info-title {
    color: #D6192A;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}
.info-title a {color: #D6192A;word-break: break-all;}
.info-title a:hover { text-decoration:none;}

.info-text {
    font-size: 15px;
    line-height: 1.6;
}

div.info-text {
    margin: 1em 0;
}

/* div.info-text 内の日付行（p）を p.info-text と見た目を揃える */
div.info-text > p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    /* padding-left: 2em; */
}

.info-note {
    font-size: 12px;
    color: #666;
    /*margin-top: 15px;*/
}

.details-link {
    display: block;
    padding: 15px 20px;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    transition: background-color 0.3s ease; font-weight: bold; border-top:1px solid #DDDDDD; text-align: right;
}
.details-link:after { width: 9px; height: 14px; content: ""; display: inline-block; background-image: url("../img/arrow.svg"); background-repeat: no-repeat; background-size: contain; background-position: center; margin-left: 1em; vertical-align: middle;}

#info { position: relative;}
#info figure { max-width: 1000px; margin: 0 auto;}
#info:before { content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;background-color: rgba(0,0,0,.6);mix-blend-mode: multiply;}

@media (min-width: 769px) {
	.details-link { position: absolute; bottom: 0; left: 0; width: 100%; box-sizing: border-box; }
	.location-info { margin-bottom: 60px;}
}

/* 先行体験イベント（location-test4）ページのみ：本文リンクは下線、ホバーで非表示 */
body.location-test4-page main a:not(.details-link) {
    text-decoration: underline;
}
body.location-test4-page main a:not(.details-link):hover {
    text-decoration: none;
}

/* location-test4：概要・注意事項を ul/li ではなく段落（p）で表示 */
body.location-test4-page .summary-list > p {
    margin: 0 0 15px;
    line-height: 2;
    font-size: 1em;
}
body.location-test4-page .summary-list > p:last-child {
    margin-bottom: 0;
}
body.location-test4-page .notes-list > p {
    margin: 0 0 15px;
    line-height: 1.6;
}
body.location-test4-page .notes-list > p:last-child {
    margin-bottom: 0;
}
body.location-test4-page .notes-scroll-200 .notes-list > p {
    /* 先頭の「・」に合わせて、折り返し行をインデント */
    padding-left: 1em;
    text-indent: -1em;
    margin-left: 0;
}

/* 店舗名リンク（カード／モーダル共通） */
a.shop-link {
    color: inherit;
    text-decoration: underline;
}
a.shop-link:hover {
    text-decoration: none;
}

/* ページ内アンカー：固定ヘッダー140px分のオフセット + スムーズスクロール（html に .page-smooth-scroll） */
html.page-smooth-scroll {
    scroll-padding-top: 140px;
}
@media (prefers-reduced-motion: no-preference) {
    html.page-smooth-scroll {
        scroll-behavior: smooth;
    }
}

/* 注意事項 */
.notes {
    padding: 60px 0;
}

.notes-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.notes-list li {
   
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.notes-list li::before {
    content: '･';
   
}

/* 注意事項を固定高さ内でスクロール（ニュース個別ページ用） */
.notes-scroll-200 .notes-list {
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #eee;
    padding: 20px !important;
    padding-right: 8px;
    font-size: 80%;
    box-sizing: border-box;
    border: 1px solid #ccc;
}
.notes-scroll-200 .notes-list li {
    padding-left: 1.3em;
    text-indent: -1.3em;
    margin-left: 0;
}
.notes-scroll-200 .notes-list li:before {
    content: '･';
    display: inline;
    margin-right: .5em;
    background: none;
    width: auto;
    height: auto;
    vertical-align: baseline;
}

.white { background-color: rgba(255,255,255,.6);}
.white2 { background-color: rgba(255,255,255,.8);}
.red {background-color: #fff;}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-hero {
        height: 180px;
    }

    .page-hero__title {
        font-size: 28px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .location-card {
        padding: 0px;
    }

    .location-name {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 140px;
    }

    .page-hero__title {
        font-size: 24px; padding: 0 15px;
    }
    .page-hero__title br,.section-title br { display: none;}
    .section-title {
        font-size: 18px;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }
}

/* モーダル用のスタイル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1000;
}

.modal.is-active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.is-active .modal-overlay {
    opacity: 1;
}

.modal-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.modal.is-active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: relative;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-icon {
    font-size: 24px;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    background: #fff; overflow: hidden;
}

iframe { margin: 0; height: 100%!important;}

/* モバイル対応 */
@media (max-width: 768px) {
    .modal-container {
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-content {
        padding: 15px;
    }
}

.info-group h4 {
    font-size: 105%;
} 
.info-group p {
    font-size: 100%;
}

.summary-list p { margin-bottom: 1em; line-height: 1.8; font-size: 1.1em;}
p.idt,p.idt01 { text-indent: -1em; margin-left: 1em;}
.summary-list h3 { border-left: 3px solid #D6192A; padding-left: 1em; margin-bottom: .4em; font-size: 1.3em; }
.summary-list .inner { margin-bottom: 2em;}
.summary-list p.idt01 + h3 { margin-top: 2em;}
.summary-list p a { color: #D6192A; }
.summary-list p a:hover { text-decoration: none;}
.summary-list p + h3 { margin-top: 2em;}

/* 集計結果ページ用：summary-list テキスト中央揃え */
.summary-list--center {
    text-align: center;
}

/* clm3用のスタイル */
#clm3 .clm3-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

#clm3 .clm3-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    padding: 0px;
}

#clm3 .clm3-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #D6192A;
}

#clm3 .clm3-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.red .summary-content { text-align: center;  font-size: 200%; font-weight: 800; }
.summary-content figure { margin-bottom: 2em; text-align:center;}
.summary-content figure img { border-radius: .6em; border:2px solid #FFF; box-sizing: border-box; max-width:940px;}

/* コメントブロック（左サムネイル・右テキスト） */
.comment-block {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.comment-block__thumb {
    flex-shrink: 0;
    width: 120px;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e8e8e8;
}
.comment-block__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.comment-block__text {
    flex: 1;
    min-width: 0;
}
.comment-block__text p {
    margin-bottom: 1em;
    line-height: 1.7;
}
.comment-block__text p:last-child {
    margin-bottom: 0;
}
.comment-block__label {
    font-weight: bold;
    margin-bottom: 0.5em;
}

/* 引き継ぎ要素 棒グラフ（レスポンシブ） */
.bar-chart-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1.5em;
}
.bar-chart {
    padding: 0.5em 0;
}
/* 目盛り行（バー列と同じグリッドで揃える） */
.bar-chart__scale-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(80px, 60%) auto;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 0.25em;
}
.bar-chart__scale {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    color: #555;
}
.bar-chart__scale span {
    text-align: center;
}
.bar-chart__scale span:first-child { text-align: left; }
.bar-chart__scale span:last-child { text-align: right; }

/* 1行：ラベル | バー | 数値 */
.bar-chart__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(80px, 60%) auto;
    gap: 8px 12px;
    align-items: center;
    min-height: 2em;
    padding: 0.2em 0;
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
}
.bar-chart__label {
    word-break: break-all;
    color: #333;
    line-height: 1.3;
}
.bar-chart__bar-track {
    position: relative;
    height: 1.4em;
    background-color: #fafafa;
    background-image: repeating-linear-gradient(to right, rgba(0,0,0,0.07) 0, rgba(0,0,0,0.07) 1px, transparent 1px, transparent calc(100% / 6));
    border-radius: 4px;
    overflow: hidden;
}
.bar-chart__bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc((var(--p, 0) / 60) * 100%);
    max-width: 100%;
    background: #5eb8b8;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.bar-chart__value {
    flex-shrink: 0;
    min-width: 3.5em;
    text-align: right;
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .bar-chart__scale-row {
        grid-template-columns: 1fr 1fr auto;
        gap: 6px 8px;
    }
    .bar-chart__row {
        grid-template-columns: 1fr 1fr auto;
        gap: 6px 8px;
        font-size: clamp(0.65rem, 3.5vw, 0.8rem);
    }
    .bar-chart__scale {
        font-size: clamp(0.6rem, 2.5vw, 0.7rem);
    }
    .bar-chart__bar-track {
        height: 1.25em;
    }
}

/* 車種円グラフ（登場して欲しい車種） */
.car-chart-wrap {
    margin-top: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    justify-content: center;
}
.car-chart-canvas {
    display: block;
    max-width: 100%;
    width: 280px;
    height: 280px;
}
.car-chart-legend {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}
.car-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}
.car-chart-legend-color {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 2px;
}
.car-chart-legend-label {
    flex: 1;
}
.car-chart-legend-pct {
    flex-shrink: 0;
    font-weight: bold;
}

/* コラボ円グラフ（コラボについて） */
.colabo-chart-wrap {
    margin-top: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    justify-content: center;
}
.colabo-chart-canvas {
    display: block;
    max-width: 100%;
    width: 280px;
    height: 280px;
}
.colabo-chart-legend {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}
.colabo-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}
.colabo-chart-legend-color {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 2px;
}
.colabo-chart-legend-label {
    flex: 1;
}
.colabo-chart-legend-pct {
    flex-shrink: 0;
    font-weight: bold;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .summary-list--center {
        text-align: left;
    }
    #clm3 .clm3-container {
        flex-direction: column;
        align-items: center;
    }
    
    #clm3 .clm3-item {
        width: auto;
        max-width: 100%;
        margin-bottom: 20px;
    }
    .red .summary-content { font-size: 200%;}

    /* コメントブロック：モバイルは縦並び */
    .comment-block {
        flex-direction: column;
        margin-top: 32px;
        padding-top: 32px;
    }
    .comment-block__thumb {
        width: 100%;
        max-width: 220px;
        aspect-ratio: 1/1;
        margin: 0 auto;
    }
    /* 車種円グラフ：モバイルで縦並び・中央寄せ */
    .car-chart-wrap {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .car-chart-canvas {
        width: 260px;
        height: 260px;
    }
    .car-chart-legend {
        width: 100%;
        max-width: 320px;
    }
    .car-chart-legend-item {
        font-size: 13px;
    }
    /* コラボ円グラフ：モバイルで縦並び・中央寄せ */
    .colabo-chart-wrap {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .colabo-chart-canvas {
        width: 260px;
        height: 260px;
    }
    .colabo-chart-legend {
        width: 100%;
        max-width: 320px;
    }
    .colabo-chart-legend-item {
        font-size: 13px;
    }
}
