/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Colors */
    --clr-white: #ffffff;
    --clr-light: #f8fafc;
    --clr-dark: #0f172a;
    --clr-gray: #64748b;
    --clr-gray-light: #e2e8f0;
    
    /* Corporate Colors */
    --clr-primary: #005bb5; /* FeeLink Blue */
    --clr-primary-light: #3b82f6;
    --clr-primary-dark: #003d7a;
    
    --clr-accent: #f97316; /* FeeLink Orange */
    --clr-accent-hover: #ea580c;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
    --grad-text: linear-gradient(to right, var(--clr-primary), var(--clr-accent));

    /* Typography */
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    
    /* Spacing */
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 2rem;
    --sp-xl: 4rem;
    --sp-xxl: 8rem;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.center {
    text-align: center;
}

.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }

.bg-light { background-color: var(--clr-light); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--clr-accent);
    font-weight: 500;
    gap: 0.5rem;
}

.link-arrow:hover {
    gap: 0.8rem;
    color: var(--clr-accent-hover);
}

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

.header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--clr-dark);
    position: relative;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--clr-dark);
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Adding a subtle zoom and pan animation */
    animation: zoomInOut 20s infinite alternate ease-in-out;
}

@keyframes zoomInOut {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, 2%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
    margin-top: 5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--clr-gray);
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    width: 100%;
    left: 0;
    text-align: center;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-gray);
    display: block;
    margin-bottom: 10px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: var(--clr-primary);
    margin: 0 auto;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--sp-xl);
}

.section-title {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--clr-accent);
    font-weight: 500;
    letter-spacing: 1px;
}

.card {
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    padding: var(--sp-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Vision Section
   ========================================================================== */
.vision-section {
    position: relative;
    background-color: var(--clr-white);
}

.vision-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
}

.vision-statement {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--clr-primary);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.vision-text {
    color: var(--clr-gray);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   Service Section
   ========================================================================== */
.service-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    padding: 4rem 2rem;
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--clr-light);
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--clr-gray);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Company Section
   ========================================================================== */
.company-preview {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.company-table {
    width: 100%;
}

.company-row {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--clr-gray-light);
}

.company-row:last-child {
    border-bottom: none;
}

.company-th {
    width: 30%;
    font-weight: 500;
    color: var(--clr-dark);
}

.company-td {
    width: 70%;
    color: var(--clr-gray);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--clr-dark);
    color: var(--clr-white);
    padding: var(--sp-xl) 0 0 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-info {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1); /* 白ロゴにするハック（元の画像による）*/
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--clr-gray-light);
    opacity: 0.8;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--clr-accent);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--clr-gray-light);
    opacity: 0.8;
}

.footer-links ul li a:hover {
    color: var(--clr-accent);
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--clr-gray-light);
    opacity: 0.6;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--clr-white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .company-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .company-th, .company-td {
        width: 100%;
    }
}
