/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    background-color: #f8f9fa;
    color: #333;
}

/* --- Local Styles --- */

/* Variable Definitions */
:root {
    --primary: #0f172a;
    --secondary: #3b82f6;
    --accent: #64748b;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --white: #ffffff;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-white {
    color: var(--white) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.section-title.white {
    color: var(--white);
}

.section-title.white::after {
    background-color: var(--white);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    color: var(--primary);
}

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

/* Hero */
.hero {
    background: linear-gradient(rgba(10, 15, 30, 0.8), rgba(10, 15, 30, 0.88)), url('../images/hero_bg.jpg') center/cover;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
    cursor: pointer;
}

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

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

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
}

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

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

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
    margin: 1rem auto 0;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* About */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text,
.about-image {
    flex: 1;
}

.about-text h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--accent);
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    border: 1px solid #f1f5f9;
}

.pricing-card.featured {
    border: 2px solid var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popular-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--secondary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-header h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: var(--accent);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    padding: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    padding: 1.5rem;
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    font-weight: 600;
    opacity: 0.8;
}



/* Contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #f1f5f9;
}

.form-group textarea {
    height: 150px;
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 5rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.3s;
}

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

.copyright {
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.copyright a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

/* Reveal Animations */
[data-reveal] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

[data-reveal="fade-up"] {
    transform: translateY(40px);
}

[data-reveal="fade-right"] {
    transform: translateX(-40px);
}

[data-reveal="fade-left"] {
    transform: translateX(40px);
}

.reveal-visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        /* Mobile menu implementation omitted for brevity, keeping simple */
    }

    .about-content {
        flex-direction: column;
    }

    .burger {
        display: block;
        /* Placeholder */
    }
}

/* Opening Animation */
.opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* Increased to ensure it's on top */
    transition: opacity 1s ease-in-out, visibility 1s;
}

.opening-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.opening-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-category {
    margin-bottom: 2rem;
}
.faq-category-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-item {
    margin-bottom: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
    color: var(--primary);
    transition: background-color 0.3s ease;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question:hover {
    background-color: #f8fafc;
}
.faq-question .cross {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
}
.faq-question .cross::before, .faq-question .cross::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-question .cross::before {
    width: 2px;
    height: 14px;
    left: 6px;
    top: 0;
}
.faq-question .cross::after {
    width: 14px;
    height: 2px;
    left: 0;
    top: 6px;
}
details[open] .faq-question .cross::before {
    transform: rotate(90deg);
    opacity: 0;
}
.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: #475569;
    line-height: 1.6;
}