:root {
    --primary: #1B263B;
    --primary-light: #415A77;
    --accent: #C5A880;
    --bg-light: #F4EFEA;
    --bg-white: #FFFFFF;
    --text-main: #2D3142;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --font-jp: 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-jp);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.8;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

/* Accessibility skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: var(--primary);
    padding: 10px 20px;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Offscreen Honeypot Styles - Compliant with bot scanners, avoiding display:none on form elements */
.sr-only-form-check {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--accent);
}

header {
    background-color: var(--primary);
    color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bg-white);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-img {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: var(--bg-white);
    font-size: 16px;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Hamburger mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 28px;
    cursor: pointer;
}

/* Sections styling */
section {
    padding: 80px 20px;
}
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(27, 38, 59, 0.85), rgba(27, 38, 59, 0.85)), url('images/hero.jpg') no-repeat center center/cover;
    color: var(--bg-white);
    padding: 120px 20px;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 44px;
    line-height: 1.4;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    background-color: #d6b88d;
}

/* Stats Section */
.stats {
    background-color: var(--bg-light);
    padding: 50px 20px;
}
.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item h3 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}
.stat-item p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Steps - How it works */
.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.step-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.step-icon {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 20px;
}
.step-card h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Services section */
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-white);
    transition: transform 0.2s;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.service-info {
    padding: 25px;
}
.service-info h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Features asymmetric */
.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.feature-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.feature-text h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}
.feature-bullets {
    list-style: none;
    margin-top: 20px;
}
.feature-bullets li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}
.feature-bullets li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Pricing Section */
.pricing {
    background-color: var(--bg-light);
}
.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}
.pricing-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pricing-card.popular {
    border: 3px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    padding: 5px 20px;
    border-radius: 20px;
}
.price-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
}
.price-value {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
}
.price-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}
.price-features li {
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Section */
.form-section {
    background-color: var(--primary);
    color: var(--bg-white);
}
.form-container {
    max-width: 650px;
    margin: 0 auto;
}
.form-section h2 {
    color: var(--bg-white);
}
.contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.05);
    color: var(--bg-white);
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-jp);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255,255,255,0.1);
}
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
}
.form-checkbox input {
    margin-top: 5px;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    font-size: 16px;
    color: var(--text-muted);
}
.faq-item.active .faq-answer {
    margin-top: 15px;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Trust Layer */
.trust-layer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 20px;
}
.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    text-align: left;
    margin-top: 20px;
}
.trust-block h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 18px;
}
.trust-block p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 60px 20px 30px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}
.footer-info h3 {
    color: var(--bg-white);
    margin-bottom: 15px;
}
.footer-info p {
    font-size: 15px;
    line-height: 1.6;
}
.footer-links h4 {
    color: var(--bg-white);
    margin-bottom: 15px;
    font-size: 16px;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #cbd5e1;
    font-size: 15px;
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 14px;
}

/* Cookie Banner styling */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 750px;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 2px solid var(--accent);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cookie-banner.show {
    opacity: 1;
    visibility: visible;
}
.cookie-text {
    font-size: 15px;
    line-height: 1.6;
}
.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}
.cookie-btn {
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}
.cookie-accept {
    background-color: var(--accent);
    color: var(--primary);
}
.cookie-decline {
    background-color: transparent;
    color: var(--bg-white);
    border: 1px solid rgba(255,255,255,0.4);
}
.cookie-decline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Custom 404 & Thank You */
.custom-wrapper {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 20px;
}
.custom-wrapper h1 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}
.custom-wrapper p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid, .services-grid, .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stats-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    .section-title {
        font-size: 26px;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary);
        padding: 20px;
        border-bottom: 2px solid var(--accent);
    }
    .nav-links.open {
        display: flex;
    }
    .pricing-grid, .services-grid, .steps-container {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}