/* =========================================================================
   # Base Variables & Reset
   ========================================================================= */

:root {
    /* Color Palette - Navy, Gray, White */
    --color-primary: #1B263B;
    --color-primary-light: #415A77;
    --color-primary-dark: #0D1B2A;
    --color-secondary: #E0E1DD;
    --color-accent: #778DA9;
    --color-white: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-text-main: #1B263B;
    --color-text-muted: #5F6368;
    --color-border: #DDE2E5;
    --color-success: #2E7D32;

    /* Typography */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-accent: 'Inter', sans-serif;

    /* Utilities */
    --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --container-width: 1100px;
}

*, *::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);
    line-height: 1.7;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section {
    padding: 100px 0;
}

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

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

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

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

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

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-30 { margin-top: 30px; }

/* =========================================================================
   # Buttons
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.btn-white:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 56px;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* =========================================================================
   # Header
   ========================================================================= */

.header {
    height: 80px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

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

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-accent);
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--color-primary-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

/* =========================================================================
   # Hero
   ========================================================================= */

.hero {
    height: 100vh;
    min-height: 650px;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2069&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.9) 0%, rgba(13, 27, 42, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-area {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-primary-light);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 48px;
    opacity: 0.9;
}

/* =========================================================================
   # Typography
   ========================================================================= */

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--color-primary-light);
}

/* =========================================================================
   # Card Grids
   ========================================================================= */

.troubles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trouble-item {
    text-align: center;
    background-color: var(--color-white);
    padding: 40px 24px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.trouble-item:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.trouble-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary-light);
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--color-white);
    padding: 40px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.service-icon-box {
    width: 64px;
    height: 64px;
    background-color: var(--color-bg-light);
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 50%;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* =========================================================================
   # Strengths
   ========================================================================= */

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.strength-item {
    background-color: var(--color-white);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.strength-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.strength-content {
    padding: 30px;
}

.strength-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    border-left: 4px solid var(--color-primary-light);
    padding-left: 12px;
}

/* =========================================================================
   # Profile
   ========================================================================= */

.profile-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.profile-img {
    height: 450px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.profile-info h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.profile-tag {
    color: var(--color-primary-light);
    font-weight: 700;
    margin-bottom: 24px;
}

.profile-message {
    padding: 24px;
    background-color: var(--color-bg-light);
    border-radius: 8px;
    margin-bottom: 24px;
    position: relative;
}

.profile-history h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.profile-history ul li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.profile-history ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary-light);
    border-radius: 50%;
}

/* =========================================================================
   # Results (Numbers)
   ========================================================================= */

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.result-item .counter {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-accent);
}

.result-item .unit {
    font-size: 1.25rem;
    font-weight: 700;
}

.result-item p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* =========================================================================
   # Trust Badges
   ========================================================================= */

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.trust-item i {
    width: 24px;
    height: 24px;
    color: var(--color-primary-light);
}

.trust-item p {
    font-weight: 600;
}

/* =========================================================================
   # Pricing
   ========================================================================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background-color: var(--color-white);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.pricing-card.highlight {
    border: 3px solid var(--color-primary-light);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-accent);
    color: var(--color-primary-light);
}

.price span {
    font-size: 1.25rem;
}

.price-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.price-list {
    text-align: left;
    margin-bottom: 30px;
}

.price-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-bg-light);
    font-size: 0.95rem;
}

/* =========================================================================
   # Flow Timeline
   ========================================================================= */

.flow-timeline {
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 20px;
    width: 2px;
    height: calc(100% - 10px);
    background-color: var(--color-primary-light);
    opacity: 0.3;
}

.timeline-item:last-child::after { display: none; }

.timeline-number {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* =========================================================================
   # Benefits Section
   ========================================================================= */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    background-color: var(--color-white);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.benefit-check {
    width: 24px;
    height: 24px;
    color: var(--color-success);
}

/* =========================================================================
   # FAQ
   ========================================================================= */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* =========================================================================
   # Form Section
   ========================================================================= */

.form-card {
    background-color: var(--color-white);
    padding: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-success {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    color: var(--color-success);
    margin-bottom: 24px;
}

.hidden { display: none; }

/* =========================================================================
   # Footer
   ========================================================================= */

.footer {
    padding: 80px 0;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* =========================================================================
   # Mobile Fixed CTA
   ========================================================================= */

.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 900;
    display: none;
}

/* =========================================================================
   # Animations
   ========================================================================= */

.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   # Responsive
   ========================================================================= */

@media (max-width: 1024px) {
    .troubles-grid, .services-grid, .pricing-grid, .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .header-inner .nav, .header-inner .header-btn { display: none; }
    .hamburger { display: flex; }
    
    .troubles-grid, .services-grid, .pricing-grid, .benefits-grid, .strengths-grid, .results-grid, .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .profile-img { height: 350px; }
    
    .fixed-cta { display: block; }
    .footer { padding-bottom: 120px; }
    
    .form-card { padding: 30px; }
    
    .mobile-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 40px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
        display: none;
    }
    
    .mobile-nav.active { display: block; }
    .mobile-nav-list { display: flex; flex-direction: column; gap: 24px; align-items: center; }
}
