/* =========================================
   Reset & Variables (Corporate Theme)
========================================= */
:root {
    --color-text: #374151;
    --color-heading: #111827;
    --color-bg: #ffffff;
    --color-bg-light: #f3f4f6;
    --color-primary: #0d47a1; /* Deep Corporate Blue */
    --color-primary-hover: #002171;
    --color-secondary: #4b5563;
    --color-border: #e5e7eb;
    --color-white: #ffffff;
    
    /* Fonts: Clean corporate look */
    --font-ja: 'Noto Sans JP', sans-serif;
    --font-en: 'Oswald', sans-serif;
    
    --max-width: 1100px;
    --header-height: 90px;
}

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

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

body {
    font-family: var(--font-ja);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    letter-spacing: 0.03em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    opacity: 0.7;
}

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

ul {
    list-style: none;
}

/* Utility Classes */
@media screen and (min-width: 769px) {
    .sp-only { display: none !important; }
}

@media screen and (max-width: 768px) {
    .pc-only { display: none !important; }
}

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

.section {
    padding: 100px 0;
}

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

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

.section-en {
    display: block;
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2.2rem;
    color: var(--color-heading);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-secondary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.delay-1 { transition-delay: 0.2s; }
.fade-in.delay-2 { transition-delay: 0.4s; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

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

.btn-white:hover {
    background-color: var(--color-bg-light);
}

/* Placeholders for missing images */
.placeholder-img {
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    width: 100%;
}

.placeholder-text {
    font-family: var(--font-en);
    color: #64748b;
    font-size: 1.2rem;
}

/* =========================================
   Header
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    margin-right: 10px;
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.global-nav {
    margin-right: 30px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    font-size: 0.95rem;
    color: var(--color-heading);
    font-weight: 500;
}

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

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 1px solid var(--color-border);
    padding-left: 30px;
    height: 100%;
}

.header-tel {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.btn-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Hamburger */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1000;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-heading);
    left: 0;
    transition: 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.is-active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg);
    z-index: 90;
    padding: 40px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-list li {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.mobile-nav-list a {
    display: block;
    font-size: 1.1rem;
    color: var(--color-heading);
    font-weight: 500;
}

.mobile-nav-list .btn {
    border-bottom: none;
    padding-bottom: 0;
    text-align: center;
}

/* =========================================
   Hero
========================================= */
.hero {
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
}

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

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 71, 161, 0.4); /* Blue overlay for corporate feel */
}

.hero-container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px 50px;
    display: inline-block;
    border-left: 6px solid var(--color-primary);
}

.hero-catchphrase {
    font-size: 2.5rem;
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1rem;
    color: var(--color-text);
}

/* =========================================
   News
========================================= */
.news {
    padding: 60px 0;
}

.news-inner {
    background: var(--color-white);
    padding: 40px;
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-heading);
}

.news-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--color-border);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    font-family: var(--font-en);
    color: var(--color-secondary);
    width: 100px;
}

.news-label {
    background-color: var(--color-bg-light);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 2px;
    margin-right: 20px;
    color: var(--color-text);
}

.news-label.highlight {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.news-link {
    flex: 1;
}

.news-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* =========================================
   Business
========================================= */
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.business-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.biz-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

.biz-content {
    padding: 30px;
}

.biz-title {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.biz-desc {
    font-size: 0.95rem;
}

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

.work-card {
    background: var(--color-white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.work-img {
    aspect-ratio: 4/3;
}

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

.work-info {
    padding: 25px;
}

.work-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.work-year {
    background-color: var(--color-bg-light);
    font-size: 0.8rem;
    padding: 4px 10px;
    color: var(--color-secondary);
}

.work-cat {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.8rem;
    padding: 4px 10px;
}

.work-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-heading);
}

.work-desc {
    font-size: 0.9rem;
}

/* =========================================
   Company
========================================= */
.company-inner {
    max-width: 800px;
    margin: 0 auto;
}

.corp-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--color-primary);
}

.corp-table th, .corp-table td {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.corp-table th {
    width: 30%;
    background-color: var(--color-bg-light);
    font-weight: 500;
    color: var(--color-heading);
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--color-primary);
    font-weight: 500;
}

.map-link:hover {
    text-decoration: underline;
}

/* =========================================
   Recruit
========================================= */
.recruit-banner {
    background-image: url('../images/hero.png'); /* Fallback to hero since recruit gen failed */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.recruit-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 71, 161, 0.8);
    z-index: 0;
}

.recruit-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 20px;
    color: var(--color-white);
}

.recruit-en {
    font-family: var(--font-en);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 15px;
}

.recruit-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.recruit-desc {
    margin-bottom: 40px;
}

/* =========================================
   Contact
========================================= */
.contact-grid {
    display: flex;
    gap: 30px;
}

.contact-box {
    flex: 1;
    background-color: var(--color-white);
    padding: 50px 40px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-box h3 {
    font-size: 1.3rem;
    color: var(--color-heading);
    margin-bottom: 20px;
}

.contact-tel-num {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.contact-hours {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.contact-desc {
    margin-bottom: 30px;
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--color-heading);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-address {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

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

.footer-nav a {
    color: var(--color-white);
}

.copyright {
    text-align: center;
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
}

/* =========================================
   Mobile Sticky CTA
========================================= */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 95;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-cta-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 700;
}

.mobile-cta-bar .icon {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.cta-tel {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-top: 1px solid var(--color-border);
}

.cta-web {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* =========================================
   Responsive (Tablet & Mobile)
========================================= */
@media screen and (max-width: 900px) {
    .business-grid, .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Space for sticky cta */
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-en {
        font-size: 1.2rem;
    }

    /* Header */
    .header-inner {
        padding: 0 15px;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .header-right {
        display: none !important;
    }

    .hamburger {
        display: block !important;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 400px;
        padding: 60px 0;
    }

    .hero-content {
        padding: 30px 20px;
        border-left: 4px solid var(--color-primary);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-catchphrase {
        font-size: 1.5rem;
    }

    /* News */
    .news-list li {
        flex-wrap: wrap;
    }
    
    .news-date {
        width: auto;
        margin-right: 15px;
    }
    
    .news-link {
        width: 100%;
        margin-top: 10px;
    }

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

    /* Company Table */
    .corp-table th, .corp-table td {
        display: block;
        width: 100%;
    }

    .corp-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}
