@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@500;700&display=swap');

:root {
    --color-primary: #A4304C;
    --color-primary-dark: #7E243A;
    --color-primary-light: #C84D66;
    --color-bg: #FFFFFF;
    --color-bg-sub: #F9F9F9;
    --color-text-main: #111111;
    --color-text-sub: #555555;
    --color-border: #E5E5E5;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Noto Serif JP', serif;
    --font-eng: 'Inter', sans-serif;
    --container-width: 1200px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-main);
}

.en-title {
    font-family: var(--font-eng);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-gray {
    background-color: var(--color-bg-sub);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-primary);
    min-width: 200px;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    margin-left: 32px;
}

.header-cta .btn {
    padding: 10px 24px;
    min-width: auto;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 3px solid var(--color-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-nav {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: flex-end;
}

.footer-nav ul {
    font-size: 0.9rem;
}

.footer-nav li {
    margin-bottom: 12px;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-sub);
    padding-top: var(--spacing-md);
    border-top: 1px solid #ddd;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 60px;
        --spacing-lg: 32px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .header-nav {
        display: none;
        /* simple hidden for now, will add JS toggle */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: var(--shadow-md);
    }

    .header-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .header-cta {
        margin: 16px 0 0;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--color-text-main);
        margin: 5px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        justify-content: flex-start;
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* New Service Style (6 Grid) */
.service-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.service-card-new {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    padding: 40px 32px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-primary);
}

.service-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-num-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-primary);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-eng);
}

.service-icon-new {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    height: 40px;
    display: flex;
    align-items: center;
}

.service-title-new {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    min-height: 1.6em;
}

.service-desc-new {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

/* Hero Canvas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}