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

:root {
    /* Color Palette - Navy, Blue, White */
    --color-primary: #1A365D;
    --color-primary-light: #2B6CB0;
    --color-primary-dark: #0F172A;
    --color-secondary: #EBF8FF;
    --color-accent: #3182CE;
    --color-white: #FFFFFF;
    --color-bg-light: #F7FAFC;
    --color-text-main: #2D3748;
    --color-text-muted: #718096;
    --color-border: #E2E8F0;
    --color-highlight: #F6AD55;
    
    /* Typography */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-accent: 'Inter', sans-serif;

    /* Utilities */
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.1);
    --container-width: 1140px;
}

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

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

ul {
    list-style: none;
}

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

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

.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-40 { margin-bottom: 40px; }

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

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

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

.btn-primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 54, 93, 0.2);
}

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

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

.btn-large {
    padding: 22px 64px;
    font-size: 1.15rem;
}

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

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

.header {
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    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.25rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-accent);
    letter-spacing: -0.02em;
}

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

.nav-list a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.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: 28px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-base);
}

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

.hero {
    height: 100vh;
    min-height: 700px;
    background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=2073&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(to right, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.3) 100%);
}

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

.hero-tag {
    font-size: 1rem;
    font-weight: 700;
    background: var(--color-accent);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
}

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

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

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

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

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

/* =========================================================================
   # Troubles Section
   ========================================================================= */

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

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

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

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

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

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

.result-item .counter {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-accent);
    display: inline-block;
}

.result-item .unit {
    font-size: 1.25rem;
    font-weight: 700;
    margin-left: 4px;
}

.result-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 8px;
}

/* =========================================================================
   # Reasons Section
   ========================================================================= */

.reasons-list {
    max-width: 900px;
    margin: 0 auto;
}

.reason-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.reason-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-secondary);
    font-family: var(--font-accent);
    line-height: 1;
    -webkit-text-stroke: 2px var(--color-primary-light);
}

.reason-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* =========================================================================
   # Case Cards
   ========================================================================= */

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

.case-card {
    background-color: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.case-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.case-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--color-primary);
    color: white;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
}

.case-content {
    padding: 30px;
}

.case-results {
    margin: 16px 0;
    padding: 16px;
    background-color: var(--color-bg-light);
    border-radius: 8px;
}

.before { font-size: 0.9rem; color: var(--color-text-muted); text-decoration: line-through; }
.after { font-size: 1.15rem; font-weight: 800; color: var(--color-primary-light); margin-top: 4px; }

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

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    width: 2px;
    height: 100%;
    background-color: var(--color-primary-light);
}

.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::before { display: none; }

.timeline-dot {
    width: 16px;
    height: 16px;
    background-color: var(--color-primary-light);
    border-radius: 50%;
    margin-top: 12px;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.2);
}

.step {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-primary-light);
    letter-spacing: 0.1em;
}

/* =========================================================================
   # Comparison Table
   ========================================================================= */

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

.compare-table-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table th, .compare-table td {
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.compare-table th {
    font-size: 1.15rem;
    font-weight: 800;
}

.compare-table .label {
    text-align: left;
    font-weight: 700;
    background-color: var(--color-bg-light);
    width: 200px;
}

.compare-table .highlight {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 700;
}

/* =========================================================================
   # Properties Section
   ========================================================================= */

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

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

.property-item i {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.property-item p {
    font-weight: 700;
}

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

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

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

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.15rem;
    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 { border-color: var(--color-primary-light); }
.faq-item.active .faq-answer { max-height: 300px; }

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

.form-wrapper {
    background-color: var(--color-white);
    padding: 60px;
    border-radius: 20px;
    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: 6px;
    font-family: inherit;
    font-size: 1rem;
}

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

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

.hidden { display: none; }

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

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

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

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

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

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

/* =========================================================================
   # Mobile Fixes & Animations
   ========================================================================= */

.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 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;
}

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

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

@media (max-width: 1024px) {
    .troubles-grid, .results-grid, .cases-grid, .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.15rem; }
    
    .nav, .header-btn { display: none; }
    .hamburger { display: flex; }
    
    .troubles-grid, .results-grid, .cases-grid, .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .reason-item { flex-direction: column; text-align: center; gap: 20px; }
    .form-wrapper, .compare-card { padding: 30px; }
    
    .fixed-cta { display: block; }
    .footer { padding-bottom: 120px; }
    
    /* Mobile Nav */
    .mobile-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        z-index: 999;
        display: none;
        padding: 40px;
        overflow-y: auto;
    }
    
    .mobile-nav.active { display: block; }
    .mobile-nav-list { display: flex; flex-direction: column; gap: 32px; align-items: center; }
    .mobile-nav-list a { font-size: 1.25rem; font-weight: 700; }
}
