/* ==========================================================================
   Variables & Theme Defaults (LP Version)
   ========================================================================== */
:root {
    /* Colors */
    --color-bg: #f8fafc;
    /* Lighter background for a cleaner, professional look */
    --color-bg-alt: #ffffff;
    --color-surface: rgba(255, 255, 255, 0.9);
    --color-border: #e2e8f0;

    --color-primary: #1a365d;
    /* Deep Navy Blue for Trust */
    --color-primary-dark: #0f172a;
    --color-accent: #d97706;
    /* Gold/Amber for CTA and Highlights */
    --color-accent-hover: #b45309;

    --color-text-main: #1e293b;
    --color-text-muted: #64748b;

    /* Typography */
    --font-heading: 'Cinzel', 'Playfair Display', 'Noto Sans JP', serif;
    /* Elegant combinations */
    --font-heading-jp: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    /* Effects */
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
    /* Move main content down so fixed header doesn't cover it */
    padding-top: 100px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: #f1f5f9;
}

.relative-z {
    position: relative;
    z-index: 10;
}

.hidden-mobile {
    display: block;
}

.hidden-desktop {
    display: none;
}

@media(max-width: 768px) {
    .hidden-mobile {
        display: none;
    }

    .hidden-desktop {
        display: block;
    }
}

/* ==========================================================================
   UI Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 4px;
    /* Sharper corners for business aesthetic */
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    font-family: inherit;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.15rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--color-primary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
    height: 100px;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    gap: clamp(0.5rem, 2vw, 1.5rem);
}

.header-logo-img {
    height: 85px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    padding-top: 5px;
}

.logo-text-en {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.logo-text-ja {
    font-family: var(--font-heading-jp);
    font-size: 1.05rem;
    font-weight: 500;
    color: #64748b;
    text-align: justify;
    text-align-last: justify;
    margin-top: 4px;
    width: 100%;
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.nav-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, #f59e0b 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    transition: all var(--transition-base);
}

.nav-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

.nav-link:not(.nav-contact-btn):not(.btn-primary):hover {
    color: var(--color-accent);
}

.nav-tel {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tel .tel-icon {
    font-size: 1.2rem;
}

/* Mobile Menu Button - Same as before, just colors updated */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    left: 0;
    transition: var(--transition-base);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

/* ==========================================================================
   Hero Section (LP Style)
   ========================================================================== */
#hero {
    /* override global structural padding to allow hero to hit top edge */
    margin-top: -100px;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.hero-container {
    margin: auto 0;
    padding-top: 140px;
    padding-bottom: 4rem;
    /* Safely center content while guaranteeing top clearance */
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.4rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-heading-jp);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-text strong {
    color: var(--color-accent);
    font-size: 1.25em;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.hero-actions .btn {
    flex: 1;
    min-width: 160px;
    justify-content: center;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-title-en {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-accent);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.section-title-jp {
    font-family: var(--font-heading-jp);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--color-primary);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title-jp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

/* ==========================================================================
   Problems Section
   ========================================================================== */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.problem-card {
    background-color: #fff;
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    text-align: left;
    border-top: 4px solid var(--color-primary);
}

.problem-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.problem-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.problem-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.problems-solution {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}

.solution-text {
    font-size: 1.5rem;
    font-weight: 500;
}

.solution-text strong {
    color: var(--color-accent);
    font-size: 2rem;
    font-weight: 900;
}

/* ==========================================================================
   Strengths Section (Alternating Image & Text)
   ========================================================================== */
.strength-row {
    display: flex;
    align-items: stretch;
    min-height: 500px;
}

.strength-row.reverse {
    flex-direction: row-reverse;
}

.strength-img-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.strength-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.strength-row:hover .strength-img {
    transform: scale(1.05);
}

.strength-content {
    flex: 1;
    padding: 6rem 10%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.strength-row:nth-child(even) .strength-content {
    background-color: var(--color-bg);
}

.strength-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(26, 54, 93, 0.1);
    line-height: 1;
    margin-bottom: -1.5rem;
}

.strength-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.strength-text {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================================================
   Flow Section
   ========================================================================== */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.flow-step {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.step-num {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.step-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   CTA & Contact Section
   ========================================================================== */
.contact-cta {
    position: relative;
    padding: 8rem 0;
    color: #fff;
}

.cta-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/uploaded_last_v2.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    z-index: 1;
}

.cta-bg-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Dark overlay */
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
}

.contact-method-primary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-tel-large {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.contact-tel-large:hover {
    color: var(--color-accent);
}

.contact-hours {
    font-size: 0.9rem;
    color: #94a3b8;
}

.lp-contact-form {
    text-align: left;
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    color: var(--color-text-main);
}

.form-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: left;
}

.form-group-split {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.btn-submit {
    width: 100%;
    font-size: 1.2rem;
    padding: 1.2rem;
    text-align: left;
    padding-left: 1.5rem;
}

/* ==========================================================================
   Company Info Section
   ========================================================================== */
.company-info-section {
    background-color: var(--color-bg);
}

.company-card {
    background: #fff;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
    border-left: 6px solid var(--color-primary);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.company-title {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.company-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.company-dl dt {
    font-weight: 700;
    color: var(--color-text-main);
    float: left;
    width: 120px;
    clear: left;
    padding: 0.8rem 0;
}

.company-dl dd {
    padding: 0.8rem 0;
    margin-left: 140px;
    color: var(--color-text-muted);
    border-bottom: 1px dashed var(--color-border);
}

.company-dl dd:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 2rem 0;
    background: var(--color-primary-dark);
}

.footer-copy {
    color: #64748b;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Hover Utilities (Included from before)
   ========================================================================== */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {

    .strength-row,
    .strength-row.reverse {
        flex-direction: column;
    }

    .strength-img-wrap {
        height: 300px;
        flex: none;
        width: 100%;
    }

    .strength-content {
        padding: 4rem 2rem;
    }

    .form-group-split {
        flex-direction: column;
        gap: 0;
    }

    .form-group-split .form-control {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }

    .section-title-en {
        font-size: 1rem;
    }

    .strength-img-wrap {
        height: 250px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .contact-tel-large {
        font-size: 2rem;
    }

    .glass-panel {
        padding: 2rem 1.5rem;
    }

    .lp-contact-form {
        padding: 1.5rem;
    }

    .company-dl dt {
        float: none;
        width: 100%;
        padding-bottom: 0;
    }

    .company-dl dd {
        margin-left: 0;
        padding-top: 0.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section-header.text-center {
        text-align: left !important;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        padding: 0 1.5rem;
    }

    .section-title-jp::after {
        left: 1.5rem;
        transform: none;
    }

    .nav {
        position: fixed;
        top: 100px;
        /* Below header */
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        padding: 2rem;
        transition: left var(--transition-base);
        z-index: 999;
        box-shadow: inset 0 10px 10px -10px rgba(0, 0, 0, 0.1);
    }

    .nav.is-open {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .mobile-menu-btn.is-open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.is-open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}