@import url("https://cdn.jsdelivr.net/npm/gen-interface-jp@0.6.2/cdn/400.css");
@import url("https://cdn.jsdelivr.net/npm/gen-interface-jp@0.6.2/cdn/500.css");
@import url("https://cdn.jsdelivr.net/npm/gen-interface-jp@0.6.2/cdn/700.css");
@import url("https://cdn.jsdelivr.net/npm/gen-interface-jp@0.6.2/cdn/display-700.css");

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    color: var(--color-ink);
    font-family: var(--font-ui);
    background: #f0eeee;
}

a {
    color: var(--color-accent);
    border-bottom: 1px solid rgb(158 38 0 / 35%);
    text-decoration: none;
}

a:hover {
    background: rgb(158 38 0 / 8%);
    border-color: rgb(158 38 0 / 68%);
    color: var(--color-accent-dark);
}

.site-nav__link,
.button,
.tabs__link {
    border-bottom: 0;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fbf6f1;
    border-bottom: 1px solid rgb(158 38 0 / 25%);
    box-shadow: 0 8px 20px rgb(0 0 0 / 8%);
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.site-header h1 {
    margin: 0;
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-header h1 a {
    border: 0;
    color: var(--color-accent);
}

.site-header h1 a:hover {
    background: transparent;
    color: var(--color-accent-dark);
}

.site-nav {
    display: flex;
}

.site-nav__link {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    gap: 0.35em;
}

.site-nav__link i {
    margin-right: 0;
}

.site-nav--header {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.site-nav--header::-webkit-scrollbar {
    display: none;
}

.site-nav--header .site-nav__link {
    border: 1px solid rgb(158 38 0 / 35%);
    border-radius: 999px;
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgb(255 255 255 / 62%);
}

.site-nav--header .site-nav__link:hover {
    background: rgb(158 38 0 / 14%);
}

.site-nav__link.is-active {
    background: rgb(158 38 0 / 16%);
    border-color: rgb(158 38 0 / 65%);
    color: var(--color-accent-dark);
}

.layout__container {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 16px 32px;
}

.site-footer {
    display: none;
    flex: 0 0 auto;
}

.site-footer__cat {
    display: none;
}

.site-footer__cat-button {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.site-footer__tour-menu {
    display: none;
}

.site-footer__nav-guide {
    display: none;
}

.site-nav--footer {
    display: none;
}

.card {
    position: relative;
    background: linear-gradient(180deg, #fffdfa, #fbf7f2);
    border: 2px solid var(--color-line);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
}

.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.card p {
    margin: 0.45rem 0;
}

.grid--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.93rem;
}

.form__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
}

.form__remember input {
    width: auto;
    margin: 0;
    accent-color: var(--color-accent);
}

small {
    display: block;
    margin-bottom: 10px;
    color: var(--color-muted);
    font-size: 0.82rem;
}

input,
select,
button {
    font: inherit;
}

input,
select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #c7b8a8;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--color-ink);
    background: #fff;
}

input:focus,
select:focus {
    outline: 0;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgb(158 38 0 / 14%);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    border: 2px solid var(--color-accent);
    border-radius: 10px;
    padding: 9px 15px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    line-height: 1.35;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.button:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
}

.button--secondary {
    background: #fff;
    color: var(--color-accent);
}

.button--secondary:hover {
    color: var(--color-accent-dark);
    background: rgb(158 38 0 / 10%);
}


.button:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    pointer-events: none;
}

html.is-app-shell-loading .layout__container {
    opacity: 0.76;
    transition: opacity 0.12s ease;
}

.app-shell-loading-indicator {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.16s ease, visibility 0s linear 0.16s;
    visibility: hidden;
    z-index: 1800;
}

.app-shell-loading-indicator.is-visible {
    opacity: 1;
    transition-delay: 0s;
    visibility: visible;
}

.app-shell-loading-indicator__panel {
    align-items: center;
    background: #fffdfa;
    border: 1px solid #d9ccbf;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgb(0 0 0 / 16%);
    color: #4f463e;
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.52rem 0.75rem;
}

.app-shell-loading-indicator__spinner {
    animation: app-shell-loading-spin 0.65s linear infinite;
    border: 2px solid rgb(158 38 0 / 25%);
    border-radius: 50%;
    border-top-color: var(--color-accent);
    box-sizing: border-box;
    display: inline-block;
    height: 0.95rem;
    width: 0.95rem;
}

.app-shell-loading-indicator__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

@keyframes app-shell-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

:root::view-transition-group(root) {
    animation: none;
}

:root::view-transition-image-pair(root) {
    isolation: auto;
}

:root::view-transition-old(root) {
    animation: app-shell-view-old 0.18s ease both;
    mix-blend-mode: normal;
}

:root::view-transition-new(root) {
    animation: app-shell-view-new 0.2s ease both;
    mix-blend-mode: normal;
}

@keyframes app-shell-view-old {
    to {
        opacity: 0;
    }
}

@keyframes app-shell-view-new {
    from {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    :root::view-transition-old(root),
    :root::view-transition-new(root) {
        animation: none !important;
    }
}

.flash-stack {
    display: grid;
    gap: 8px;
    justify-items: center;
    left: 0;
    padding: 0 12px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: calc(76px + env(safe-area-inset-top));
    z-index: 1600;
}

.flash {
    align-items: flex-start;
    border-radius: 10px;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    font-size: 0.92rem;
}

.flash__icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    min-height: 1.45em;
    width: 1.1em;
}

.flash__message {
    min-width: 0;
}

.flash-stack .flash {
    margin-bottom: 0;
    pointer-events: auto;
    transition: opacity 180ms ease, transform 180ms ease;
}

.flash-stack .flash.is-flash-dismissing {
    opacity: 0;
    transform: translateY(-8px);
}

.flash--success {
    background: #fff9f3;
    border-color: #d9ccbf;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgb(0 0 0 / 18%);
    color: #4f463e;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-left: auto;
    margin-right: auto;
    max-width: 460px;
    padding: 0.82rem 0.88rem;
    width: min(460px, calc(100vw - 24px));
}

.flash--error {
    background: var(--color-error-bg);
    border-color: var(--color-error-line);
}

.flash--warning {
    background: var(--color-warning-bg);
    border-color: var(--color-warning-line);
}

.flash--info {
    background: var(--color-info-bg);
    border-color: var(--color-info-line);
}

.release-notice {
    align-items: center;
    background: rgb(25 20 16 / 48%);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 16px;
    position: fixed;
    z-index: 1800;
}

.release-notice.is-release-notice-closing {
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.release-notice__backdrop {
    inset: 0;
    position: absolute;
}

.release-notice__panel {
    background: #fffdfa;
    border: 1px solid #d9ccbf;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgb(25 20 16 / 24%);
    color: #3f3028;
    max-height: calc(100svh - 32px);
    max-width: 520px;
    overflow: auto;
    padding: 1.1rem;
    position: relative;
    width: min(520px, 100%);
}

.release-notice__eyebrow {
    color: #7a5c48;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.release-notice__title {
    color: #4b2f21;
    font-family: var(--font-display);
    font-size: 1.22rem;
    line-height: 1.35;
    margin: 0 0 0.72rem;
}

.release-notice__body {
    font-size: 0.94rem;
    line-height: 1.7;
}

.release-notice__list {
    margin: 0;
    padding-left: 1.2rem;
}

.release-notice__list li + li {
    margin-top: 0.42rem;
}

.release-notice__platform {
    font-weight: 700;
}

.release-notice__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.release-notice__button {
    margin: 0;
    width: auto;
}

html.is-release-notice-open body {
    overflow: hidden;
}
.dashboard__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard__head h2 {
    margin: 0;
}

.dashboard__head .dashboard__title {
    font-family: var(--font-display);
    font-weight: 700;
}

.dashboard {
    --dashboard-sticky-top: 62px;
    --dashboard-sticky-stack-height: 0px;
    --dashboard-table-head-top: 0px;
    margin-bottom: 16px;
}

.save-feedback {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 2px;
}

.save-feedback__button {
    width: auto;
}

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

    .site-header__inner {
        align-items: center;
        flex-direction: row;
    }

    .site-nav--header {
        justify-content: flex-end;
        width: auto;
    }

    .site-nav--header .site-nav__link {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .site-header {
        display: none;
    }

    .site-footer {
        background: rgb(251 246 241 / 96%);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgb(158 38 0 / 25%);
        bottom: 0;
        display: block;
        left: 0;
        padding: 4px calc(8px + env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
        position: fixed;
        right: 0;
        z-index: 130;
    }

    .site-footer__cat {
        align-items: center;
        color: #473426;
        display: inline-flex;
        font-size: 1.3rem;
        justify-content: center;
        line-height: 1;
        position: absolute;
        right: max(20px, calc(50% - 310px));
        top: -1.4rem;
    }

    .site-footer__cat-icon {
        display: inline-block;
        transform: scaleX(-1);
    }

    .site-footer__cat-button {
        background: radial-gradient(circle at 40% 30%, #fffdfa, #fff4e7 72%);
        border: 1px solid rgb(158 38 0 / 28%);
        border-radius: 999px;
        box-shadow: 0 8px 20px rgb(25 20 16 / 16%);
        height: 38px;
        top: -1.78rem;
        transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
        width: 38px;
        z-index: 2;
    }

    .site-footer__cat-callout {
        background: #3d2a1d;
        border-radius: 999px;
        box-shadow: 0 6px 16px rgb(25 20 16 / 18%);
        color: #fffdfa;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        line-height: 1;
        padding: 0.32rem 0.42rem;
        position: absolute;
        right: 31px;
        top: 50%;
        transform: translateY(-50%);
        white-space: nowrap;
    }

    .site-footer__cat-callout::after {
        background: #3d2a1d;
        content: "";
        height: 7px;
        position: absolute;
        right: -3px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        width: 7px;
    }

    .site-footer__cat-button:hover {
        background: #fff2e7;
        box-shadow: 0 10px 24px rgb(25 20 16 / 22%);
        color: #7a2d18;
        transform: translateY(-1px);
    }

    .site-footer__cat-button:hover .site-footer__cat-icon,
    .site-footer__cat-button:focus-visible .site-footer__cat-icon {
        animation: site-footer-cat-wiggle 460ms ease;
    }

    .site-footer__cat-button:focus-visible {
        outline: 3px solid rgb(180 43 11 / 28%);
        outline-offset: 3px;
    }

    .site-footer__tour-menu {
        animation: site-footer-tour-menu-in 160ms ease;
        background: #fffdfa;
        border: 1px solid #d9ccbf;
        border-radius: 14px;
        bottom: calc(100% + 38px);
        box-shadow: 0 18px 42px rgb(25 20 16 / 22%);
        box-sizing: border-box;
        color: #3f3028;
        max-width: calc(100vw - 28px);
        padding: 0.78rem;
        position: absolute;
        right: max(14px, calc(50% - 316px));
        width: 290px;
        z-index: 3;
    }

    .site-footer__tour-menu.is-open {
        display: block;
    }

    .site-footer__tour-menu::after {
        background: #fffdfa;
        border-bottom: 1px solid #d9ccbf;
        border-right: 1px solid #d9ccbf;
        bottom: -7px;
        content: "";
        height: 12px;
        position: absolute;
        right: 24px;
        transform: rotate(45deg);
        width: 12px;
    }

    .site-footer__tour-menu-title {
        color: #4b2f21;
        font-size: 0.86rem;
        font-weight: 700;
        line-height: 1.35;
        margin: 0 0 0.54rem;
    }

    .site-footer__tour-menu-actions {
        display: grid;
        gap: 0.42rem;
    }

    .site-footer__tour-option {
        appearance: none;
        background: #f8efe8;
        border: 1px solid #dfd4c9;
        border-radius: 10px;
        color: #3f3028;
        cursor: pointer;
        font: inherit;
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.35;
        min-height: 42px;
        padding: 0.5rem 0.58rem;
        text-align: left;
    }

    .site-footer__tour-option:hover,
    .site-footer__tour-option:focus-visible {
        background: #fff3e8;
        border-color: rgb(158 38 0 / 45%);
        outline: 0;
    }

    .site-footer__tour-option:disabled {
        cursor: wait;
        opacity: 0.62;
    }

    .site-footer__tour-menu-message {
        color: #626a79;
        display: none;
        font-size: 0.76rem;
        line-height: 1.45;
        margin: 0;
    }

    .site-footer__tour-menu-message:not(:empty) {
        display: block;
        margin-top: 0.52rem;
    }

    .site-footer__tour-menu-message[data-status="error"] {
        color: #b42b0b;
    }

    .site-footer__nav-guide {
        animation: site-footer-nav-guide-in 160ms ease;
        background: #fffdfa;
        border: 1px solid #d9ccbf;
        border-radius: 14px;
        bottom: calc(100% + 14px);
        box-shadow: 0 18px 42px rgb(25 20 16 / 22%);
        box-sizing: border-box;
        color: #3f3028;
        display: block;
        left: 50%;
        max-width: calc(100vw - 28px);
        padding: 0.76rem 2.45rem 0.76rem 0.82rem;
        position: absolute;
        transform: translateX(-50%);
        width: 286px;
        z-index: 4;
    }

    .site-footer__nav-guide::after {
        background: #fffdfa;
        border-bottom: 1px solid #d9ccbf;
        border-right: 1px solid #d9ccbf;
        bottom: -7px;
        content: "";
        height: 12px;
        left: var(--site-footer-nav-guide-arrow-left, 50%);
        position: absolute;
        transform: translateX(-50%) rotate(45deg);
        width: 12px;
    }

    .site-footer__nav-guide-title {
        color: #4b2f21;
        font-size: 0.86rem;
        font-weight: 700;
        line-height: 1.35;
        margin: 0 0 0.28rem;
    }

    .site-footer__nav-guide-body {
        color: #626a79;
        font-size: 0.76rem;
        line-height: 1.45;
        margin: 0;
    }

    .site-footer__nav-guide-close {
        align-items: center;
        appearance: none;
        background: #f4e9df;
        border: 1px solid #dfd4c9;
        border-radius: 50%;
        color: #4b2f21;
        cursor: pointer;
        display: inline-flex;
        font: inherit;
        font-size: 0.92rem;
        height: 28px;
        justify-content: center;
        line-height: 1;
        padding: 0;
        position: absolute;
        right: 0.62rem;
        top: 0.62rem;
        width: 28px;
    }

    .site-nav--footer .site-nav__link.is-user-tour-guide-target {
        background: #fff2e7;
        box-shadow: 0 0 0 3px rgb(180 43 11 / 20%);
        color: #3d2a1d;
    }

    @keyframes site-footer-nav-guide-in {
        from {
            opacity: 0;
            transform: translate(-50%, 6px);
        }

        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }

    @keyframes site-footer-tour-menu-in {
        from {
            opacity: 0;
            transform: translateY(6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    @keyframes site-footer-cat-wiggle {
        0%, 100% {
            transform: scaleX(-1) rotate(0deg);
        }

        30% {
            transform: scaleX(-1) rotate(-12deg);
        }

        68% {
            transform: scaleX(-1) rotate(10deg);
        }
    }

    .site-nav--footer {
        display: grid;
        gap: 4px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin: 0 auto;
        max-width: 680px;
        width: 100%;
    }

    .site-nav--footer.site-nav--items-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav--footer.site-nav--items-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-nav--footer .site-nav__link {
        border: 0;
        border-radius: 12px;
        color: #4d3a2c;
        flex-direction: column;
        font-size: 0.62rem;
        font-weight: 700;
        gap: 3px;
        line-height: 1.1;
        min-height: 56px;
        padding: 5px 2px;
        text-align: center;
    }

    .site-nav--footer .site-nav__link i {
        color: #473426;
        font-size: 1.14rem;
    }

    .site-nav--footer .site-nav__link:hover {
        background: rgb(158 38 0 / 8%);
    }

    .site-nav--footer .site-nav__link.is-active {
        background: rgb(158 38 0 / 16%);
        color: #3d2a1d;
    }

    .layout__container {
        padding: 14px 6px calc(116px + env(safe-area-inset-bottom));
    }

    .card {
        border-radius: 13px;
        padding: 9px;
    }

    .button {
        width: 100%;
    }

    .dashboard {
        margin-inline: 0;
        padding-inline: 4px;
    }

    .dashboard__head {
        align-items: stretch;
    }

    .save-feedback {
        justify-content: flex-end;
    }

    .save-feedback__button {
        width: auto;
    }

    .flash-stack {
        top: calc(12px + env(safe-area-inset-top));
    }

    .flash--success {
        border-radius: 10px;
        font-size: 0.84rem;
        line-height: 1.45;
        padding: 0.72rem 0.76rem;
        width: min(460px, calc(100vw - 16px));
    }
}
