/* =========================================================================
   Variables & Resets
   ========================================================================= */
:root {
    /* Colors */
    --clr-primary: #1e3a2b;
    /* Deep green - trustworthy, natural */
    --clr-primary-light: #2b553e;
    --clr-accent: #c4a052;
    /* Gold/sand - premium interior accent */
    --clr-accent-hover: #b08d44;
    --clr-text: #333333;
    --clr-text-light: #666666;
    --clr-bg: #ffffff;
    --clr-bg-light: #f7f9f8;
    --clr-bg-dark: #1a1a1a;
    --clr-white: #ffffff;

    /* Typography */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

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

/* =========================================================================
   Utility Classes
   ========================================================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

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

.bg-dark {
    background-color: var(--clr-bg-dark);
    color: var(--clr-white);
}

.section-header {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-header.center {
    text-align: center;
}

.en-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clr-accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.jp-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.section-header.light .jp-title {
    color: var(--clr-white);
}

.section-subtitle {
    margin-top: 1rem;
    color: var(--clr-text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 160, 82, 0.3);
}

.btn-primary-sm {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.btn-primary-sm:hover {
    background-color: var(--clr-primary-light);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--clr-white);
}

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

/* =========================================================================
   Header & Navigation
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 70px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.header.scrolled .logo-img {
    height: 36px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text);
}

.nav-link:hover {
    color: var(--clr-accent);
}

/* Fix specificity for nav button */
.nav-link.btn-primary-sm {
    color: var(--clr-white);
    background-color: var(--clr-accent);
}

.nav-link.btn-primary-sm:hover {
    background-color: var(--clr-accent-hover);
    color: var(--clr-white);
}

/* Hamburger Menu (Mobile) */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--clr-text);
    position: absolute;
    left: 0;
    transition: var(--transition-normal);
}

.hamburger-btn span:nth-child(1) {
    top: 0;
}

.hamburger-btn span:nth-child(2) {
    top: 9px;
}

.hamburger-btn span:nth-child(3) {
    bottom: 0;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomOut 20s infinite alternate linear;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    color: var(--clr-white);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.9;
}

.sp-br {
    display: none;
}

/* =========================================================================
   About Section
   ========================================================================= */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--clr-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
    vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table th {
    width: 30%;
    font-weight: 600;
    color: var(--clr-primary);
}

.info-table td {
    color: var(--clr-text-light);
}

/* =========================================================================
   Services Section
   ========================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--clr-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--clr-accent);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--clr-bg-light);
    color: var(--clr-primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

/* =========================================================================
   Works Section
   ========================================================================= */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--clr-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.work-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-img {
    transform: scale(1.05);
}

.work-content {
    padding: 2rem 1.5rem;
}

.work-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.work-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.work-desc {
    color: var(--clr-text-light);
    font-size: 0.9rem;
}

/* =========================================================================
   Contact & Access Section
   ========================================================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-msg {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-details {
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--clr-accent);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.detail-value.phone {
    font-size: 1.5rem;
    color: var(--clr-accent);
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: #111;
    color: rgba(255, 255, 255, 0.5);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 100px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.copyright {
    font-size: 0.85rem;
}

/* =========================================================================
   Animations (Scroll Reveal)
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* =========================================================================
   Responsive Media Queries
   ========================================================================= */
@media (max-width: 992px) {

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-br {
        display: block;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    /* Mobile Nav */
    .hamburger-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--clr-white);
        padding: 2rem;
        transition: var(--transition-normal);
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-link.btn-primary-sm {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        background-color: var(--clr-accent);
        color: var(--clr-white);
    }

    .nav-link.btn-primary-sm:hover {
        background-color: var(--clr-accent-hover);
    }

    /* Hero */
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* About */
    .about-content {
        padding: 1.5rem;
    }

    .info-table th {
        width: 40%;
    }

    /* Works */
    .works-grid {
        grid-template-columns: 1fr;
    }
}