:root {
    /* Colors */
    --primary-dark: #1A284F;
    --accent-blue: #00AEEF;
    --accent-blue-hover: #0095CC;
    --text-main: #333333;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light: #F5F7FA;
    --border-color: #E0E0E0;

    /* Typography */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-en: 'Montserrat', sans-serif;
    /* For English headings if needed */

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

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

.section {
    padding: var(--section-padding);
}

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

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

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-blue);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.98);
}

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

/* Work Page Styles */
.work-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.work-item {
    background: #fff;
    padding: 1.5rem 2rem;
    border-left: 5px solid var(--accent-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: var(--primary-dark);
    transition: background-color 0.3s ease;
}

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

.work-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-dark);
}

/* Responsive for Work Page */
@media (max-width: 768px) {
    .work-list {
        grid-template-columns: 1fr;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-phone {
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-contact {
    background-color: var(--accent-blue);
    color: var(--text-white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contact:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1A284F;
    background-image:
        linear-gradient(rgba(26, 40, 79, 0.5), rgba(26, 40, 79, 0.5)),
        url('../hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-white);
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../hero_bg.jpg') center/cover no-repeat;
    filter: blur(4px);
    z-index: -1;
    opacity: 0.5;
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-tagline {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-word {
    display: inline-block;
}

.hero-divider {
    display: inline-block;
    margin: 0 0.2em;
}

.hero-btn {
    display: inline-block;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.hero-btn:hover {
    background-color: var(--text-white);
    color: var(--primary-dark);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.scroll-icon {
    width: 20px;
    height: 30px;
    border: 2px solid var(--text-white);
    border-radius: 15px;
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--text-white);
    border-radius: 50%;
    animation: scrollDot 1.5s infinite;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-address p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

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

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        top: 5px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* Fade In On Scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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


.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

/* Placeholder Pattern */
.pattern-grid {
    background-color: #e5e5f7;
    opacity: 0.8;
    background-image: linear-gradient(135deg, #00AEEF 25%, transparent 25%), linear-gradient(225deg, #00AEEF 25%, transparent 25%), linear-gradient(45deg, #00AEEF 25%, transparent 25%), linear-gradient(315deg, #00AEEF 25%, #e5e5f7 25%);
    background-position: 10px 0, 10px 0, 0 0, 0 0;
    background-size: 20px 20px;
    background-repeat: repeat;
}

/* Grid Utilities */
.grid-2 {
    grid-template-columns: 1fr 1fr;
}

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

/* Page Hero (Moved from company.html) */
.page-hero {
    height: 40vh;
    min-height: 300px;
    background-color: #1A284F;
    background-image:
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 1) 0px, transparent 50%),
        linear-gradient(135deg, rgba(26, 40, 79, 0.9) 0%, rgba(0, 174, 239, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Company Table */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}

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

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

/* Product Page Styles */
.project-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.project-item {
    background: #fff;
    padding: 1.5rem 2rem;
    border-left: 5px solid var(--accent-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: var(--primary-dark);
    transition: background-color 0.3s ease;
}

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

/* Responsive for Product Page */
@media (max-width: 768px) {
    .project-list {
        grid-template-columns: 1fr;
    }
}

/* Recruit Page Styles */
.recruit-section {
    margin-bottom: 4rem;
}

.recruit-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.job-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.requirements-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.entry-btn-container {
    text-align: center;
    margin-top: 4rem;
}

.entry-btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: #fff;
    padding: 1.2rem 4rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 174, 239, 0.3);
    transition: all 0.3s ease;
}

.entry-btn:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 174, 239, 0.4);
}

/* Contact Page Styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-box {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
}

.contact-info-item {
    margin-bottom: 2rem;
}

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

.contact-info-label {
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-info-value {
    font-size: 1.1rem;
}

/* Responsive for Contact Page */
@media (max-width: 768px) {
    .contact-info-box {
        padding: 2rem;
    }
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: block;
        cursor: pointer;
    }

    /* Logo responsive */
    .logo {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    /* Hide phone number on mobile */
    .contact-phone {
        display: none;
    }

    /* Adjust header contact spacing */
    .header-contact {
        gap: 0.5rem;
    }

    /* Adjust contact button */
    .btn-contact {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-word {
        display: block;
        margin-bottom: 0.5rem;
    }

    .hero-divider {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    /* Grid Responsive */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
        /* Force single column */
        gap: 2rem !important;
    }

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

    .company-table th {
        background-color: transparent;
        padding-bottom: 0.5rem;
        color: var(--accent-blue);
    }

    .company-table td {
        padding-top: 0;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
    }

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