@charset "UTF-8";

/* Base styles inherited from layout.css */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Scroll Container */
.scroll-container {
    position: relative;
    width: 100%;
}

/* Hero Section */
.hero#hero-section {
    position: relative;
    width: 100%;
    height: 100vh !important;
    background-image: url('../../img/simple-function/hero.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Black on bottom, Transparent on top */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;

    /* Initial State: Hidden */
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero__overlay.active {
    opacity: 1;
}


.hero__content {
    width: 100%;
    /* Full width */
    padding: 4rem 5vw 5rem 5vw;
    /* Responsive padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

/* Typography */
.hero__catchphrase {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: #fff;
}

.hero__concept-name {
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #fff;
}

.hero__concept-text {
    letter-spacing: 0.1em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

.description-container {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
}

.description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments for smaller screens (optional but good practice) */
@media (max-width: 768px) {
    .hero {
        aspect-ratio: auto;
        height: 100vh;
        /* Full height on mobile */
        background-position: 60% center;
        /* Center on approx 800px from right */
    }

    .hero__overlay {
        /* Gradient from bottom to top */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
        align-items: flex-end;
    }

    .hero__content {
        width: 100%;
        padding: 48px 24px;
        justify-content: flex-end;
        transform: none;
        /* Reset desktop transform */
    }

    .hero__concept-name {
        font-size: 32px;
    }

    .hero__concept-text {
        font-size: 14px;
        line-height: 28px;
    }
}

/* Main Content Stacking */
main {
    position: relative;
    z-index: 10;
    background-color: #fff;
    width: 100%;
}

/* Exterior Design Section */
.exterior {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    background-color: #eff0ee;
    /* Light gray background */
    gap: 5rem;
    position: relative;
    z-index: 10;
    width: 100%;
    /* Ensure full-width background */

    /* Initial state: Hidden */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.exterior.active {
    opacity: 1;
    transform: translateY(0);
}

.exterior__image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.exterior__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* Subtle rounding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.exterior__content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.exterior__content .section-header {
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header__subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #163b65;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-header__title {
    font-size: 36px;
    line-height: 56px;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #333;
}

.exterior__description {
    letter-spacing: 0.1em;
    font-weight: 400;
    color: #666;
    /* Increased contrast from #555 */
    margin-bottom: 2rem;
}

.exterior__points {
    list-style: none;
    padding: 0;
}

.exterior__points li {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #444;
    display: flex;
    align-items: flex-start;
}

.exterior__point-number {
    font-family: 'Noto Sans JP', sans-serif;
    /* Use the same font as hero if possible */
    font-weight: 700;
    color: #ccc;
    margin-right: 1rem;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 0.2rem;
}

/* Lifestyle Slideshow Section */
.lifestyle {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 375px;
    overflow: visible;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 128px;
    margin-bottom: 128px;
}

.lifestyle__container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.lifestyle__track {
    display: flex;
    gap: 2rem;
    height: 100%;
    align-items: center;
    width: max-content;
    animation: lifestyleFlow 20s linear infinite;
}

@keyframes lifestyleFlow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
        /* Half of the track including half a gap */
    }
}

.lifestyle__slide {
    flex-shrink: 0;
    opacity: 1;
    transform: none;
}

.lifestyle__slide img {
    width: 500px;
    height: 375px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Navigation & Indicators - Hidden for flowing marquee */
.lifestyle__nav,
.lifestyle__indicators {
    display: none;
}

/* Floor Plan Section */
.floorplan {
    position: relative;
    z-index: 10;
    padding: 4rem 1.5rem 0;
    /* Base SP: padding-bottom 0 */
    background-color: #fff;
    width: 100%;
    /* Changed from max-width to cover hero */
    margin: 0 auto;
}

.floorplan>* {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

.floorplan .section-header {
    text-align: center;
    margin-bottom: 3rem;
    /* Reduced from 5rem for tighter spacing */
}

.floorplan .section-header__subtitle {
    margin-bottom: 0.5rem;
}



.floorplan__images {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.floorplan__image {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.floorplan__image img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.floorplan__label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.floorplan__description {
    letter-spacing: 0.1em;
    font-weight: 400;
    color: #555;
    text-align: left;
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

.floorplan__specs {
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #e0e0e0;
    font-family: "Noto Sans JP", sans-serif;
}

.floorplan__specs .mobile-row {
    display: none;
}

.floorplan__specs th,
.floorplan__specs td {
    padding: 1rem 1.5rem;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.floorplan__specs th:last-child,
.floorplan__specs td:last-child {
    border-right: none;
}

.floorplan__specs thead th {
    font-weight: 500;
    color: #333;
    background-color: #eff0ee;
    border-bottom: 1px solid #e0e0e0;
}

.floorplan__specs tbody td {
    color: #555;
    font-weight: 400;
}

/* Performance Section */
.performance-section {
    position: relative;
    z-index: 10;
    padding: 8rem 2rem;
    background-color: #fff;
    width: 100%;
    /* Ensure full width cover */
    margin: 0 auto;
}

.performance-section>* {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.performance-section .section-title-wrapper {
    text-align: center;
    margin-bottom: 5rem;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1170px;
    margin: 0 auto;
}

.performance-card {
    background-color: #f9f9f9;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.performance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.performance-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.performance-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.performance-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.performance-description {
    font-size: 0.875rem;
    line-height: 2;
    color: #555;
}

/* Living Room Section */
.living {
    position: relative;
    z-index: 10;
    padding: 8rem 2rem;
    background-color: #2F4E6A;
    width: 100%;
}

.living__content {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    gap: 5rem;
    align-items: center;
}

.living__image {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.living__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.living__text {
    flex: 1;
}

.living__title {
    font-weight: 400;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.living__description {
    letter-spacing: 0.1em;
    font-weight: 400;
    color: #fff;
}

.living .section-header__subtitle {
    color: #fff;
}

.floorplan__image.clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floorplan__image.clickable:hover img {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.modal__content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal__close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

/* Action Buttons Section */
.actions {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: #fff;
}

.actions__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 1.2rem 2rem;
    border: 1px solid #163b65;
    /* border-radius: 50px; Removed for rectangular shape */
    color: #163b65;
    background-color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.actions__group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

@media (min-width: 768px) {
    .actions__group {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .actions__btn {
        width: auto;
        min-width: 300px;
    }
}


/* Mobile Responsiveness for Exterior Section */
@media (max-width: 768px) {
    .exterior {
        flex-direction: column;
        padding: 60px 20px;
        gap: 2rem;
        display: flex;
    }

    .exterior .section-header {
        order: -2;
        /* Header first */
    }

    .exterior__image {
        order: -1;
        /* Image second */
        width: 100%;
        max-width: 100%;
    }

    .exterior__content {
        order: 0;
        /* Content container (description) last */
        width: 100%;
        max-width: 100%;
    }

    .exterior__description,
    .exterior__points {
        order: 1;
        /* Ensure description and points stay below */
    }

    .exterior__description {
        font-size: 14px;
        line-height: 28px;
    }

    .section-header__title {
        font-size: 24px;
        line-height: 40px;
        font-weight: 400;
        margin-bottom: 1.5rem;
    }


    .lifestyle__track {
        gap: 1rem;
    }

    .lifestyle__slide img {
        width: 80vw;
        max-width: 400px;
        height: auto;
        aspect-ratio: 4/3;
    }

    .lifestyle {
        height: auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 40px 0;
    }

    .floorplan {
        padding: 60px 20px 0;
        /* SP: no bottom padding */
    }

    .floorplan .section-header {
        margin-bottom: 2rem;
    }



    .floorplan__images {
        flex-direction: column;
        gap: 2rem;
    }

    .floorplan__image:first-child {
        order: 2;
    }

    .floorplan__image:last-child {
        order: 1;
    }

    .floorplan__image {
        max-width: 100%;
    }

    .floorplan__description {
        font-size: 14px;
        line-height: 28px;
        margin-bottom: 3rem;
    }

    .living {
        padding: 60px 20px;
    }

    .living__content {
        flex-direction: column;
        gap: 2rem;
        display: flex;
    }

    .living .section-header__subtitle,
    .living__title {
        order: -2;
        /* Header elements first */
        color: #fff;
    }

    .living__image {
        order: -1;
        /* Image second */
    }

    .living__description {
        order: 1;
        /* Description last (below image) */
    }

    .living__title {
        font-size: 24px;
        line-height: 40px;
        font-weight: 400;
        margin-bottom: 1.5rem;
    }

    .living__description {
        font-size: 14px;
        line-height: 28px;
        color: #fff;
    }

    .performance-section {
        padding: 60px 20px;
    }

    .performance-section .section-title-wrapper {
        margin-bottom: 3rem;
    }

    .performance-section .section-title {
        font-size: 2rem;
    }

    .performance-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .performance-card {
        padding: 2.5rem 1.5rem;
    }

    .actions {
        padding: 60px 20px;
    }

    .cta-card__title {
        font-size: 20px;
        line-height: 34px;
    }

    .cta-card__text {
        font-size: 14px;
        line-height: 24px;
    }
}

/* PC Override for Floorplan Padding */
@media (min-width: 769px) {
    .floorplan {
        padding-top: 128px;
        padding-bottom: 0;
    }
}


/* Shared Hamburger, Footer and CTA styles are now handled in layout.css */

/* SP Table Styles (max-width: 767px) - Ensures iPad (768px) uses PC layout */
@media (max-width: 767px) {
    .floorplan__specs {
        max-width: 100%;
    }

    .floorplan__specs thead {
        display: none;
    }

    .floorplan__specs tbody {
        display: block;
    }

    .floorplan__specs tbody tr {
        display: block;
        border-bottom: 1px solid #e0e0e0;
    }

    .floorplan__specs tbody tr:last-child {
        border-bottom: none;
    }

    .floorplan__specs tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        text-align: right;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .floorplan__specs tbody td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #333;
        text-align: left;
        background-color: #eff0ee;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        margin-right: 1rem;
    }

    .floorplan__specs tbody td:last-child {
        border-bottom: none;
    }
}