:root {
    --color-base: #FFFFFF;
    --color-accent: #2745C2;
    --color-accent-light: #EBF0FF;
    --color-accent-dark: #1A3299;
    --color-text-main: #333333;
    --color-text-sub: #666666;
    --color-bg-sub: #F5F7FA;
    --color-border: #E0E0E0;
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 100px;
    --container-width: 1040px;
    --container-width-wide: 1280px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --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 8px 24px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul, dl {
    list-style: none;
}

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

.container.narrow {
    max-width: 800px;
}

.center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

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

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

.btn-white:hover {
    background-color: #f0f0f0;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

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

.shadow-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(39, 69, 194, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(39, 69, 194, 0); }
}

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 1002;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-main);
}

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

.logo-badge {
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.desktop-nav {
    display: none;
}

@media (min-width: 900px) {
    .desktop-nav {
        display: flex;
        gap: 20px;
        align-items: center;
    }
    .desktop-nav a:not(.btn) {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--color-text-main);
    }
    .desktop-nav a:not(.btn):hover {
        color: var(--color-accent);
    }
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 900px) {
    .hamburger {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding-top: 80px;
    padding-bottom: 40px;
    transform: translateY(-100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav a:not(.btn) {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: calc(0.05s * var(--i, 1));
}

.mobile-menu.active .mobile-nav a:not(.btn) {
    opacity: 1;
    transform: translateY(0);
}

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

@media (min-width: 768px) {
    section {
        padding: var(--spacing-xxl) 0;
    }
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
        margin-bottom: var(--spacing-md);
    }
}

.section-desc {
    text-align: center;
    color: var(--color-text-sub);
    margin-bottom: var(--spacing-lg);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* FV */
.section-fv {
    position: relative;
    padding-top: 90px;
    padding-bottom: 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: white;
}

@media (min-width: 768px) {
    .section-fv {
        padding-top: 100px;
        padding-bottom: 120px;
        min-height: 80vh;
    }
}

.fv-bg-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.fv-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(39, 69, 194, 0.88);
    z-index: -1;
    backdrop-filter: blur(2px);
}

.fv-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.fv-content {
    max-width: 640px;
}

.fv-lead {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    opacity: 0.95;
}

.fv-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .fv-title {
        font-size: 3rem;
        margin-bottom: 24px;
    }
}

.text-gradient {
    color: white;
}

.fv-desc {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .fv-desc {
        font-size: 1.1rem;
    }
}

.fv-cta-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 600px) {
    .fv-cta-row {
        flex-direction: row;
    }
}

/* Features */
.section-features {
    background-color: var(--color-bg-sub);
}

.feature-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.feature-text {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.65;
}

/* Services */
.services-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

.service-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-accent-light);
    box-shadow: var(--shadow-md);
}

.service-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.service-text {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.65;
}

/* Flow */
.section-flow {
    background-color: var(--color-bg-sub);
}

.flow-timeline {
    margin-top: var(--spacing-lg);
}

.flow-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.flow-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.flow-step {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.flow-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.flow-text {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

/* FAQ */
.faq-list {
    margin-top: var(--spacing-lg);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-q {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 12px;
    padding-right: 32px;
    position: relative;
}

.faq-q::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-text-sub);
    border-bottom: 2px solid var(--color-text-sub);
    transform: translateY(-60%) rotate(45deg);
}

.faq-item.is-open .faq-q::after {
    transform: translateY(-40%) rotate(-135deg);
}

.faq-a {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

/* CTA */
.section-cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white;
}

.cta-box {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 1.75rem;
    }
}

.cta-desc {
    margin-bottom: 24px;
    opacity: 0.95;
    line-height: 1.6;
}

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

.cta-box .btn-primary:hover {
    background: var(--color-bg-sub);
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg-sub);
    border-top: 1px solid var(--color-border);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-sub);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-sep {
    color: var(--color-border);
    font-size: 0.85rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-sub);
}

/* Fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
