@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #FF8C00;
    /* Orange (Accent) */
    --color-primary-dark: #cc7000;
    /* Darker Orange (Hover) */
    --color-text-main: #333333;
    /* Dark Gray (Text) */
    --color-text-light: #666666;
    /* Light Gray */
    --color-bg-body: #FFFFFF;
    /* White (Background) */
    --color-bg-gray: #F5F5F5;
    /* Light Gray (Section Bg) */
    --color-border: #E0E0E0;

    /* Fonts */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-en: 'Roboto', sans-serif;

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

/* ==========================================================================
   Base
   ========================================================================== */
body {
    font-family: var(--font-base);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

a {
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

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

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.section-title span {
    display: block;
    font-size: 1rem;
    color: var(--color-primary);
    font-family: var(--font-en);
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.2);
}

.btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.3);
    text-decoration: none;
    opacity: 1;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.5s;
    /* Global delay for scroll reveal */
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    height: var(--header-height);
    background-color: transparent;
    /* Initially transparent */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 50px;
    width: auto;
    display: block;
}

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

.header-nav li a {
    font-weight: 500;
    position: relative;
}

.header-nav li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s;
}

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

/* Mobile Menu Toggle (Simplified) */
.menu-toggle {
    display: none;
}

/* ==========================================================================
   Main Visual
   ========================================================================== */
.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.main-visual-bg,
.mv-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mv-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
}

.mv-image.active {
    opacity: 1;
    z-index: 2;
}

.main-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darkened for better visibility */
}

.main-visual-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    z-index: 10;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Individual Reveals */
.mv-title.reveal {
    transition-delay: 0.5s;
}

.mv-sub.reveal {
    transition-delay: 1.2s;
}

.mv-name.reveal {
    transition-delay: 1.2s;
}

.main-visual-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.main-visual-content .company-desc {
    font-size: 2rem;
    font-weight: 500;
}

.main-visual-content .company-name {
    font-size: 1.5rem;
    /* Smaller size */
    font-weight: 500;
    margin-top: 5px;
}

/* ==========================================================================
   Business Section
   ========================================================================== */
/* ==========================================================================
   Business Section (New Design)
   ========================================================================== */
.business-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.business-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5%;
}

.business-item.reverse {
    flex-direction: row-reverse;
}

.business-desc {
    flex: 1;
    position: relative;
    padding: 20px;
}

.business-image {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    /* Optional rounded corners base */
}

/* Diagonal Cut Mask */
.img-mask {
    width: 100%;
    height: 100%;
}

.img-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.business-item:hover .img-mask img {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

/* Right-side image (Cut from left) */
.right-cut {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Left-side image (Cut from right) */
.left-cut {
    clip-path: polygon(0% 0, 100% 0, 85% 100%, 0% 100%);
}

/* Number Decoration */
/* Number Decoration */
.business-number {
    display: block;
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: -20px;
    opacity: 0.3;
    /* Visible orange but transparent */
    font-family: var(--font-en);
}

.business-desc h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    /* Orange for title to match theme */
    margin-bottom: 20px;
}

.business-desc h3 span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    font-weight: 400;
}

.business-desc p {
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Specific Business Button */
.btn-business {
    background-color: var(--color-primary);
    /* Orange */
    padding: 12px 30px;
    font-size: 0.9rem;
    min-width: 160px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.2);
}

.btn-business:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.3);
}

.btn-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   Company Section
   ========================================================================== */
.company-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.company-info {
    flex: 1;
    min-width: 300px;
}

.company-map {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: #eee;
}

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

.company-info th,
.company-info td {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.company-info th {
    width: 30%;
    font-weight: 700;
    background: #f9f9f9;
}

/* ==========================================================================
   Recruit Section
   ========================================================================== */
.section-recruit {
    background: linear-gradient(rgba(255, 140, 0, 0.4), rgba(255, 69, 0, 0.4)), url('../images/recruit_bg_handshake.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Stylish diagonal background element */
.section-recruit::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
    pointer-events: none;
}

.section-recruit .section-title {
    color: #fff;
}

.section-recruit .section-title span {
    color: rgba(255, 255, 255, 0.8);
}

.recruit-content p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Ensure text readability */
}

/* Button style adjustment for orange background */
.section-recruit .btn {
    background-color: #fff;
    color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.section-recruit .btn:hover {
    background-color: #f9f9f9;
    color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Contact Section (Index)
   ========================================================================== */
.section-contact-index {
    background-color: #f0f0f0;
    text-align: center;
}

.contact-text {
    margin-bottom: 40px;
}

/* Privacy Policy Style */
.privacy-policy {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 30px 0;
    font-size: 0.85rem;
    line-height: 1.6;
    height: 200px;
    overflow-y: auto;
    border-radius: 4px;
    text-align: left;
}

.privacy-policy h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.privacy-policy p {
    margin-bottom: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-info p {
    line-height: 1.8;
    color: #ccc;
}

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

.copyright {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #888;
}

/* ==========================================================================
   Responsiveness
   ========================================================================== */
@media screen and (max-width: 768px) {
    .header {
        height: var(--sp-header-height);
        padding: 0 20px;
    }

    /* Header Nav Mobile (Overlay) */
    .header-nav {
        display: block;
        /* Change from none to block for transition */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 90;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .header-nav li a {
        font-size: 1.2rem;
        color: #333;
    }

    /* Menu Toggle Button */
    .menu-toggle {
        display: block;
        width: 30px;
        height: 25px;
        position: relative;
        cursor: pointer;
        z-index: 100;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #333;
        position: absolute;
        transition: all 0.3s;
        border-radius: 2px;
    }

    .menu-toggle span:nth-child(1) {
        top: 0;
    }

    .menu-toggle span:nth-child(2) {
        top: 11px;
    }

    .menu-toggle span:nth-child(3) {
        bottom: 0;
    }

    /* Active State (X shape) */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    /* Business Section Mobile */
    .business-item,
    .business-item.reverse {
        flex-direction: column;
        gap: 20px;
    }

    .business-item .business-image {
        order: -1;
        /* Image first on mobile */
        width: 100%;
    }

    .right-cut,
    .left-cut {
        clip-path: none;
        /* Remove diagonal cut on mobile */
        border-radius: 8px;
    }

    /* Hero Section Mobile */
    .main-visual-content {
        left: 20px;
        bottom: 50px;
        max-width: 80%;
        /* Prevent text from hitting the right edge too hard */
    }

    .main-visual-content h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .main-visual-content .company-desc {
        font-size: 1rem;
    }

    .main-visual-content .company-name {
        font-size: 0.9rem;
        margin-top: 5px;
    }
}