:root {
    --primary-color: #2C3E50;
    /* Calm Blue/Gray */
    --secondary-color: #D4AF37;
    /* Gold */
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-bg-color: #f9f9f9;
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--primary-color);
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.contact-form .btn {
    font-size: 1rem;
    font-family: inherit;
}

/* Hero Section */
.hero-slider {
    height: 80vh;
    background-color: var(--primary-color);
    /* Fallback */
    /* Placeholder gradient until image is ready */
    background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.4)), url('../images/hero-main.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.property-link-card {
    background-color: var(--light-bg-color);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #eee;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.property-link-card:hover {
    border-color: var(--secondary-color);
}

/* Page Header */
.page-header {
    background-color: var(--light-bg-color);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Property Filter */
.filter-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Property Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.property-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 2px;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.property-info .price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.property-info .meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}


/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links ul {
    display: flex;
    gap: 20px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Renovation Specific Styles */
.renovation-intro p {
    margin-top: 20px;
    font-size: 1.1rem;
}

.case-study {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.case-image {
    position: relative;
}

.case-image .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.case-desc {
    margin-top: 20px;
}

.renovation-contact {
    background: var(--light-bg-color);
}

/* Renovation Comparison */
.renovation-comparison {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        /* Keep header items visible */
        position: relative;
        z-index: 1001;
    }

    .main-nav {
        display: block;
        /* Always display for transition, hide via visibility/opacity */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1002;
        /* Above the overlay */
        position: relative;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 30px;
        height: 2px;
        margin: 6px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--primary-color);
        border-radius: 2px;
    }

    .mobile-menu-toggle.active span {
        background-color: #fff;
    }

    /* Hamburger Animation to X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
        display: inline-block;
        position: relative;
        padding: 8px 2px 5px;
    }

    .main-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .main-nav a:hover::after {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }

    .renovation-comparison {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .renovation-comparison .case-image.before {
        width: 40%;
        margin: 0 auto;
    }

    .renovation-comparison .case-image.after {
        width: 100%;
    }
}