@charset "UTF-8";
/*

Theme Name: Needs Infinity Theme
Theme URI: https://needs-infinity.com
Author: Antigravity
Description: Custom theme for Needs Infinity, migrated from Next.js
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New&display=swap');


/* WP騾包ｽｱ隴夲ｽ･邵ｺ・ｮ闖ｴ蜻ｵ・ｨ蛹ｻ竊醍ｹｧ繧・・郢ｧ蝣､笏瑚怏・ｹ陋ｹ繝ｻ*/
.entry-content>* {
    margin: 0;
}

.wp-block-group {
    padding: 0;
}

:root {
    /* Colors */
    --color-white: #FFFFFF;
    --color-dark-gray: #3B3E43;
    --color-navy: #213A70;
    --color-orange: #E84709;
    --color-light-orange: #DDCDCD;
    --color-light-gray: #F8F9FB;
    --color-gray: #CDD6DD;

    /* Functional Mappings */
    --color-primary: var(--color-navy);
    --color-accent: var(--color-orange);

    --color-text-main: var(--color-dark-gray);
    --color-text-sub: #666666;
    --color-text-contrast: var(--color-gray);
    --color-text-light: var(--color-white);

    --color-bg-body: var(--color-white);
    --color-bg-light: var(--color-light-gray);
    --color-bg-dark: var(--color-dark-gray);
    --color-bg-blue: var(--color-navy);

    --max-width: 1200px;
    --header-height: 80px;
}

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

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text-main);
    background: var(--color-bg-body);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
}

/* Hero Slides */
.slide-1 {
    background-image: url('./assets/images/1Top/hero1.jpg');
}

.slide-2 {
    background-image: url('./assets/images/1Top/hero2.jpg');
}

.slide-3 {
    background-image: url('./assets/images/1Top/hero3.jpg');
}

.slide-4 {
    background-image: url('./assets/images/1Top/hero4.jpg');
}

@media (max-width: 500px) {
    .slide-1 {
        background-image: url('./assets/images/1Top/hero1SP.jpg');
    }

    .slide-2 {
        background-image: url('./assets/images/1Top/hero2SP.jpg');
    }

    .slide-3 {
        background-image: url('./assets/images/1Top/hero3SP.jpg');
    }

    .slide-4 {
        background-image: url('./assets/images/1Top/hero4SP.jpg');
    }
}

/* -------------------------------------------------------------------------- */
/* Layout & Sections
/* -------------------------------------------------------------------------- */
.section {
    padding: 80px 0;
}

section.topSection {
    margin-top: 0;
    padding-top: 100px;
    /* Increased for desktop visual balance */
}

@media (max-width: 800px) {
    section.topSection {
        padding-top: 120px;
    }

    .worksSection {
        padding-top: 120px;
    }
}

.page-contact,
.page-contact,
html[class*="page-template-page-contact"],
body[class*="page-template-page-contact"],
html.page-template-page-contact-php,
body.page-template-page-contact-php,
html.page-template-page-contact-confirm-php,
body.page-template-page-contact-confirm-php,
html.page-template-page-contact-thanks-php,
body.page-template-page-contact-thanks-php {
    background-color: var(--color-light-gray) !important;
}

.page-contact .topSection {
    padding-bottom: 5rem;
}

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




.sectionTitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-blue);
    margin-bottom: 0.5rem;
}

/* Specific pages font size increase */
.home .sectionTitle,
.page-about .sectionTitle,
.page-recruit .sectionTitle {
    font-size: 2.5rem;
}

@media (max-width: 800px) {

    .home .sectionTitle,
    .page-about .sectionTitle,
    .page-recruit .sectionTitle {
        font-size: 2rem;
    }
}

.sectionSubtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-sub);
    margin-bottom: 3rem;
    display: block;
}

.sectionTitle.white {
    color: #fff;
}

.sectionSubtitle.white {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 800px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    .sectionSubtitle {
        margin-bottom: 1rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Header Styles
/* -------------------------------------------------------------------------- */
.ni-hamburger-bar,
.ni-mobile-toggle-icon {
    display: inline-block;
    position: relative;
}

.ni-hamburger-bar::before,
.ni-hamburger-bar::after,
.ni-mobile-toggle-icon::before,
.ni-mobile-toggle-icon::after {
    content: "";
    display: block;
}

.ni-header {
    position: fixed;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: 80px;
    background-color: rgba(255, 255, 255, 0);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-radius: 10px;
    transition: all 0.4s ease;
}

.ni-header.ni-scrolled {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.05);
    top: 10px;
}

/* SubPage styles (White background at top, no shadow) */
.ni-header.ni-sub-page {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: none;
}

.ni-header.ni-sub-page.ni-scrolled {
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.05);
}

.ni-header-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ni-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--color-text-main);
}

.ni-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    align-items: flex-start;
}

.ni-company-name {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.ni-header.ni-scrolled .ni-company-name,
.ni-header.ni-sub-page .ni-company-name {
    color: var(--color-text-main);
    text-shadow: none;
}

.ni-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.ni-header.ni-scrolled .ni-brand-name,
.ni-header.ni-sub-page .ni-brand-name {
    color: var(--color-text-main);
    text-shadow: none;
}

.ni-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0px 10px rgba(0, 0, 0, 0.3));
    transition: all 0.4s ease;
}

.ni-header.ni-scrolled .ni-logo img,
.ni-header.ni-sub-page .ni-logo img {
    filter: none;
}

.ni-nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.ni-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ni-nav-item a,
.ni-nav-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    text-decoration: none;
    cursor: default;
}

.ni-header.ni-scrolled .ni-nav-item a,
.ni-header.ni-menu-open .ni-nav-item a,
.ni-header.ni-sub-page .ni-nav-item a,
.ni-header.ni-scrolled .ni-nav-label,
.ni-header.ni-menu-open .ni-nav-label,
.ni-header.ni-sub-page .ni-nav-label {
    color: var(--color-text-main);
    text-shadow: none;
}

.ni-nav-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ni-header.ni-scrolled .ni-nav-item a:hover,
.ni-nav-item:hover .ni-nav-label {
    color: var(--color-gray);
}

/* Dropdown Styles */
.ni-dropdown {
    position: absolute;
    top: 150%;
    left: 120%;
    transform: translateX(-50%) translateY(10px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    min-width: 240px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Show dropdown on hover */
.ni-nav-item:hover .ni-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ni-dropdown-item {
    display: block;
    margin-bottom: 0.5rem;
}

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

.ni-dropdown-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-gray);
    transition: all 0.2s;
    text-decoration: none;
    text-shadow: none;
}

.ni-dropdown-item a:hover {
    color: var(--color-text-main);
    border-bottom-color: var(--color-primary);
}

/* CSS-only arrow tip for the underline */
.ni-header .ni-nav .ni-dropdown .ni-dropdown-item .ni-arrow-icon {
    position: relative;
    width: 20px;
    height: 10px;
    align-self: flex-end;
    display: inline-block !important;
    /* Force display */
}

.ni-header .ni-nav .ni-dropdown .ni-dropdown-item .ni-arrow-icon::after {
    content: "";
    position: absolute;
    display: block !important;
    bottom: -0.5px;
    right: 5px;
    width: 8px;
    height: 1px;
    background-color: var(--color-gray);
    transform-origin: right bottom;
    transition: background-color 0.2s;
    z-index: 999;
    transform: rotate(-130deg);
}

.ni-header .ni-nav .ni-dropdown .ni-dropdown-item a:hover .ni-arrow-icon::after {
    background-color: var(--color-primary);
}

.ni-mobile-toggle-icon {
    display: none;
    position: relative;
    width: 20px;
    height: 20px;
}


.ni-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background-color: transparent;
    border: 2px solid var(--color-accent);
    height: 46px;
    color: var(--color-accent);
    font-weight: 700;
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    text-decoration: none;
}

.ni-header.ni-scrolled .ni-contact-button,
.ni-header.ni-sub-page .ni-contact-button {
    border-color: var(--color-accent);
    box-shadow: none;
}

.ni-contact-button:hover {
    background-color: var(--color-accent);
    color: #fff;
    border: 2px solid var(--color-accent);
}

.ni-hamburger {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 12px;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.ni-hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease 0.4s;
    will-change: transform;
}

.ni-header.ni-scrolled .ni-hamburger-bar,
.ni-hamburger.ni-active .ni-hamburger-bar,
.ni-header.ni-menu-open .ni-hamburger-bar,
.ni-header.ni-sub-page .ni-hamburger-bar {
    background-color: var(--color-text-main);
    box-shadow: none;
    transition-delay: 0s;
}

.ni-hamburger.ni-active .ni-hamburger-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.ni-hamburger.ni-active .ni-hamburger-bar:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

.ni-mobile-actions {
    display: none;
}

@media (max-width: 850px) {
    .ni-header {
        height: 60px;
        top: 10px;
        left: 10px;
        width: calc(100% - 20px);
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0);
        transition: all 0.4s ease;
    }

    .ni-header.ni-scrolled {
        background-color: rgba(255, 255, 255, 1);
        top: 10px;
        box-shadow: 0 0px 10px rgba(0, 0, 0, 0.05);
    }

    .ni-company-name,
    .ni-brand-name {
        color: #fff;
        text-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);
    }

    .ni-header.ni-scrolled .ni-company-name,
    .ni-header.ni-scrolled .ni-brand-name {
        color: var(--color-text-main);
        text-shadow: none;
    }

    .ni-hamburger {
        display: flex;
        margin-left: auto;
    }

    .ni-hamburger-bar {
        background-color: #fff;
        box-shadow: 0 0px 4px rgba(0, 0, 0, 0.5);
    }

    .ni-header.ni-scrolled .ni-hamburger-bar,
    .ni-hamburger.ni-active .ni-hamburger-bar {
        background-color: var(--color-text-main);
        box-shadow: none;
    }

    .ni-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        padding: 80px 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.7, 0, 0.3, 1);
        box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        overflow-y: auto;
    }

    .ni-nav.ni-nav-active {
        right: 0;
    }

    .ni-nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .ni-nav-item {
        display: block;
        height: auto;
    }

    .ni-nav-item a,
    .ni-nav-label {
        color: var(--color-text-main);
        font-size: 1.2rem;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        text-shadow: none !important;
        font-weight: 700;
        transition: color 0.3s ease;
        line-height: 1.4;
    }

    .ni-nav-item a {
        display: flex;
        align-items: center;
    }

    .ni-nav-label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .ni-nav-item a:hover {
        color: var(--color-gray);
    }

    .ni-nav-item:hover .ni-nav-label {
        color: var(--color-text-main);
    }

    /* Prevent mobile dropdown from moving left on hover */
    .ni-nav-item:hover .ni-dropdown {
        transform: none;
    }

    .ni-dropdown {
        position: static;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        min-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        display: block;
        transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    }

    .ni-dropdown.ni-dropdown-open {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding-top: 0.5rem;
    }

    .ni-dropdown-item {
        padding-left: 1.5rem;
    }

    .ni-dropdown-item a {
        font-size: 1rem;
        border-bottom: none;
    }

    .ni-dropdown-item a:hover {
        color: var(--color-gray);
    }



    .ni-header .ni-nav .ni-dropdown .ni-dropdown-item .ni-arrow-icon::after {
        display: none !important;
    }

    .ni-actions {
        display: none;
    }

    .ni-mobile-actions {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }

    .ni-contact-button-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        min-width: 200px;
        padding: 0 2rem;
        height: 46px;
        background-color: transparent;
        border: 2px solid var(--color-accent);
        color: var(--color-accent) !important;
        border-radius: 9999px;
        font-weight: 700;
        text-decoration: none;
        box-shadow: none;
        transition: none;
    }

    @media (hover: hover) {
        .ni-contact-button-mobile:hover {
            background-color: var(--color-accent);
            color: #fff !important;
        }
    }

    .ni-logo img {
        height: 32px;
    }

    .ni-company-name {
        font-size: 12px;
    }

    .ni-brand-name {
        font-size: 16px;
    }

    .ni-desktop-only-plus {
        display: none;
    }

    .ni-mobile-toggle-icon {
        display: block;
        margin-left: auto;
    }

    .ni-mobile-toggle-icon::before,
    .ni-mobile-toggle-icon::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 12px;
        height: 2px;
        background-color: var(--color-text-main);
        transform: translate(-50%, -50%);
        transition: transform 0.3s ease;
    }

    .ni-mobile-toggle-icon::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .ni-mobile-toggle-icon.ni-icon-open::after {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* -------------------------------------------------------------------------- */
/* Footer Styles
/* -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-dark-gray);
    color: #fff;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 990px) {
    .container {
        padding: 0 2rem;
    }

    .companyGrid {
        gap: 2rem;
    }
}


.footer .topFlex {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 6rem;
}

.footer .leftGroup {
    display: flex;
    gap: 4rem;
}

.footer .rightGroup {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-right: 2rem;
}

.footer .navSection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer .contactSection {
    display: flex;
    gap: 3rem;
}

.footer .sectionLabel {
    font-size: 0.9rem;
    color: var(--color-gray);
    white-space: nowrap;
    padding-top: 0.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a.sectionLabel:hover {
    color: #fff;
}

.footer .subList,
.footer .mainNav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .subList li {
    margin-bottom: 0.6rem;
}

.footer .subList a {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer .mainNav a {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer .contactDetails p {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.footer .privacySection a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer .mainNav {
    display: flex;
    gap: 3rem;
    padding-top: 0.2rem;
}

.footer .subList a:hover,
.footer .mainNav a:hover,
.footer .privacySection a:hover {
    color: #fff;
}

.footer .privacySection {
    padding-top: 0;
}

.footer .bottom {
    display: flex;
    justify-content: flex-end;
    padding-right: 1.5rem;
}

.footer .copyright {
    font-size: 0.7rem;
    color: var(--color-gray);
    opacity: 0.6;
    letter-spacing: 0.05em;
}

@media (max-width: 1200px) {

    .footer .leftGroup,
    .footer .navSection,
    .footer .contactSection,
    .footer .mainNav {
        gap: 2rem;
    }
}

@media (max-width: 800px) {
    .footer .topFlex {
        flex-direction: column;
        gap: 3rem;
        margin-bottom: 4rem;
        align-items: flex-start;
    }

    .footer .leftGroup {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer .navSection,
    .footer .contactSection {
        flex-direction: column;
        gap: 1rem;
    }

    .footer .mainNav {
        flex-direction: column;
        gap: 1rem;
    }

    .footer .rightGroup {
        padding-right: 0;
    }

    .footer .bottom {
        justify-content: center;
        padding-right: 0;
    }
}

@media (max-width: 500px) {
    .footer .topFlex {
        flex-direction: column;
    }

    .footer .container {
        padding: 0 3rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Front Page Styles (Hero, Services, Works)
/* -------------------------------------------------------------------------- */

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    margin-top: 0;
    overflow: hidden;
    padding-bottom: 40px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0;
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

.slide:nth-child(4) {
    animation-delay: 15s;
}

/* Original delay rules kept as fallback or reference, but body.loaded rules take precedence */
.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

.slide:nth-child(4) {
    animation-delay: 15s;
}

@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.hero .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 3;
}

.title {
    display: flex;
    flex-direction: column;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.line1 {
    font-size: 55px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

/* .enTitle and .jpTitle replaced by sectionTitle */
.line2 {
    font-size: 55px;
    font-weight: 600;
    margin-left: 3rem;
    margin-top: 0.5rem;
    letter-spacing: 0.2em;
}

.line3 {
    font-size: 55px;
    font-weight: 600;
    margin-left: 8rem;
    margin-top: 0.5rem;
    letter-spacing: 0.2em;
}

@media (max-width: 1024px) {
    .line1 {
        font-size: 3rem;
    }

    .line2 {
        font-size: 3rem;
        margin-left: 2rem;
    }

    .line3 {
        font-size: 3rem;
        margin-left: 5rem;
    }
}

@media (max-width: 800px) {
    .line1 {
        font-size: 2.2rem;
    }

    .line2 {
        font-size: 2.2rem;
        margin-left: 1.5rem;
        margin-top: 0.2rem;
    }

    .line3 {
        font-size: 2.2rem;
        margin-left: 4rem;
        margin-top: 0.2rem;
    }
}

@media (max-width: 500px) {
    .hero {
        height: 100vh;
        height: 100svh;
        min-height: 100svh;
        padding-bottom: 30px;
    }

    .line1 {
        font-size: 1.8rem;
    }

    .line2 {
        font-size: 1.8rem;
        margin-left: 1rem;
    }

    .line3 {
        font-size: 1.8rem;
        margin-left: 3rem;
    }
}

/* Services Section */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.services-header .description {
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: bold;
    color: var(--color-text-main);
    max-width: 500px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 850px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .services-grid .service-card:nth-child(1) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - .5rem);
    }

    .service-card {
        height: 200px !important;
    }
}

@media (max-width: 500px) {
    .services-grid {
        flex-direction: column;
        display: flex;
    }

    .services-grid .service-card:nth-child(1) {
        width: 100%;
    }
}

.service-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    display: block;
}

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

.cardImage {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.service-card:hover .cardImage {
    transform: scale(1.05);
}

.cardOverlay,
.Services-module__h5-agW__cardOverlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    background: #213a7099;
    color: #fff;
    transition: background-color 0.3s;
}


.service-card:hover .cardOverlay {
    background-color: #213a7040;
}

.cardTitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
}

.cardEnTitle {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: #fff;
}

.viewMore {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fff;
    padding-bottom: 4px;
    width: fit-content;
    letter-spacing: 0.1em;
    color: #fff;
}

/* Works Section */
.worksSection {
    background-color: var(--color-bg-blue);
    padding: 100px 0;
    color: #fff;
}

.worksContainer {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.works-content {
    align-items: flex-end;
    gap: 2rem;
    width: 100%;
    display: flex;
}


.works-slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.works-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
    gap: 0.5rem;
    width: 100%;
}

.work-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    color: var(--color-text-main);
    flex: 0 0 calc((100% - 1.5rem) / 4);
    /* Show 4 cards, accounting for 3 gaps of 0.5rem */
}

.work-image-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.work-cardImage {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.work-card:hover .work-cardImage {
    transform: scale(1.1);
}

.work-cardContent {
    padding: 1.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.categoryBadge {
    display: inline-block;
    border: 1px solid var(--color-dark-gray);
    border-radius: 9999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.work-cardTitle {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
    line-height: 1.2;
}

.work-cardDesc {
    font-size: 0.85rem;
    color: var(--color-text-main);
    line-height: 1.6;
    text-align: left;
    width: 100%;
}

.works-bottomRow {
    width: 100%;
    display: flex;
    justify-content: flex-end !important;
    align-items: center;
}

.works-bottomRow .viewMoreButton {
    margin-right: 0;
    margin-left: auto;
    /* Push to right */
}

.viewMoreButton {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2.5rem;
    border: 1px solid #fff;
    border-radius: 9999px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .viewMoreButton:hover {
        background-color: #fff;
        color: var(--color-bg-blue);
    }
}

.btnContent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    border-bottom: 1px solid #fff;
    padding-bottom: 4px;
}

@media (hover: hover) {
    .viewMoreButton:hover .btnContent {
        border-bottom-color: var(--color-bg-blue);
    }
}

/* ViewMore Button Arrow (Matches Nav Style) */
.viewMoreButton .arrowIcon {
    width: 20px;
    height: 10px;
    border: none;
    transform: none;
    position: relative;
    margin-left: 0.5rem;
    margin-bottom: 0;
}

.viewMoreButton .arrowIcon::after {
    content: "";
    position: absolute;
    display: block;
    bottom: -5px;
    /* Align with underline */
    right: 4px;
    width: 8px;
    height: 1px;
    background-color: #fff;
    transform-origin: right bottom;
    transform: rotate(-130deg);
    transition: background-color 0.3s ease;
}

@media (hover: hover) {
    .viewMoreButton:hover .arrowIcon::after {
        background-color: var(--color-bg-blue);
    }

    .viewMoreButton:hover .arrowIcon {
        border-color: transparent;
        /* inherited cleanup */
    }

    .service-card:hover .viewMore .arrowIcon,
    .imageCard:hover .viewMore .arrowIcon {
        border-color: #fff;
    }
}

/* ViewMore Arrow Style (Matches Nav Arrow) */
.viewMore .arrowIcon {
    width: 20px;
    height: 10px;
    border: none;
    transform: none;
    position: relative;
    margin-left: 0.5rem;
    margin-bottom: 0;
}

.viewMore .arrowIcon::after {
    content: "";
    position: absolute;
    display: block;
    bottom: -3px;
    /* Aligns with parent padding-bottom: 4px + border width */
    right: 4px;
    width: 8px;
    height: 1px;
    background-color: #fff;
    transform-origin: right bottom;
    transform: rotate(-130deg);
    transition: background-color 0.2s;
}

/* Slider Navigation */
.slider-nav-buttons {
    display: flex;
    gap: 1rem;
    /* Adjust alignment with slider if needed */
}

.mobile-controls {
    display: none;
    /* Hidden on desktop */
}

/* Specific styling for desktop controls if needed */
.desktop-controls {
    display: flex;
}

.slider-prev,
.slider-next {
    width: 48px;
    height: 48px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff;
    /* Normal: White bg */
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.slider-prev:hover,
.slider-next:hover {
    background: transparent;
    color: #fff;
    transform: scale(1.1);
}

.slider-prev.disabled,
.slider-next.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    background: transparent;
    border-color: #fff;
    color: #fff;
    box-shadow: none;
    pointer-events: none;
}

/* Breadcrumbs Fix */
.breadcrumbs {
    background-color: #fff;
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--color-text-main);
    border-top: 1px solid #eee;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/* WordPress Core Styles & Content Optimization
/* -------------------------------------------------------------------------- */

/* Content Wrapper Standardization */
.entry-content,
.about-content,
.recruit-content,
.contact-form-container,
.contact-content-wrapper {
    line-height: 1.8;
    color: var(--color-text-main);
}

/* Headings inside content */
.entry-content h1,
.about-content h1,
.recruit-content h1,
.entry-content h2,
.about-content h2,
.recruit-content h2,
.entry-content h3,
.about-content h3,
.recruit-content h3,
.entry-content h4,
.about-content h4,
.recruit-content h4,
.entry-content h5,
.about-content h5,
.recruit-content h5,
.entry-content h6,
.about-content h6,
.recruit-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-bg-blue);
}

.entry-content h2,
.about-content h2,
.recruit-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--color-bg-blue);
    padding-bottom: 0.5rem;
}

.entry-content h3,
.about-content h3,
.recruit-content h3 {
    font-size: 1.5rem;
    border-left: 5px solid var(--color-accent);
    padding-left: 1rem;
}

.entry-content h4,
.about-content h4,
.recruit-content h4 {
    font-size: 1.25rem;
}

/* Paragraphs & Lists */
.entry-content p,
.about-content p,
.recruit-content p,
.contact-form-container p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.about-content ul,
.recruit-content ul,
.entry-content ol,
.about-content ol,
.recruit-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li,
.about-content li,
.recruit-content li {
    margin-bottom: 0.5rem;
}

/* Links */
.entry-content a,
.about-content a,
.recruit-content a {
    color: var(--color-bg-blue);
    text-decoration: underline;
    transition: color 0.3s;
}

.entry-content a:hover,
.about-content a:hover,
.recruit-content a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Alignment Classes */
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    text-align: center;
}

.alignnone {
    margin-bottom: 1.5rem;
}

/* Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
    background: #f9f9f9;
    padding: 5px;
    border: 1px solid #eee;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5rem;
    color: #666;
}

/* Blockquotes */
blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fb;
    border-left: 5px solid var(--color-gray);
    font-style: italic;
    color: #555;
    position: relative;
}

/* Tables */
.entry-content table,
.about-content table,
.recruit-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.entry-content th,
.about-content th,
.recruit-content th,
.entry-content td,
.about-content td,
.recruit-content td {
    padding: 1rem;
    border: 1px solid #eee;
    text-align: left;
}

.entry-content th,
.about-content th,
.recruit-content th {
    background-color: #f4f6f8;
    font-weight: 700;
    color: var(--color-bg-blue);
}

/* Images */
.entry-content img,
.about-content img,
.recruit-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Gutenberg Blocks Support (Basic) */
.wp-block-button__link {
    background-color: var(--color-accent);
    color: #fff !important;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    text-decoration: none !important;
    display: inline-block;
    transition: opacity 0.3s;
}

.wp-block-button__link:hover {
    opacity: 0.8;
}

.wp-block-image figcaption {
    font-size: 0.85rem;
    text-align: center;
    color: #666;
    margin-top: 0.5rem;
}





/* -------------------------------------------------------------------------- */
/* SubHero Component
/* -------------------------------------------------------------------------- */
.subHero {
    background-color: var(--color-navy);
    color: #fff;
    padding: 140px 0 80px;
    /* Desktop spacing */
    overflow: visible;
    position: relative;
    width: 100%;
}

@media (max-width: 800px) {
    .subHero {
        padding: 120px 0 0;
    }
}

.subHero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.subHero .content {
    flex: 1;
}

.subHero .title {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    color: #fff;
}

.subHero .meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subHero .subTitle {
    font-size: 1.25rem;
    font-weight: 700;
}

.subHero .description {
    font-size: 1rem;
    opacity: 0.8;
}

.subHero .imageWrapper {
    flex: 0 0 45%;
    max-width: 500px;
}


/* -------------------------------------------------------------------------- */
/* Event Setup Page Styles
/* -------------------------------------------------------------------------- */

.event-setup-top-section {
    padding: 100px 0;
}

.event-setup-top-section .sectionTitle {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 2rem;
}

.event-about-content {
    margin-bottom: 3rem;
}

.event-about-content .text {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-main);
}

.event-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 4rem;
}

.event-image-item {
    position: relative;
    aspect-ratio: 1 / 1.1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.event-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 850px) {
    .event-setup-top-section {
        padding: 60px 0;
    }

    .event-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .event-setup-top-section .sectionTitle {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 500px) {
    .event-setup-top-section {
        padding-top: 60px;
    }

    .event-about-content .text {
        font-size: 0.95rem;
    }
}


/* -------------------------------------------------------------------------- */
/* Handyman Page Styles
/* -------------------------------------------------------------------------- */

.handyman-top-section {
    padding: 100px 0;
}

.handyman-intro-text {
    margin-bottom: 3rem;
    line-height: 2;
    color: var(--color-text-main);
}

.handyman-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

.handyman-service-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.handyman-service-card .iconWrapper {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f8f9fa;
}

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

.handyman-service-card .cardTitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-navy);
}

.handyman-service-card .cardSubTitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    /* Using explicit gray color if variable not working, or var(--color-gray) */
    color: var(--color-gray);
    margin-bottom: 1rem;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.handyman-service-card .cardDescription {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-main);
    text-align: left;
    white-space: pre-line;
    width: 100%;
}

/* Price Tables */
/* Price Tables - Matched to Next.js */
.handyman-table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.handyman-price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.handyman-price-table th,
.handyman-price-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.handyman-price-table th {
    background-color: var(--color-navy);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.handyman-price-table tr:last-child td {
    border-bottom: none;
}

.handyman-price-table .itemCol {
    width: 150px;
}

.handyman-price-table .priceCol {
    width: 250px;
}

.tableNote {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 1rem;
    line-height: 1.6;
}

@media (max-width: 850px) {
    .handyman-top-section {
        padding: 60px 0;
    }

    .handyman-service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .handyman-service-card {
        padding: 1rem;
    }


}

@media (max-width: 500px) {
    .handyman-top-section {
        padding-top: 60px;
    }

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

    .handyman-intro-text {
        font-size: 0.95rem;
    }
}


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

@media (max-width: 1024px) {
    .subHero .title {
        font-size: 2.8rem;
    }
}

@media (max-width: 800px) {
    .subHero .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }

    .subHero {
        padding: 120px 0 0;
    }

    .subHero .title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .subHero .imageWrapper {
        width: 100%;
        max-width: 60%;
        flex: none;
        margin-bottom: -10%;
        position: relative;
        z-index: 10;
        align-self: center;
    }
}

@media (max-width: 500px) {
    .subHero .title {
        font-size: 1.8rem;
    }

    .subHero .imageWrapper {
        max-width: 100%;
        margin-bottom: -40px;
    }
}

/* -------------------------------------------------------------------------- */
/* About Page Styles
/* -------------------------------------------------------------------------- */
.philosophy {
    padding: 100px 0;
    background-color: #fff;
}

.philosophyBox {
    text-align: left;
    margin-bottom: 5rem;
}

.catchphrase {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.message {
    /* Force white text in mobile breadcrumbs if needed, matching header style */
    color: var(--color-text-main);
}

@media (max-width: 800px) {
    .works-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        position: relative;
        /* Context for absolute positioning if needed */
    }

    .works-slider-wrapper {
        width: 80%;
        margin-left: auto;
        margin-right: -3rem;
        padding-right: 0;
        /* Clear padding as we use margin for bleed */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0;
        scrollbar-width: none;
        /* Firefox */
    }

    .works-slider-wrapper::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .works-slider {
        transform: none !important;
        /* Disable JS transform on mobile */
        transition: none !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.8rem;
        padding-left: 0;
        padding-right: 3rem;
        /* Reduced from 20vw to proper spacing */
        width: max-content;
        /* Allow container to grow with padding */
    }

    .work-card {
        /* 
           Wrapper is 80% width. 
           To show 2.5 cards within that 80% viewport width:
           Card Width = (80vw - margins) / 2.5
           Approx calculation: 80vw / 2.5 = 32vw
        */
        flex: 0 0 30vw;
        /* Adjusted for gap & bleed */
        max-width: none;
        min-height: 350px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .desktop-controls {
        display: none !important;
    }

    .mobile-controls {
        display: flex !important;
        margin-bottom: 0;
        /* Reset margin as it's in bottom row now */
    }

    .works-bottomRow {
        justify-content: space-between !important;
        margin-top: 1rem;
        flex-direction: row;
        /* Ensure row direction even if parent is column */
    }

    .viewMoreButton {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
    }

    /* Adjust arrow position if needed for smaller font */
    .viewMoreButton .arrowIcon::after {
        bottom: -3px;
    }
}

@media (max-width: 665px) {
    .works-slider-wrapper {
        width: 90%;
    }
}

@media (max-width: 500px) {
    .works-slider-wrapper {
        width: 100%;
        margin-right: -3.8rem;
        padding-right: 1rem;
        scroll-padding-left: 0;
    }

    .works-slider {
        padding-right: 2.7rem;
    }

    .work-card {
        /* 1.5 cards visible in 100vw: 100vw / 1.5 = 66.6vw */
        flex: 0 0 65vw;
        max-width: none;
    }
}


.logoExplanation {
    background: #fff;
    padding: 4rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logoImage {
    width: 280px;
    margin-bottom: 2.5rem;
}

.logoImage img {
    width: 100%;
    height: auto;
}

.logoExplanation .logoText {
    text-align: center;
}

.logoExplanation .logoText p {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.company {
    padding: 100px 0;
    background-color: #f8f9fc;
}

.infoTableWrapper {
    width: 100%;
}

.infoTable {
    width: 100%;
    border-collapse: collapse;
}

.infoTable th,
.infoTable td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

/* About & Recruit Grid */
.companyGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 800px) {
    .container {
        padding: 0 1.5rem;
    }



    .sectionSubtitle {
        font-size: 0.9rem;
    }

    .description {
        font-size: 0.85rem !important;
    }

    .companyGrid {
        gap: 0.6rem;
    }
}

@media (max-width: 500px) {
    .companyGrid {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 3rem;
    }
}

.about-container,
.recruit-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-container .imageCard,
.recruit-container .imageCard {
    margin-top: auto;
}


.infoTable th {
    width: 25%;
    background-color: #f8f9fc;
    color: var(--color-text-main);
    font-weight: bold;
}

.infoTable td {
    width: 75%;
    background-color: #f8f9fc;
    color: var(--color-text-main);
    line-height: 1.8;
}

.addressBlock {
    margin-bottom: 2rem;
}

.addressBlock:last-child {
    margin-bottom: 0;
}

.officeName {
    display: inline-block;
    font-weight: bold;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.businessList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.businessList li {
    margin-bottom: 1rem;
}

.map {
    width: 100%;
}

.mapContainer {
    width: 100%;
    line-height: 0;
}

@media (max-width: 768px) {

    .philosophy,
    .company {
        padding: 60px 0;
    }

    .logoExplanation {
        padding: 2rem;
    }

    .logoImage {
        width: 200px;
    }

    .infoTable th,
    .infoTable td {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    .infoTable th {
        background-color: #f8f9fc;
        border-bottom: none;
    }
}

/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* Contact Page Styles
/* -------------------------------------------------------------------------- */
.contactSection {
    position: relative;
    padding: 100px 0;
    color: #fff;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    /* Default BG set in PHP or via modifier class if needed, but styling here */
    background-image: url('./assets/images/7Contact/Contact.jpg');
}

.contactSection .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 100, 0.4);
    z-index: 1;
}

.contactSection .container {
    position: relative;
    z-index: 2;
}

.contactSection .description {
    color: #fff;
    margin-bottom: 0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-content {
    z-index: 2;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    display: flex;
    position: relative;
}

.contact-content .textContent {
    max-width: 600px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 4.5rem;
    background-color: var(--color-orange);
    border-radius: 9999px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(232, 71, 9, 0.3);
}

.contact-button:hover {
    background-color: #ff5a1f;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(232, 71, 9, 0.4);
    color: #fff;
}

.contact-button .btnContent {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #fff;
    padding-bottom: 4px;
    width: fit-content;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    gap: 1rem;
    white-space: nowrap;
    /* Added gap for spacing between text and arrow */
}

.contact-button .arrowIcon {
    position: relative;
    width: 20px;
    height: 10px;
    align-self: flex-end;
}

.contact-button .arrowIcon::after {
    content: "";
    position: absolute;
    bottom: 2px;
    right: 4px;
    width: 8px;
    height: 2px;
    background-color: #fff;
    transform: rotate(-130deg);
    transform-origin: right bottom;
    transition: background-color 0.2s;
}

@media (max-width: 800px) {
    .contactSection {
        padding: 100px 0;
    }

    .contact-button {
        padding: 1rem 3rem;
        font-size: 1rem;
    }

    .contact-content .buttonWrapper {
        align-self: flex-end;
        display: flex;
    }
}

@media (max-width: 500px) {
    .contactSection {
        background-image: url('./assets/images/7Contact/ContactSP.jpg');
        background-attachment: scroll;
    }

    .contact-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .contact-content .textContent {
        max-width: 600px;
        margin-bottom: 2rem;
        text-align: left;
    }

    .contact-content .buttonWrapper {
        align-self: center;
    }
}

/* Recruit Page Styles */
.titleWrapper {
    margin-bottom: 4rem;
    text-align: left;
}

.sectionLead {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-main);
    text-align: left;
    margin-bottom: 3rem;
}

/* Tabs */
.tabContainer {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.tabButton {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    color: #aaa;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    min-width: 180px;
}

.tabButton.active {
    color: var(--color-text-main);
}

.tabButton.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-main);
}

.requirementsTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 4rem;
}

.requirementsTable th,
.requirementsTable td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.requirementsTable th {
    width: 30%;
    background-color: #fff;
    color: var(--color-text-main);
    font-weight: 700;
}

.requirementsTable td {
    width: 70%;
    color: var(--color-text-main);
    line-height: 1.8;
}

.recruit-tab-content {
    display: none;
}

.recruit-tab-content.active {
    display: block;
}

/* Flow */
.flowContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    position: relative;
    width: 100%;
}

.flowStepWrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.flowStep {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.flowArrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.flowArrow span {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #ddd;
    border-right: 2px solid #ddd;
    transform: rotate(45deg);
}

.stepLabel {
    display: inline-block;
    padding: 0.2rem 1rem;
    border: 1px solid #ddd;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
    background-color: #fff;
}

.stepTitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.4;
}

.stepTitle span {
    display: inline;
}

@media (max-width: 1200px) {
    .stepTitle span {
        display: block;
    }
}

/* Q&A */
.qaSection {
    background-color: var(--color-bg-blue);
    color: #fff;
    padding: 100px 0;
}

/* Obsolete title classes removed */
/* .qaEngTitle, .qaJpTitle replaced by sectionTitle */

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

.qaItem {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2rem;
}

.qaItem:last-child {
    border-bottom: none;
}

.question {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.qIcon,
.aIcon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.qIcon {
    background-color: #fff;
    color: var(--color-bg-blue);
}

.aIcon {
    border: 1px solid #fff;
    color: #fff;
}

.answer {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

@media (max-width: 768px) {

    .requirementsTable,
    .requirementsTable tr,
    .requirementsTable th,
    .requirementsTable td {
        display: block;
        width: 100%;
    }

    .requirementsTable th,
    .requirementsTable td {
        padding: 0.8rem 0 !important;
    }

    .requirementsTable th {
        border-bottom: none;
        color: var(--color-text-sub);
    }

    .flowContainer {
        flex-direction: row;
        gap: 0;
        align-items: center;
        margin-top: 0;
    }

    .flowStepWrapper {
        flex-direction: row;
        align-items: center;
    }

    .flowStep {
        background: transparent;
        padding: 0;
        border-radius: 0;
        text-align: center;
    }

    .stepLabel {
        padding: 0.1rem 0.5rem;
        font-size: 0.6rem;
        margin-bottom: 0.4rem;
        display: inline-block;
    }

    .stepTitle {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .stepTitle span {
        display: block;
    }

    .flowArrow {
        width: 20px;
        height: 20px;
    }

    .flowArrow span {
        width: 7px;
        height: 7px;
        transform: rotate(45deg);
    }
}


/* -------------------------------------------------------------------------- */
/* Contact Page Styles
/* -------------------------------------------------------------------------- */
body.page-template-page-contact {
    background-color: var(--color-bg-light);
}

body.page-template-page-contact .container {
    padding: 0 5%;
}

.titleArea {
    text-align: center;
    margin-bottom: 60px;
}

.enTitle {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-bg-blue);
    margin-bottom: 0.5rem;
}

.jpTitle {
    font-size: 1rem;
    color: var(--color-text-sub);
    font-weight: 700;
    display: block;
    margin-bottom: 2rem;
}

.formWrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.contactTitleArea {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 8rem;
}

/* Global Section Title Styles (Matching Home Page) */
.sectionTitle {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.sectionSubtitle {
    font-size: 1rem;
    color: var(--color-text-sub);
    /* Matches user request */
    font-weight: 700;
    display: block;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

/* Responsive adjustments for Section Title */
@media (max-width: 768px) {
    .sectionTitle {
        font-size: 2rem;
    }
}

/* Contact Title Centering Override */
/* Contact Title Centering Override & Sizing Force */
.contactTitleArea .sectionTitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
    font-size: 3rem;
    /* Force 3rem to match home */
}

.contactTitleArea .sectionSubtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
    font-size: 1rem;
    /* Force 1rem */
}

/* Specific responsive size for Contact page title if needed */
@media (max-width: 768px) {
    .contactTitleArea .sectionTitle {
        font-size: 2rem;
    }
}

/* Specific color adjustments if strict parity with previous requests is needed, 
   but user asked to match .sectionTitle exactly. 
   Assuming .sectionTitle is Navy and .sectionSubtitle is Gray/TextSub globally. 
*/

@media (max-width: 768px) {
    .contactMainTitle {
        font-size: 2rem;
    }

    .contactTitleArea {
        margin-bottom: 3rem;
    }
}

.formGroup {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
}

.labelWrapper {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    order: 1;
}

.label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.requiredTag {
    background-color: var(--color-orange);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 1rem;
    font-weight: 700;
}

.inputWrapper,
.inquirySelector {
    position: relative;
    width: 100%;
    order: 2;
    display: flex;
    flex-direction: column;
}

.input,
.textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    color: var(--color-text-main);
    transition: all 0.3s ease;
}



/* Focus takes precedence */
.input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--color-navy);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(33, 58, 112, 0.1);
}

.textarea {
    height: 180px;
    resize: vertical;
}

/* Custom Select Styling - Adapted for MW WP Form */
.inquirySelector select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    color: var(--color-text-main);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23213A70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2rem;
}

.inquirySelector select:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 4px rgba(33, 58, 112, 0.1);
}

/* --- Confirmation Screen Global Controls --- */

/* Subtitle "(Confirm)" is now handled by JS for better control */

/* Show Confirmation Message */
body.mwform-confirmation-page #confirmMessage,
.mw_wp_form_confirm #confirmMessage {
    display: block !important;
}

/* Hide Required Tags on confirmation */
body.mwform-confirmation-page .requiredTag,
.mw_wp_form_confirm .requiredTag,
body.mwform-confirmation-page .agreementWrapper,
.mw_wp_form_confirm .agreementWrapper {
    display: none !important;
}

/* ------------------------------------------- */

/* Custom Select Specific Components (Restored) */
.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-main);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select.open .custom-select__trigger {
    border-color: var(--color-navy);
    box-shadow: 0 0 0 4px rgba(33, 58, 112, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid var(--color-navy);
    border-top: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: block;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-main);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: var(--color-bg-light);
    color: var(--color-navy);
}

.custom-option.selected {
    background-color: var(--color-bg-light);
    color: var(--color-navy);
    font-weight: 700;
}

.custom-select__trigger .arrow {
    position: relative;
    height: 10px;
    width: 10px;
    margin-left: 10px;
}

.custom-select__trigger .arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-70%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-gray);
    border-bottom: 2px solid var(--color-gray);
    transition: transform 0.3s ease;
}

.custom-select.open .custom-select__trigger .arrow::after {
    transform: translateY(-30%) rotate(225deg);
    border-color: var(--color-navy);
}

/* Agreement Checkbox (Restored) */
.agreementWrapper {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.agreementWrapper .mwform-checkbox-field label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 0;
}

.agreementWrapper .mwform-checkbox-field input {
    display: none;
}

.agreementWrapper .mwform-checkbox-field-text {
    position: relative;
    padding-left: 35px;
    font-size: 1rem;
    line-height: 24px;
    color: var(--color-text-main);
    display: inline-block;
}

.agreementWrapper .mwform-checkbox-field-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

.agreementWrapper input[type="checkbox"]:checked+.mwform-checkbox-field-text::before {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
}

.agreementWrapper input[type="checkbox"]:checked+.mwform-checkbox-field-text::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-65%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
}

.agreementWrapper .mwform-error-message {
    margin-top: 10px !important;
    text-align: center;
    width: 100% !important;
    display: block !important;
}

/* MW WP Form Validation Errors */
.mwform-error-message,
.error {
    color: var(--color-orange) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    margin-top: 5px !important;
    display: block !important;
    order: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Input error borders */
.mwform-invalid-feedback .input,
.mwform-invalid-feedback .textarea,
.mwform-invalid-feedback select,
.mwform-invalid-feedback input,
.mwform-invalid-feedback textarea,
.mwform-invalid-feedback .custom-select__trigger,
.input.error,
.textarea.error {
    border-color: var(--color-orange) !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Confirmation Page UI Controls (using body class) */
#contactSubtitle::after {
    display: none;
}

/* Subtitle "(Confirm)" is handled by JS */

body.mwform-confirmation-page #confirmMessage,
.mw_wp_form_confirm #confirmMessage {
    display: block !important;
}

/* Hide agreement text and required tags on confirmation page */
body.mwform-confirmation-page .agreementWrapper,
.mw_wp_form_confirm .agreementWrapper,
body.mwform-confirmation-page .requiredTag,
.mw_wp_form_confirm .requiredTag {
    display: none !important;
}

/* Confirmation Page Layout - Side by Side */
body.mwform-confirmation-page .formGroup,
.mw_wp_form_confirm .formGroup {
    flex-direction: row !important;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

body.mwform-confirmation-page .labelWrapper,
.mw_wp_form_confirm .labelWrapper {
    width: 30% !important;
    margin-bottom: 0 !important;
}

body.mwform-confirmation-page .inputWrapper,
.mw_wp_form_confirm .inputWrapper,
body.mwform-confirmation-page .inquirySelector,
.mw_wp_form_confirm .inquirySelector {
    width: 70% !important;
}

@media (max-width: 768px) {

    body.mwform-confirmation-page .formGroup,
    .mw_wp_form_confirm .formGroup {
        flex-direction: column !important;
        align-items: flex-start;
    }

    body.mwform-confirmation-page .labelWrapper,
    .mw_wp_form_confirm .labelWrapper,
    body.mwform-confirmation-page .inputWrapper,
    .mw_wp_form_confirm .inputWrapper {
        width: 100% !important;
    }
}

/* Mobile adjustments for form elements */
@media (max-width: 768px) {
    .label {
        font-size: 1rem;
    }

    .input,
    .textarea,
    .custom-select__trigger,
    .custom-option {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .formGroup {
        margin-bottom: 1.5rem;
    }

    .checkboxLabel {
        font-size: 0.9rem;
    }
}

/* Tel Section */
.telSection {
    background-color: var(--color-white);
    border: 1px solid #f0f0f0;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 0;
}

.telLabel {
    display: block;
    color: var(--color-text-main);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.telNumber {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-orange);
    margin-bottom: 0.5rem;
}

.telIcon {
    width: 35px;
    height: 35px;
    margin-right: 1rem;
}

.telHours {
    color: var(--color-text-main);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .telNumber {
        font-size: 1.8rem;
    }

    /* Main Button Grouping */
    /* Button styles removed from here to consolidate at the end of the file to avoid conflicts */
}

/* -------------------------------------------------------------------------- */
/* Works Page Styles
/* -------------------------------------------------------------------------- */
.worksSection {
    padding: 100px 0;
    min-height: 60vh;
}

.sectionHeader {
    text-align: left;
    margin-bottom: 3rem;
}

.sectionTitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.home .sectionTitle,
.contactSection .sectionTitle,
.page-template-page-about-php .sectionTitle,
.page-template-page-recruit-php .sectionTitle {
    font-size: 2rem;
}

@media (min-width: 801px) {

    .home .sectionTitle,
    .contactSection .sectionTitle,
    .page-template-page-about-php .sectionTitle,
    .page-template-page-recruit-php .sectionTitle {
        font-size: 2.5rem;
    }
}

.sectionDescription {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

/* Filter Buttons */
.filterContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filterButton {
    color: var(--color-text-main);
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 9999px;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
}

.filterButton:hover {
    border-color: var(--color-navy);
}

.filterButton.active {
    background-color: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
    font-weight: 700;
}

@media (max-width: 500px) {
    .filterContainer {
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

    .filterButton {
        padding: 0.6rem 0.5rem;
        font-size: 0.75rem;
        min-width: 0;
        flex: 0 0 calc(50% - 0.25rem);
        /* 2 columns with 0.5rem gap */
    }
}

/* Works Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.workCard {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s;
}

.workCard:hover {
    opacity: 0.9;
}

.workCard .imageWrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.workCard .imageWrapper img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workCard:hover .imageWrapper img {
    transform: scale(1.05);
}

.workCard .content {
    padding: 0 0.5rem;
}

.workCard .title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.workCard .tagWrapper {
    display: flex;
    justify-content: flex-start;
}

.workCard .tag {
    font-size: 0.75rem;
    border: 1px solid #666;
    border-radius: 9999px;
    padding: 0.3rem 1rem;
    font-weight: 500;
    display: inline-block;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/* TV Communal Page Styles
/* -------------------------------------------------------------------------- */


.tv-communal-top-section,
.section.grayBg {
    padding: 100px 0;
}

.tv-communal-top-section .sectionTitle,
.section.grayBg .sectionTitle {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 2rem;
}

@media (max-width: 800px) {

    .tv-communal-top-section,
    .section.grayBg {
        padding: 60px 0;
    }

    .tv-communal-top-section .sectionTitle,
    .section.grayBg .sectionTitle {
        font-size: 1.5rem !important;
    }
}


.tv-about-content {
    margin-bottom: 4rem;
}

.tv-about-content .text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

.tv-about-content .small {
    font-size: 0.85rem;
    color: #888;
}

/* Mechanism */
.mechanismContainer {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.mechanismText {
    flex: 1;
}

.subHeading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

.mechanismList {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mechanismList li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mechanismList strong {
    font-size: 1.1rem;
    color: var(--color-navy);
}

.mechanismList span {
    font-size: 0.95rem;
    color: #666;
}

.mechanismImage {
    flex: 0 0 40%;
}

.placeholderImage {
    position: relative;
    /* aspect-ratio: 1 / 1; Removed strict ratio to allow image natural size, or keep it if design demands */
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
}

.placeholderImage img {
    width: 100%;
    height: auto;
    display: block;
}

/* Life Grid */
.lifeGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.lifeItem {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lifeImage {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.lifeInfo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.itemName {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.itemLife {
    font-size: 1.1rem;
    color: var(--color-navy);
    font-weight: 700;
}


.subHero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    height: auto;
    position: relative;
}

.subHero .content {
    flex: 1;
    z-index: 2;
    padding-right: 0;
}

.subHero .title {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: none;
}

.subHero .meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subHero .subTitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.subHero .description {
    font-size: 1rem;
    color: #fff;
    opacity: 0.8;
}

.subHero .imageWrapper {
    flex: 0 0 45%;
    max-width: 500px;
    position: relative;
    right: auto;
    top: auto;
    height: auto;
    width: auto;
}

/* -------------------------------------------------------------------------- */
/* Top Page About/Recruit Cards (Hover Effects)
/* -------------------------------------------------------------------------- */
.imageCard {
    position: relative;
    width: 100%;
    padding-top: 60%;
    /* Aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
    text-decoration: none;
}

.cardImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.imageCard:hover .cardImage {
    transform: scale(1.05);
}

.imageCard .cardOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    background: rgba(33, 58, 112, 0.25);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: background-color 0.3s ease;
}

/* Maintain opacity on hover */
.imageCard:hover .cardOverlay {
    background-color: rgba(33, 58, 112, 0.25);
}

.imageCard .viewMore {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fff;
    padding-bottom: 4px;
    width: fit-content;
    letter-spacing: 0.1em;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.imageCard .arrowIcon {
    position: relative;
    width: 20px;
    height: 10px;
    align-self: flex-end;
    display: inline-block;
}

.imageCard .arrowIcon::after {
    content: "";
    position: absolute;
    bottom: 1.5px;
    right: 4.5px;
    width: 8px;
    height: 1px;
    background-color: var(--color-gray);
    transform: rotate(-130deg);
    transform-origin: right bottom;
    transition: background-color 0.2s;
}


.imageCard:hover .arrowIcon::after {
    background-color: #fff;
}

.subHero .imageInner {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: auto;
}

.subHero .imageInner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.grayBg {
    background-color: #f8f9fc;
    /* Light gray from variables/design */
}

@media (max-width: 1024px) {
    .subHero .title {
        font-size: 2.8rem;
    }
}

@media (max-width: 800px) {
    .subHero {
        padding: 120px 0 0;
    }

    .subHero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }

    .subHero .title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .subHero .imageWrapper {
        width: 100%;
        max-width: 60%;
        flex: none;
        margin-bottom: -10%;
        /* Approx 2/3 overlap for tablet */
        position: relative;
        z-index: 10;
        align-self: center;
        order: 1;
        /* Ensure image is after content in DOM order visual flow if needed */
    }

    .subHero .content {
        padding: 0;
        width: 100%;
    }

    .mechanismContainer {
        flex-direction: column;
        gap: 3rem;
    }

    .mechanismImage {
        width: 100%;
    }

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

@media (max-width: 500px) {
    .subHero {
        padding: 120px 0 0;
    }

    .subHero .title {
        font-size: 1.8rem;
    }

    .subHero .imageWrapper {
        max-width: 100%;
        margin-bottom: -100px;
    }
}



/* Default state for Desktop/Tablet: View More is disabled */
.handyman-grid-wrapper {
    max-height: none;
    overflow: visible;
}




.handyman-gradient-overlay,
.handyman-button-container {
    display: none;
}




/* Mobile Table Styles (Default: Hidden on Desktop) */
.mobile-only {
    display: none;
}

.mobilePrice {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: pre-line;
}

.mobileDesc {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

@media (max-width: 600px) {


    .handyman-service-card {
        padding: 1rem;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: table-cell;
    }






    .handyman-service-card .iconWrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .handyman-service-card .cardTitle {
        font-size: 0.95rem;
    }

    .handyman-service-card .cardSubTitle {
        font-size: 0.75rem;
        min-height: 3em;
    }

    .handyman-service-card .cardDescription {
        font-size: 0.75rem;
    }
}


/* Handyman Table Styles (Global/Desktop) */
.handyman-table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.handyman-price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.handyman-price-table th,
.handyman-price-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.handyman-price-table th {
    background-color: var(--color-navy);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.handyman-price-table tr:last-child td {
    border-bottom: none;
}

.handyman-price-table .itemCol {
    width: 150px;
    min-width: 150px;
}

.handyman-price-table .priceCol {
    width: 250px;
    min-width: 250px;
}

.handyman-price-table .descCol {
    width: auto;
}

.tableNote {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 1rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    /* Redundant block to ensure View More logic is applied */

    .handyman-grid-wrapper {
        position: relative;
        width: calc(100% + 30px);
        margin: -15px;
        padding: 15px;
        max-height: 710px;
        /* 680 + padding */
        /* Adjust based on ~2 rows height */
        overflow: hidden;
        transition: max-height 1s ease-in-out;
    }

    .handyman-grid-wrapper.expanded {
        max-height: 4000px;
    }

    .handyman-service-card:nth-child(n+5) {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.5s ease;
    }

    .handyman-grid-wrapper.expanded .handyman-service-card:nth-child(n+5) {
        opacity: 1;
        transform: translateY(0);
    }

    .handyman-gradient-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 140px;
        background: linear-gradient(to top, #fff 40%, rgba(255, 255, 255, 0.7) 70%, transparent 100%);
        z-index: 10;
        transition: opacity 0.5s ease;
        pointer-events: none;
        display: block;
        /* Override global display: none */
    }

    .handyman-gradient-overlay.hidden {
        opacity: 0;
    }

    .handyman-button-container {
        display: flex;
        /* Override global display: none */
        justify-content: center;
        margin-top: -60px;
        position: relative;
        z-index: 20;
        transition: opacity 0.5s ease;
    }

    .handyman-button-container.expanded {
        opacity: 0;
        pointer-events: none;
    }

    .handyman-view-more-button {
        background-color: #fff;
        border: 2px solid var(--color-navy);
        color: var(--color-navy);
        padding: 0.6rem 2.5rem;
        border-radius: 9999px;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .handyman-view-more-button span::after {
        content: "";
        margin-left: 10px;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        display: inline-block;
    }

    .handyman-view-more-button:hover {
        background-color: var(--color-navy);
        color: #fff;
    }

    /* Adjustments for table layout (Moved to end for specificity) */
    .handyman-price-table {
        table-layout: fixed;
        width: 100% !important;
        min-width: 0 !important;
    }

    .handyman-price-table th,
    .handyman-price-table td {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .handyman-price-table .itemCol {
        width: 30%;
        min-width: 0;
        white-space: normal;
    }
}

/* Works Archive Styles (Migrated from archive-works.php for static page use) */
.works-grid-archive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-card-archive {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    color: var(--color-text-main);
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.work-image-container-archive {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.work-cardImage-archive {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.work-card-archive:hover .work-cardImage-archive {
    transform: scale(1.1);
}

.work-cardContent-archive {
    padding: 1rem;
}

/* Note: .work-cardTitle is already defined globally or in other sections, check for conflicts */
.work-cardContent-archive .work-cardTitle {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-dark-gray);
}

.pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-text-main);
}

.pagination .page-numbers.current {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

@media (max-width: 800px) {
    .works-grid-archive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .works-grid-archive {
        grid-template-columns: 1fr;
    }
}

.worksSection.topSection {
    background-color: #fff;
    color: var(--color-text-main);
}

/* -------------------------------------------------------------------------- */
/* Work Detail Modal Styles
/* -------------------------------------------------------------------------- */
.ni-modal-overlay {
    --modal-max-width: 950px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 20, 40, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ni-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ni-modal-content {
    background-color: #fff;
    background-color: #fff;
    width: 95%;
    /* Slightly wider on mobile/tablet default */
    max-width: var(--modal-max-width);
    max-height: 90vh;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ni-modal-overlay.active .ni-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.ni-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.ni-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #fff;
}

.ni-modal-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--color-navy);
}

.ni-modal-close span:nth-child(1) {
    transform: rotate(45deg);
}

.ni-modal-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.ni-modal-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.ni-modal-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    flex-shrink: 0;
    overflow: hidden;
}

.ni-modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ni-modal-info {
    padding: 1.8rem 3rem 2.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ni-modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.25rem;
}

.ni-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-dark-gray);
}

.ni-modal-date {
    font-size: 0.95rem;
    color: #999;
    font-weight: 600;
    white-space: nowrap;
    padding-top: 0.4rem;
}

.ni-modal-tag-wrapper {
    margin-bottom: 0.5rem;
}

.ni-modal-tag {
    border: 1px solid var(--color-dark-gray);
    border-radius: 9999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.2;
    display: inline-block;
    color: var(--color-text-main);
}

.ni-modal-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-main);
    overflow-y: auto;
    flex: 1;
    padding-bottom: 1rem;
    white-space: pre-wrap;
    /* 謾ｹ陦後ｒ蜿肴丐 */
}

.ni-modal-description::-webkit-scrollbar {
    width: 6px;
}

.ni-modal-description::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.ni-modal-nav-btn {
    position: absolute;
    top: calc(100% + 1rem);
    background: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--color-navy);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

#modalPrev {
    left: 0;
}

#modalNext {
    right: 0;
}

.ni-modal-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    background: transparent;
    border-color: #fff;
    color: #fff;
}

@media (max-width: 800px) {
    .ni-modal-content {
        padding-bottom: 0;
    }
}

.ni-modal-nav-btn:not(:disabled):hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: scale(1.1);
}

.ni-modal-prev {
    left: 20px;
}

.ni-modal-next {
    right: 20px;
}

@media (max-width: 600px) {
    .ni-modal-overlay {
        padding: 0;
    }

    .ni-modal-content {
        max-width: calc(100% - 40px);
        max-height: 90vh;
        border-radius: 12px;
    }

    .ni-modal-image-wrapper {
        aspect-ratio: 3 / 2;
    }

    .ni-modal-info {
        padding: 1rem 1rem 0.4rem;
    }

    .ni-modal-title {
        font-size: 1rem;
    }

    .ni-modal-date {
        font-size: 0.75rem;
    }

    .ni-modal-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.8rem;
    }

    .ni-modal-description {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .ni-modal-nav-btn {
        top: calc(100% + 1rem);
        width: 44px;
        height: 44px;
        font-size: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .ni-modal-prev {
        left: 0;
    }

    .ni-modal-next {
        right: 0;
    }

    .ni-modal-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }
}

/* Height-based shrinks - Ported from Next.js */
@media (min-width: 601px) and (max-height: 850px) {
    .ni-modal-overlay {
        --modal-max-width: 850px;
    }

    .ni-modal-info {
        padding: 1rem 1.8rem 0.2rem;
    }

    .ni-modal-prev {
        left: 0;
    }

    .ni-modal-next {
        right: 0;
    }

    .ni-modal-title {
        font-size: 1.1rem;
    }
}

@media (min-width: 601px) and (max-height: 700px) {
    .ni-modal-overlay {
        --modal-max-width: 750px;
    }

    .ni-modal-info {
        padding: 0.8rem 1.5rem 0.1rem;
    }

    .ni-modal-prev {
        left: 0;
    }

    .ni-modal-next {
        right: 0;
    }

    .ni-modal-title {
        font-size: 1rem;
    }

    .ni-modal-description {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .ni-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 1280px) and (min-width: 601px) {
    .ni-modal-prev {
        left: 0;
    }

    .ni-modal-next {
        right: 0;
    }

    .ni-modal-nav-btn {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
}

@media (max-height: 750px) {
    .ni-modal-content {
        top: -1.5rem;
    }

    .ni-modal-description {
        font-size: 0.75rem;
    }
}

@media (max-height: 600px) {
    .ni-modal-content {
        top: 0;
    }

    .ni-modal-nav-btn {
        top: calc(100% + 0.5rem);
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .ni-modal-info {
        padding: 0.8rem 1.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Contact Page & Confirmation Styles
/* -------------------------------------------------------------------------- */
.confirmMessage {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.confirmTable {
    margin-bottom: 3rem;
    border-top: 1px solid #eee;
}

.confirmRow {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.confirmLabel {
    width: 100%;
    max-width: 240px;
    font-weight: 700;
    color: var(--color-navy);
    padding-right: 1rem;
}

.confirmValue {
    flex: 1;
    word-break: break-all;
    line-height: 1.6;
}

/* Main Button Grouping - ULTIMATE STABLE VERSION */
body.page-contact .mw_wp_form .mwform-submit-buttons,
body.page-contact .mw_wp_form_confirm .mwform-submit-buttons,
.mw_wp_form .mwform-submit-buttons,
.mw_wp_form_confirm .mwform-submit-buttons,
.mwform-submit-buttons {
    text-align: center !important;
    margin: 4rem auto 5rem !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: both !important;
}

/* Base button style - Unified for all form steps */
.mwform-submit-buttons input,
.mwform-submit-buttons button,
.mw_wp_form input[type="submit"],
.mw_wp_form input[type="button"],
.submitButtonTop,
.submitButtonBack,
.mw_wp_form_complete a {
    display: inline-block !important;
    /* Changed from flex for input compatibility */
    vertical-align: middle !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    font-size: 1.1rem !important;
	max-width:350px;
	min-width:50%;
    font-weight: 700 !important;
    padding: 1.2rem 0 !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    border: none !important;
    text-decoration: none !important;
    /* For <a> tags */
    line-height: 1.2 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    margin: 10px !important;
}

/* Orange Button (Submit) - Force to Right */
.mwform-submit-buttons input[name*="submit"],
.mwform-submit-buttons button[name*="submit"],
.mw_wp_form input[value*="送信"],
.mw_wp_form input[value*="確認"],
.mwform-submit-buttons [name*="submit"],
.mwform-submit-buttons [value*="送信"],
.submitButtonTop {
    background-color: var(--color-orange) !important;
    background: var(--color-orange) !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(232, 71, 9, 0.2) !important;
    order: 10 !important;
    /* Higher number = Right */
}

.submitButtonTop:hover,
.mw_wp_form input[value*="送信"]:hover,
.mw_wp_form input[value*="確認"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(232, 71, 9, 0.3) !important;
    background-color: #ff5a1f !important;
    background: #ff5a1f !important;
    color: #fff !important;
}

/* White Button (Back/Modify) - Force to Left */
.mwform-submit-buttons input[name*="back"],
.mwform-submit-buttons button[name*="back"],
.mwform-submit-buttons input[value*="修正"],
.mwform-submit-buttons button[value*="修正"],
.mw_wp_form input[value*="修正"],
.mwform-submit-buttons [name*="back"],
.mwform-submit-buttons [value*="修正"],
.submitButtonBack {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #555555 !important;
    border: 1px solid #eeeeee !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    padding: 1.2rem 0 !important;
    order: 1 !important;
    /* Lower number = Left */
}

.mwform-submit-buttons input[name*="back"]:hover,
.mw_wp_form input[value*="修正"]:hover,
.submitButtonBack:hover {
    background-color: #fafafa !important;
    background: #fafafa !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    color: #555555 !important;
}

.submitArea {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .mw_wp_form .mwform-submit-buttons {
        gap: 15px !important;
        flex-direction: column-reverse !important;
        /* Stack vertically if too narrow */
    }
}

@media (max-width: 600px) {
    .confirmRow {
        display: block;
        padding: 1.2rem 0;
    }

    .confirmLabel {
        max-width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        background: #f0f4f8;
        padding: 0.5rem;
        border-radius: 4px;
    }

    .confirmValue {
        padding: 0 0.5rem;
        font-size: 0.95rem;
    }

    /* Input view button full width on mobile */
    .submitButton {
        width: 100%;
        min-width: 0;
    }

    /* Confirmation view buttons stacking on mobile */
    .submitArea.confirm {
        flex-direction: column-reverse;
        gap: 1rem;
        margin-top: 2rem;
    }

    .submitForm {
        max-width: 100%;
        width: 100%;
    }
}

/* -------------------------------------------------------------------------- */
/* Privacy Policy Page Styles
/* -------------------------------------------------------------------------- */
.privacyMain {
    padding-bottom: 0;
    background-color: var(--color-light-gray);
}

.privacyContainer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.privacySection {
    margin-bottom: 60px;
}

.privacySection:last-child {
    margin-bottom: 0;
}

.privacyPageTitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.privacyPageTitle::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-primary);
}

.privacyContentBox {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.privacyContentBox h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--color-primary);
}

.privacyContentBox h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
    margin: 30px 0 15px;
}

.privacyContentBox p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.privacyContentBox ul {
    margin-bottom: 20px;
    padding-left: 1.5rem;
    list-style: none;
}

.privacyContentBox ul ul {
    padding-left: 1.5rem;
}

.privacyContentBox li {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .privacyContainer {
        padding: 100px 20px 60px;
    }

    .privacyContentBox {
        padding: 25px;
    }

    .privacyPageTitle {
        font-size: 1.6rem;
    }

    .privacyContentBox h2 {
        font-size: 1.3rem;
    }
}

/* MW WP Form エラーメッセージのスタイル */
.mwform-error-message,
.error {
    color: var(--color-orange) !important;
    font-size: 14px !important;
    margin-top: 8px !important;
    display: block !important;
    font-weight: 500 !important;
}

/* 入力エラーがある項目の枠線をオレンジにする（選択時のデザインをベースに色変更） */
/* スタイルが二重に当たらないよう、適用先を具体的に指定 */
.mw_wp_form input.mwform-invalid-field,
.mw_wp_form textarea.mwform-invalid-field,
.mw_wp_form select.mwform-invalid-field,
.mw_wp_form [aria-invalid="true"],
.mw_wp_form input.is-error,
.mw_wp_form textarea.is-error,
.mw_wp_form select.is-error,
.mw_wp_form .error-field:not(div),
.custom-select.is-error .custom-select__trigger,
/* カスタムセレクトボックスへの対応 */
.mwform-invalid-feedback input,
.mwform-invalid-feedback textarea,
.mwform-invalid-feedback select {
    border: 1px solid var(--color-orange) !important;
    box-shadow: 0 0 0 4px rgba(232, 71, 9, 0.1) !important;
    /* 選択時のネイビーをオレンジに変更したシャドウ */
    background-color: #fff !important;
    outline: none !important;
}

/* プライバシーポリシーリンクのスタイル */
.privacyLink {
    color: var(--color-orange) !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    transition: color 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.privacyLink:hover {
    color: var(--color-orange) !important;
}

/* ============================================================
   Loading Animation Layer
   ============================================================ */
.loading-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    /* 白背景 */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

.loading-logo-wrapper {
    width: 90%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-svg {
    width: 100%;
    height: auto;
}

.loading-company-name {
    width: 100%;
    text-align: center;
    font-size: 36px;
    /* ロゴ幅に合わせて拡大 */
    font-weight: 700;
    color: #213A70;
    /* ロゴのネイビーに合わせる */
    letter-spacing: 0.05em;
    font-family: 'Noto Sans JP', sans-serif;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .loading-company-name {
        font-size: 4.5vw;
        /* モバイルでは画面幅に合わせて調整 */
    }
}

/* ページ読み込み完了後に付与されるクラス */
.loading-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* スクロール禁止用クラス */
body.no-scroll {
    overflow: hidden;
}