/* CSS Variables */
:root {
    --primary-color: #0a192f;
    /* Deep Navy */
    --secondary-color: #172a45;
    /* Lighter Navy */
    --accent-color: #d4af37;
    /* Gold */
    --text-primary: #ccd6f6;
    /* Off-white for dark bg */
    --text-secondary: #8892b0;
    /* Light gray for secondary text */
    --text-dark: #333333;
    /* Dark text for light bg */
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --transition: all 0.3s ease-in-out;
    --spacing-section: 100px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-primary:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    /* justify-content: space-between; Removed to group right items */
}

.logo {
    margin-right: auto;
    /* Pushes everything else to the right */
}

.logo a {
    display: block;
}

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a:not(.btn):hover {
    color: var(--accent-color);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    position: absolute;
    transition: var(--transition);
}

.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;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.98);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav a {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    background-image: url('assets/hero-bg-tokyo.png');
    /* Ensure this file exists or use a fallback */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.7) 100%);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero .highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator .arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: rotate(45deg);
}

/* Sections General */
.section {
    padding: var(--spacing-section) 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Services Section */
.services-section {
    background-color: var(--bg-light);
}

.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: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 25, 47, 0.05);
    border-radius: 50%;
    padding: 15px;
}

.service-icon {
    width: 100%;
    height: auto;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* Business Scheme Section */
.scheme-section h2::after {
    margin: 15px auto 0;
    /* Align centered */
}

.scheme-wrapper {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.scheme-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    font-family: var(--font-heading);
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.scheme-step {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-box {
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(10, 25, 47, 0.15);
    transition: var(--transition);
    z-index: 1;
}

.step-box:hover {
    transform: translateY(-5px);
}

.highlight-box {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
    font-size: 1.25rem;
}

.highlight-box::after {
    content: '★';
    position: absolute;
    top: -15px;
    right: -10px;
    color: var(--accent-color);
    font-size: 1.5rem;
    background: var(--white);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.step-box .sub-text {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.arrow-connector {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.6;
    animation: pulseArrow 2s infinite;
}

.arrow-connector::before {
    content: '→';
    display: inline-block;
}

@keyframes pulseArrow {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

.sub-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
    position: relative;
}

/* Connect line to sub-steps */
.scheme-step.sales::before {
    content: '';
    position: absolute;
    top: 60px;
    /* Adjust based on box height */
    left: 50%;
    width: 2px;
    height: 30px;
    background: repeating-linear-gradient(to bottom, var(--accent-color) 0, var(--accent-color) 5px, transparent 5px, transparent 10px);
    transform: translateX(-50%);
    z-index: 0;
}

.step-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(10, 25, 47, 0.1);
    width: 100%;
    text-align: center;
}

.step-down {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 0.5;
}

/* Branding Section */
.branding-section {
    padding-bottom: 0;
}

.branding-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.branding-text {
    flex: 1;
}

.branding-text .section-title {
    margin-left: 0;
    margin-bottom: 30px;
    text-align: left;
}

.branding-text .section-title::after {
    margin: 15px 0 0;
}

.branding-text .lead-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.branding-image {
    flex: 1;
}

.branding-image img {
    border-radius: 12px;
    box-shadow: 20px 20px 0 rgba(10, 25, 47, 0.1);
}

/* Team & Achievements */
.team-section {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

.team-section .section-title {
    color: var(--white);
}







.brand-makuake {
    color: #000;
    background: #fff;
    padding: 0 5px;
    font-weight: bold;
}

.achievements-summary-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.achievements-summary-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-btn {
    font-size: 1.5rem;
    padding: 15px 50px;
    border-width: 2px;
}

/* Footer */
.site-footer {
    background-color: #020c1b;
    color: var(--text-secondary);
    padding: 30px 0;
    font-size: 0.9rem;
}


/* Premium Placeholders */
.placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent-color);
    border: 2px dashed var(--accent-color);
    border-radius: 50%;
    font-size: 0.8rem;
    background: rgba(212, 175, 55, 0.05);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f2d40 0%, #0a192f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.placeholder-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    transform: skewX(-25deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 200%;
    }
}

.project-img-wrapper .placeholder-img {
    background: linear-gradient(135deg, #2a3b55 0%, #172a45 100%);
}



/* Animations using IntersectionObserver classes */

.fade-in-up,
.fade-in-left,
.fade-in-right,
.zoom-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Stack scheme diagram vertically on smaller screens */
    .scheme-diagram {
        flex-direction: column;
        gap: 30px;
    }

    /* Switch arrow to downward on mobile using CSS content */
    .arrow-connector::before {
        content: '↓';
    }

    .arrow-connector {
        margin: 10px 0;
        animation: pulseArrowVertical 2s infinite;
    }

    .scheme-step {
        width: 100%;
        max-width: 400px;
        /* Limit width for better look */
    }

    .scheme-step.sales::before {
        display: none;
        /* Remove complex connector on mobile for simplicity */
    }
}

@keyframes pulseArrowVertical {

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

    50% {
        opacity: 1;
        transform: translateY(5px);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .branding-content {
        flex-direction: column;
    }

    .branding-text,
    .branding-image {
        width: 100%;
    }

    .lang-switch {
        margin-right: 50px;
        margin-left: 0;
    }
}

.fade-in-right {
    transform: translateX(30px);
}

.zoom-in {
    transform: scale(0.9);
}

.in-view {
    opacity: 1;
    transform: none;
}

/* Keyframes */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Media Queries */
/* Ensure no horizontal scroll */
html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}
#hero-bg{
  background-image: url("./hero-bg-tokyo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}