/* Base & Variables */
:root {
    --primary-color: #0066cc;
    --accent-color: #00d4ff;
    --dark-bg: #0a192f;
    --darker-bg: #020c1b;
    --light-text: #e6f1ff;
    --gray-text: #8892b0;
    --white: #ffffff;
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-english: 'Orbitron', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title-wrapper {
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-english);
    color: var(--primary-color);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    position: relative;
    display: inline-block;
}

.center {
    text-align: center;
}

.section-desc {
    color: #666;
    margin-top: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    margin-left: 20px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    margin: 10px;
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-english);
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 2px;
}

.header.scrolled .logo {
    color: var(--dark-bg);
}

.logo span {
    color: var(--accent-color);
    font-size: 1rem;
    margin-left: 5px;
}

.header.scrolled .logo span {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    color: var(--light-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.header.scrolled .nav-list a {
    color: var(--dark-bg);
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.header.scrolled .nav-list a::after {
    background-color: var(--primary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-contact {
    padding: 8px 20px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    color: var(--accent-color) !important;
}

.btn-contact:hover {
    background: var(--accent-color);
    color: var(--dark-bg) !important;
}

.header.scrolled .btn-contact {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.header.scrolled .btn-contact:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(2, 12, 27, 0.9) 0%, rgba(2, 12, 27, 0.6) 60%, rgba(2, 12, 27, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 10%;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: var(--font-english);
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 40px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-down span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animation Utilities */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-section {
    background-color: #fff;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    flex: 0.6;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-item {
    background: #f8fbff;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-family: var(--font-english);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Services Section */
.services-section {
    background-color: #f0f4f8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}



/* Recruit Section */
.recruit-section {
    background-color: #f8fbff;
    position: relative;
    overflow: hidden;
}

.recruit-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 20px 0;
}

.recruit-content {
    flex: 1;
}

.recruit-lead {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 20px;
    line-height: 1.4;
}

.recruit-desc {
    color: #555;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Recruit Image removed, replaced with form */
.recruit-form-wrapper {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
}

.recruit-form-wrapper h3 {
    margin-bottom: 25px;
    color: var(--dark-bg);
    text-align: center;
    font-size: 1.5rem;
}

.recruit-benefits {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateX(10px);
}

.benefit-item i {
    margin-right: 15px;
    font-size: 1.3rem;
    color: var(--accent-color);
}

/* Response fix */
@media (max-width: 900px) {
    .recruit-wrapper {
        flex-direction: column;
        gap: 40px;
    }
}

/* Company Section */
.company-section {
    background-color: var(--white);
}

.company-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #eee;
}

.company-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.company-item dt {
    width: 200px;
    font-weight: 700;
    color: var(--dark-bg);
}

.company-item dd {
    flex: 1;
    color: #555;
}

/* Contact Section */
.contact-section {
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--darker-bg), var(--primary-color));
    position: relative;
    padding: 80px 0;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.contact-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.contact-info-side {
    flex: 1;
    min-width: 300px;
}

.contact-form-side {
    flex: 1.2;
    min-width: 300px;
}

/* Contact Info Side */
.contact-text {
    text-align: left;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--light-text);
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-decoration: none;
}

.contact-method-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.text-box {
    display: flex;
    flex-direction: column;
}

.text-box .label {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-family: var(--font-english);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-box .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    word-break: break-all;
}

/* Form Side */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: var(--dark-bg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-bg);
}

.required {
    background: #ff4d4d;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: #f9f9f9;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-submit {
    margin-top: 10px;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    color: var(--gray-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo h2 {
    color: var(--white);
    font-family: var(--font-english);
    letter-spacing: 2px;
}

.footer-logo h2 span {
    color: var(--primary-color);
    font-size: 1rem;
    margin-left: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--light-text);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.8rem;
    color: #555;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav {
        display: none;
        /* Mobile menu to be implemented if needed, simple hide for now or hamburger */
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--white);
        border-radius: 2px;
        transition: var(--transition);
    }

    .header.scrolled .hamburger span {
        background: var(--dark-bg);
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 8px;
    }

    .hamburger span:nth-child(3) {
        top: 16px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .company-item {
        flex-direction: column;
    }

    .company-item dt {
        width: 100%;
        margin-bottom: 5px;
    }

    .recruit-wrapper {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .recruit-image {
        width: 100%;
        height: 300px;
    }

    /* Contact Responsive */
    .contact-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}