:root {
    --ink: #06101f;
    --navy: #081a35;
    --navy-soft: #0d2749;
    --blue: #176bff;
    --blue-bright: #258cff;
    --cyan: #18d5e8;
    --violet: #765cff;

    --white: #ffffff;
    --surface: #f6f9fd;
    --surface-blue: #eef5ff;

    --line: #dce6f2;
    --muted: #64758a;
    --text: #14243a;

    --shell: 1280px;

    --gradient:
        linear-gradient(
            120deg,
            #176bff,
            #258cff 48%,
            #18d5e8
        );
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--white);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Sans",
        "Yu Gothic",
        Meiryo,
        sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

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

button {
    cursor: pointer;
}

.site-main {
    min-height: 70vh;
}

/* Header */

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    background: rgba(5, 17, 35, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.nav-shell {
    width: min(calc(100% - 40px), var(--shell));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 38px;
}

.brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: 210px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
}

.brand-symbol,
.brand-copy {
    display: none;
}

.primary-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a {
    position: relative;
    padding: 29px 13px 26px;
    color: #b8c8db;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 17px;
    left: 13px;
    height: 2px;
    background: var(--gradient);
    border-radius: 10px;
}

.nav-account {
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn {
    min-height: 43px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 800;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-login {
    color: #dce8f5;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.btn-primary {
    color: var(--white);
    background: var(--gradient);
    box-shadow: 0 10px 25px rgba(23, 107, 255, .25);
}

.account-link {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--white);
}

.account-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--gradient);
    border-radius: 50%;
    font-weight: 900;
}

.account-details {
    max-width: 145px;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.account-details strong {
    font-size: 12px;
}

.account-details small {
    color: #8095ad;
    font-size: 9px;
}

.plan-badge {
    padding: 4px 8px;
    color: #8eeeff;
    background: rgba(24, 213, 232, .10);
    border: 1px solid rgba(24, 213, 232, .22);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.dashboard-link,
.logout-button {
    padding: 7px 4px;
    color: #91a5bd;
    background: transparent;
    border: 0;
    font-size: 11px;
    font-weight: 700;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    display: none;
    background: transparent;
    border: 0;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    margin: 5px 0;
    display: block;
    background: var(--white);
    border-radius: 5px;
}

/* Footer */

.site-footer {
    color: #9db0c7;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(23, 107, 255, .18),
            transparent 30%
        ),
        #051123;
}

.footer-shell {
    width: min(calc(100% - 40px), var(--shell));
    margin: 0 auto;
    padding: 70px 0 50px;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 55px;
}

.footer-brand-name {
    color: var(--white);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: .12em;
}

.footer-kana {
    color: var(--cyan);
    font-size: 10px;
    letter-spacing: .3em;
}

.footer-brand p {
    max-width: 340px;
    margin-top: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-column h3 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 13px;
}

.footer-column a {
    color: #8da2ba;
    font-size: 13px;
}

.footer-column a:hover {
    color: var(--cyan);
}

.footer-bottom {
    width: min(calc(100% - 40px), var(--shell));
    margin: 0 auto;
    padding: 22px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #617991;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 12px;
}

.footer-bottom a {
    color: #b7c9dd;
}

/* ==================================================
   Shared footer brand logo
   ================================================== */

.footer-logo-link {
    width: 215px;
    max-width: 100%;
    display: block;
}

.footer-logo {
    width: 215px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.footer-operator {
    color: #b7c9dd;
}

@media (max-width: 760px) {

    .footer-logo-link,
    .footer-logo {
        width: 180px;
    }
}

/* ==================================================
   Shared header navigation visibility
   ================================================== */

/* Template navigation */

.site-header .main-nav a[href*="/templates"] {
    color: #7de4f0;
}

.site-header .main-nav a[href*="/templates"]:hover,
.site-header .main-nav a[href*="/templates"].active {
    color: #ffffff;
}


/* Dashboard */

.site-header .dashboard-link {
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #176bff,
            #18a9df
        );
    border: 1px solid
        rgba(255, 255, 255, .18);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


/* Logout */

.site-header .logout-button {
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #102d4e;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform .2s ease,
        color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

@media (hover: hover) and (pointer: fine) {

    .site-header .dashboard-link:hover {
        transform: translateY(-2px);
        box-shadow:
            0 8px 20px
            rgba(23, 107, 255, .30);
    }

    .site-header .logout-button:hover {
        color: #ffffff;
        background: #176bff;
        border-color: #176bff;
        transform: translateY(-2px);
        box-shadow:
            0 8px 20px
            rgba(23, 107, 255, .25);
    }
}


/* Mobile / touch */

@media (hover: none) {

    .site-header .dashboard-link:active {
        transform: scale(.97);
    }

    .site-header .logout-button:active {
        color: #ffffff;
        background: #176bff;
        border-color: #176bff;
        transform: scale(.97);
    }
}


/* RYUKTO_J86C_HEADER_BUTTON_ALIGNMENT */

@media (min-width: 981px) {
    .site-header .nav-account {
        display: flex;
        align-items: center;
    }

    .site-header .nav-account > form {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .site-header .dashboard-link,
    .site-header .logout-button {
        box-sizing: border-box;
        height: 36px;
        min-height: 36px;
        padding: 0 14px;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        vertical-align: middle;
    }
}


/* RYUKTO_J88_HEADER_ALIGNMENT */

@media (min-width: 981px) {
    .site-header .nav-account {
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .site-header .nav-account > form {
        display: flex;
        align-items: center;
        align-self: center;
        height: 36px;
        margin: 0;
        padding: 0;
    }

    .site-header .nav-account > .dashboard-link,
    .site-header .nav-account > form > .logout-button {
        box-sizing: border-box;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: center;
        height: 36px;
        min-height: 36px;
        max-height: 36px;
        margin: 0;
        padding: 0 14px;
        line-height: 36px;
        vertical-align: middle;
        position: relative;
        top: 0;
    }
}
