/* ===================================
   家庭教師のネクスタ - Custom Styles
   Navy + White Base, Trust & Reliability Focus
   =================================== */

/* CSS Variables */
:root {
    --primary-navy: #1a3a5c;
    --primary-dark: #0f2439;
    --primary-light: #2c5282;
    --accent-gold: #d4a574;
    --accent-orange: #e07a3c;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-green: #48bb78;
    --error-red: #e53e3e;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-navy);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-navy);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Header & Navigation */
.navbar-nexta {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nexta .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nexta .nav-link:hover,
.navbar-nexta .nav-link.active {
    color: var(--primary-navy);
}

.navbar-nexta .btn-contact {
    background-color: var(--accent-orange);
    color: var(--bg-white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-nexta .btn-contact:hover {
    background-color: var(--primary-navy);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 150px;
    opacity: 0.5;
}

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

.hero-section h1 {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 7rem 0;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn-primary-nexta {
    background-color: var(--primary-navy);
    border: none;
    color: var(--bg-white);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-nexta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.3);
}

.btn-secondary-nexta {
    background-color: var(--bg-white);
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary-nexta:hover {
    background-color: var(--primary-navy);
    color: var(--bg-white);
}

.btn-cta {
    background-color: var(--accent-orange);
    border: none;
    color: var(--bg-white);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #c86a2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(224, 122, 60, 0.4);
    color: var(--bg-white);
}

.btn-line {
    background-color: #06c755;
    border: none;
    color: var(--bg-white);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-line:hover {
    background-color: #05a847;
    color: var(--bg-white);
}

/* Sections */
.section-padding {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

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

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

.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
    color: var(--bg-white);
}

/* Cards */
.card-nexta {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.card-nexta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-nexta .card-body {
    padding: 2rem;
}

.card-nexta .card-title {
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--bg-white);
}

/* Feature Points */
.feature-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-point-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-navy);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.feature-point-content h4 {
    margin-bottom: 0.5rem;
}

/* Worries & Solutions */
.worry-card {
    background-color: #fef3c7;
    border-left: 4px solid var(--accent-orange);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.solution-card {
    background-color: #d1fae5;
    border-left: 4px solid var(--success-green);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

/* Pricing Table */
.pricing-table {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pricing-table th {
    background-color: var(--primary-navy);
    color: var(--bg-white);
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.price-highlight {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1.25rem;
}

.price-strikethrough {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Flow Steps */
.flow-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.flow-step::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -3rem;
    width: 2px;
    background-color: var(--primary-navy);
}

.flow-step:last-child::before {
    display: none;
}

.flow-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.flow-step-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Area Grid */
.area-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 576px) {
    .area-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .area-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .area-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.area-link {
    display: block;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.area-link:hover {
    border-color: var(--primary-navy);
    color: var(--primary-navy);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ */
.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-navy);
}

.faq-question::before {
    content: 'Q.';
    margin-right: 0.75rem;
    color: var(--accent-orange);
    font-weight: 700;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.faq-answer::before {
    content: 'A.';
    display: inline-block;
    margin-right: 0.75rem;
    color: var(--primary-navy);
    font-weight: 700;
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-navy);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}

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

.testimonial-author {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary-navy);
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.required-badge {
    background-color: var(--error-red);
    color: var(--bg-white);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.optional-badge {
    background-color: var(--text-muted);
    color: var(--bg-white);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

/* Contact Methods */
.contact-method {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-method-icon.line {
    background-color: #06c755;
    color: var(--bg-white);
}

.contact-method-icon.email {
    background-color: var(--primary-navy);
    color: var(--bg-white);
}

.contact-method-icon.phone {
    background-color: var(--accent-orange);
    color: var(--bg-white);
}

/* Footer */
.footer-nexta {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
}

.footer-nexta h5 {
    color: var(--bg-white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-nexta a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nexta a:hover {
    color: var(--bg-white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Breadcrumb */
.breadcrumb-nexta {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-nexta .breadcrumb-item a {
    color: var(--primary-navy);
    text-decoration: none;
}

.breadcrumb-nexta .breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-nexta .breadcrumb-item.active {
    color: var(--text-muted);
}

/* Utilities */
.text-navy {
    color: var(--primary-navy);
}

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

.bg-gradient-navy {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-light) 100%);
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--bg-white);
}

/* Image Styles */
.img-rounded {
    border-radius: 16px;
}

.img-shadow {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Comparison Table */
.comparison-table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table th {
    background-color: var(--primary-navy);
    color: var(--bg-white);
    font-weight: 600;
    padding: 1rem;
}

.comparison-table td {
    padding: 1rem;
    vertical-align: middle;
}

.comparison-table .highlight-row {
    background-color: rgba(26, 58, 92, 0.05);
}

/* Loading animation for images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Thank You Page */
.thanks-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thanks-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success-green) 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.thanks-icon i {
    font-size: 3rem;
    color: var(--bg-white);
}

/* 404 Page */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1;
    margin-bottom: 1rem;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .flow-step {
        padding-left: 60px;
    }
    
    .flow-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .flow-step::before {
        left: 19px;
        top: 50px;
    }
}

/* Honeypot (Anti-spam) */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Print Styles */
@media print {
    .navbar-nexta,
    .footer-nexta,
    .btn-cta,
    .cta-section {
        display: none;
    }
}
