/* ========================================
   ABC Shortcut Chip Navigation (共通パーツ)
   - グローバルスコープ
   - home/hub ページで共通使用
   ======================================== */

/* ベーススタイル(下線チップデザイン) */
.abc-shortcut {
    padding: 14px 16px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.abc-shortcut__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.abc-shortcut__inner::-webkit-scrollbar {
    display: none;
}

.abc-shortcut__chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    border: none;
    border-bottom: 1.5px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #1A2A4A;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--abc-font-sans);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.25s ease, color 0.25s ease;
    letter-spacing: 0.06em;
}

.abc-shortcut__chip:hover {
    border-bottom-color: #C9A96E;
    color: #1A2A4A;
    text-decoration: none;
}

.abc-shortcut__chip:active {
    border-bottom-color: #8b6914;
    color: #1A2A4A;
}

@media (max-width: 768px) {
    .abc-shortcut {
        padding: 12px 16px;
    }

    .abc-shortcut__chip {
        font-size: 12px;
    }
}

/* ========================================
   Sticky 固定挙動(JS 制御)
   ======================================== */
.abc-shortcut--sticky {
    position: relative;
    z-index: 90;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    transition: box-shadow 0.3s ease;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.abc-shortcut--fixed {
    position: fixed;
    left: 0;
    right: 0;
    width: auto;
    margin-left: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.abc-shortcut-placeholder {
    display: none;
}

.abc-shortcut-placeholder--active {
    display: block;
}

.abc-shortcut--sticky .abc-shortcut__inner {
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 20px;
}

.abc-shortcut--sticky .abc-shortcut__chip {
    padding: 4px 0;
    border: none;
    border-bottom: 1.5px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #1A2A4A;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--abc-font-sans);
    white-space: nowrap;
    transition: border-color 0.25s ease, color 0.25s ease;
    letter-spacing: 0.06em;
}

.abc-shortcut--sticky .abc-shortcut__chip:hover {
    border-bottom-color: #C9A96E;
    color: #1A2A4A;
}

.abc-shortcut--sticky .abc-shortcut__chip:active {
    border-bottom-color: #8b6914;
    color: #1A2A4A;
}

@media (max-width: 768px) {
    .abc-shortcut--sticky .abc-shortcut__chip {
        font-size: 12px;
    }
}
