:root {
    color-scheme: dark;
    --bg: #080a12;
    --bg-2: #101325;
    --panel: rgba(17, 22, 44, 0.76);
    --panel-strong: rgba(21, 28, 52, 0.92);
    --line: rgba(128, 248, 255, 0.24);
    --text: #f6fbff;
    --muted: #b7c4d8;
    --cyan: #24f5ff;
    --magenta: #ff3bf4;
    --green: #a9ff38;
    --yellow: #ffe950;
    --danger: #ff7070;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
    --radius: 8px;
    font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(36, 245, 255, 0.2), transparent 28rem),
        radial-gradient(circle at 84% 0%, rgba(255, 59, 244, 0.24), transparent 30rem),
        linear-gradient(135deg, #070812 0%, #151225 48%, #071315 100%);
    line-height: 1.7;
}

a {
    color: inherit;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    transform: translateY(-160%);
    background: var(--cyan);
    color: #021015;
    padding: 0.5rem 0.75rem;
    z-index: 20;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(7, 9, 18, 0.84);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    min-width: max-content;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(36, 245, 255, 0.72);
    border-radius: var(--radius);
    color: var(--cyan);
    font-weight: 900;
    box-shadow: 0 0 20px rgba(36, 245, 255, 0.34), inset 0 0 18px rgba(255, 59, 244, 0.16);
}

.brand strong,
.footer-brand {
    display: block;
    font-size: 1.03rem;
    font-weight: 850;
}

.brand small {
    display: block;
    color: var(--green);
    font-size: 0.72rem;
}

.global-nav {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.global-nav a,
.ghost-button,
.link-matrix a,
.mini-links a,
.carrier-chip {
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.global-nav a {
    padding: 0.54rem 0.72rem;
    color: var(--muted);
    white-space: nowrap;
}

.global-nav a:hover,
.ghost-button:hover,
.link-matrix a:hover,
.mini-links a:hover,
.carrier-chip:hover {
    border-color: var(--cyan);
    background: rgba(36, 245, 255, 0.12);
    transform: translateY(-1px);
}

main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.breadcrumbs {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.38);
}

.hero {
    min-height: clamp(560px, 78vh, 820px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.74fr);
    align-items: center;
    gap: 2rem;
    padding: clamp(2.2rem, 6vw, 5.5rem) 0 3rem;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 calc(50% - 50vw);
    background:
        linear-gradient(90deg, rgba(8, 10, 18, 0.9) 0%, rgba(8, 10, 18, 0.64) 42%, rgba(8, 10, 18, 0.36) 100%),
        url("/assets/img/neon-sim-hero.png") right center / min(980px, 68vw) auto no-repeat;
    z-index: -1;
    opacity: 0.9;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 850;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    line-height: 1.22;
    margin: 0;
}

h1 {
    font-size: clamp(2.8rem, 4.8rem, 5.4rem);
    text-shadow: 0 0 26px rgba(36, 245, 255, 0.36), 0 0 44px rgba(255, 59, 244, 0.26);
}

.page-hero h1 {
    font-size: clamp(2.1rem, 3rem, 4rem);
}

h2 {
    font-size: clamp(1.45rem, 2rem, 2.4rem);
}

h3 {
    font-size: 1.16rem;
}

.hero-copy p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.cta-button {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 52px;
    gap: 0.05rem;
    padding: 0.82rem 1rem;
    color: #051012;
    background: linear-gradient(135deg, var(--cyan), var(--green) 54%, var(--yellow));
    border: 0;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(36, 245, 255, 0.34), 0 0 44px rgba(169, 255, 56, 0.18);
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

.cta-button span {
    font-size: 0.74rem;
    font-weight: 800;
    opacity: 0.78;
}

.cta-button:hover {
    transform: translateY(-2px);
    filter: saturate(1.15);
}

.cta-disabled {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    cursor: not-allowed;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0.82rem 1rem;
    color: var(--text);
}

.signal-panel,
.glass-card,
.notice,
.tool-shell {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(17, 22, 44, 0.8), rgba(12, 16, 32, 0.64));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    border-radius: var(--radius);
}

.signal-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    align-self: end;
}

.signal-panel div {
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(36, 245, 255, 0.18);
}

.signal-panel span {
    display: block;
    color: var(--magenta);
    font-weight: 900;
    font-size: 0.76rem;
}

.signal-panel strong {
    display: block;
    margin-top: 0.2rem;
}

.page-hero {
    padding: clamp(2rem, 6vw, 4rem) 0 1.5rem;
}

.page-hero.compact {
    max-width: 850px;
}

.page-hero p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.02rem;
}

.section {
    padding: 1.5rem 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-grid,
.compare-grid,
.two-column,
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.two-column {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-card,
.notice {
    padding: 1rem;
}

.route-card {
    min-height: 210px;
    text-decoration: none;
}

.route-card span,
.check-card span,
.rank-number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    color: #071015;
    background: var(--magenta);
    font-weight: 900;
    box-shadow: 0 0 24px rgba(255, 59, 244, 0.28);
}

.route-card h3,
.check-card h3,
.glass-card h2,
.glass-card h3 {
    margin-top: 0.8rem;
}

.route-card p,
.check-card p,
.glass-card p,
.notice p,
.site-footer p,
.meta-list {
    color: var(--muted);
}

.link-matrix,
.carrier-strip,
.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.link-matrix a,
.mini-links a,
.carrier-chip {
    padding: 0.8rem 0.95rem;
    color: var(--text);
}

.carrier-strip .cta-button {
    min-width: min(100%, 230px);
}

.comparison-stack {
    display: grid;
    gap: 1rem;
}

.carrier-rank {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) minmax(240px, 0.34fr);
    gap: 1rem;
    align-items: start;
}

.rank-number {
    background: linear-gradient(135deg, var(--magenta), var(--cyan));
}

.rank-side {
    display: grid;
    gap: 0.65rem;
}

.status-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: var(--radius);
    padding: 0.28rem 0.55rem;
    font-weight: 800;
    font-size: 0.78rem;
}

.badge-ok {
    color: #031a10;
    background: var(--green);
}

.badge-warn {
    color: #201503;
    background: var(--yellow);
}

.badge-danger {
    color: #260606;
    background: var(--danger);
}

.badge-muted {
    color: var(--text);
    background: rgba(255, 255, 255, 0.14);
}

.check-list {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.check-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(36, 245, 255, 0.72);
}

.check-list.danger li::before {
    background: var(--danger);
    box-shadow: 0 0 14px rgba(255, 112, 112, 0.72);
}

.meta-list {
    display: grid;
    gap: 0.7rem;
}

.meta-list div {
    display: grid;
    gap: 0.2rem;
}

.meta-list dt {
    color: var(--text);
    font-weight: 800;
}

.meta-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.sub-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.tool-shell {
    padding: 1rem;
    margin: 1.5rem 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

label {
    display: grid;
    gap: 0.35rem;
    color: var(--text);
    font-weight: 800;
}

input,
select {
    width: 100%;
    min-height: 48px;
    padding: 0.68rem 0.72rem;
    border-radius: var(--radius);
    border: 1px solid rgba(36, 245, 255, 0.28);
    background: rgba(2, 7, 18, 0.82);
    color: var(--text);
    font: inherit;
}

.form-grid .cta-button {
    align-self: end;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.result-card {
    border-color: rgba(169, 255, 56, 0.28);
}

.result-card strong {
    color: var(--green);
}

.result-wide {
    grid-column: 1 / -1;
}

.result-value {
    display: block;
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--cyan);
}

.prose h2 + p {
    margin-top: 0.35rem;
}

.notice {
    border-color: rgba(255, 233, 80, 0.25);
}

.verification-notice {
    border-color: rgba(36, 245, 255, 0.28);
}

.prelaunch-notice {
    margin: 1rem 0;
    border-color: rgba(255, 233, 80, 0.34);
}

.prelaunch-strong {
    border-color: rgba(255, 112, 112, 0.48);
    background: linear-gradient(145deg, rgba(70, 18, 28, 0.82), rgba(28, 18, 34, 0.72));
}

.pr-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    margin: 1rem 0;
}

.pr-notice strong {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--yellow);
    color: #141000;
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
    background: rgba(5, 7, 16, 0.9);
}

.footer-grid {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-footer h2 {
    font-size: 1rem;
}

.site-footer ul {
    padding-left: 1.1rem;
    color: var(--muted);
}

.footer-notice {
    border-left: 1px solid rgba(36, 245, 255, 0.24);
    padding-left: 1rem;
}

@media (max-width: 900px) {
    .header-inner {
        min-height: auto;
        padding: 0.8rem 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .global-nav {
        width: 100%;
        padding-bottom: 0.2rem;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 720px;
        align-items: end;
        padding-top: 2.4rem;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(8, 10, 18, 0.55) 0%, rgba(8, 10, 18, 0.76) 44%, rgba(8, 10, 18, 0.94) 100%),
            url("/assets/img/neon-sim-hero.png") center top / 760px auto no-repeat;
    }

    .card-grid,
    .compare-grid,
    .two-column,
    .footer-grid,
    .form-grid,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .footer-notice {
        border-left: 0;
        padding-left: 0;
    }

    .carrier-rank {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .rank-side {
        grid-column: 1 / -1;
    }

    .sub-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    main,
    .header-inner,
    .footer-grid {
        width: min(100% - 1rem, 1180px);
    }

    h1 {
        font-size: 2.55rem;
    }

    .hero {
        min-height: 690px;
    }

    .hero-actions,
    .cta-button,
    .ghost-button {
        width: 100%;
    }

    .cta-button,
    .ghost-button {
        align-items: flex-start;
    }
}
