/* =============================================
   LUMIS CORPORATE — style.css
   ============================================= */

/* --- Variables --- */
:root {
    --bg-0: #03070F;
    --bg-1: #050A14;
    --bg-2: #080F1C;
    --bg-3: #0D1628;
    --bg-4: #121F35;

    --purple:  #8B5CF6;
    --indigo:  #6366F1;
    --blue:    #60A5FA;

    --grad:      linear-gradient(135deg, #A78BFA 0%, #818CF8 50%, #60A5FA 100%);
    --grad-45:   linear-gradient(45deg,  #8B5CF6 0%, #3B82F6 100%);

    --text-1: #EEF2FF;
    --text-2: #9DAAC8;
    --text-3: #4E5D80;

    --border:        rgba(139, 92, 246, 0.12);
    --border-mid:    rgba(139, 92, 246, 0.28);
    --border-strong: rgba(139, 92, 246, 0.55);

    --nav-h:        72px;
    --section-pad:  120px;
    --container:    1100px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Shippori Antique', serif;
    background: var(--bg-1);
    color: var(--text-1);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
address { font-style: normal; }

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(5, 10, 20, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.nav-brand-name {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--text-1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--text-2);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

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

.nav-link:hover             { color: var(--text-1); }
.nav-link:hover::after      { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--text-2);
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-0);
}

/* Background image */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero.jpg') center / cover no-repeat;
    z-index: 0;
}

/* Dark overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3, 7, 15, 0.40) 0%,
        rgba(8, 5, 22, 0.60) 45%,
        rgba(3, 7, 15, 0.90) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    animation: heroReveal 1.4s var(--ease-out) both;
}

.hero-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin: 0 auto 36px;
    filter: drop-shadow(0 0 36px rgba(139, 92, 246, 0.55))
            drop-shadow(0 0 80px rgba(99, 102, 241, 0.25));
}

.hero-title {
    font-family: 'Shippori Antique', serif;
    font-size: clamp(32px, 5.5vw, 60px);
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-1);
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 0 80px rgba(139, 92, 246, 0.15);
}

.hero-en {
    font-family: 'Cinzel', serif;
    font-size: clamp(12px, 1.4vw, 15px);
    letter-spacing: 0.45em;
    color: var(--text-2);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-tagline {
    font-family: 'Shippori Antique', serif;
    font-size: clamp(14px, 1.8vw, 19px);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.hero-tagline::before,
.hero-tagline::after {
    content: '';
    display: block;
    width: 36px; height: 1px;
    background: var(--grad);
    flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 44px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-3);
    transition: color 0.2s;
    animation: heroReveal 1.4s 0.5s var(--ease-out) both;
}

.hero-scroll:hover { color: var(--text-2); }

.scroll-line {
    display: block;
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, transparent, var(--purple));
    animation: scrollPulse 2.4s ease-in-out infinite;
}

.scroll-text {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.35em;
    writing-mode: vertical-rl;
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* --- Section commons --- */
.section     { padding: var(--section-pad) 0; background: var(--bg-1); }
.section-alt { background: var(--bg-2); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

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

.section-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.6em;
    color: var(--purple);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Shippori Antique', serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--text-1);
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -18px; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 2px;
    background: var(--grad);
}

/* --- Fade-in --- */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

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

.business-grid .fade-in:nth-child(1) { transition-delay: 0.00s; }
.business-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.business-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.business-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }
.business-grid .fade-in:nth-child(5) { transition-delay: 0.32s; }

/* --- About --- */
.about-wrap {
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.about-table {
    width: 100%;
    border-collapse: collapse;
}

.about-table tr            { border-bottom: 1px solid var(--border); }
.about-table tr:last-child { border-bottom: none; }

.about-table th {
    padding: 26px 32px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    width: 176px;
    vertical-align: top;
    color: var(--text-2);
    background: var(--bg-3);
    border-right: 1px solid var(--border);
    white-space: nowrap;
}

.about-table td {
    padding: 26px 32px;
    color: var(--text-1);
    font-size: 15px;
    line-height: 1.9;
    background: var(--bg-2);
}

.td-en {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--text-3);
    margin-top: 5px;
}

/* --- Business --- */
.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.business-card {
    background: var(--bg-2);
    padding: 52px 44px;
    transition: background 0.3s;
}

.business-card:hover { background: var(--bg-3); }

/* 5th card spans full width */
.business-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 52px 80px;
}

.business-card:last-child:nth-child(odd) .business-num {
    flex-shrink: 0;
    margin-bottom: 0;
}

.business-num {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 22px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.business-title {
    font-family: 'Shippori Antique', serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-1);
    margin-bottom: 14px;
    line-height: 1.65;
}

.business-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 2;
    letter-spacing: 0.05em;
}

/* --- Services --- */
.services-wrap {
    display: flex;
    justify-content: center;
}

.service-card {
    position: relative;
    display: block;
    max-width: 560px;
    width: 100%;
    background: var(--bg-3);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

/* Gradient border */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    padding: 1px;
    background: var(--grad);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Inner glow on hover */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-45);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 64px rgba(139, 92, 246, 0.22);
}

.service-card:hover::after { opacity: 0.07; }

.service-card-inner {
    position: relative;
    z-index: 1;
    padding: 60px 72px;
    text-align: center;
}

.service-tag {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.5em;
    color: var(--purple);
    text-transform: uppercase;
    border: 1px solid var(--border-mid);
    padding: 6px 18px;
    margin-bottom: 28px;
}

.service-name {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 64px;
    font-weight: 600;
    letter-spacing: 0.25em;
    line-height: 1;
    margin-bottom: 10px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-url {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 0.28em;
    color: var(--text-3);
    margin-bottom: 28px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 2.1;
    letter-spacing: 0.08em;
    margin-bottom: 36px;
}

.service-arrow {
    display: inline-block;
    font-size: 22px;
    color: var(--purple);
    transition: transform 0.3s var(--ease-out);
}

.service-card:hover .service-arrow { transform: translateX(8px); }

/* --- Access --- */
.access-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}

.access-company {
    font-family: 'Shippori Antique', serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-1);
    margin-bottom: 24px;
}

.access-address {
    font-size: 15px;
    color: var(--text-2);
    line-height: 2.1;
    letter-spacing: 0.1em;
    padding-left: 18px;
    border-left: 2px solid var(--border-strong);
}

.access-map {
    height: 400px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border);
    filter: invert(90%) hue-rotate(200deg) saturate(0.6) brightness(0.85);
}

.access-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* --- Footer --- */
.footer {
    background: var(--bg-0);
    padding: 64px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 20px;
    opacity: 0.55;
}

.footer-copy {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 0.25em;
    color: var(--text-3);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    :root {
        --section-pad: 80px;
    }

    .nav-inner   { padding: 0 24px; }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        background: rgba(5, 10, 20, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 16px 24px 32px;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }

    .nav-links li          { border-bottom: 1px solid var(--border); }
    .nav-links li:last-child { border-bottom: none; }

    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 15px;
        letter-spacing: 0.18em;
    }

    .nav-toggle { display: flex; }

    .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .container { padding: 0 24px; }

    .hero-logo  { width: 72px; height: 72px; }

    .hero-tagline::before,
    .hero-tagline::after { display: none; }

    .about-table th {
        width: 100px;
        padding: 16px 14px;
        font-size: 12px;
    }

    .about-table td {
        padding: 16px 14px;
        font-size: 14px;
    }

    .br-pc { display: none; }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .business-card { padding: 40px 28px; }

    .business-card:last-child:nth-child(odd) {
        grid-column: auto;
        flex-direction: column;
        gap: 0;
        padding: 40px 28px;
    }

    .business-card:last-child:nth-child(odd) .business-num {
        margin-bottom: 22px;
    }

    .service-card-inner {
        padding: 44px 32px;
    }

    .service-name { font-size: 44px; }

    .access-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .access-map { height: 280px; }

    .section-header { margin-bottom: 52px; }
}
