:root {
    --color-main: #0F1E2E;
    --color-accent: #2F5F98;
    --color-sub: #F5F7F9;
    --color-text: #0F1E2E;
    --color-text-gray: #6B7280;
    --color-white: #FFFFFF;

    --font-base: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.8;
    letter-spacing: 0.05em;
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* Typography */
.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    color: var(--color-main);
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 1.5rem auto 0;
}

/* Layout Utility */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

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

.bg-dark {
    background-color: var(--color-main);
    color: var(--color-white);
}

.text-white {
    color: var(--color-white);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.logo {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--color-main);
}

.nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-main);
}

.btn-nav {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: var(--color-main);
    color: var(--color-white) !important;
    border-radius: 2px;
    font-size: 0.85rem !important;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.highlight-underline {
    position: relative;
    display: inline-block;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 12px;
    background-color: rgba(47, 95, 152, 0.3);
    z-index: -1;
    animation: underlineExpand 1s ease-out 1s forwards;
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-gray);
    letter-spacing: 0.1em;
}

/* Philosophy */
.philosophy .lead-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-main);
}

.philosophy-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Services */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-item {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 4px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); */
    border: 1px solid #E5E7EB;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.service-title {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.service-num {
    font-family: var(--font-en);
    font-size: 3rem;
    color: #E5E7EB;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-main);
}

.service-item p {
    font-size: 0.95rem;
    color: var(--color-text-gray);
    line-height: 1.8;
}

/* Case Study */
.case-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.case-card {
    background-color: var(--color-sub);
    padding: 3rem;
    border-radius: 4px;
}

.case-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
    color: var(--color-main);
}

.case-card ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--color-text-gray);
}

.case-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* Strength */
.strength .section-title {
    color: var(--color-white);
}

.strength-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.strength-list li {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Company */
.company-info {
    max-width: 700px;
    margin: 0 auto;
    border-top: 1px solid #E5E7EB;
}

.info-row {
    display: flex;
    padding: 2rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.info-row dt {
    width: 180px;
    font-weight: 700;
    flex-shrink: 0;
}

.info-row dd {
    flex-grow: 1;
}

/* Contact */
.contact {
    background-color: var(--color-main);
    color: var(--color-white);
    text-align: center;
    padding: 8rem 0;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.btn-contact {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-main);
    padding: 1.2rem 4rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-contact:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: var(--color-main);
    color: #6B7280;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Mobile Navigation & Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-main);
    position: absolute;
    transition: all 0.3s;
}

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

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

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

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

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Mobile Menu Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 30, 46, 0.98);
    z-index: 1500;
    transition: right 0.4s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.mobile-nav ul {
    flex-direction: column;
    text-align: center;
}

.mobile-nav a {
    color: var(--color-white);
    font-size: 1.5rem;
    display: block;
    margin: 1.5rem 0;
}

.mobile-nav .btn-entry-nav {
    display: inline-block;
    background: linear-gradient(135deg, #2F5F98 0%, #4a8fd4 100%);
    color: #fff !important;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(47, 95, 152, 0.4);
}

/* Infinite Marquee via CSS */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-flex;
    gap: 2rem;
    animation: marquee 40s linear infinite;
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    width: 350px;
    flex-shrink: 0;
    white-space: normal;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes content is duplicated once */
}

/* Other Page Styles */
.page-header {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-en);
    font-size: 3rem;
    letter-spacing: 0.1em;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px solid #E5E7EB;
    align-items: baseline;
    gap: 2rem;
}

.news-date {
    font-family: var(--font-en);
    color: var(--color-text-gray);
    font-size: 0.9rem;
}

.news-category {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 2px;
}

.news-title {
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-base);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    display: block;
    width: 100%;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--color-main);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

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

    .logo {
        font-size: 1.2rem;
    }

    .header-inner {
        padding: 1rem;
    }

    /* Mobile Nav */
    .nav {
        display: none;
        /* Hide desktop nav */
    }

    .hamburger {
        display: block;
        /* Show hamburger */
    }

    .service-list,
    .case-list {
        grid-template-columns: 1fr;
    }

    /* Marquee on mobile fits nicely */
    .marquee-item {
        width: 280px;
    }

    .strength-list li {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }

    .info-row {
        flex-direction: column;
        padding: 1.5rem 0;
    }

    .info-row dt {
        width: 100%;
        margin-bottom: 0.5rem;
        color: var(--color-accent);
    }

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

    .news-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Utility */
.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: block;
    }
}

/* =========================================
   Recruiter CTA on Index
   ========================================= */
.recruiter-cta {
    padding: 40px 0 60px;
    background-color: #fff;
}

.recruiter-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.recruiter-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0F1E2E;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.recruiter-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
}

.btn-recruiter {
    display: inline-block;
    padding: 0.9rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2F5F98 0%, #4a8fd4 100%);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(47, 95, 152, 0.25);
}

.btn-recruiter:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(47, 95, 152, 0.4);
    color: #fff;
    background: linear-gradient(135deg, #4a8fd4 0%, #2F5F98 100%);
}

/* =========================================
   Entry Page Styles
   ========================================= */
.entry-page .header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.entry-page .logo a,
.entry-page .nav ul li a {
    color: #333;
}

.entry-page .hamburger span {
    background-color: #333;
}

.entry-page .nav ul li a:hover {
    color: #0072ff;
}

.entry-hero {
    background: linear-gradient(135deg, #2F5F98 0%, #4a8fd4 100%);
    padding: 160px 0 100px;
    text-align: center;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.entry-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.entry-subtitle {
    font-size: 1.6rem;
    line-height: 1.8;
    opacity: 0.95;
    font-weight: 500;
}

.entry-form-section {
    padding: 40px 0 120px;
    background-color: #f9f9f9;
    margin-top: -60px;
}

.entry-form {
    background: #fff;
    padding: 4rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.entry-form .form-control {
    background-color: #f5f8fa;
    border: 1px solid #e1e8ed;
    padding: 1.2rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.entry-form .form-control:focus {
    background-color: #fff;
    border-color: #4facfe;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
}

.required {
    color: #e74c3c;
    margin-left: 0.3rem;
}

.btn-entry-submit {
    background: linear-gradient(135deg, #2F5F98 0%, #4a8fd4 100%);
    border: none;
    width: 100%;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 10px 20px rgba(47, 95, 152, 0.3);
}

.btn-entry-submit:hover {
    background: linear-gradient(135deg, #4a8fd4 0%, #2F5F98 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(47, 95, 152, 0.4);
}

/* Header Entry Button */
.btn-entry-nav {
    background: linear-gradient(135deg, #2F5F98 0%, #4a8fd4 100%);
    color: #fff !important;
    padding: 0.6rem 2rem;
    border-radius: 30px;
    margin-left: 1rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(47, 95, 152, 0.2);
}

.btn-entry-nav:hover {
    background: linear-gradient(135deg, #4a8fd4 0%, #2F5F98 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 95, 152, 0.3);
    opacity: 1;
}

/* Privacy Policy Scroll Box */
.privacy-policy h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #333;
    border-left: 3px solid #2F5F98;
    padding-left: 0.6rem;
}

.privacy-scroll-box {
    height: 200px;
    overflow-y: scroll;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #555;
    background-color: #fafbfc;
    margin-bottom: 1.2rem;
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #333;
    margin-top: 0.5rem;
}

.privacy-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2F5F98;
}

@media (max-width: 768px) {
    .recruiter-box {
        padding: 40px 20px;
    }

    .recruiter-title {
        font-size: 2.4rem;
    }

    .recruiter-text {
        font-size: 1.4rem;
    }

    .btn-recruiter {
        width: 100%;
        padding: 1.2rem;
    }

    .entry-hero {
        padding: 120px 0 80px;
    }

    .entry-form {
        padding: 2rem;
    }

    .entry-title {
        font-size: 2.2rem;
    }
}