/* ============================================================
   header.css
   共通ヘッダー
============================================================ */
/* ============================================================
   CSS変数
============================================================ */
:root {
    --header-height: 80px;
    --header-bg: rgba(238, 241, 245, .99);
    --header-border: #d5d9df;
    --accent-color: #245a99;
    --cube-size: 50px;
    --radius-md: 12px;
    --radius-lg: 12px;
    --shadow-header:0 4px 12px rgba(0, 0, 0, .15);
    --shadow-cube: 0 2px 8px rgba(0, 0, 0, .15);
}
/* ============================================================
   index.html   list.html
============================================================ */
.topHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: grid;
    grid-template-rows:52px 18px;
    gap: 2px;
    padding: 4px 8px;
    background: var(--header-bg);
    border-bottom:1px solid var(--header-border);
    box-shadow:var(--shadow-header);
    box-sizing: border-box;
}


/* ============================================================
   上段
============================================================ */
.topRow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.headerSearchGroup {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    max-width: calc(100vw - 220px);
    min-width: 76px;
}

.header-update-status {
    max-width: 100%;
    overflow: hidden;
    color: #43546a;
    font-size: 9px;
    line-height: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   検索ボタン
============================================================ */
#openFilterBtn {
    flex: none;
    width: 100px;
    min-height: 38px;
    white-space: nowrap;
}

/* ============================================================
   右側アイコン群
============================================================ */
.headerIcons {
    display: flex;
    align-items: flex-start;
    gap:6px;
    margin-left: auto;
}

/* ============================================================
   キューブボタン
============================================================ */
.cubeBtn {
    width: var(--cube-size);
    height: var(--cube-size);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid #cfd5dc;

    text-decoration: none;
    color: #333;

    box-shadow: var(--shadow-cube);

    padding: 0;
  transition:
        background .15s,
        transform .08s,
        box-shadow .15s;
    cursor: pointer;
    user-select: none;
}


.cubeIcon {
    font-size: 24px;
    line-height: 1;
}

.cubeText {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1;
}
.stateRow{
    display:flex;
    align-items:center;
    gap:10px;
}

.cubeBtn:hover{
    background:#f2f6fb;
    box-shadow:0 3px 10px rgba(0,0,0,.18);
}

.cubeBtn.color-toggle-on,
.cubeBtn.color-toggle-on:hover {
    background: #dceeff;
    border-color: #4a90e2;
    color: #174d82;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.22), 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* .cubeBtn:active{
    transform:translateY(1px);
}
.cubeBtn,
.cubeBtn *,
button.cubeBtn,
button.cubeBtn *{
    cursor:pointer;
} */
/* ============================================================
   一時停止表示
============================================================ */

#moveJoutai{
    flex:none;
    background: none;
    border: none;
    box-shadow: none;
    width:90px;
    font-size: 12px;
    cursor: pointer;
    white-space:nowrap;
}

.filter-state{
    flex:1;
    min-width:0;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}
/* ============================================================
   状態表示
============================================================ */
.filter-state,
#filterStateView {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: bold;
}
.stateRow{
    background:transparent;
}

@media (max-width: 480px) {
    :root {
        --cube-size: 42px;
    }

    .headerIcons {
        gap: 5px;
    }

    #openFilterBtn {
        width: 76px;
    }

    .cubeIcon {
        font-size: 20px;
    }
}
