/* --- Global Styles & Variables --- */
:root {
    --primary-color: #212a40;
    --accent-color: #f26c69;
    --light-grey: #f5f5f5;
    --text-color: #333;
    --light-text-color: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-alt: 'Montserrat', sans-serif;

    --container-width: 1100px;
    --section-padding: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--font-alt);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

h4 {
    font-family: var(--font-alt);
    font-weight: 700;
}

h5 {
    font-family: var(--font-alt);
    font-weight: 400;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
}

.heading-group {
    margin-bottom: 40px;
    text-align: center;
}

.heading-group h2 {
    margin-bottom: 10px;
}

.heading-group .subheading {
    font-family: var(--font-alt);
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 500;
}

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

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

#header-logo img {
    height: 40px;
}

#top-nav .top-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

#top-nav .top-menu a {
    font-family: var(--font-alt);
    color: #FFF;
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

#top-nav .top-menu a:hover {
    border-color: var(--accent-color);
}

.mobile-nav-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- NEW: Navigation Button --- */
.button-nav {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 5px;
    border-bottom: none !important;
    transition: background-color 0.3s, transform 0.2s;
}

.button-nav:hover {
    background-color: var(--primary-color) !important;
    transform: translateY(-2px);
    border-color: transparent !important;
}

/* --- Hero Section --- */
.hero-section {
    display: grid;
    grid-template-columns: 3fr 7fr;
    align-items: center;
    min-height: 70vh;
    padding: 40px 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 80%;
}

.hero-video-placeholder {
    background: url('https://web.archive.org/web/20250321000623im_/https://inyou.jp/wp-content/uploads/2021/12/1-video-back.jpg') no-repeat center center/cover;
    height: 100%;
    min-height: 400px;
}

/* --- About Section --- */
.about-section {
    background: var(--light-grey);
    padding: var(--section-padding) 0;
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image-col {
    flex: 0 0 40%;
    transform: translateY(-80px);
    /* Overlap effect */
    margin-bottom: -80px;
    /* Adjust layout flow */
}

.about-image-col img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content-col {
    flex: 1 1 60%;
}

.about-content-col .heading-group {
    text-align: left;
}

/* --- Service Section --- */
.service-section {
    padding: var(--section-padding) 0;
}

.service-section .container {
    display: flex;
    gap: 40px;
}

.service-heading-col {
    flex: 0 0 200px;
    text-align: right;
    padding-right: 40px;
    border-right: 2px solid var(--primary-color);
}

.service-heading-col h2 {
    margin-bottom: 5px;
}

.service-heading-col .subheading {
    font-size: 1rem;
}

.service-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.service-card .service-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* --- NEW: Card Link --- */
.card-link {
    margin-top: 15px;
    font-family: var(--font-alt);
    font-weight: 600;
}

/* --- News Section --- */
.news-section {
    background: var(--light-grey);
    padding: var(--section-padding) 0;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-content .post-date {
    font-family: var(--font-alt);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.news-content h3 a {
    color: var(--primary-color);
}

.news-content .post-summary {
    font-size: 0.95rem;
}

/* --- Work With Us Section --- */
.work-with-us-section {
    padding: var(--section-padding) 0;
}

.work-with-us-section .container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.work-content-col {
    flex: 1;
}

.work-content-col .heading-group {
    text-align: left;
}

.work-image-col {
    flex: 0 0 35%;
}

.work-image-col img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Contact Section --- */
.contact-header {
    background: var(--primary-color) url('https://web.archive.org/web/20250321000623im_/https://inyou.jp/wp-content/uploads/2022/02/contact-us-recruit-scaled.jpg') no-repeat center center/cover;
    background-blend-mode: multiply;
    padding: 60px 0;
    color: var(--light-text-color);
}

.contact-header h2,
.contact-header .subheading {
    color: #fff;
}

.contact-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.contact-details h3 {
    font-size: 1.8rem;
}

.contact-details p {
    margin-bottom: 15px;
}

.contact-details i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-details hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--primary-color);
}

.social-icons a:hover {
    color: var(--accent-color);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
}

/* --- Footer --- */
#footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 40px 0;
    text-align: center;
}

#footer .footer-logo {
    height: 40px;
    margin-bottom: 15px;
    filter: invert(1) brightness(0) saturate(100%);
}

#footer p {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-alt);
}

/* --- Mobile Nav & Responsive --- */
#side-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--primary-color);
    padding: 40px;
    transition: right 0.3s ease;
    z-index: 1001;
}

#side-nav.active {
    right: 0;
}

#side-nav ul {
    list-style: none;
}

#side-nav a {
    color: #fff;
    font-family: var(--font-alt);
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
}

#side-nav .button-nav {
    margin-top: 20px;
    text-align: center;
}

#page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

#page-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    #top-nav {
        display: none;
    }

    .mobile-nav-icon {
        display: block;
    }

    .service-section .container,
    .work-with-us-section .container {
        flex-direction: column;
    }

    .service-heading-col {
        text-align: center;
        border-right: none;
        border-bottom: 2px solid var(--primary-color);
        padding: 0 0 20px 0;
        margin-bottom: 40px;
    }

    .work-content-col {
        order: 2;
    }

    .work-image-col {
        order: 1;
    }

    .contact-body {
        grid-template-columns: 1fr;
    }

    .contact-map {
        order: 1;
    }

    .contact-details {
        order: 2;
    }
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: 2;
    }

    .hero-video-placeholder {
        order: 1;
        min-height: 300px;
    }

    .about-section .container {
        flex-direction: column;
    }

    .about-image-col {
        transform: none;
        margin-bottom: 30px;
    }

    .about-content-col .heading-group {
        text-align: center;
    }

    .news-list {
        grid-template-columns: 1fr;
    }
}

.fa.fa-bars {
    background: #FFF !important;
}