:root {
    --bg-white: #ffffff;
    --bg-soft: #f5f7fb;
    --accent-blue: #2563eb;
    --text-main: #1e293b;
    --heading-color: #0f172a;
    --text-muted: #64748b;
    --border-light: rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 6px 24px rgba(15, 23, 42, 0.06);
    --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
    --container-width: 1100px;
    --radius-large: 14px;
    --radius-small: 10px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-white);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 0.005em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.7rem);
}

h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

h3 {
    font-size: 1.45rem;
}

a {
    color: inherit;
}

p {
    letter-spacing: 0.008em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Elegant background */
.bg-subtle {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at top right, #f1f5f9 0%, transparent 40%), radial-gradient(circle at bottom left, #f8fafc 0%, transparent 40%);
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 1.1rem 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.logo {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--heading-color);
}

.logo-accent {
    color: var(--accent-blue);
}

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

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 1.7rem;
    transition: color 0.25s;
}

nav a:hover {
    color: var(--accent-blue);
}

.btn-contact {
    display: inline-block;
    background: linear-gradient(130deg, var(--text-main), #0f172a);
    color: #fff;
    padding: 0.62rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.btn-cta {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Hero */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.1rem;
}

.lead {
    font-size: clamp(1rem, 2.2vw, 1.22rem);
    color: var(--text-muted);
    max-width: 740px;
    margin: 0 auto 3rem;
}

.hero-btns {
    margin-top: 0.8rem;
}

.btn-contact {
    padding: 1rem 2.7rem;
    font-size: 1.08rem;
}

/* Sections */
section {
    padding: 7rem 0;
}

.section-title {
    margin-bottom: 2.4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 2px;
    background: var(--accent-blue);
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 3.5rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.4rem;
}

#about {
    padding-bottom: 8.5rem;
}

#services {
    padding-top: 8.5rem;
    padding-bottom: 10rem;
}

#services .services-grid {
    margin-top: 1rem;
}

#faq {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

#faq .text-center {
    margin-bottom: 2.4rem;
}

#contact {
    padding-top: 10rem;
}

.soe-card {
    background: var(--bg-soft);
    padding: 2.4rem 1.8rem;
    border-radius: var(--radius-large);
    border: 1px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.soe-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-soft);
}

.soe-card h3 {
    margin-bottom: 1rem;
    line-height: 1.35;
    color: var(--accent-blue);
}

.soe-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

.service-kicker {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-card h3 a,
.service-card .service-link {
    color: inherit;
    text-decoration: none;
}

.service-card h3 a:hover,
.service-card .service-link:hover {
    opacity: 0.9;
}

.service-feature-list {
    margin-top: 1.2rem;
    padding-left: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.service-feature-list li {
    margin-bottom: 0.7rem;
}

.service-link {
    display: inline-block;
    margin-top: 1.4rem;
    padding: 0.55rem 1.3rem;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: #fff;
    font-size: 0.93rem;
    font-weight: 600;
}

/* FAQ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 0.9rem;
}

.faq-list details {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    padding: 1rem 1.2rem;
}

.faq-list summary {
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--heading-color);
    list-style: none;
    position: relative;
    padding-right: 1.4rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '\25be';
    position: absolute;
    right: 0;
    top: 0.18rem;
    transition: transform 0.2s;
}

.faq-list details[open] summary::after {
    transform: rotate(180deg);
}

.faq-list p {
    margin-top: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: var(--bg-soft);
    padding: 2.4rem;
    border-radius: var(--radius-large);
    border: 1px solid var(--border-light);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: white;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    transition: border-color 0.25s;
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
}

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

.form-actions {
    text-align: center;
    margin-top: 1.8rem;
}

.form-actions .btn-contact {
    width: 100%;
    padding: 1rem;
}

/* Compliance table */
.overview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.6rem;
}

.overview-table th,
.overview-table td {
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.overview-table tr:last-child th,
.overview-table tr:last-child td {
    border-bottom: none;
}

.overview-table th {
    width: 30%;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
}

.overview-table td {
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
}

.footer-logo {
    margin-bottom: 1rem;
}

.compliance-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1.6rem;
}

.legal-page .legal-title {
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    nav {
        display: none;
    }

    .hero {
        padding-top: 7rem;
        padding-bottom: 4.5rem;
    }

    .hero h1 {
        line-height: 1.35;
    }

    .hero-btns {
        margin-top: 1.4rem;
    }

    section {
        padding: 5.5rem 0;
    }

    .soe-grid,
    .services-grid {
        gap: 1.4rem;
    }

    .contact-form {
        padding: 1.8rem;
    }

    .overview-table th {
        width: 40%;
    }
}
