/* Custom Premium Theme */
:root {
    --primary-color: #102a43; /* Deep navy blue - highly professional & authoritative */
    --primary-light: #243b53;
    --secondary-color: #c49a45; /* Soft polished bronze gold - luxury & trustworthiness */
    --secondary-light: #dec073;
    --bg-color: #FAF9F6; /* Warm alabaster cream */
    --surface-color: #ffffff;
    --text-main: #334e68; /* Charcoal for high-contrast reading */
    --text-dark: #102a43;
    --text-muted: #627d98;
    --border-color: #bcccdc;
    --success-color: #2b6cb0;
    --gap-sm: 15px;
    --gap-md: 30px;
    --gap-lg: 60px;
    --border-radius: 8px;
    --font-stack: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    z-index: 1000;
    font-weight: bold;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transition: var(--transition);
}
.skip-link:focus-visible {
    top: 0;
}

/* Accessibility outline */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
details summary:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Container limits */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gap-sm);
}
.max-width-md {
    max-width: 800px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-bottom: var(--gap-sm); }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
p { margin-bottom: 15px; }

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
}

.text-center { text-align: center; }
.text-gold { color: var(--secondary-color); }
.text-muted { color: var(--text-muted); }
.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mb-sm { margin-bottom: var(--gap-sm); }
.py-lg { padding-top: var(--gap-lg); padding-bottom: var(--gap-lg); }

.section-title {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 10px;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--gap-md) auto;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}
.btn-primary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-color);
    color: #fff;
}
.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(196, 154, 69, 0.25);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #b38b3a;
    transform: translateY(-2px);
}
.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-block {
    display: block;
    width: 100%;
}
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Main Header */
.main-header {
    background-color: var(--primary-color);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px var(--gap-sm);
}
.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}
.logo-img {
    margin-right: 10px;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.main-nav {
    display: flex;
    align-items: center;
}
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}
.nav-links li {
    margin-left: var(--gap-md);
}
.nav-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
}
.nav-links a:hover, .nav-links a:focus {
    color: var(--secondary-color);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.burger-bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 10px;
    transition: var(--transition);
}

/* Custom Shape Divider for Hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #061524 100%);
    color: #fff;
    position: relative;
    padding: var(--gap-lg) 0 100px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--gap-md);
    align-items: center;
}
.hero-text-content h1 {
    color: #fff;
    font-size: 2.6rem;
    line-height: 1.3;
    margin-bottom: var(--gap-sm);
}
.hero-text-content .accent {
    color: var(--secondary-color);
}
.hero-text-content p {
    color: #cbd5e0;
    margin-bottom: var(--gap-md);
    font-size: 1.1rem;
}
.hero-actions {
    display: flex;
    gap: 15px;
}
.hero-image-area {
    display: flex;
    justify-content: center;
}
.hero-img-main {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    max-width: 100%;
    height: auto;
    border: 4px solid rgba(196,154,69,0.15);
}
.custom-shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.custom-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Decorative Background Grid (One Unique Graphic Element) */
.custom-grid-bg {
    background-size: 25px 25px;
    background-image: linear-gradient(to right, rgba(16, 42, 67, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(16, 42, 67, 0.04) 1px, transparent 1px);
}

/* Card layout common style */
.card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    padding: var(--gap-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(16, 42, 67, 0.04);
}

/* Stats Section */
.stats-section {
    position: relative;
    z-index: 2;
    margin-top: -50px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
}
.stat-card {
    background-color: var(--surface-color);
    padding: var(--gap-md);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid var(--secondary-color);
}
.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Process Section */
.process-section {
    padding: var(--gap-lg) 0;
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-md);
}
.process-step {
    position: relative;
    padding: var(--gap-md) 15px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border: 1px solid rgba(16, 42, 67, 0.06);
    text-align: center;
}
.step-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Trust Section */
.trust-block {
    background-color: var(--surface-color);
    padding: var(--gap-lg) var(--gap-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(16,42,67,0.03);
    margin-bottom: var(--gap-lg);
}
.trust-block h2 {
    text-align: center;
    margin-bottom: var(--gap-md);
}
.trust-grid-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
}
.trust-item {
    text-align: center;
}
.trust-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Services Teaser */
.services-teaser {
    background-color: rgba(16, 42, 67, 0.02);
    padding: var(--gap-lg) 0;
}
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
}
.teaser-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.teaser-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.teaser-card h3 {
    padding: 20px 20px 10px 20px;
}
.teaser-card p {
    padding: 0 20px 20px 20px;
    flex-grow: 1;
    color: var(--text-main);
}
.text-link {
    display: inline-block;
    padding: 0 20px 20px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
}
.text-link:hover, .text-link:focus {
    text-decoration: underline;
}

/* Pricing Section */
.pricing-section {
    padding: var(--gap-lg) 0;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
}
.price-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    padding: var(--gap-md);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}
.price-card.recommended {
    border: 3px solid var(--secondary-color);
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(196,154,69,0.15);
}
.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}
.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0 5px 0;
}
.tax { font-size: 0.85rem; color: var(--text-muted); }
.price-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: var(--gap-md);
    flex-grow: 1;
}
.price-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(16,42,67,0.06);
    font-size: 0.95rem;
}

/* Service Detail Blocks */
.service-detail-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--gap-md);
    align-items: center;
    background: #fff;
    padding: var(--gap-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: var(--gap-md);
}
.service-detail-block.flex-reverse {
    grid-template-columns: 1.2fr 1fr;
}
.service-detail-block.flex-reverse .service-detail-img {
    order: 2;
}
.service-detail-img img {
    width: 100%;
    height: auto;
}
.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
}
.tax-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Form Section */
.form-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: var(--gap-lg) 0;
}
.form-section .section-title {
    color: #fff;
}
.form-section .section-subtitle {
    color: #cbd5e0;
}
.contact-form {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    padding: var(--gap-md);
    color: var(--text-main);
}
.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.required {
    background-color: #d32f2f;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 3px;
    margin-left: 5px;
}
.optional {
    background-color: #718096;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 3px;
    margin-left: 5px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-stack);
    font-size: 1rem;
    color: var(--text-main);
}
.form-consent {
    margin: 20px 0;
    text-align: left;
}
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    top: 4px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #e2e8f0;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
.checkbox-container:hover input ~ .checkmark {
    background-color: #cbd5e0;
}
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}
.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.consent-text {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* FAQ Details Accordion */
.faq-accordion-container {
    margin: 0 auto;
}
.faq-details {
    background-color: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-summary {
    padding: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary i {
    transition: transform 0.3s ease;
}
.faq-details[open] .faq-summary i {
    transform: rotate(180deg);
}
.faq-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid rgba(16,42,67,0.05);
}

/* Trust Layer (Transparency) */
.trust-layer {
    background-color: #edf2f7;
    padding: var(--gap-md) var(--gap-sm);
    border-radius: var(--border-radius);
    margin: var(--gap-lg) auto 0 auto;
    max-width: 1200px;
    font-size: 0.9rem;
    border-left: 5px solid var(--secondary-color);
}
.trust-layer h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.trust-disclaimer {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 0.85rem;
}

/* Contact Layout styling */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--gap-md);
}
.contact-meta-list {
    margin-top: 20px;
}
.contact-meta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}
.contact-meta-item i {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
}
.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    line-height: 0;
}

/* Legal tables for Tokushoho */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--gap-md) 0;
}
.legal-table th, .legal-table td {
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: left;
}
.legal-table th {
    background-color: #f7f9fc;
    width: 25%;
    font-weight: 700;
    color: var(--text-dark);
}

/* Lists styling */
.bullet-list, .check-list-styled {
    list-style: none;
    margin: 15px 0;
}
.bullet-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}
.bullet-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.85rem;
}
.check-list-styled li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
.check-list-styled li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Main Footer */
.main-footer {
    background-color: var(--primary-color);
    color: #cbd5e0;
    padding: var(--gap-lg) 0 var(--gap-md) 0;
    margin-top: var(--gap-lg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--gap-md);
}
.footer-brand .logo-text {
    color: #fff;
}
.footer-brand p {
    margin-top: 15px;
    font-size: 0.9rem;
}
.footer-links h4, .footer-legal h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.footer-links ul, .footer-legal ul {
    list-style: none;
}
.footer-links li, .footer-legal li {
    margin-bottom: 10px;
}
.footer-links a, .footer-legal a {
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover, .footer-legal a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    margin-top: var(--gap-md);
    font-size: 0.8rem;
}

/* Soft Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    z-index: 999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.15);
    transition: bottom 0.5s ease-in-out;
    padding: 20px 0;
    border-top: 3px solid var(--secondary-color);
}
.cookie-banner.active {
    bottom: 0;
}
.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gap-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-md);
}
.cookie-text {
    font-size: 0.9rem;
    color: #cbd5e0;
    margin-bottom: 0;
}
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Rounded and responsive helpers */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}
.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: 0 10px 25px rgba(0,0,0,0.05); }

/* Animation reduction */
@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;
    }
}

/* Responsive queries */
@media (max-width: 992px) {
    h1 { font-size: 1.8rem; }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-image-area {
        order: -1;
    }
    .stats-grid, .process-grid, .teaser-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .stats-section {
        margin-top: -30px;
    }
    .trust-grid-inner, .service-detail-block, .service-detail-block.flex-reverse {
        grid-template-columns: 1fr;
    }
    .service-detail-block.flex-reverse .service-detail-img {
        order: unset;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .cookie-banner-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* Responsive burger menu */
    .burger-menu {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin-left: 0;
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 10px;
    }
}