/**
 * D:GLANZ トップページ スタイルシート
 * mystyle.css
 *
 * 対象ページ: www.dglanz.jp/test/ (page-test.php)
 *
 * セクション構成:
 * 1. Slideshow        - メインビジュアル スライドショー
 * 2. House Event      - イベント情報カルーセル（SVGカード）
 * 3. Design Concept   - こだわり紹介セクション
 * 4. Lineup           - ラインナップ一覧
 * 5. Voice            - お客様の声 & 施工事例
 * 6. Safety           - 安心サポート紹介
 * 7. Area             - 施工エリア
 * 8. News             - お知らせ
 * 9. Mobile Responsive - スマホ対応（768px以下）
 *
 * 更新履歴:
 * - 2025/12/22: House Event セクションをSVGカードに変更
 *               タグ自動判定機能対応
 */

/* ========================================
   Common Button Style
   ======================================== */
img[src*="button_00"] {
    width: 280px;
    height: auto;
}

/* ========================================
   Common Title Style - Areaサイズ基準で統一
   ======================================== */
img[src*="title_001"] { height: 58px; width: auto; }
img[src*="title_003"] { height: 58px; width: auto; }
img[src*="title_004"] { height: 102px; width: auto; }
img[src*="title_005"] { height: 55px; width: auto; }

/* ========================================
   Global - モバイル横スクロール防止
   ======================================== */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

.container-fluid {
    overflow-x: hidden;
    max-width: 100%;
}

/* SP用追加スタイル */
@media (max-width: 768px) {
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .col-12 {
        padding-left: 0;
        padding-right: 0;
    }
    svg {
        max-width: 100%;
        height: auto;
    }
}

/* ========================================
   Slideshow
   ======================================== */
.slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.slideshow-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.slideshow-container .slide:first-child {
    position: relative;
}
.slideshow-container .slide.active {
    opacity: 1;
}

/* ========================================
   House Event Section（見学会のご案内）
   ========================================

   カード表示方式: インラインSVG
   - 248x300px のSVGカードを横スクロールで表示
   - タグは4種類（coming-soon/ongoing/ended/extended）
   - タグ色とテキストはPHP側で動的に設定

   関連ファイル:
   - page-test.php: render_event_card_svg() 関数
   - acf-json/group_event.json: ACFフィールド定義
   ======================================== */
.house-event-section {
    padding: 60px 20px;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
}
.house-event-header {
    margin-bottom: 30px;
}
.house-event-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.house-event-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.title-icon {
    color: #0066cc;
    font-size: 24px;
}
.house-event-title h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.house-event-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 0 10px;
}
.carousel-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}
.carousel-arrow {
    background: #f5f5f5;
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-arrow:hover {
    background: #e0e0e0;
}
.carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dot {
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active {
    background: #0066cc;
}
.event-carousel-wrapper {
    position: relative;
}
.event-carousel {
    overflow: hidden;
}
.event-cards-container {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}
/* イベントカードSVG（257x310.501px） */
.event-card-svg {
    flex-shrink: 0;
    width: 257px;
    height: 310.501px;
}
.more-button-wrapper {
    text-align: center;
    margin-top: 30px;
}
.more-button {
    display: inline-block;
    padding: 15px 60px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    transition: background 0.3s;
}
.more-button:hover {
    background: #555;
    color: #fff;
}
.more-button span {
    margin-left: 10px;
}

/* ========================================
   Design Concept Section
   ======================================== */
.design-concept-section {
    position: relative;
    padding: 60px 40px;
    overflow: visible;
}
.design-concept-section::before {
    content: '';
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.design-concept-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 70px;
    position: relative;
    z-index: 1;
}
.design-concept-text {
    flex: 0 0 30%;
    padding-top: 150px;
    transform: translateX(40px);
}
.design-concept-text img {
    max-width: 350px;
    width: 100%;
    height: auto;
}
.design-concept-image {
    flex: 0 0 65%;
    margin-right: -40px;
}
.design-concept-image img {
    width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .design-concept-inner {
        flex-direction: column;
    }
    .design-concept-text,
    .design-concept-image {
        flex: 0 0 100%;
    }
}

/* ========================================
   Lineup Section
   ======================================== */
.lineup-section {
    padding: 80px 40px 0 40px;
    background: #fff;
}
.lineup-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.lineup-header {
    margin-bottom: 40px;
}
.lineup-header img {
    height: 58px;
    width: auto;
}

/* 画像ギャラリー（メイン+サムネイル2列3行） */
.lineup-gallery {
    display: flex;
    gap: 5px;
    margin-bottom: 0px;
}
.lineup-main-image {
    flex: 0 0 71%;
    aspect-ratio: 710/430;
    overflow: hidden;
}
.lineup-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.lineup-main-image img.fade-out {
    opacity: 0;
}
.lineup-thumbnails {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
}
.lineup-thumb {
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: opacity 0.3s ease;
}
.lineup-thumb.fade-out {
    opacity: 0;
}
.lineup-thumb.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #c00;
    z-index: 1;
    pointer-events: none;
}
.lineup-thumb.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 0 20px;
    border-color: transparent transparent transparent #c00;
    z-index: 2;
}
.lineup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品情報（画像の下） */
.lineup-info-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 0;
}
.lineup-info-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-right: 25px;
    position: relative;
}
.lineup-info-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: #ccc;
}
.lineup-model {
    font-size: 50px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}
.lineup-type-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.lineup-type-ja {
    font-size: 10px;
    color: #666;
    margin-bottom: 3px;
}
.lineup-type {
    font-size: 30px;
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1;
}
.lineup-info-center {
    flex: 1;
    padding: 0 25px;
    position: relative;
}
.lineup-info-center::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: #ccc;
}
.lineup-catchphrase {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}
.lineup-info-right {
    flex-shrink: 0;
    padding-left: 25px;
}
.lineup-360-button {
    display: inline-block;
}
.lineup-360-button img {
    height: 55px;
    width: auto;
    transition: opacity 0.3s;
}
.lineup-360-button:hover img {
    opacity: 0.8;
}

/* カルーセルセクション（グレー背景） */
.lineup-carousel-section {
    background: #e8e4df;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 30px 40px;
}

/* 下部カルーセル */
.lineup-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
}
.lineup-carousel-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}
.lineup-carousel-arrow:hover {
    opacity: 0.7;
}
.lineup-carousel-arrow svg {
    display: block;
}
.lineup-carousel {
    width: 860px;
    overflow: visible;
    overflow-x: clip;
    position: relative;
    padding-top: 15px;
}
.lineup-icons-container {
    display: flex;
    gap: 1px;
    transition: transform 0.5s ease;
}

.lineup-icon-item {
    flex-shrink: 0;
    width: 130px;
    height: 100px;
    cursor: pointer;
    background: #fff;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    padding: 5px;
    opacity: 0.6;
    transform: scale(0.9);
}
.lineup-icon-item.active {
    background: #fff;
    opacity: 1;
    transform: scale(1);
}
.lineup-icon-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    border-radius: 10px;
    pointer-events: none;
}
.lineup-icon-item.active::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 0px solid #8b7355;
    border-top: 0px solid #8b7355;
}
.lineup-icon-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 35px;
}

/* SP版 Lineup アイコン */
.lineup-icon-sp {
    position: relative;
    transition: all 0.3s;
}
.lineup-icon-sp.active {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.lineup-icon-sp.active img {
    opacity: 1;
}
.lineup-icon-sp.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 12px 0 12px;
    border-color: #fff transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* SP版 Lineup アイコンカルーセル スクロールバー非表示 */
#lineup-icons-wrapper-sp {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#lineup-icons-wrapper-sp::-webkit-scrollbar {
    display: none;
}

/* 全ラインナップボタン */
.lineup-all-button-wrapper {
    text-align: center;
    padding: 25px 0 5px;
}
.lineup-all-button {
    display: inline-block;
}
.lineup-all-button img {
    width: 280px;
    height: auto;
    transition: opacity 0.3s;
}
.lineup-all-button:hover img {
    opacity: 0.8;
}

@media (max-width: 992px) {
    .lineup-gallery {
        flex-direction: column;
    }
    .lineup-main-image,
    .lineup-thumbnails {
        flex: 0 0 100%;
    }
    .lineup-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    .lineup-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .lineup-info-left {
        padding-right: 0;
    }
    .lineup-info-left::after,
    .lineup-info-center::after {
        display: none;
    }
    .lineup-info-center {
        padding: 0;
    }
    .lineup-info-right {
        padding-left: 0;
    }
    .lineup-carousel-section {
        margin: 0 -20px;
        padding: 20px;
    }
}

/* ========================================
   Voice Section
   ======================================== */
.voice-section {
    padding: 80px 40px;
    background: #fff;
}
.voice-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.voice-header {
    margin-bottom: 40px;
}
.voice-header img {
    height: 102px;
    width: auto;
}
.voice-cards {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    gap: 30px;
    justify-content: center;
}
.voice-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.voice-card-link:hover .voice-card {
    transform: translateY(-5px);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
}
.voice-card {
    background: #fff;
    border-radius: 0 0 20px 0;
    overflow: visible;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 3px 3px 4.5px rgba(0,0,0,0.16);
    max-width: 320px;
    margin: 0 auto;
}
.voice-card-image {
    position: relative;
    aspect-ratio: 320/200;
    overflow: hidden;
}
.voice-card-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.voice-card-tags {
    position: absolute;
    bottom: 5px;
    left: 0;
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    z-index: 1;
}
.voice-tag {
    background: #462300;
    color: #fff;
    padding: 3px 10px;
    font-size: 10px;
    border: 1px solid #a37c54;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.05em;
}
/* SW住宅 - グラデーション */
.voice-tag.gradient {
    background: linear-gradient(135deg, #ff5800 20%, #002780 100%);
    border: 2px solid transparent;
    color: #fff;
}
/* 機能タグ - 白背景・茶枠 */
.voice-tag.outline {
    background: #fff;
    color: #462300;
    border: 1px solid #462300;
}
/* サブタグ（中庭など） - 白背景・茶枠・2px枠 */
.voice-tag.sub-tag {
    background: #fff;
    color: #462300;
    border: 2px solid #462300;
    font-weight: 600;
}
.voice-card-content {
    background: #462300;
    color: #fff;
    padding: 20px 15px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 0 0 20px 0;
}
.voice-card-icon {
    flex-shrink: 0;
}
.voice-card-icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fcf8ec;
}
.voice-card-text {
    flex: 1;
}
.voice-card-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
.voice-button-wrapper {
    text-align: center;
    margin-top: 40px;
}
.voice-button img {
    width: 280px;
    height: auto;
    transition: opacity 0.3s;
}
.voice-button:hover img {
    opacity: 0.8;
}

/* Voice Archive Page */
.voice-top-image {
    width: 100%;
}
.voice-top-image img {
    width: 100%;
    height: auto;
    display: block;
}
.voice-archive-section {
    background: transparent;
}
.voice-archive-cards {
    grid-template-columns: repeat(3, 320px);
}
.voice-pagination {
    text-align: center;
    margin-top: 50px;
}
.voice-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    color: #462300;
    text-decoration: none;
    border: 1px solid #462300;
    border-radius: 5px;
    transition: all 0.3s;
}
.voice-pagination .page-numbers:hover,
.voice-pagination .page-numbers.current {
    background: #462300;
    color: #fff;
}
.voice-back-button-wrapper {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
}
.voice-back-button {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s;
}
.voice-back-button img {
    height: 60px;
    width: auto;
}
.voice-back-button:hover {
    opacity: 0.8;
}
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1;
}

/* Event Archive Page */
.event-top-image {
    width: 100%;
}
.event-top-image img {
    width: 100%;
    height: auto;
    display: block;
}
.event-archive-section {
    background: transparent;
    padding: 40px 0 80px;
}
.event-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.event-header {
    margin-bottom: 40px;
}
.event-archive-cards {
    display: grid;
    grid-template-columns: repeat(3, 257px);
    gap: 30px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}
.event-card-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s;
    padding-top: 20px;
}
.event-card-link:hover {
    transform: translateY(-5px);
}
.event-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}
.event-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    color: #462300;
    text-decoration: none;
    border: 2px solid #462300;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s;
}
.event-pagination .page-numbers:hover,
.event-pagination .page-numbers.current {
    background: #462300;
    color: #fff;
}
.event-pagination .page-numbers.prev,
.event-pagination .page-numbers.next {
    min-width: 60px;
}
/* Event Single Page */
.event-single-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.event-back-button-wrapper {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
}
.event-back-button {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s;
}
.event-back-button img {
    height: 60px;
    width: auto;
}
.event-back-button:hover {
    opacity: 0.8;
}
@media (max-width: 850px) {
    .event-archive-cards {
        grid-template-columns: repeat(2, 257px);
    }
}
@media (max-width: 1080px) {
    .voice-cards {
        grid-template-columns: repeat(2, 320px);
    }
}
@media (max-width: 720px) {
    .voice-cards {
        grid-template-columns: 320px;
    }
}
@media (max-width: 360px) {
    .voice-cards {
        grid-template-columns: 1fr;
    }
    .voice-card {
        max-width: 100%;
    }
}

/* ========================================
   Safety Section
   ======================================== */
.safety-section {
    position: relative;
    padding: 60px 40px;
    overflow: visible;
}
.safety-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}
.safety-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 70px;
    position: relative;
    z-index: 1;
}
.safety-text {
    flex: 0 0 30%;
    margin-left: 80px;
    padding-top: 80px;
}
.safety-text img {
    max-width: 350px;
    width: 100%;
    height: auto;
}
.safety-button {
    display: inline-block;
    margin-top: 30px;
}
.safety-button img {
    width: 280px;
    transition: opacity 0.3s;
}
.safety-button:hover img {
    opacity: 0.8;
}
.safety-image {
    flex: 0 60%;
    margin-right: -120px;
    transform: translateX(45px);
}
.safety-image img {
    width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .safety-inner {
        flex-direction: column;
    }
    .safety-text,
    .safety-image {
        flex: 0 0 100%;
    }
}

/* ========================================
   Area Section
   ======================================== */
.area-section {
    padding: 80px 40px;
    background: #fff;
}
.area-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.area-header {
    margin-bottom: 40px;
}
.area-header img {
    height: auto;
}
.area-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}
.area-map {
    flex: 0 0 60%;
}
.area-map img {
    width: 100%;
    height: auto;
}
.area-text {
    flex: 1;
    padding-top: 20px;
    transform: translateX(-10px);
}
.area-text img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .area-content {
        flex-direction: column;
    }
    .area-map {
        flex: 0 0 100%;
    }
}

/* ========================================
   News Section
   ======================================== */
.news-section {
    padding: 0 40px;
    background: #fff;
}
.news-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.news-layout {
    display: flex;
    gap: 60px;
}
.news-title-area {
    flex: 0 0 200px;
}
.news-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}
.news-title .title-icon {
    width: 8px;
    height: 30px;
    display: flex;
    flex-direction: column;
}
.news-title .title-icon::before,
.news-title .title-icon::after {
    content: '';
    width: 8px;
    height: 12px;
    background: #de0012;
}
.news-title .title-icon::before {
    margin-bottom: 3px;
}
.news-title .title-text {
    font-size: 48px;
    font-weight: bold;
    color: #3c1e00;
    font-family: 'Hiragino Sans', sans-serif;
}
.news-subtitle {
    font-size: 14px;
    color: #666;
    padding-left: 18px;
}
.news-list-area {
    flex: 1;
    border-top: 1px solid #b9b9b9;
}
.news-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px dashed #b9b9b9;
    text-decoration: none;
    transition: opacity 0.3s;
}
.news-item:hover {
    opacity: 0.7;
}
.news-item:first-child {
    border-top: none;
}
.news-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.news-category {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.1em;
    min-width: 80px;
    text-align: center;
}
.news-category.new {
    background: #de0012;
}
.news-category.info {
    background: #baab95;
}
.news-category.event {
    background: #8b653f;
}
.news-date {
    font-size: 13px;
    color: #231816;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.news-item-center {
    flex: 1;
    padding: 0 20px;
}
.news-title-text {
    font-size: 16px;
    font-weight: bold;
    color: #231816;
    letter-spacing: 0.06em;
}
.news-item-right {
    flex-shrink: 0;
}
.news-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-arrow svg {
    transform: rotate(0);
}

@media (max-width: 992px) {
    .news-layout {
        flex-direction: column;
        gap: 30px;
    }
    .news-title-area {
        flex: 0 0 auto;
    }
}
@media (max-width: 576px) {
    .news-item {
        flex-wrap: wrap;
    }
    .news-item-left {
        width: 100%;
        margin-bottom: 10px;
    }
    .news-item-center {
        flex: 1;
        padding: 0;
    }
}

/* ========================================
   Mobile Responsive Styles (SP)
   ======================================== */

/* スマホ用スライドショー画像切り替え */
.slide-pc { display: block; }
.slide-sp { display: none; }

@media (max-width: 768px) {
    .slide-pc { display: none; }
    .slide-sp { display: block; }

    /* House Event Section - Mobile */
    .house-event-section {
        padding: 40px 15px;
    }
    .house-event-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .house-event-title h2 {
        font-size: 24px;
    }
    .carousel-nav {
        width: 100%;
        justify-content: center;
    }
    .event-card-svg {
        width: 200px;
        height: auto;
    }
    .more-button {
        padding: 12px 40px;
        font-size: 13px;
    }

    /* Design Concept Section - Mobile */
    .design-concept-section {
        padding: 40px 20px;
    }
    .design-concept-section::before {
        top: 40px;
    }
    .design-concept-inner {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .design-concept-text {
        flex: 0 0 100%;
        padding-top: 0;
        text-align: center;
    }
    .design-concept-text img {
        max-width: 280px;
    }
    .design-concept-image {
        flex: 0 0 100%;
        margin-right: 0;
    }

    /* Lineup Section - Mobile */
    .lineup-section {
        padding: 40px 15px 0 15px;
    }
    .lineup-header {
        margin-bottom: 20px;
        text-align: center;
    }
    .lineup-header img {
        height: 58px;
        width: auto;
    }
    .lineup-gallery {
        flex-direction: column;
    }
    .lineup-main-image {
        flex: 0 0 100%;
        aspect-ratio: 16/10;
    }
    .lineup-thumbnails {
        flex: 0 0 auto;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    .lineup-info-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 20px 0;
    }
    .lineup-info-left {
        padding-right: 0;
        flex-direction: column;
        align-items: center;
    }
    .lineup-info-left::after {
        display: none;
    }
    .lineup-model {
        font-size: 36px;
    }
    .lineup-type {
        font-size: 22px;
    }
    .lineup-info-center {
        padding: 0;
    }
    .lineup-info-center::after {
        display: none;
    }
    .lineup-catchphrase {
        font-size: 13px;
    }
    .lineup-info-right {
        padding-left: 0;
    }
    .lineup-360-button img {
        height: 45px;
    }
    .lineup-carousel-section {
        margin: 0 -15px;
        padding: 20px 15px;
    }
    .lineup-carousel-wrapper {
        gap: 10px;
    }
    .lineup-carousel {
        width: calc(100% - 80px);
    }
    .lineup-carousel-arrow svg {
        width: 32px;
        height: 22px;
    }
    .lineup-icon-item {
        width: 80px;
        height: 55px;
        border-radius: 10px;
    }
    .lineup-icons-container {
        gap: 10px;
    }
    .lineup-all-button img {
        width: 280px;
        height: auto;
    }

    /* Voice Section - Mobile */
    .voice-section {
        padding: 40px 15px;
    }
    .voice-header {
        margin-bottom: 25px;
        text-align: center;
    }
    .voice-header img {
        height: 102px;
        width: auto;
    }
    .voice-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .voice-card-content {
        padding: 12px;
        gap: 10px;
    }
    .voice-card-icon img {
        width: 40px;
        height: 40px;
    }
    .voice-card-text p {
        font-size: 13px;
    }
    .voice-button-wrapper {
        margin-top: 30px;
    }
    .voice-button img {
        width: 280px;
        height: auto;
    }

    /* Safety Section - Mobile */
    .safety-section {
        padding: 40px 20px;
    }
    .safety-inner {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .safety-text {
        flex: 0 0 100%;
        padding-top: 0;
        text-align: center;
    }
    .safety-text img {
        max-width: 280px;
    }
    .safety-button {
        margin-top: 20px;
    }
    .safety-button img {
        max-width: 250px;
    }
    .safety-image {
        flex: 0 0 100%;
        margin-right: 0;
    }

    /* Area Section - Mobile */
    .area-section {
        padding: 40px 15px;
    }
    .area-header {
        margin-bottom: 25px;
        text-align: center;
    }
    .area-content {
        flex-direction: column;
        gap: 25px;
    }
    .area-map {
        flex: 0 0 100%;
    }
    .area-text {
        padding-top: 0;
    }

    /* News Section - Mobile */
    .news-section {
        padding: 40px 15px;
    }
    .news-layout {
        flex-direction: column;
        gap: 20px;
    }
    .news-title-area {
        flex: 0 0 auto;
        text-align: center;
    }
    .news-title {
        justify-content: center;
    }
    .news-title .title-text {
        font-size: 36px;
    }
    .news-subtitle {
        padding-left: 0;
    }
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 0;
    }
    .news-item-left {
        width: 100%;
        justify-content: flex-start;
    }
    .news-category {
        padding: 5px 14px;
        font-size: 11px;
        min-width: 70px;
    }
    .news-date {
        font-size: 12px;
    }
    .news-item-center {
        padding: 0;
        width: 100%;
    }
    .news-title-text {
        font-size: 14px;
    }
    .news-item-right {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    .news-item {
        position: relative;
        padding-right: 35px;
    }
}
