/* /Components/CategorySelector.razor.rz.scp.css */
.category-card-selected[b-bc7ibq7o5z] {
  border: 5px solid var(--mud-palette-primary) !important;
  background-color: var(--mud-palette-primary-lighten);
  box-shadow: 0 0 0 3px rgba(var(--mud-palette-primary-rgb), 0.3) !important;
  transform: scale(1.02);
}

.category-card-selected .mud-card-content[b-bc7ibq7o5z] {
  background-color: rgba(var(--mud-palette-primary-rgb), 0.15);
}

.mud-card:hover[b-bc7ibq7o5z] {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* /Components/KanaPad.razor.rz.scp.css */
.kana-display[b-a9hqfz9zzh] {
    min-height: 3.5rem;
    border: 2px solid var(--mud-palette-primary);
    border-radius: 8px;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-align: center;
    padding: 4px 8px;
    margin-bottom: 12px;
}

.kana-placeholder[b-a9hqfz9zzh] {
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: normal;
    color: var(--mud-palette-text-secondary);
}

/* 50音表の並び: 1列が1つの行（あ・か・さ…）、右から左へ */
.kana-grid[b-a9hqfz9zzh] {
    display: grid;
    grid-template-rows: repeat(5, auto);
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-auto-flow: column;
    direction: rtl;
    gap: 4px;
}

.kana-actions[b-a9hqfz9zzh] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
}

.kana-key[b-a9hqfz9zzh] {
    min-height: 44px;
    font-size: 1.3rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    cursor: pointer;
    padding: 0;
}

.kana-key:active[b-a9hqfz9zzh] {
    background: var(--mud-palette-action-default-hover);
}

.kana-modifier[b-a9hqfz9zzh] {
    background: var(--mud-palette-background-grey);
}

.kana-delete[b-a9hqfz9zzh] {
    font-size: 1rem;
    background: var(--mud-palette-background-grey);
}

.kana-key:disabled[b-a9hqfz9zzh] {
    opacity: 0.5;
    cursor: default;
}
/* /Components/KanjiProblemView.razor.rz.scp.css */
.kanji-question[b-5yexs7yivj] {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.8;
    text-align: center;
    color: var(--mud-palette-text-primary);
}

.kanji-target[b-5yexs7yivj] {
    color: var(--mud-palette-primary);
    border-bottom: 4px solid var(--mud-palette-primary);
    padding: 0 2px;
}

.kanji-choices[b-5yexs7yivj] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
}

.kanji-choice[b-5yexs7yivj] {
    min-height: 72px;
    font-size: 2.2rem;
    border: 2px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    cursor: pointer;
}

.kanji-choice.selected[b-5yexs7yivj] {
    border-color: var(--mud-palette-primary);
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

.kanji-choice:disabled[b-5yexs7yivj] {
    opacity: 0.5;
    cursor: default;
}
/* /Components/ProblemDisplay.razor.rz.scp.css */
/* ひっ算（たて書き、016）。数字は等幅にして一の位でそろえる */
.vertical-calc[b-3qumjpxff3],
.vertical-div[b-3qumjpxff3] {
    font-family: "Roboto Mono", "Menlo", "Consolas", monospace;
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--mud-palette-primary);
}

.vertical-calc[b-3qumjpxff3] {
    width: calc(var(--digits) * 1ch + 0.5ch);
}

.vc-row[b-3qumjpxff3] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.vc-row .vc-num[b-3qumjpxff3] {
    margin-left: auto;
    letter-spacing: 0.05em;
}

.vc-line[b-3qumjpxff3] {
    border-top: 4px solid var(--mud-palette-text-primary);
    margin: 0.15em 0 0.25em;
}

.vertical-calc[b-3qumjpxff3]  input,
.vertical-div[b-3qumjpxff3]  input {
    text-align: right;
    font-family: "Roboto Mono", "Menlo", "Consolas", monospace;
    font-size: 2.5rem;
    font-weight: bold;
}

/* わり算の厂の形 */
.vertical-div[b-3qumjpxff3] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: fit-content;
}

.vd-quotient[b-3qumjpxff3] {
    width: calc(var(--digits) * 1ch + 0.5ch);
}

.vd-body[b-3qumjpxff3] {
    display: flex;
    align-items: stretch;
}

.vd-divisor[b-3qumjpxff3] {
    padding-right: 0.25em;
}

.vd-dividend[b-3qumjpxff3] {
    border-top: 4px solid var(--mud-palette-text-primary);
    border-left: 4px solid var(--mud-palette-text-primary);
    border-top-left-radius: 0.6em 1em;
    padding-left: 0.3em;
    min-width: calc(var(--digits) * 1ch);
    text-align: right;
    letter-spacing: 0.05em;
}

.vd-remainder[b-3qumjpxff3] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.vd-remainder[b-3qumjpxff3]  .mud-input-control {
    width: calc(var(--digits) * 1ch + 1em);
    font-size: 3.5rem;
}

.vd-remainder span[b-3qumjpxff3] {
    white-space: nowrap;
}

/* 横書きの答えの欄。単位と「あまり」が並ぶとスマホ幅で欄が細くなりすぎるので、最低の幅を決めて折り返す（017） */
.answer-row[b-3qumjpxff3]  .mud-input-control {
    min-width: 5rem;
    flex: 1 1 5rem;
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-1mhnyxfqeb] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-1mhnyxfqeb] {
    flex: 1;
}

.sidebar[b-1mhnyxfqeb] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-1mhnyxfqeb] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-1mhnyxfqeb]  a, .top-row[b-1mhnyxfqeb]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-1mhnyxfqeb]  a:hover, .top-row[b-1mhnyxfqeb]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-1mhnyxfqeb]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-1mhnyxfqeb] {
        justify-content: space-between;
    }

    .top-row[b-1mhnyxfqeb]  a, .top-row[b-1mhnyxfqeb]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-1mhnyxfqeb] {
        flex-direction: row;
    }

    .sidebar[b-1mhnyxfqeb] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-1mhnyxfqeb] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-1mhnyxfqeb]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-1mhnyxfqeb], article[b-1mhnyxfqeb] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-km30id94xi] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-km30id94xi] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-km30id94xi] {
    font-size: 1.1rem;
}

.bi[b-km30id94xi] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-km30id94xi] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-km30id94xi] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-km30id94xi] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-km30id94xi] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-km30id94xi] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-km30id94xi] {
        padding-bottom: 1rem;
    }

    .nav-item[b-km30id94xi]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-km30id94xi]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-km30id94xi]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-km30id94xi] {
        display: none;
    }

    .collapse[b-km30id94xi] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-km30id94xi] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
