/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ヘッダー（prototype/index.html の見た目を踏襲） */

.karte-header[b-91o7v19ks0] {
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.hwrap[b-91o7v19ks0] {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hwrap .mark[b-91o7v19ks0] {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    background: var(--etc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.hwrap h1[b-91o7v19ks0] {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.01em;
}

.hwrap h1 a[b-91o7v19ks0] {
    color: #fff;
    text-decoration: none;
}

/* ナビ（.hnav）: PC幅では display:contents で従来どおり親flexの1段に並ぶ（見た目不変）。
   スマホ幅（560px以下・仮値）だけ2行目へ落とし、横いっぱいに等間隔で並べる */
.hnav[b-91o7v19ks0] {
    display: contents;
}

@media (max-width: 560px) {
    .hwrap[b-91o7v19ks0] {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .hnav[b-91o7v19ks0] {
        display: flex;
        order: 2;                       /* 氏名・ログアウトより後ろ＝2行目へ */
        flex-basis: 100%;
        justify-content: space-between;
        flex-wrap: wrap;                /* 320px級の狭い端末では崩さず折り返す */
    }

    .hnav .adminlink[b-91o7v19ks0] {
        margin-right: 0;                /* 等間隔は justify-content に任せる */
    }
}

/* 使い方ガイドの「？」（★v1.31）。ログアウトボタンと同じ線色の丸ボタン。氏名の左に置く */
.hwrap .guidelink[b-91o7v19ks0] {
    margin-left: auto;              /* 右寄せはここで受け、.who は続けて並べる */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .45);
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.hwrap .guidelink:hover[b-91o7v19ks0],
.hwrap .guidelink:focus-visible[b-91o7v19ks0] {
    background: rgba(255, 255, 255, .15);
    outline: none;
}

.hwrap .who[b-91o7v19ks0] {
    margin-left: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
    white-space: nowrap;
}

.karte-logout button[b-91o7v19ks0] {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .85);
    border-radius: 3px;
    font-size: 11px;
    padding: 2px 8px;
    cursor: pointer;
    font-family: inherit;
}

.karte-main[b-91o7v19ks0] {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 16px 56px;
}

#blazor-error-ui[b-91o7v19ks0] {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-91o7v19ks0] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
