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

:root {
    --primary-color: #2E86C1;
    --secondary-color: #1A5F8E;
    --accent-color: #E74C3C;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.custom-cursor {
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    background: rgba(46, 134, 193, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

body.hover .cursor-follower {
    transform: scale(1.5);
    background: rgba(46, 134, 193, 0.2);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A5F8E 0%, #2E86C1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.logo-loader {
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 14px;
    letter-spacing: 2px;
    animation: fade 1s ease-in-out infinite alternate;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fade {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

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

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 999;
}

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

.mobile-menu nav {
    padding: 40px 20px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 30px;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A5F8E 0%, #2E86C1 50%, #3498DB 100%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 0 20px;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    margin: 10px 0;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition);
    text-align: center;
    min-width: 180px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

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

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

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.title-en {
    display: block;
    font-size: 14px;
    letter-spacing: 3px;
    color: #5DADE2;
    margin-bottom: 10px;
    font-weight: 500;
}

.title-ja {
    display: block;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--text-dark);
}

/* Strengths Section */
.strengths {
    background: var(--bg-light);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.strength-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.strength-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 60px;
    font-weight: 700;
    color: rgba(46, 134, 193, 0.1);
}

.strength-icon {
    margin-bottom: 30px;
}

.strength-item h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.strength-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Services Overview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

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

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.service-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    opacity: 0.8;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.service-link:hover {
    transform: translateX(5px);
}

/* Testimonials Preview */
.testimonials-preview {
    background: var(--bg-light);
}

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

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-style: italic;
}

.author-info {
    color: var(--text-light);
    font-size: 14px;
}

.testimonial-nav {
    text-align: center;
    margin-top: 40px;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #1A5F8E 0%, #2E86C1 100%);
    color: white;
    overflow-x: hidden;
}

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

.cta-content h2 {
    font-size: clamp(18px, 3vw, 32px);
    margin-bottom: 20px;
    white-space: nowrap;
    padding: 0 10px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

/* Footer */
.main-footer {
    background: #1A1A1A;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-logo {
    margin-bottom: 20px;
}

.company-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.company-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info {
    font-size: 14px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide cursor on mobile */
    .custom-cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    /* Header */
    .header-container {
        height: 60px;
    }

    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .mobile-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }

    /* Hero */
    .hero {
        height: 100vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: clamp(22px, 5vw, 32px);
    }

    .title-line {
        margin: 5px 0;
        display: block;
    }

    /* Adjust line breaks for mobile */
    .title-line:nth-child(2) {
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* CTA Section mobile adjustment */
    .cta-content h2 {
        white-space: nowrap;
        font-size: clamp(15px, 3.2vw, 22px);
        padding: 0 5px;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    /* Strengths */
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .strength-item {
        padding: 30px 20px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Hero */
    .hero-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .title-line {
        white-space: normal;
        display: inline;
    }

    .title-line:nth-child(1)::after {
        content: "";
        display: block;
    }

    .title-line:nth-child(2) {
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    /* Buttons */
    .btn {
        padding: 12px 30px;
        font-size: 14px;
        min-width: 150px;
    }

    /* Section Titles */
    .title-ja {
        font-size: 24px;
    }

    /* Testimonials */
    .testimonial-text {
        font-size: 16px;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 13px;
        white-space: nowrap;
        letter-spacing: -0.5px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .btn-large {
        padding: 15px 40px;
        font-size: 16px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .cta-content h2 {
        font-size: 11px;
        letter-spacing: -0.7px;
    }
}

/* Animations */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    .main-header,
    .hamburger-menu,
    .mobile-menu,
    .scroll-indicator,
    .custom-cursor,
    .cursor-follower,
    #loading-screen {
        display: none;
    }

    body {
        cursor: auto;
        font-size: 12pt;
    }

    section {
        page-break-inside: avoid;
    }
}