:root {
    --bg-page: #07111c;
    --bg-surface: #0d1b2a;
    --bg-card: rgba(17, 33, 52, 0.88);
    --bg-soft: rgba(93, 169, 255, 0.08);
    --text-main: #edf5ff;
    --text-muted: #aac0d8;
    --text-soft: #7f95ad;
    --line: rgba(150, 193, 235, 0.18);
    --primary: #79d2ff;
    --primary-strong: #3fb4ff;
    --accent: #ffdd7a;
    --danger: #ff7f8e;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.24);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(63, 180, 255, 0.2), transparent 38%),
        radial-gradient(circle at 85% 20%, rgba(255, 221, 122, 0.13), transparent 28%),
        linear-gradient(180deg, #08131f 0%, #07111c 100%);
    font-family: "Noto Sans JP", "Bricolage Grotesque", sans-serif;
    line-height: 1.75;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100vw - 32px));
}

.topbar-gradient {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(5, 13, 22, 0.78);
    border-bottom: 1px solid rgba(121, 210, 255, 0.12);
}

.navbar.custom-nav {
    padding: 14px 0;
}

.navbar.custom-nav .navbar-brand img {
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(63, 180, 255, 0.25);
}

.brand-gradient {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

.navbar.custom-nav .nav-link {
    color: var(--text-muted);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    transition: 0.22s ease;
}

.navbar.custom-nav .nav-link:hover {
    color: var(--text-main);
    background: rgba(121, 210, 255, 0.1);
}

.nav-cta-btn,
.language-btn {
    border-radius: 999px;
    padding: 0.72rem 1.1rem;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #ffc85b 100%);
    color: #251700;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(255, 200, 91, 0.2);
}

.nav-cta-btn:hover {
    color: #251700;
    transform: translateY(-1px);
}

.language-btn {
    background: rgba(121, 210, 255, 0.09);
    border-color: rgba(121, 210, 255, 0.18);
    color: var(--text-main);
}

.language-btn:hover {
    background: rgba(121, 210, 255, 0.16);
    color: var(--text-main);
}

.dropdown-menu {
    background: rgba(9, 18, 31, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.55rem;
}

.dropdown-item {
    color: var(--text-main);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
}

.dropdown-item:hover {
    background: rgba(121, 210, 255, 0.12);
    color: var(--text-main);
}

.navbar-toggler {
    border-color: rgba(121, 210, 255, 0.22);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28237,245,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

main {
    overflow: hidden;
}

.supernatural-home {
    padding-bottom: 32px;
}

.ss-section,
.ss-hero {
    position: relative;
    padding: 88px 0;
}

.ss-surface::before,
.ss-hero::before {
    content: "";
    position: absolute;
    inset: 18px;
    background: linear-gradient(180deg, rgba(121, 210, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(121, 210, 255, 0.08);
    border-radius: 32px;
    pointer-events: none;
}

.ss-hero {
    padding-top: 72px;
}

.ss-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(121, 210, 255, 0.22);
    background: rgba(121, 210, 255, 0.08);
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ss-hero-title {
    font-family: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.08;
    margin: 0 0 1rem;
    max-width: 12ch;
}

.ss-hero-lead,
.ss-section-heading p,
.ss-longform p,
.accordion-body p,
.ss-route-card p,
.ss-resource-card p,
.ss-entity-card p,
.ss-step-card p,
.ss-stat-card p {
    color: var(--text-muted);
}

.ss-hero-lead {
    max-width: 62ch;
    font-size: 1.03rem;
}

.ss-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.5rem 0;
}

.ss-chip {
    display: inline-flex;
    padding: 0.48rem 0.82rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 0.9rem;
}

.ss-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 1.6rem 0 1rem;
}

.ss-btn-primary,
.ss-btn-secondary {
    padding: 0.92rem 1.35rem;
    border-radius: 18px;
    font-weight: 700;
}

.ss-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #06111d;
    box-shadow: 0 18px 34px rgba(63, 180, 255, 0.24);
}

.ss-btn-secondary {
    border: 1px solid rgba(121, 210, 255, 0.22);
    color: var(--text-main);
    background: rgba(121, 210, 255, 0.05);
}

.ss-hero-note,
.ss-caption,
.ss-card-tip {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.ss-hero-media,
.ss-feature-media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(7, 17, 28, 0.86);
    border: 1px solid rgba(121, 210, 255, 0.14);
    box-shadow: var(--shadow-lg);
}

.ss-hero-media img,
.ss-feature-media img,
.ss-entity-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ss-feature-media img {
    aspect-ratio: 16 / 9;
}

.ss-media-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: linear-gradient(180deg, rgba(6, 17, 29, 0), rgba(6, 17, 29, 0.92));
    padding: 40px 16px 14px;
    border-radius: 18px;
    color: var(--text-main);
    font-size: 0.92rem;
}

.ss-section-heading {
    max-width: 780px;
    margin: 0 auto 32px;
    text-align: center;
}

.ss-section-heading.text-start {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.ss-section-heading h2 {
    margin: 0 0 0.85rem;
    font-family: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.ss-stat-card,
.ss-route-card,
.ss-entity-card,
.ss-step-card,
.ss-resource-card,
.ss-longform-block {
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.ss-stat-card,
.ss-route-card,
.ss-resource-card,
.ss-longform-block {
    padding: 28px;
}

.ss-step-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 20px;
    padding: 24px;
    align-items: start;
}

.ss-step-number {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(121, 210, 255, 0.18), rgba(255, 221, 122, 0.18));
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ss-stat-value {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.ss-route-kicker,
.ss-entity-meta {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ss-route-card h3,
.ss-entity-card h3,
.ss-step-card h3,
.ss-resource-card h3,
.ss-longform-block h3,
.ss-stat-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
}

.ss-route-points,
.ss-detail-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.15rem;
}

.ss-route-points li,
.ss-detail-list li {
    position: relative;
    padding-left: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.ss-route-points li::before,
.ss-detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    transform: translateY(-50%);
}

.ss-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-weight: 700;
}

.ss-inline-link::after {
    content: "→";
    color: var(--primary);
}

.ss-entity-card {
    overflow: hidden;
}

.ss-entity-card img {
    aspect-ratio: 4 / 3;
}

.ss-entity-body {
    padding: 24px;
}

.ss-longform {
    display: grid;
    gap: 24px;
}

.ss-faq .accordion-item {
    background: rgba(17, 33, 52, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg) !important;
    margin-bottom: 16px;
    overflow: hidden;
}

.ss-faq .accordion-button {
    background: transparent;
    color: var(--text-main);
    box-shadow: none;
    font-weight: 700;
    padding: 1.2rem 1.35rem;
}

.ss-faq .accordion-button:not(.collapsed) {
    background: rgba(121, 210, 255, 0.06);
    color: var(--text-main);
}

.ss-faq .accordion-button::after {
    filter: invert(1);
}

.ss-faq .accordion-body {
    background: rgba(7, 17, 28, 0.42);
    color: var(--text-muted);
}

footer.footer-gradient {
    margin-top: 40px;
    background: rgba(4, 11, 18, 0.95);
    border-top: 1px solid rgba(121, 210, 255, 0.12);
}

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

footer .text-muted:hover {
    color: var(--text-main) !important;
}

.footer-divider {
    border-color: rgba(121, 210, 255, 0.12);
}

.max-w-520 {
    max-width: 520px;
}

.display-1,
.display-4 {
    font-family: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
}

.card,
.alert {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--line);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #06111d;
    border: 0;
}

.btn-outline-secondary {
    border-color: rgba(121, 210, 255, 0.26);
    color: var(--text-main);
}

.btn-outline-secondary:hover {
    background: rgba(121, 210, 255, 0.1);
    color: var(--text-main);
}

@media (max-width: 991.98px) {
    .navbar.custom-nav .navbar-collapse {
        background: rgba(7, 17, 28, 0.96);
        border: 1px solid rgba(121, 210, 255, 0.1);
        border-radius: 20px;
        padding: 18px;
        margin-top: 16px;
    }

    .ss-step-card {
        grid-template-columns: 1fr;
    }

    .ss-step-number {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 767.98px) {
    .ss-section,
    .ss-hero {
        padding: 64px 0;
    }

    .ss-surface::before,
    .ss-hero::before {
        inset: 10px;
        border-radius: 24px;
    }

    .ss-hero-title {
        max-width: none;
    }

    .ss-stat-card,
    .ss-route-card,
    .ss-resource-card,
    .ss-longform-block,
    .ss-entity-body {
        padding: 22px;
    }

    .ss-hero-actions {
        flex-direction: column;
    }

    .ss-btn-primary,
    .ss-btn-secondary {
        width: 100%;
        text-align: center;
    }
}
