﻿/* ========== Global base ========== */
:root {
    --brand-primary: #8b2555;
    --brand-navy: #1f1f54;
    --brand-navy-bright: #1e40af;
    --brand-light: #f5f5f5;
    --nav-bg: #141428;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --font-sans: "Outfit", "Noto Sans JP", "Inter", sans-serif;
    --font-jp: "Noto Sans JP", "Outfit", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    /* Reveal animations, oversized watermarks and wide gutters push boxes a few
       pixels past the right edge. Clip horizontally (never scroll) so that
       content cannot widen the page or trigger a mobile viewport expansion. */
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: #fff;
    overflow-x: clip;
}

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

.text-brand {
    color: var(--brand-primary) !important;
}

/* ========== RichEditor text colours ========== */
/* Filament's RichEditor text-colour tool renders
   <span class="color" data-color="Purple" style="--color: #9d4b75; --dark-color: #9d4b75">
   so the picked colour lives in a custom property that only the admin
   stylesheet resolves. The public pages never loaded those rules, which is why
   editor text colour was silently dropped. Resolve the property here instead;
   the custom-property fallback keeps spans without a colour inheriting their
   surrounding text. */
span.color[data-color] {
    color: var(--color, inherit);
}

/* Content saved before the picker existed stores the literal hex in
   data-color (no `--color` property), so map those legacy swatches onto the
   current palette. Kept last to win the cascade over the rule above. */
span.color[data-color="#984674"] {
    color: #9d4b75;
}

span.color[data-color="#0ea5e9"] {
    color: #9ab5f4;
}

/* ========== Shared CTA ========== */
/* ========== 5. Contact CTA ========== */
.section-cta-wrap {
    background: #f7f8fc;
}

.cta-card {
    position: relative;
    max-width: 860px;
    background: #fff;
    border: 2px solid #5b2c6f;
    border-radius: 1.25rem;
    padding: 3.25rem 2rem 2.5rem;
    box-shadow: 0 16px 40px rgba(31, 31, 84, 0.08);
}

.cta-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #c0392b;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.cta-pins {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-pin {
    position: absolute;
    top: -14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1f1f54;
}

.cta-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    transform: translateX(-50%);
}

.cta-pin-left {
    left: 22%;
}

.cta-pin-right {
    right: 22%;
}

.cta-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #1f1f54;
    margin-bottom: 1rem;
}

.cta-copy {
    max-width: 640px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.btn-cta-gradient {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-navy));
    color: #fff !important;
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    border: none;
    box-shadow: 0 8px 22px rgba(139, 37, 85, 0.28);
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.btn-cta-gradient:hover {
    color: #fff !important;
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* ========== Shared animations ========== */
/* ========== Page Animations ========== */
.site-header {
    animation: headerDrop 0.55s ease both;
}

@keyframes headerDrop {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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

.main-nav {
    animation: navFade 0.6s ease 0.12s both;
}

@keyframes navFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-36px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(36px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

@keyframes linePulse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.update-card,
.service-media,
.cta-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.update-card:hover,
.service-media:hover,
.cta-card:hover {
    transform: translateY(-4px);
}

.update-card,
.service-media,
.cta-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.update-card:hover,
.service-media:hover {
    transform: translateY(-6px);
}

.service-media img {
    transition: transform 0.7s ease;
}

.service-media:hover img {
    transform: scale(1.04);
}

/* ========== Header / nav / mega / line-float ========== */
:root {
    --brand-primary: #8b2555;
    --brand-navy: #1f1f54;
    --brand-navy-bright: #1e40af;
    --brand-light: #f5f5f5;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --indigo-600: #4f46e5;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --max-7xl: 80rem;
    --max-6xl: 72rem;
}

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

html,
body {
    font-family:
        Inter, Outfit, ui-sans-serif, system-ui, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--gray-900);
    background: #fff;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

.line-float {
    position: fixed;
    left: 0;
    top: 50%;
    z-index: 50;
    background: var(--green-500);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.line-float:hover {
    background: var(--green-600);
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-bottom: 1px solid var(--gray-100);
}

.header-top {
    border-bottom: 1px solid var(--gray-100);
}

.header-top-inner,
.nav-inner {
    max-width: var(--max-7xl);
    margin: 0 auto;
    padding: 0 32px;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-frame {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border: 1px solid var(--gray-200);
}

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

.logo-name {
    margin-top: 16px;
    font-size: 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: 0.025em;
    line-height: 1.15;
}

.logo-tag {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 2px;
    letter-spacing: 0.025em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-toggle {
    position: relative;
    display: flex;
    align-items: center;
    width: 110px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 9999px;
    padding: 4px;
}

.lang-pill {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 50px;
    height: 28px;
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
    transform: none;
    transition: transform 0.2s ease;
}

.lang-toggle.is-en .lang-pill {
    transform: translateX(52px);
}

.lang-btn {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 28px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.lang-btn.active {
    color: var(--indigo-600);
}

.recruit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    padding: 14px 24px;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(to right,
            var(--brand-primary),
            var(--brand-navy));
    transition: transform 0.3s;
}

.recruit-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            var(--brand-navy),
            var(--brand-primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.recruit-btn span {
    position: relative;
    z-index: 1;
}

.recruit-btn:hover {
    transform: scale(1.05);
}

.recruit-btn:hover::after {
    opacity: 1;
}

.main-nav-bar {
    background: linear-gradient(to right,
            var(--slate-800),
            var(--slate-900),
            var(--slate-800));
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.os-nav-item {
    position: relative;
}

.os-nav-link {
    position: relative;
    padding: 16px 24px;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    transition:
        color 0.3s,
        background 0.3s;
}

.os-nav-link:hover {
    color: #fff;
    background: var(--slate-700);
}

.os-nav-link:hover .nav-en,
.os-nav-link.active .nav-en,
.nav-company:hover>.os-nav-link .nav-en,
.nav-services:hover>.os-nav-link .nav-en,
.nav-company:focus-within>.os-nav-link .nav-en,
.nav-services:focus-within>.os-nav-link .nav-en {
    color: rgb(255 255 255 / 0.85);
}

.nav-company:hover>.os-nav-link,
.nav-services:hover>.os-nav-link,
.nav-company:focus-within>.os-nav-link,
.nav-services:focus-within>.os-nav-link {
    color: #fff;
    background: linear-gradient(to right,
            var(--brand-primary),
            var(--brand-navy));
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15);
}

.os-nav-link span {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
}

.nav-jp {
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-en {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: -2px;
    white-space: nowrap;
}

.nav-home {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 0 100%);
}

.nav-mid {
    clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 100%, 0 100%);
}

.nav-last {
    clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%);
}

.os-nav-link.active {
    color: #fff;
    background: linear-gradient(to right,
            var(--brand-primary),
            var(--brand-navy));
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15);
}

.os-nav-link.active:hover {
    background: linear-gradient(to right,
            var(--brand-primary),
            var(--brand-navy));
}

.header-spacer {
    height: 152px;
}

.nav-toggle-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-800);
}

.mobile-nav-drawer {
    --bs-offcanvas-width: min(86vw, 380px);
    border-left: 0;
    box-shadow: -12px 0 40px rgb(0 0 0 / 0.18);
    z-index: 10050;
}

.offcanvas-backdrop.show {
    backdrop-filter: blur(2px);
    background-color: rgb(15 23 42 / 0.45);
    z-index: 10040;
}

.mobile-nav-drawer .offcanvas-header {
    padding: 1.25rem 1.25rem 0.75rem;
}

.mobile-nav-drawer .offcanvas-body {
    padding: 0.5rem 1.25rem 1.5rem;
}

.mobile-drawer-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.mobile-nav-drawer .offcanvas-header>div:first-child {
    min-width: 0;
}

.mobile-nav-drawer .offcanvas-header>div:first-child>div {
    flex: 1;
    min-width: 0;
}

.mobile-drawer-brand {
    margin-top: 0;
    font-size: 1.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-drawer-brand+.logo-tag {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
}

.mobile-nav-link {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    color: var(--gray-800);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.mobile-nav-link .nav-jp {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.mobile-nav-link .nav-en {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.15rem;
}

.mobile-nav-link:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.mobile-nav-link.active {
    color: #fff;
    background: linear-gradient(to right,
            var(--brand-primary),
            var(--brand-navy));
    box-shadow: 0 10px 20px -8px rgb(139 37 85 / 0.55);
}

.mobile-nav-link.active .nav-en {
    color: rgb(255 255 255 / 0.85);
}

.mobile-lang-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
}

.mega-bridge {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
}

.mega-menu {
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 8.5rem;
    width: 100vw;
    max-width: 1536px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    border-radius: 0 0 16px 16px;
    z-index: 50;
    border: 1px solid var(--gray-100);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
        opacity 0.2s,
        visibility 0.2s,
        transform 0.2s;
}

.nav-company:hover .mega-menu,
.nav-company:focus-within .mega-menu,
.nav-company.force-hover .mega-menu,
.nav-services:hover .mega-menu,
.nav-services:focus-within .mega-menu,
.nav-services.force-hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.mega-inner {
    max-width: var(--max-7xl);
    margin: 0 auto;
    padding: 32px;
}

.mega-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.mega-count {
    font-size: 14px;
    color: var(--gray-600);
}

.mega-count .count-b,
#mega-company-2:checked~.site-header .nav-company .count-a,
#mega-services-2:checked~.site-header .nav-services .count-a {
    display: none;
}

#mega-company-2:checked~.site-header .nav-company .count-b,
#mega-services-2:checked~.site-header .nav-services .count-b {
    display: inline;
}

.mega-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-arrow {
    display: flex;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    color: var(--indigo-600);
    line-height: 0;
}

.mega-arrow svg {
    width: 16px;
    height: 16px;
}

.mega-arrow.is-disabled,
#mega-company-1:checked~.site-header .nav-company .arrow-prev,
#mega-company-2:checked~.site-header .nav-company .arrow-next,
#mega-services-1:checked~.site-header .nav-services .arrow-prev,
#mega-services-2:checked~.site-header .nav-services .arrow-next {
    color: var(--gray-400);
    cursor: not-allowed;
    pointer-events: none;
}

#mega-company-1:checked~.site-header .nav-company .arrow-next,
#mega-company-2:checked~.site-header .nav-company .arrow-prev,
#mega-services-1:checked~.site-header .nav-services .arrow-next,
#mega-services-2:checked~.site-header .nav-services .arrow-prev {
    border-color: #c7d2fe;
    color: var(--indigo-600);
    pointer-events: auto;
    cursor: pointer;
}

.mega-dots {
    display: flex;
    gap: 4px;
}

.mega-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--gray-300);
}

#mega-company-1:checked~.site-header .nav-company .dot-1,
#mega-company-2:checked~.site-header .nav-company .dot-2,
#mega-services-1:checked~.site-header .nav-services .dot-1,
#mega-services-2:checked~.site-header .nav-services .dot-2 {
    background: var(--indigo-600);
}

.mega-viewport {
    overflow: hidden;
    container-type: inline-size;
}

.mega-track {
    display: flex;
    gap: 24px;
    transition: transform 0.35s ease;
}

#mega-company-2:checked~.site-header .nav-company .mega-track,
#mega-services-2:checked~.site-header .nav-services .mega-track {
    transform: translateX(calc(-1 * ((100cqw - 72px) / 4 + 24px)));
}

.mega-card {
    flex: 0 0 calc((100cqw - 72px) / 4);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(to bottom right,
            var(--gray-50),
            var(--gray-100));
    transition:
        box-shadow 0.3s,
        transform 0.3s;
}

.mega-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
    transform: scale(1.05);
}

.mega-photo {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.mega-photo-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.mega-card:hover .mega-photo-img {
    transform: scale(1.1);
}

.mega-photo-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgb(0 0 0 / 0.6),
            rgb(0 0 0 / 0.2),
            transparent);
}

.mega-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    background: rgb(255 255 255 / 0.2);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mega-card-body {
    padding: 16px;
}

.mega-card-body h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.mega-card:hover .mega-card-body h3,
.mega-card:hover .mega-kana {
    color: var(--brand-primary);
}

.mega-kana {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 4px;
}

.mega-card:hover .mega-kana {
    border-color: var(--brand-primary);
}

.mega-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.625;
}

/* ========== Footer ========== */
.site-footer {
    color: #d1d5db;
    background: var(--gray-900);
    padding: 48px 0 0;
}

.site-footer .footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px 8px;
}

.site-footer .footer-grid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
    align-items: flex-start;
}

.site-footer .footer-col {
    min-width: 0;
}

.footer-heading {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 1.4em;
    margin: 0 0 16px;
    background: linear-gradient(to right,
            var(--brand-primary),
            var(--brand-navy-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.site-footer li {
    margin: 0 0 10px;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.site-footer li:last-child {
    margin-bottom: 0;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .meta {
    color: var(--gray-400);
    font-weight: 500;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.social {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: linear-gradient(to bottom right,
            var(--brand-primary),
            var(--brand-navy-bright));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.social:hover {
    transform: scale(1.05);
    color: #fff;
}

.copyright {
    margin-top: 40px;
    border-top: 1px solid #374151;
    padding: 24px 16px;
    font-size: 14px;
    text-align: center;
    color: var(--gray-500);
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 36px;
    }

    .footer-heading {
        min-height: 0;
        margin-bottom: 12px;
    }
}

/* ========== Responsive header / nav ========== */
@media (max-width: 1199.98px) {
    .os-nav-link {
        min-width: 0;
        padding: 14px 16px;
    }

    .nav-jp {
        font-size: 17px;
    }

    .mega-inner {
        padding: 24px 20px;
    }

    .mega-card {
        flex: 0 0 calc((100cqw - 48px) / 3);
    }

    #mega-company-2:checked~.site-header .nav-company .mega-track,
    #mega-services-2:checked~.site-header .nav-services .mega-track {
        transform: translateX(calc(-1 * ((100cqw - 48px) / 3 + 24px)));
    }
}

@media (max-width: 991.98px) {

    .header-top-inner,
    .nav-inner {
        padding: 0 16px;
    }

    .header-top-inner {
        height: 72px;
    }

    .logo-frame {
        width: 40px;
        height: 40px;
    }

    .logo-name {
        margin-top: 8px;
        font-size: 18px;
    }

    .logo-tag {
        font-size: 12px;
    }

    .header-actions {
        gap: 12px;
    }

    .recruit-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .header-spacer {
        height: 144px;
    }

    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .os-nav-link {
        padding: 12px 14px;
        white-space: nowrap;
    }

    .nav-jp {
        font-size: 15px;
    }

    .nav-en {
        font-size: 11px;
    }

    .nav-home,
    .nav-mid,
    .nav-last {
        clip-path: none;
    }

    .mega-menu {
        top: 7.9rem;
        border-radius: 0 0 12px 12px;
    }

    .mega-card {
        flex: 0 0 calc((100cqw - 24px) / 2);
    }

    #mega-company-2:checked~.site-header .nav-company .mega-track,
    #mega-services-2:checked~.site-header .nav-services .mega-track {
        transform: translateX(calc(-1 * ((100cqw - 24px) / 2 + 24px) * 3));
    }

    .mega-photo {
        height: 120px;
    }
}

@media (max-width: 767.98px) {
    .header-spacer {
        height: 72px;
    }

    .mega-bridge,
    .mega-menu {
        display: none !important;
    }

    .line-float {
        font-size: 24px;
        padding: 10px;
        top: auto;
        bottom: 20px;
        z-index: 1045;
    }
}

@media (max-width: 575.98px) {
    .logo-link {
        gap: 10px;
    }

    .logo-name {
        font-size: 16px;
        margin-top: 4px;
    }

    .header-top-inner {
        height: 64px;
    }

    .header-spacer {
        height: 64px;
    }

    .mobile-nav-drawer .offcanvas-header {
        padding: 1rem 1rem 0.5rem;
    }

    .mobile-nav-drawer .offcanvas-body {
        padding: 0.5rem 1rem 1.25rem;
    }

    .mobile-drawer-logo {
        width: 40px;
        height: 40px;
    }

    .mobile-drawer-brand {
        margin-top: 0;
        font-size: 1rem;
    }

    .mobile-drawer-brand+.logo-tag {
        display: none;
    }
}

#mega-company-1,
#mega-company-2,
#mega-services-1,
#mega-services-2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.btn-hero-white {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-cta-gradient:hover,
.btn-recruitment:hover,
.btn-hero-white:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .site-header,
    .main-nav,
    .services-hero-bg,
    .services-hero-content>*,
    .hero-recruit .hero-bg,
    .hero-recruit .hero-content>*,
    .hero-trans .hero-bg,
    .hero-trans .hero-content>*,
    .line-float,
    .carousel-item.active .hero-content {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== Bootstrap modal stacking ========== */
/* .site-header is fixed with z-index 9999, which is higher than Bootstrap's
   modal (1055) and backdrop (1050). Unless both are raised, the header paints
   over the top of an open dialog and hides its title bar and close button. */
.modal {
    z-index: 10070;
}

.modal-backdrop {
    z-index: 10060;
}

/* ========== Shared page hero (company + news) ========== */
.hero {
    position: relative;
    min-height: 300px;
    padding: 64px 8px;
    text-align: center;
    color: #fff;
}

.hero-bg,
.hero-dim {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background: url("../images/hero.jpg") center / cover no-repeat;
    z-index: 0;
}

.hero-dim {
    background: rgb(0 0 0 / 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-6xl);
    margin: 0 auto;
    padding: 0 16px;
}

.hero h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-lead {
    font-size: 24px;
    line-height: 1.625;
    white-space: pre-line;
}

.hero-emphasis {
    margin-top: 24px;
    font-size: 24px;
    font-weight: 600;
    color: var(--brand-light);
}

/* These responsive hero sizes must come after the base .hero rules above,
   otherwise source order keeps 60px applied down to phone widths. */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-lead,
    .hero-emphasis {
        font-size: 1.05rem;
    }
}