/* --------------------Userで使うCSS --------------------*/

.bg-blue {
    background-color: #0000CD;
}
.bg-black {
    background-color: #000000;
    color: white;
}

/* card-headerのタイトルを上下中央に揃える（日本語テキストの上寄り対策） */
.card-header {
    display: flex;
    align-items: center;
}
.card-header > h4,
.card-header > h5 {
    line-height: 1.2;
    padding-top: 0.2rem;
}

.invert-white {
    filter: invert(100%);
}

.btn-filter-pill {
    background-color: #222;
    color: #fff;
    border: 1px solid #222;
    transition: all 0.2s ease;
}
.btn-filter-pill:hover,
.btn-filter-pill.active {
    background-color: #fff;
    color: #222;
    border-color: #222;
}

/* ===== 共通ヘッダー（video_list5 デザイン） ===== */
.app-custom-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: none !important;
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.app-custom-header .custom-header-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.app-custom-header .custom-header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1a1a1a;
    flex-shrink: 0;
}
.app-custom-header .custom-header-logo img { height: 38px; }
.app-custom-header .custom-header-logo span {
    font-size: 1.2rem;
    font-weight: 900;
    white-space: nowrap;
}
.app-custom-header .custom-header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}
.app-custom-header .custom-header-search .search-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 0.6rem 1.2rem;
    gap: 0.5rem;
    transition: border-color 0.2s, background 0.2s;
    line-height: 1.5;
}
.app-custom-header .custom-header-search .search-bar:hover { border-color: #999; }
.app-custom-header .custom-header-search .search-bar:focus-within { border-color: #999; background: #fff; }
.app-custom-header .custom-header-search .search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    color: #333;
    min-width: 0;
    padding: 0;
    margin: 0;
    height: 1.575rem;
}
.app-custom-header .custom-header-search .search-bar input::placeholder { color: #999; }
.app-custom-header .custom-header-search .search-bar button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #999;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.app-custom-header .custom-header-search .search-bar button:hover { color: #333; }
.app-custom-header .custom-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}
.app-custom-header .custom-header-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.app-custom-header .custom-header-lang .flag { font-size: 1.3rem; }
.app-custom-header .custom-header-notification {
    position: relative;
    color: #666;
    font-size: 1.3rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.app-custom-header .custom-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}
.app-custom-header .custom-header-avatar:hover { opacity: 0.8; color: #fff; }
.app-custom-header .custom-header-search-sp {
    display: none;
    background: none;
    border: none;
    color: #555;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem;
}
.app-custom-header .sidebar-toggle {
    background: none;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.app-custom-header .sidebar-toggle:hover { background: #f5f5f5; }

@media (max-width: 768px) {
    .app-custom-header .custom-header-inner {
        padding: 0 0.8rem;
        height: 50px;
        gap: 0.5rem;
    }
    .app-custom-header .custom-header-logo span { font-size: 1rem; }
    .app-custom-header .custom-header-logo img { height: 30px; }
    .app-custom-header .custom-header-search { display: none; }
    .app-custom-header .custom-header-search-sp { display: block; }
    .app-custom-header .custom-header-lang span:not(.flag) { display: none; }
    .app-custom-header .custom-header-right { gap: 0.6rem; }
}

.user-app-footer {
    background: #000;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 1rem;
}
.user-app-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin: 0 1em;
}
.user-app-footer a:hover { color: #6ec1e4; }
.user-app-footer-links { margin-bottom: 1rem; }
@media (max-width: 768px) {
    .user-app-footer-links a { display: block; margin: 0.5em 0; }
}