/* ============================================
   RESIDENCE PAGE STYLES
   ============================================ */



/* Common Container */
.residence-page-container {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .residence-page-container {
        /* width: 90%;
        margin-left: 5%;
        margin-right: 5%; */
        
        width: calc(90% - 13px);
        margin: 0 auto;
    }
}

/* ============================================
   RESIDENCE HERO SECTION
   ============================================ */
.residence-hero {
    margin-top: calc(var(--header-height) + var(--border-frame) + 50px);
    position: relative;
    background: var(--white);
    overflow: hidden;
}

@media (min-width: 769px) {
    .residence-hero {
        margin-top: calc(var(--header-height) + var(--border-frame) + 50px);
    }
}

/* Hero Header (Title + Catchphrase + Background Image) */
.residence-hero-header {
    position: relative;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 60px;
}

.residence-hero-title {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.residence-hero-catchphrase {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Hero Background Image */
.residence-hero-image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25%;
    right: calc(-10vw - 10%);
    z-index: 0;
}

.residence-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Outline Text - 白抜きテキスト */
.outline-text {
    font-size: 40px;
    /* margin-bottom: 60px; */
    color: var(--white);
    text-shadow: -1px -1px 0 var(--navy), 1px -1px 0 var(--navy), -1px 1px 0 var(--navy), 1px 1px 0 var(--navy);
    position:relative;
    z-index: 2;
}

.residence-catchphrase-section {
    padding: 180px 0;
}

.residence-catchphrase-section p {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.residence-catchphrase-section p.fade-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 769px){
    .residence-catchphrase-section {
        padding: 90px 0 30px;
}
}
/* ============================================
   INTRODUCTION SECTION
   ============================================ */
.residence-intro-section {
    background: var(--white);
    padding: 60px 0;
}

.residence-intro-images {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.residence-intro-image {
    max-width: 80%;
}

.residence-intro-image-1 {
    margin-right: auto;
    margin-left: 0;
}

.residence-intro-image-2 {
    margin-left: 35%;
    margin-right: auto;
}

.residence-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Intro Image Fade Animation */
.residence-intro-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.residence-intro-image.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LIVING SPACE SECTION
   ============================================ */
.living-space-section {
    background: var(--accent);
    padding: 80px 0;
    position: relative;
}

.living-space-section .residence-page-container {
    position: relative;
}

.living-space-header {
    position: absolute;
    top: 0;
    left: 0%;
    z-index: 2;
}

.living-space-catchphrase {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.living-space-catchphrase.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.living-space-image {
    text-align: right;
    position: relative;
    z-index: 1;
}

.living-space-image img {
    max-width: 85%;
    margin-left: auto;
    height: auto;
}

/* ============================================
   ORDER MADE IMAGE (above section)
   ============================================ */
.order-made-image-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    text-align: center;
    padding: 0px 0 95px;
}

.order-made {
    position: relative;
}

.order-made-image {
    transform: translateY(-50%) translateX(72%) rotate(-2deg);
    max-width: 200px;
    height: auto;
    display: inline-block;
    position: absolute;
    left: auto;
    right: auto;
    top:0;

}
.order-made-main-img {
    max-width: 500px;
    margin: auto;
    width: 100%;
}

@media (max-width: 900px) and (min-width: 769px){

}

@media (max-width: 769px){
    .order-made-image-wrapper {
        padding: 100px 0 95px;
    }
    .order-made-image {
    transform:  rotate(-2deg);
        max-width: 200px;
        height: auto;
        display: inline-block;
        position: absolute;
        left: auto;
        right: 5%;
       top: -49px;
    }
}


/* ============================================
   ORDER MADE SECTION
   ============================================ */
.order-made-section {
    /* background: var(--gray-light3); */
    padding: 100px 0;
    padding-top: 120px;
    position: relative;
    z-index: 1;
}

.order-made-description {
    color: var(--text-color);
    text-align: left;
}





/* ============================================
   RESIDENCE CONCEPT SECTION
   ============================================ */
.residence-concept-section {
    /* background: var(--white); */
    padding: 100px 0;
    text-align: center;
}

.residence-concept-title {
    
    margin-left:auto;
    margin-right:auto;
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 200px;
    line-height: 1;
    transform: scaleX(0.93) scaleY(1.15);
    /* transform-origin: left center; */
    margin-bottom: 60px;
    background: linear-gradient(180deg, #1a3a5c 0%, #506579 30%, #4a7fb3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 920px) and (min-width: 769px){
    .residence-concept-title {
        font-size: 160px;
    }
}

.residence-concept-subtitle {
    margin-bottom: 60px;
    /* color: var(--navy); */
}

.residence-concept-description {
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   HEAVY STEEL SECTION
   ============================================ */
.heavy-steel-section {
    padding: 100px 0;
}

/* Card style container */
.heavy-steel-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding:120px 60px;
}

.heavy-steel-content {
    margin-bottom: 120px;
}

.heavy-steel-title {
    margin-bottom: 80px;
}

.heavy-steel-description {
    color: var(--text-color);
}

/* Main area with image and features side by side */
.heavy-steel-main {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.heavy-steel-image {
    flex-shrink: 0;
    width: 40%;
}

.heavy-steel-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Heavy Steel Features */
.heavy-steel-features {
    /* flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px; */
}

.heavy-steel-feature + .heavy-steel-feature {
    /* padding-left: 20px; */
    /* border-left: 3px solid var(--navy); */
    margin-top: 50px;
}

.heavy-steel-feature .feature-title {
    margin-bottom: 15px;
    color: var(--navy);
    font-size: 28px;
}

.heavy-steel-feature .feature-description {
    color: var(--text-color);
}

/* ============================================
   RESIDENCE NAVIGATION SECTION
   ============================================ */
.residence-navigation-section {
    background: var(--white);
    padding: 80px 0;
}

/* Use shared page-navigation-buttons from business.css */
.residence-navigation-section .page-navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* ============================================
   GALLERY SECTION (shared styles from business.css)
   ============================================ */
/* Gallery styles are inherited from business.css */

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    /* Hero Section */
    .residence-hero-header {
        height: auto;
        /* min-height: 50vh;
        padding: 40px 0; */
    }

    .residence-hero-image {
        position: relative;
        left: 0;
        right: 0;
        margin-top: 30px;
    }

    .residence-hero-title {
        margin-bottom: 20px;
    }

    /* Intro Section */
    .residence-intro-section {
        padding: 40px 0;
    }

    .residence-intro-images {
        gap: 30px;
    }

    .residence-intro-image {
        max-width: 80%;
    }

    .residence-intro-image-2 {
        margin-left: 10%;
    }

    /* Living Space Section */
    .living-space-section {
        padding: 60px 0;
    }

    .living-space-catchphrase {
        font-size: 30px; 
    }

    /* Order Made Section */
    .order-made-section {
        padding: 60px 0;
    }

    .order-made-script {
        font-size: 36px;
    }

    .order-made-description {
        text-align: left;
    }

    /* Concept Section */
    .residence-concept-section {
        padding: 60px 0;
    }

    .residence-concept-title {
        font-size: 70px;
    }

    .residence-concept-description {
        text-align: left;
    }

    /* Heavy Steel Section */
    .heavy-steel-section {
        padding: 60px 0;
    }

    .heavy-steel-card {
        padding: 60px 13px;
        border-radius: 1px;
        width: 90%;
        margin-left: 5%;
        margin-right: 5%
    }

    .heavy-steel-main {
        flex-direction: column;
        gap: 30px;
    }

    .heavy-steel-image {
        width: 100%;
    }

    .heavy-steel-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
.heavy-steel-feature .feature-title {
    font-size : 24px;
}
    /* Navigation Section */
    .residence-navigation-section {
        padding: 60px 0;
    }

    .residence-navigation-section .page-navigation-buttons {
        flex-direction: column;
        align-items: center;
    }
}
