/* サブナビ（ページ上部の立体ボタンの列）を、折り返さず1行で横にスクロールさせる。
   見た目は import.css の .subnavi / .subnavi2 のまま。並べ方だけをここで上書きする。
   続きがあることは、両端の「‹」「›」ボタン（subnavi.js が付ける）で知らせる。
   背景がカーテンの絵なので、端のぼかしは地の色ではなく暗い影にしている。 */

.sub-navi {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* ボタンの影が切れないよう、上下に余白をとる（下の中身とはこの余白で離す） */
    padding: 6px 2px 12px;
    margin-bottom: 0;
}
.sub-navi::-webkit-scrollbar {
    display: none;
}
.sub-navi > .subnavi,
.sub-navi > .subnavi2 {
    float: none;
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}
.sub-navi > .clear {
    display: none;
}
/* 現在地のボタンでも、中のページ（設定など）から戻れるようリンクにすることがある */
.sub-navi > .subnavi2 a {
    color: inherit;
}

/* 横にはみ出しているときだけ subnavi.js が付ける外枠と矢印 */
.sub-navi-scroller {
    position: relative;
}
.sub-navi-arrow,
button.sub-navi-arrow {
    position: absolute;
    top: 0;
    bottom: 6px;
    z-index: 3;
    display: flex;
    align-items: center;
    width: 44px;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    cursor: pointer;
}
.sub-navi-arrow[hidden] {
    display: none;
}
.sub-navi-arrow.is-left {
    left: 0;
    justify-content: flex-start;
    background: linear-gradient(90deg, rgba(20, 10, 6, .75), rgba(20, 10, 6, 0));
}
.sub-navi-arrow.is-right {
    right: 0;
    justify-content: flex-end;
    background: linear-gradient(270deg, rgba(20, 10, 6, .75), rgba(20, 10, 6, 0));
}
.sub-navi-arrow span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0 3px;
    border: 3px double #996;
    border-radius: 50%;
    background: #261914;
    color: #F3EBA2;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

/* 未読などの数（マイページのサブナビのミニメ） */
.subnavi-count {
    display: inline-block;
    min-width: 1.3em;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 999px;
    background: #a0171a;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}
