/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    /* Colors - Updated to match Logo (Blue/Yellow/White) */
    --color-primary: #0050b3;
    /* Logo Blue - Solid & Trustworthy */
    --color-primary-dark: #003a8c;
    --color-secondary: #faad14;
    /* Logo Yellow/Orange - Warm & Active */
    --color-secondary-dark: #d48806;
    --color-accent: #ff4d4f;
    /* Red - For Highlights/Points */
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-bg-light: #f0f5ff;
    /* Tinge of Blue for backgrounds */
    --color-white: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius - Slightly rounder for friendly feel */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Container */
    --container-width: 1200px;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

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

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

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.3;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: var(--radius-sm);
}

.section-title-left h2 {
    text-align: left;
}

.section-title-left h2::after {
    left: 0;
    transform: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

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

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

.btn-secondary {
    background-color: var(--color-secondary);
    color: #fff;
    /* Keep white if yellow is dark enough, or use var(--color-primary) */
    font-weight: bold;
}

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

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-line {
    background-color: #06c755;
    color: white;
}

/* Header */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    height: 100%;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
}

.nav-link:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    border-top: 5px solid var(--color-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.footer h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.footer h3::after {
    display: none;
}

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

.copyright {
    text-align: center;
    margin-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    font-size: 0.9rem;
}

/* Floating CTA (Mobile) */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* hidden on desktop by default */
    z-index: 900;
    padding: 10px;
    gap: 10px;
}

.fixed-cta .btn {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Responsiveness */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        text-align: center;
        height: auto;
        /* Reset height from desktop */
    }

    .nav-menu.active {
        transform: translateY(0);
    }

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

    .fixed-cta {
        display: flex;
    }

    body {
        padding-bottom: 70px;
        /* Space for fixed CTA */
    }
}

.service-cta {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
}

.service-cta:hover {
    color: var(--color-accent);
}