:root {
    --primary-color: #112233;
    --secondary-color: #c5a059;
    --accent-color: #8c6239;
    --bg-light: #fbfbfa;
    --bg-white: #ffffff;
    --text-dark: #22252a;
    --text-muted: #555e6a;
    --font-main: 'Noto Sans JP', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(17,34,51,0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

main {
    display: block;
}

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

/* Accessibility Focus Styling */
*:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    z-index: 9999;
    font-weight: bold;
    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;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
}

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

/* Dynamic SVG Wave Background Pattern */
.bg-wave-pattern {
    background-color: var(--bg-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 50 Q 25 35, 50 50 T 100 50' fill='none' stroke='%23c5a059' stroke-width='1' opacity='0.15'/%3E%3Cpath d='M0 80 Q 25 65, 50 80 T 100 80' fill='none' stroke='%23c5a059' stroke-width='1' opacity='0.1'/%3E%3C/svg%3E");
}

/* Header styling */
header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
}

nav {
    display: flex;
    align-items: center;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

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

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--secondary-color);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 100px 0 120px 0;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-white);
    transform: skewY(-2deg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--bg-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(197, 160, 89, 0.1);
    transform: translateY(-2px);
}

.hero-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Statistics Section */
.stats-bar {
    background: var(--bg-light);
    padding: 60px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card .stat-number span {
    color: var(--secondary-color);
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 8px;
}

/* General Sections */
.section {
    padding: 100px 0;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 16px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Step Card Styles */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--bg-white);
    padding: 40px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 1.6rem;
    color: var(--accent-color);
    border: 1px solid var(--secondary-color);
}

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

.step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-img {
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-body {
    padding: 32px;
}

.service-body h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-link {
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--secondary-color);
}

/* Asymmetric Feature Block */
.feature-block {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.feature-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--secondary-color);
}

.feature-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-info p {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-weight: 500;
}

.feature-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Trust block */
.trust-block {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.trust-inner h3 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.trust-inner p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--bg-light);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card.featured {
    border: 3px solid var(--secondary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.pricing-card:hover:not(.featured) {
    transform: translateY(-5px);
}

.badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 4px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.price-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 700;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.price-amount span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li i {
    color: var(--secondary-color);
}

/* Contact Lead Capture Form */
.form-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 48px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

input:focus, textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 6px;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
}

.checkbox-group label a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Accordion FAQ UI */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.faq-question i {
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-light);
}

.faq-answer-inner {
    padding: 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Trust Layer Info Box */
.trust-layer {
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 40px 0;
    border-top: 2px solid var(--secondary-color);
    font-size: 0.85rem;
}

.trust-layer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.trust-info h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 12px;
}

.trust-info p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.trust-disclaimer {
    border-left: 2px solid var(--secondary-color);
    padding-left: 20px;
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Footer elements */
footer {
    background-color: #0c1824;
    color: #a0aec0;
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
}

/* Cookie Banner Layout */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #0f1c2a;
    color: #ffffff;
    padding: 24px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-top: 3px solid var(--secondary-color);
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-banner-text {
    font-size: 0.85rem;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-banner-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cookie-accept {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.cookie-accept:hover {
    background: #d8b873;
}

.cookie-reject {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
}

.cookie-reject:hover {
    background: rgba(255,255,255,0.05);
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .feature-block {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
        gap: 40px;
    }
    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 24px;
        transition: var(--transition-smooth);
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .burger {
        display: flex;
    }
    
    .burger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .trust-layer-container {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-btns {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
}