/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
header {
    background: #000;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1vw;
}

nav ul li a {
    text-decoration: none;
    color: #eee;
    border: 2px solid #333;
    padding: 6px 0.8vw;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
}
@media (max-width: 768px) {
    heeader nav{
        display:none ;
    }


nav ul li {
    margin-left: 1vw;
    font-size: 0.95rem;
}

}


h1.logo {
    width: 45%;
    display: flex;
    align-items: center;
}
h1.logo img {
    width: 100%;
}

@media (max-width: 768px) {
h1.logo {
    width: 73%;
}
}

/* ファーストビュー */
.hero {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    background: url(../img/fv.jpg) center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

@media (max-width: 768px) {

    .hero {
        width: 100%;
        height: auto;
        aspect-ratio: 12 / 9;
        background: url(../img/fv_sp.jpg) center / cover;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-align: center;
    }
}




.hero h2 {
    font-size: 3rem;
    margin-top: 10px;
}

.concept{
    text-align: center;
    font-size: 2rem;
    margin: 60px 0 40px;
    padding-bottom: 10px;
    line-height: 2em;
    font-family: serif;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
}
.concept p{
    margin-bottom: 1em;
}

@media (max-width: 768px) {
.concept{
    font-size: 1.1rem;
}

}

/* セクションタイトル */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 60px 0 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #c00;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }
}
/* 日程・会場 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.info-item {
    background: #f9f9f9;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

.store-photos {
    height: 400px;
    width: 100%;
    overflow: hidden; /* はみ出た2枚目の画像を隠す */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-loop {
    display: flex; /* 画像を横に2枚並べる */
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* 1枚分移動したらループ */
    animation: loop-animation 40s linear infinite;
    will-change: transform;
}

.photo-loop img {
    height: 100%;    /* 高さを400pxに固定 */
    width: auto;     /* 横幅は比率を維持して自動（伸びない！） */
    display: block;
    object-fit: contain; /* 念押しで比率維持 */
}

@keyframes loop-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 画像2枚並んでいるうちの「ちょうど半分」まで動かす */
        transform: translateX(-50%);
    }
}

.photo-banner p {
    background: rgba(255,255,255,0.8);
    padding: 20px 40px;
    font-size: 1.4rem;
    font-weight: bold;
}
@media (max-width: 768px) {
    .photo-banner p {
        font-size: 1.2rem;
    }
    .store-photos {
    height: 400px;
    background: url('../img/room_sp.jpg') center/cover fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}
}

/* 商品カード */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.img-placeholder {
    width: 100%;
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #999;
}

.btn-detail {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-detail:hover {
    background: #c00;
}

/* 認定中古車 */
.used-car-section {
    background: #f4f4f4;
    padding: 80px 0;
}

.used-car-content {
    max-width: 600px;
}


/* --- New Arrivals (Visual Section) --- */
.products-visual-section {
    padding: 80px 0;
    background: #111; /* 背景を黒にしてビジュアルを引き立てる */
    color: #fff;
}

.products-visual-section .section-title {
    color: #fff;
    margin-top: 0;
}

.product-visual-wrapper {
    position: relative;
    height: 500px; /* メインビジュアルの高さ */
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 8px;
}

.product-main-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
}

.product-main-view.is-hidden {
    opacity: 0;
    pointer-events: none; /* 非表示時はクリック不可 */
}

.main-image-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.main-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠いっぱいに表示 */
}

.main-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #fff;
}

@media (max-width: 768px) {
    .main-image-overlay {
    bottom: 52px;
   }
}

.product-category {
    display: inline-block;
    padding: 5px 10px;
    background: #c00;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-radius: 4px;
}

.main-image-overlay h3 {
    font-size: 2.5rem;
        font-weight: 500;
    letter-spacing: 1.8px;
}

/* 商品ナビゲーション（サムネイル） */
.product-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.nav-item {
    width: 100px;
    height: 100px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 50%; /* 丸いサムネイル */
    border: 3px solid #333;
    transition: 0.3s;
    position: relative;
    text-align: center;
}
@media (max-width: 768px) {
    .nav-item {
    width: 80px;
    height: 80px;
}
}

.nav-item:hover, .nav-item.active {
    border-color: #c00;
}

.nav-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.3s;
}

.nav-item:hover img, .nav-item.active img {
    opacity: 1;
}

.nav-item p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
        font-size: 1.1rem;
    line-height: 1em;
    /*font-weight: bold;*/
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* 商品詳細ボタン */
.product-detail-btn-wrapper {
    text-align: center;
}

.product-detail-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: #fff;
    color: #111;
}

.product-detail-btn:hover {
    background: #c00;
    color: #fff;
}

/* --- レスポンシブ修正 --- */
@media (max-width: 768px) {
    .product-visual-wrapper { height: 60vh;
    margin-bottom: 0px;}
    .main-image-placeholder img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
    .main-image-overlay { padding: 20px; }
    .main-image-overlay h3 { font-size: 1.8rem; }
    .product-nav { flex-wrap: wrap; gap: 10px; display: flex;}
   /* .nav-item { width: 60px; height: 60px; }*/
    .nav-item p { font-size: 1rem; }
}

/* 店舗別在庫ボタンのグループ */
.stock-btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-stock {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px); /* 背景を少しぼかして高級感を出す */
    color: #fff;
    text-align: center;
    min-width: 160px;
}

/* 福岡西店ボタンのホバー */
.btn-stock.nishi:hover {
    background: #c00; /* ブランドカラー */
    border-color: #c00;
}

/* 福岡東店ボタンのホバー（色を変える場合） */
.btn-stock.higashi:hover {
    background: #0044cc; /* 例えば青など、店舗で色分けしてもOK */
    border-color: #0044cc;
}

/* スマホ対応：ボタンを縦に並べる */
@media (max-width: 500px) {
    .stock-btn-group {
        flex-direction: column;
        gap: 10px;
    }
    .btn-stock {
        width: 100%;
    }
}

/* --- Shop Information 強化版 --- */
.shop-info-section {
    padding: 100px 0;
    background: #f8f8f8;
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.shop-card {
    background: #fff;
    border-radius: 0; /* あえて角を丸めずシャープにして高級感を出す */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.shop-visual {
    position: relative;
    height: 350px; /* 画像の高さをしっかり出す */
    overflow: hidden;
}

.shop-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-visual img {
    transform: scale(1.05); /* ホバーで画像が少し寄る演出 */
}

.shop-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.shop-tag {
    background: #c00;
    color: #fff;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.shop-body {
    padding: 30px;
}

.shop-body h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-left: 4px solid #c00;
    padding-left: 15px;
}
@media (max-width: 768px) {
    .shop-body h3 {
    font-size: 1.1rem;}
}

.shop-meta {
    margin-bottom: 25px;
}

.shop-meta p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #666;
    display: flex;
}

.shop-meta p span {
    font-weight: bold;
    color: #333;
    width: 60px;
    flex-shrink: 0;
}

/* 店舗別ボタンエリア */
.shop-action {
    display: flex;
    gap: 10px;
}

.btn-detail-dark {
    flex: 2;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-map-outline {
    flex: 1;
    border: 1px solid #ccc;
    color: #333;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-detail-dark:hover { background: #c00; }
.btn-map-outline:hover { background: #eee; }

/* レスポンシブ */
@media (max-width: 850px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-visual { height: 250px; }
}

/* --- Benefits Section (3つの安心) --- */
.benefits-section {
    padding: 100px 0;
    background: #fff;
}

.section-lead {
    text-align: center;
    margin-bottom: 50px;
    color: #eee;
}

#certified-benefits .section-lead {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-10px);
}

.benefit-img {
    height: 200px;
    overflow: hidden;
}

.benefit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefit-content {
    padding: 30px;
    position: relative;
}

.benefit-number {
    font-size: 3rem;
    font-weight: bold;
    color: rgba(204, 0, 0, 0.1); /* ブランドカラーを薄く背景に */
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.benefit-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    position: relative;
}

.benefit-lead {
    color: #c00;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.benefit-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    height: 8em; /* テキストの高さを揃えてボタン位置を統一 */
    overflow: hidden;
}

/* 安心項目の詳細ボタン */
.btn-benefit {
    display: inline-block;
    padding: 10px 0;
    width: 100%;
    background: #333;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-benefit:hover {
    background: #c00;
}

/* レスポンシブ */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: 1fr; /* タブレット以下は縦並び */
        max-width: 500px;
        margin: 0 auto;
    }
}

.product-main-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* transitionを1.5秒くらいにすると、より「ゆっくり」と高級感が出ます */
    transition: opacity 1.5s ease-in-out; 
    z-index: 1;
    pointer-events: none; /* 背後の画像がクリックを邪魔しないように */
}

.product-main-view:not(.is-hidden) {
    pointer-events: auto; /* 表示されている時だけボタンなどを有効化 */
}


/* --- Category Section --- */
.category-section {
    padding: 100px 0;
    background: #1a1a1a; /* プレミアム車エリアとの親和性のためダーク背景 */
    color: #fff;
}

.category-section .section-title {
    color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.category-card {
    background: #222;
    border: 1px solid #333;
    transition: 0.3s;
    overflow: hidden;
}

.category-card:hover {
    border-color: #c00;
}

.cat-img {
    height: 180px;
    overflow: hidden;
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    filter: grayscale(40%);
}

.category-card:hover .cat-img img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.cat-info {
    padding: 20px;
    text-align: center;
}

.cat-info h3 {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.cat-info p {
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 20px;
}

/* カテゴリー内リンクボタン */
.cat-links {
    display: flex;
    gap: 8px;
}

.btn-cat {
    flex: 1;
    padding: 8px 0;
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-cat:hover {
    background: #c00;
    border-color: #c00;
}

/* レスポンシブ */
@media (max-width: 992px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .category-grid { grid-template-columns: 1fr; }
}



.fbox {
    display: flex;
    align-items: center;
    width: 80%;
    margin-inline: auto;
    justify-content: space-evenly;
}
.fbox div {
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}
.fbox_img {
    width: 25%;
}
.fbox_img img {
    width: 100%;
}
.fbox_txt {
    width: 60%;
}
@media (max-width: 768px) {
.fbox {
    display: flex;
    align-items: center;
    width: 80%;
    margin-inline: auto;
    justify-content: space-evenly;
    flex-direction: column;
}
.fbox_img {
    width: 50%;
    margin-bottom: 5vh;
}
.fbox_txt {
    width: 100%;
}
}

/* フッター */
.footer {
    background: #222;
    color: #fff;
    padding: 20px 0 20px;
    margin-top: 60px;
}

.footer-info {
    margin-bottom: 30px;
        text-align: end;
}
@media (max-width: 768px) {
    .footer-info {
    margin-bottom: 30px;
        text-align: center;
}
}

.footer-info a {
    color: #fff;
    text-decoration: none;
    border: #fff solid 1px;
    padding: 5px 10px;
    font-size: 0.9em;
}
.copyright {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 20px;
    color: #888;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero h2 { font-size: 1.8rem; }
    nav { display: none; }  
}

.sp{
    display: none;
}
.pc{display: block;}

@media (max-width: 768px) {
    .sp{
    display: block;
}
.pc{display: none;}

}