@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg-dark: #0B0E11;
    --bg-card: #12171E;
    --bg-input: #1D242E;
    --primary-gold: #C5A880;
    --primary-gold-hover: #EADFC9;
    --text-light: #F3F4F6;
    --text-muted: #9CA3AF;
    --border-color: #2B353E;
    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-gold);
    color: var(--bg-dark);
    padding: 10px 20px;
    z-index: 1000;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: bold;
}

.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;
}

:focus-visible {
    outline: 3px solid var(--primary-gold);
    outline-offset: 2px;
}

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

/* Header & Navigation */
header {
    background-color: rgba(11, 14, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
}

.logo-area img {
    height: 35px;
    margin-right: 10px;
}

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.burger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 100px;
    background: radial-gradient(circle at top right, #1a2230 0%, #0B0E11 100%);
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-gold) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.08;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(197, 168, 128, 0.1);
    color: var(--primary-gold-hover);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.hero-wave .shape-fill {
    fill: var(--bg-dark);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

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

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

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

/* Steps Section */
.steps {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-light);
}

.section-title span {
    color: var(--primary-gold);
}

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

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    border-radius: 6px;
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-card i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin: 15px 0;
}

.step-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

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

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background-color: var(--bg-card);
}

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

.service-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

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

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.service-info {
    padding: 25px;
}

.service-info i {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
    display: block;
}

.service-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

/* Features Block (Asymmetric) */
.features {
    padding: 80px 0;
}

.features-block {
    display: flex;
    align-items: center;
    gap: 50px;
}

.features-image {
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.features-image img {
    width: 100%;
    display: block;
}

.features-text {
    flex: 1;
}

.features-text h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

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

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.features-list i {
    color: var(--primary-gold);
    margin-right: 15px;
    margin-top: 5px;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background-color: var(--bg-card);
}

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

.pricing-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 6px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--primary-gold);
    transform: scale(1.03);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.pricing-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 25px;
}

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

.pricing-features {
    list-style: none;
    margin-bottom: 35px;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-features i {
    color: var(--primary-gold);
    margin-right: 10px;
}

/* Form Section */
.form-section {
    padding: 80px 0;
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    border-radius: 6px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-gold);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 0.85rem;
}

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

/* Accordion FAQ (Native details/summary) */
details {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

details[open] {
    border-color: var(--primary-gold);
}

summary {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-gold);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '\2b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

details[open] summary::after {
    content: '\2212';
}

details p {
    margin-top: 15px;
    color: var(--text-muted);
}

/* Trust Layer & Footer */
.trust-layer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.trust-layer h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1rem;
}

.trust-layer p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.trust-layer .disclaimer {
    border-left: 2px solid var(--primary-gold);
    padding-left: 10px;
    margin-top: 15px;
}

footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-logo {
    height: 30px;
    margin-right: 10px;
}

.footer-links, .footer-legal {
    display: flex;
    list-style: none;
    gap: 20px;
}

.footer-links a, .footer-legal a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--primary-gold);
}

.copyright {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    margin-top: 30px;
    font-size: 0.75rem;
}

/* Cookie Consent Banner */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 6px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-light);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

.cookie-btn-accept {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    border: none;
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.cookie-btn-accept:hover {
    background-color: var(--primary-gold-hover);
}

.cookie-btn-decline:hover {
    color: var(--text-light);
    border-color: var(--text-muted);
}

/* Legal template layouts */
.legal-page {
    padding: 60px 0 80px;
}

.legal-page h2 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    margin-top: 40px;
}

.legal-page p, .legal-page li {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.legal-page ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pricing-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.popular {
        transform: none;
    }
    .features-block {
        flex-direction: column;
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease;
        border-top: 1px solid var(--border-color);
        z-index: 99;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links li {
        margin: 20px 0;
    }
    .burger-menu {
        display: block;
    }
    .burger-menu.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger-menu.toggle .line2 {
        opacity: 0;
    }
    .burger-menu.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .pricing-grid, .services-grid, .steps-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .btn-secondary {
        margin-left: 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;
    }
}