/* Mobility Page Custom CSS */

/* ========================================
   基本設定
======================================== */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    width: 100%;
    margin: 0;
    color: #000;
    font-family: "SST W20 Roman","SST W55 Regular", Arial, "Helvetica Neue", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
}

/* ========================================
   共通コンポーネント - スペーサー
======================================== */
.spacer-xs { height: 20px; }
.spacer-sm { height: 40px; }
.spacer-md { height: 60px; }
.spacer-lg { height: 80px; }

/* ========================================
   Hero Carousel セクション
======================================== */

/* カルーセル全体 */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* カルーセルスライド */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 0%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* カルーセルテキストグループ */
.carousel-text-group {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    max-width: 900px;
    width: 85vw;
    min-width: 300px;
    padding: 20px;
    border-radius: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.carousel-text-group h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 10px;
    margin-top: 0;
}

.carousel-text-group h2 {
    font-size: clamp(1.0rem, 3.3vw, 1.6rem);
    margin-bottom: 15px;
    margin-top: 0;
}

.carousel-text-group p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
    margin: 0;
}

/* カルーセルキャプション */
.carousel-caption {
    font-size: clamp(7px, 1.5vw, 10px);
    margin-top: 12px;
    padding-top: 12px;
    line-height: 1.4;
}

/* ドットナビゲーション */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: none;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

.carousel-slide:first-child.active ~ .slide-caption {
    display: block;
}

/* ========================================
   Feature Grid セクション
======================================== */
.feature-grid-section {
    background-color: #e5e8ea;
    padding: 60px 20px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.feature-card {
    background-color: #000;
    color: #fff;
    overflow: hidden;
    text-align: left;
}

.feature-card img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.feature-card-link:hover .feature-card {
    opacity: 0.9;
    cursor: pointer;
}

.feature-caption {
    display: flex;
    flex-direction: column; /* ← 縦に並べる */
    align-items: center;    /* ← 中央揃え */
    justify-content: center;
    background-color: #000;
    color: #fff;
    padding: 12px 20px;
    text-align: center;
}

.label-svg {
    width: 100%;           /* 横幅を最大に */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    Margin-top: 10px;
    margin-bottom: 15px;
}

.label-svg img {
    height: 35px;          /* ロゴの大きさを任意で調整 */
    width: auto;
    display: block;
}

.feature-caption .text {
    font-size: clamp(0.6rem, 2.9vw, 0.9rem);
    word-break: break-word;
    text-align: center;
    color: #999999;
}

.fullwidth-text {
  max-width: 910px;
  margin: 0 auto;
  padding: 0px;
}


/* ========================================
   CTA（Call to Action）
======================================== */
.cat-description {
    text-align: center !important;
    font-size: 0.9rem !important;
    margin-bottom: 20px;
}

.cta-button {
    margin-top: 20px;
    margin-bottom: 20px;
}

.cta-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 300px; 
    padding: 14px 0;
    background-color: #ffc940;
    color: #000;
    font-weight: bold;
    font-size: 1.3rem;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
    text-align: center;
}

.cta-link:hover {
    background-color: #ffb700;
}

.cta-link-detailmore {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 300px; 
    padding: 14px 0;
    background-color: #ececec;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease;
    text-align: center;
    margin-bottom: 20px;
}

.cta-icon {
    width: 20px;
    height: auto;
}

/* ========================================
   Key Feature セクション
======================================== */
.section-keyfeature {
    background-color: #fff;
}

.keyfeature-hero {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: 50% 50%;
    position: relative;
    overflow: hidden;
}

.keyfeature-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.keyfeature-logo {
    padding: 6px 12px;
    border-radius: 4px;
}

.keyfeature-logo img {
    height: 60px;
    display: block;
}

/* AFEELAセクションではoverlayを非表示 */
.section-keyfeature:last-child .keyfeature-overlay {
    display: none;
}

.keyfeature-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 900px;
    width: 85vw;
    min-width: 300px;
    color: #fff;
    border-radius: 6px;
    font-size: clamp(7px, 1.5vw, 11px);
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    z-index: 101;
    line-height: 1.4;
    box-sizing: border-box;
}

.keyfeature-content {
    max-width: 960px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.keyfeature-content h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin-bottom: 40px;
}

.keyfeature-content h3 {
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    margin: 40px 0 24px;
}

.keyfeature-content .lead {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
}

.keyfeature-content .caution {
    font-size: 0.7rem;
    Margin-top: -1em !important;
    text-align: left;
}

.keyfeature-content p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
}

/* ========================================
   Feature Row（画像 + テキスト）
======================================== */
.feature-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    text-align: left;
}

.feature-box {
    flex: 1 1 300px;
    max-width: 440px;
}

.feature-box img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 0px;
}

.section-keyfeature .feature-lead {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.3em;
    margin-top: 0.8em;
}

.section-keyfeature .feature-text {
    margin-top: -0.5em;
}

.feature-box p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-image-text {
    max-width: 960px;
    margin: 80px auto;
    padding: 0px;
    text-align: center;
}

.image-wrap img {
    width: 100%;
    aspect-ratio: 2.5 / 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5em;
}

.text-wrap {
    text-align: left;
}

.feature-image-only {
    width: 100%;
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
}

.feature-image-text .image-wrap-2 {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-image-text .image-wrap-2 img {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: unset;
    border-radius: 6px;
    margin-bottom: 0.5em;
}

/* ========================================
   スマートフォン対応（500px以下）
======================================== */
@media screen and (max-width: 500px) {
    
    /* Key Feature Hero */
    .keyfeature-hero {
        height: 95vw;
        background-size: cover;
        background-position: center center;
    }

    /* 各hero画像の個別調整 */
    .keyfeature-hero[style*="hero-quiet-cell.jpg"] {
        background-position: 60% 50%;
    }

    .keyfeature-hero[style*="hero-360auto-personal.jpg"] {
        background-position: 65% 50%;
    }

    .keyfeature-hero[style*="hero-360auto-cabin.jpg"] {
        background-position: 45% 50%;
    }

    .keyfeature-hero[style*="hero-highsound-quality.jpg"] {
        background-position: 25% 50%;
    }

    .keyfeature-hero[style*="hero-afeela.jpg"] {
        background-position: 50% 50%;
    }

    /* Hero Carousel */
    .hero-carousel {
        height: 140vw;
        position: relative;
        background-color: #000;
    }
    
    .carousel-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        background-color: #000;
    }

    .carousel-slide {
        height: 110vw;
        background-size: cover;
        background-position: center top;
    }

    /* スライド別の背景位置調整 */
    .carousel-slide[data-slide="1"] {
        background-position: 45% 0%;
    }

    .carousel-slide[data-slide="2"] {
        background-position: 90% 0%;
    }

    .carousel-slide[data-slide="3"] {
        background-position: 45% 0%;
    }

    /* テキストグループの調整 */
    .carousel-text-group {
        position: absolute;
        bottom: -50px;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        padding: 15px;
        max-width: none;
    }

    .carousel-text-group h1 {
        font-size: clamp(1.2rem, 6vw, 2rem);
        margin-bottom: 8px;
    }

    .carousel-text-group h2 {
        font-size: clamp(0.7rem, 3.4vw, 1.4rem);
        margin-bottom: 12px;
    }

    .carousel-text-group p {
        font-size: clamp(0.8rem, 3vw, 1rem);
        line-height: 1.5;
    }

    .carousel-caption {
        font-size: 7px;
        margin-top: 8px;
        padding-top: 8px;
    }

    .carousel-dots {
        position: absolute;
        bottom: 20px;
    }

.fullwidth-text {
  margin-top: -20px;
  padding: 10px;
}

    /* スペーサー調整 */
    .spacer-xs { height: 10px; }
    .spacer-sm { height: 20px; }
    .spacer-md { height: 30px; }
    .spacer-lg { height: 40px; }
}