/* ===================================================================
   こぶし会 管理画面 カスタムスタイル
   =================================================================== */

:root {
    --kobushi-accent: #c9962a;
    --kobushi-accent-dark: #a07820;
    --kobushi-accent-light: #d9aa40;
    --kobushi-danger: #b02a3a;
    --kobushi-danger-dark: #8a1f2c;
    --kobushi-danger-bg: #fdf2f4;
    --kobushi-ink: #111827;
    --kobushi-ink-soft: #1f2937;
    --kobushi-gray-50: #f9fafb;
    --kobushi-gray-100: #f3f4f6;
    --kobushi-gray-200: #e5e7eb;
    --kobushi-gray-400: #9ca3af;
    --kobushi-gray-500: #6b7280;
    --kobushi-gray-700: #374151;
    --kobushi-gray-800: #1f2937;
    --kobushi-warning-bg: #fefce8;
    --kobushi-warning-border: #fde68a;
    --kobushi-warning-text: #78350f;
}

/* ------------------------------------------------------------------
   共通 ページフェードイン
   ------------------------------------------------------------------ */
.page-fade-in {
    opacity: 0;
    animation: pageFadeIn 0.25s ease-out forwards;
}

@keyframes pageFadeIn {
    to { opacity: 1; }
}

/* ------------------------------------------------------------------
   共通 placeholder カラー
   Bootstrap の .form-control::placeholder より詳細度を合わせて上書き
   ------------------------------------------------------------------ */
::placeholder,
.form-control::placeholder {
    color: #b0b7c3;
    opacity: 1;
}

/* ------------------------------------------------------------------
   共通 フォームフィールドグループ
   ------------------------------------------------------------------ */
.hero-edit__field-group,
.news-form__field-group,
.banner-form__field-group,
.activity-form__field-group {
    margin-bottom: 12px;
}

/* ------------------------------------------------------------------
   認証ページ — 塗りつぶしなし、白基調
   ------------------------------------------------------------------ */
.auth-page {
    min-height: 100vh;
    background-color: #f5f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.auth-page__container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    background-color: #ffffff;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 4px;
    max-width: 400px;
    width: 100%;
    padding: 48px 40px;
}

.auth-card__logo {
    text-align: center;
    font-size: 2rem;
    color: var(--kobushi-accent);
    margin-bottom: 16px;
    line-height: 1;
}

.auth-card__title {
    text-align: center;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    color: var(--kobushi-gray-800);
}

.auth-card__subtitle {
    text-align: center;
    color: var(--kobushi-gray-500);
    font-size: 0.85rem;
    margin-bottom: 36px;
    letter-spacing: 0.01em;
}

/* 認証フォーム */
.auth-form__group {
    margin-bottom: 1.25rem;
}

.auth-form__label {
    font-size: 0.8rem;
    color: var(--kobushi-gray-700);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.auth-form__input.form-control {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    font-size: 0.9rem;
    background-color: #fff;
    color: var(--kobushi-gray-800);
    transition: border-color 0.15s ease;
}

.auth-form__input.form-control:focus {
    border-color: var(--kobushi-accent);
    box-shadow: none;
    outline: none;
}

.auth-form__readonly {
    padding: 0.6rem 0.75rem;
    background-color: var(--kobushi-gray-50);
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    color: var(--kobushi-gray-700);
    margin-bottom: 0;
    font-size: 0.9rem;
    word-break: break-all;
}

.auth-form__error {
    color: var(--kobushi-danger);
    font-size: 0.78rem;
    margin-top: 5px;
    margin-bottom: 0;
}

.auth-form__global-error {
    background-color: var(--kobushi-danger-bg);
    border-left: 3px solid var(--kobushi-danger);
    color: var(--kobushi-danger-dark);
    padding: 10px 14px;
    border-radius: 2px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.auth-form__success {
    background-color: #f0faf4;
    border-left: 3px solid #2d7a4f;
    color: #1a5c39;
    padding: 10px 14px;
    border-radius: 2px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.auth-form__btn.btn {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    background-color: var(--kobushi-ink);
    color: #ffffff;
    border: none;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: background-color 0.15s ease;
    margin-top: 0.5rem;
}

.auth-form__btn.btn:hover,
.auth-form__btn.btn:focus {
    background-color: var(--kobushi-ink-soft);
    color: #ffffff;
}

.auth-form__btn.btn:active {
    background-color: #000;
}

.auth-form__btn.btn:disabled {
    background-color: var(--kobushi-gray-400);
    cursor: not-allowed;
}

.auth-form__footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--kobushi-gray-100);
}

.auth-form__link {
    color: var(--kobushi-gray-500);
    text-decoration: none;
    font-size: 0.825rem;
    letter-spacing: 0.01em;
}

.auth-form__link:hover {
    color: var(--kobushi-accent);
    text-decoration: none;
}

.auth-lock-message {
    background-color: var(--kobushi-warning-bg);
    border-left: 3px solid var(--kobushi-warning-border);
    color: var(--kobushi-warning-text);
    padding: 10px 14px;
    border-radius: 2px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------------
   管理画面レイアウト
   ------------------------------------------------------------------ */
.admin-body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--kobushi-gray-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
    color: var(--kobushi-gray-800);
}

/* サイドバー */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background-color: #00507e;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-sidebar__brand {
    padding: 28px 24px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar__brand-accent {
    display: inline-block;
    width: 3px;
    height: 18px;
    background-color: var(--kobushi-accent);
    border-radius: 1px;
    flex-shrink: 0;
}

.admin-sidebar__brand-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.admin-sidebar__nav {
    padding: 16px 0;
    flex: 1;
}

.admin-sidebar__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar__nav-item {
    margin: 1px 0;
}

.admin-sidebar__nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-left: 2px solid transparent;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.admin-sidebar__nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.04);
}

.admin-sidebar__nav-link--active {
    color: #ffffff;
    border-left-color: var(--kobushi-accent);
    background-color: rgba(255, 255, 255, 0.05);
}

.admin-sidebar__nav-icon {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* メインエリア */
.admin-main {
    margin-left: 240px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--kobushi-gray-200);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-page-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0;
    color: var(--kobushi-gray-800);
}

/* サイドバー下部（ユーザー名 + ログアウト） */
.admin-sidebar__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-sidebar__user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 0 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.admin-sidebar__logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 8px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    text-align: left;
    text-decoration: none;
}

.admin-sidebar__logout:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.admin-content {
    padding: 32px 36px 48px;
    flex: 1;
}

/* ------------------------------------------------------------------
   ダッシュボード
   ------------------------------------------------------------------ */
.dashboard-welcome {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--kobushi-gray-800);
    margin-bottom: 24px;
}

.dashboard-info-card {
    background-color: #ffffff;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    padding: 20px 28px;
    margin-bottom: 36px;
}

.dashboard-info-card__row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.dashboard-info-card__item {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.dashboard-info-card__label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--kobushi-gray-400);
    margin-bottom: 5px;
}

.dashboard-info-card__value {
    font-weight: 500;
    color: var(--kobushi-gray-800);
    font-size: 0.9rem;
    word-break: break-all;
}

.dashboard-section-title {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kobushi-gray-400);
    margin-bottom: 16px;
    font-weight: 500;
}

.dashboard-menu-grid {
    margin: 0;
}

.dashboard-menu-card {
    display: block;
    background-color: #ffffff;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    padding: 28px 20px;
    text-decoration: none;
    color: var(--kobushi-gray-800);
    text-align: center;
    transition: border-color 0.15s ease;
    height: 100%;
    position: relative;
}

.dashboard-menu-card:hover {
    border-color: var(--kobushi-gray-400);
    color: var(--kobushi-gray-800);
}

.dashboard-menu-card__icon {
    font-size: 1.75rem;
    color: var(--kobushi-accent);
    margin-bottom: 12px;
    line-height: 1;
    opacity: 0.8;
}

.dashboard-menu-card__title {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    color: var(--kobushi-gray-700);
}

.dashboard-menu-card__badge {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--kobushi-gray-200);
    color: var(--kobushi-gray-400);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 2px 10px;
    border-radius: 1px;
    font-weight: 400;
}

/* ------------------------------------------------------------------
   ハンバーガーボタン（PCでは非表示）
   ------------------------------------------------------------------ */
.admin-topbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.admin-topbar__hamburger-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--kobushi-gray-700);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* オーバーレイ（PC では常に非表示） */
.admin-sidebar-overlay {
    display: none;
}

/* ------------------------------------------------------------------
   ヒーロ管理画面
   ------------------------------------------------------------------ */
.hero-edit {
    max-width: 860px;
}

.hero-edit__current-card,
.hero-edit__form-card {
    background-color: #ffffff;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

.hero-edit__current-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-edit__current-header h2,
.hero-edit__form-card h2 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--kobushi-gray-800);
    margin: 0;
}

.hero-edit__badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    background-color: var(--kobushi-gray-100);
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 1px;
    color: var(--kobushi-gray-700);
}

.hero-edit__preview {
    background-color: var(--kobushi-gray-50);
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    color: var(--kobushi-gray-400);
    font-size: 0.85rem;
}

.hero-edit__preview-media {
    max-width: 100%;
    max-height: 280px;
    display: block;
}

.hero-edit__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
}

.hero-edit__meta > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-edit__meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--kobushi-gray-400);
}

.hero-edit__form-card h2 {
    margin-bottom: 24px;
}

.hero-edit__field-group--disabled {
    opacity: 0.4;
    pointer-events: none;
}

.hero-edit__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--kobushi-gray-700);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.hero-edit__required {
    color: var(--kobushi-accent);
}

.hero-edit__radio-group {
    display: flex;
    gap: 24px;
}

.hero-edit__radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--kobushi-gray-800);
    cursor: pointer;
}

.hero-edit__file-input {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    font-size: 0.88rem;
    background-color: #fff;
    color: var(--kobushi-gray-700);
    cursor: pointer;
}

.hero-edit__hint {
    font-size: 0.78rem;
    color: var(--kobushi-gray-400);
    margin-top: 5px;
    margin-bottom: 0;
}

.hero-edit__error {
    display: block;
    color: var(--kobushi-danger);
    font-size: 0.78rem;
    margin-top: 5px;
    min-height: 1.2em;
}

.hero-edit__new-preview {
    margin-top: 12px;
    padding: 12px;
    background-color: var(--kobushi-gray-50);
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
}

.hero-edit__new-preview--hidden {
    display: none;
}

.hero-edit__new-preview-label {
    font-size: 0.75rem;
    color: var(--kobushi-gray-400);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.hero-edit__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--kobushi-gray-100);
}

.hero-edit__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-edit__btn--primary {
    background: #c9a84c;
    color: #fff;
    border-color: #c9a84c;
}

.hero-edit__btn--primary:hover {
    background: #b89740;
    border-color: #b89740;
    color: #fff;
}

.hero-edit__btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hero-edit__btn--cancel {
    background: #fff;
    color: #4b5563;
    border-color: #d1d5db;
}

.hero-edit__btn--cancel:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.hero-edit__flash {
    padding: 10px 16px;
    border-radius: 2px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    border-left: 3px solid;
}

.hero-edit__flash--success {
    background-color: #f0faf4;
    border-left-color: #2d7a4f;
    color: #1a5c39;
}

.hero-edit__flash--error {
    background-color: var(--kobushi-danger-bg);
    border-left-color: var(--kobushi-danger);
    color: var(--kobushi-danger-dark);
}

/* form-loading（ローディングオーバーレイ） */
.form-loading {
    position: relative;
}

.form-loading > * {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border: 2px solid var(--kobushi-gray-200);
    border-top-color: var(--kobushi-accent);
    border-radius: 50%;
    animation: formLoadingSpin 0.7s linear infinite;
}

.form-loading--visible > * {
    opacity: 1;
}

.form-loading--visible::after {
    display: none;
}

@keyframes formLoadingSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 768px) {
    .hero-edit__current-card,
    .hero-edit__form-card {
        padding: 20px 16px;
    }

    .hero-edit__meta {
        gap: 12px 24px;
    }

    .hero-edit__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-edit__btn {
        text-align: center;
    }
}

/* ------------------------------------------------------------------
   レスポンシブ（管理レイアウト）
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    /* サイドバーを画面外へ */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 260px;
        box-shadow: none;
    }

    .admin-sidebar--open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }

    /* オーバーレイ */
    .admin-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0);
        z-index: 999;
        pointer-events: none;
        transition: background 0.25s ease;
    }

    .admin-sidebar-overlay--active {
        background: rgba(0, 0, 0, 0.45);
        pointer-events: auto;
    }

    /* スクロールロック */
    .admin-body--sidebar-open {
        overflow: hidden;
    }

    /* ハンバーガーボタン表示 */
    .admin-topbar__hamburger {
        display: flex;
    }

    /* メインエリアはフル幅 */
    .admin-main {
        margin-left: 0;
    }

    .admin-topbar {
        padding: 12px 16px;
    }

    .admin-content {
        padding: 20px 16px 32px;
    }

    .auth-card {
        padding: 36px 24px;
    }
}

/* ------------------------------------------------------------------
   ダッシュボード 機能カード
   ------------------------------------------------------------------ */
.dashboard-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.dashboard-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 20px;
    background-color: #ffffff;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    text-decoration: none;
    color: var(--kobushi-gray-800);
    transition: border-color 0.15s ease, transform 0.15s ease;
    text-align: center;
}

.dashboard-feature-card:hover {
    border-color: var(--kobushi-accent);
    color: var(--kobushi-gray-800);
    transform: translateY(-1px);
}

.dashboard-feature-card__icon {
    font-size: 1.8rem;
    color: var(--kobushi-accent);
    line-height: 1;
    opacity: 0.9;
}

.dashboard-feature-card__label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--kobushi-gray-700);
}

/* ------------------------------------------------------------------
   ニュース管理 一覧ページ
   ------------------------------------------------------------------ */
.admin-table__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.admin-table__title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--kobushi-gray-800);
    margin: 0;
}

.admin-table__flash-area {
    margin-bottom: 16px;
}

.admin-table__flash {
    padding: 10px 16px;
    border-radius: 2px;
    font-size: 0.875rem;
    border-left: 3px solid;
    margin-bottom: 8px;
}

.admin-table__flash--success {
    background-color: #f0faf4;
    border-left-color: #2d7a4f;
    color: #1a5c39;
}

.admin-table__flash--error {
    background-color: var(--kobushi-danger-bg);
    border-left-color: var(--kobushi-danger);
    color: var(--kobushi-danger-dark);
}

.admin-table__filter-card {
    background-color: #ffffff;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.admin-table__filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px 20px;
    margin-bottom: 16px;
}

.admin-table__filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-table__filter-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--kobushi-gray-700);
    letter-spacing: 0.02em;
}

.admin-table__filter-input {
    font-size: 0.88rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
}

.admin-table__filter-input:focus {
    border-color: var(--kobushi-accent);
    box-shadow: none;
    outline: none;
}

.admin-table__filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Select2 (tag filter) を他のフィルタ入力と同じ見た目に揃える */
.admin-table__filter-field .select2-container {
    width: 100% !important;
    display: block;
}

.admin-table__filter-field .select2-container--bootstrap-5 .select2-selection,
.admin-table__filter-field .select2-container--default .select2-selection--multiple {
    min-height: calc(0.88rem * 1.5 + 0.45rem * 2 + 2px);
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    font-size: 0.88rem;
    line-height: 1.5;
    background-color: #ffffff;
    box-shadow: none;
}

.admin-table__filter-field .select2-container--default.select2-container--focus .select2-selection--multiple,
.admin-table__filter-field .select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--kobushi-accent);
    box-shadow: none;
    outline: none;
}

.admin-table__filter-field .select2-container .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.admin-table__filter-field .select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: var(--kobushi-accent, #2b6cb0);
    color: #ffffff;
    border: none;
    border-radius: 2px;
    padding: 2px 6px 2px 22px;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    position: relative;
}

.admin-table__filter-field .select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff;
    background: transparent;
    border: none;
    padding: 0 4px;
    margin-right: 4px;
    font-weight: 700;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.admin-table__filter-field .select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.15);
}

.admin-table__filter-field .select2-container .select2-search--inline .select2-search__field {
    font-size: 0.88rem;
    margin: 0;
    padding: 2px 0;
    min-height: 1.5em;
}

.admin-table__filter-field .select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin: 0 4px 0 0;
}

.admin-table__table-card {
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    background-color: #ffffff;
    padding: 0;
}

.admin-table__table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid var(--kobushi-gray-100);
}

.admin-table__per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-table__per-page-label {
    font-size: 0.8rem;
    color: var(--kobushi-gray-700);
    margin: 0;
}

.admin-table__per-page-select {
    width: auto;
    font-size: 0.85rem;
    padding: 0.3rem 1.8rem 0.3rem 0.6rem;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
}

.admin-table__pagination-top,
.admin-table__pagination-bottom {
    display: flex;
    align-items: center;
    gap: 12px 20px;
    flex-wrap: wrap;
}

.admin-table__pagination-bottom {
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--kobushi-gray-100);
}

.admin-table__pagination-info {
    font-size: 0.8rem;
    color: var(--kobushi-gray-500);
    visibility: hidden;
}

.admin-table__pagination-nav {
    visibility: hidden;
}

.admin-table__pagination.pagination {
    margin: 0;
    gap: 2px;
}

.admin-table__pagination .page-link {
    color: var(--kobushi-gray-700);
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
}

.admin-table__pagination .page-item.active .page-link {
    background-color: var(--kobushi-ink);
    border-color: var(--kobushi-ink);
    color: #ffffff;
}

.admin-table__pagination .page-item.disabled .page-link {
    color: var(--kobushi-gray-400);
    background-color: var(--kobushi-gray-50);
}

.admin-table__pagination .admin-table__pagination-ellipsis {
    border-color: transparent;
    background-color: transparent;
    cursor: default;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.admin-table__table-wrapper {
    margin: 0;
}

.admin-table__table.table {
    margin: 0;
    font-size: 0.88rem;
}

.admin-table__table thead th {
    background-color: var(--kobushi-gray-50);
    border-bottom: 1px solid var(--kobushi-gray-200);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--kobushi-gray-700);
    letter-spacing: 0.03em;
    padding: 12px 14px;
    white-space: nowrap;
}

.admin-table__th--thumbnail {
    width: 92px;
}

.admin-table__th--tags {
    width: 170px;
}

.admin-table__th--status {
    width: 140px;
}

.admin-table__th--datetime {
    width: 150px;
}

.admin-table__th--updated-by {
    width: 120px;
}

.admin-table__th--actions {
    width: 160px;
}

.admin-table__td--tags {
    max-width: 170px;
}

.admin-table__td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--kobushi-gray-100);
    color: var(--kobushi-gray-800);
}

.admin-table__td--title {
    font-weight: 500;
}

.admin-table__title-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.admin-table__empty-cell {
    text-align: center;
    padding: 40px 14px;
    color: var(--kobushi-gray-400);
    font-size: 0.88rem;
}

.admin-table__action-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------------
   ニュース サムネイル / プレースホルダー
   ------------------------------------------------------------------ */
.news-thumbnail {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--kobushi-gray-200);
    display: block;
}

.news-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 48px;
    background-color: var(--kobushi-gray-50);
    border: 1px dashed var(--kobushi-gray-200);
    border-radius: 2px;
    color: var(--kobushi-gray-400);
    font-size: 1.1rem;
}

/* ------------------------------------------------------------------
   ニュース ステータスバッジ
   ------------------------------------------------------------------ */
.news-status-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 1px;
    border: 1px solid transparent;
    margin-right: 4px;
}

.news-status-badge--draft {
    background-color: var(--kobushi-gray-100);
    color: var(--kobushi-gray-700);
    border-color: var(--kobushi-gray-200);
}

.news-status-badge--published {
    background-color: #e8f5ec;
    color: #1a5c39;
    border-color: #bfe2cc;
}

.news-status-badge--unpublished {
    background-color: var(--kobushi-danger-bg);
    color: var(--kobushi-danger-dark);
    border-color: #f0c8ce;
}

.news-status-badge--scheduled {
    background-color: var(--kobushi-warning-bg);
    color: var(--kobushi-warning-text);
    border-color: var(--kobushi-warning-border);
}

/* ------------------------------------------------------------------
   ニュース管理 ボタン共通
   ------------------------------------------------------------------ */
.admin-table__btn,
.news-form__btn,
.admin-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-table__btn--small {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
}

.admin-table__btn--primary,
.news-form__btn--primary,
.admin-form__btn--primary {
    background: #c9a84c;
    color: #fff;
    border-color: #c9a84c;
}

.admin-table__btn--primary:hover,
.news-form__btn--primary:hover,
.admin-form__btn--primary:hover {
    background: #b89740;
    border-color: #b89740;
    color: #fff;
}

.admin-table__btn--secondary,
.news-form__btn--cancel,
.admin-form__btn--secondary {
    background: #fff;
    color: #4b5563;
    border-color: #d1d5db;
}

.admin-table__btn--secondary:hover,
.news-form__btn--cancel:hover,
.admin-form__btn--secondary:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.admin-table__btn--danger,
.news-form__btn--danger {
    background: #fff;
    color: #dc3545;
    border-color: #dc3545;
}

.admin-table__btn--danger:hover,
.news-form__btn--danger:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.admin-table__delete-text,
.news-form__delete-text {
    font-size: 0.9rem;
    color: var(--kobushi-gray-800);
    margin-bottom: 8px;
}

.admin-table__delete-target,
.news-form__delete-target {
    font-weight: 600;
}

.admin-table__delete-warn,
.news-form__delete-warn {
    font-size: 0.82rem;
    color: var(--kobushi-danger);
    margin: 0;
}

/* ------------------------------------------------------------------
   ニュース管理 フォームページ
   ------------------------------------------------------------------ */
.news-form {
    max-width: 860px;
}

.news-form__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.news-form__title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--kobushi-gray-800);
    margin: 0;
}

.news-form__flash-area {
    margin-bottom: 16px;
}

.news-form__card {
    background-color: #ffffff;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

.news-form__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--kobushi-gray-700);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.news-form__required {
    color: var(--kobushi-accent);
}

.news-form__input.form-control {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    font-size: 0.9rem;
    background-color: #fff;
    color: var(--kobushi-gray-800);
    transition: border-color 0.15s ease;
}

.news-form__input.form-control:focus {
    border-color: var(--kobushi-accent);
    box-shadow: none;
    outline: none;
}

.news-form__input--datetime {
    max-width: 280px;
}

.news-form__radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.news-form__radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--kobushi-gray-800);
    cursor: pointer;
    margin: 0;
}

.news-form__checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--kobushi-gray-700);
    cursor: pointer;
    margin-top: 10px;
}

.news-form__file-input {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    font-size: 0.88rem;
    background-color: #fff;
    color: var(--kobushi-gray-700);
    cursor: pointer;
}

.news-form__hint {
    font-size: 0.78rem;
    color: var(--kobushi-gray-400);
    margin-top: 5px;
    margin-bottom: 0;
}

.news-form__error {
    display: block;
    color: var(--kobushi-danger);
    font-size: 0.78rem;
    margin-top: 5px;
    min-height: 1.2em;
}

.news-form__quill-wrapper {
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    background-color: #ffffff;
}

.news-form__quill-wrapper .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid var(--kobushi-gray-200);
    background-color: var(--kobushi-gray-50);
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.news-form__quill-wrapper .ql-container.ql-snow {
    border: none;
    min-height: 280px;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.news-form__quill-wrapper .ql-editor {
    min-height: 280px;
    color: var(--kobushi-gray-800);
    line-height: 1.7;
}

.news-form__quill-wrapper .ql-editor.ql-blank::before {
    color: var(--kobushi-gray-400);
    font-style: normal;
}

.news-form__editor-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.news-form__char-count {
    font-size: 0.78rem;
    color: var(--kobushi-gray-500);
}

.news-form__thumbnail-preview {
    margin-top: 12px;
    padding: 12px;
    background-color: var(--kobushi-gray-50);
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
}

.news-form__thumbnail-preview--hidden {
    display: none;
}

.news-form__thumbnail-preview-label {
    font-size: 0.75rem;
    color: var(--kobushi-gray-400);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.news-form__thumbnail-preview-img {
    max-width: 320px;
    max-height: 200px;
    display: block;
    border-radius: 2px;
}

.news-form__current-thumbnail {
    padding: 12px;
    background-color: var(--kobushi-gray-50);
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    min-height: 72px;
    display: flex;
    align-items: center;
    color: var(--kobushi-gray-400);
    font-size: 0.85rem;
}

.news-form__current-thumbnail img {
    max-width: 320px;
    max-height: 200px;
    display: block;
    border-radius: 2px;
}

.news-form__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--kobushi-gray-100);
}

.news-form__btn--end {
    margin-left: auto;
}

/* ------------------------------------------------------------------
   テーブルローディングオーバーレイ
   ------------------------------------------------------------------ */
.table-loading-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 2px;
}

.table-loading-overlay__spinner {
    color: var(--kobushi-accent) !important;
}

@media (max-width: 768px) {
    .news-form__card {
        padding: 20px 16px;
    }

    .admin-table__filter-card {
        padding: 16px;
    }

    .news-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .news-form__btn--end {
        margin-left: 0;
    }

    .news-form__btn {
        justify-content: center;
    }
}

/* ==================================================================
   公開トップページ用スタイル（news-public）
   ================================================================== */

/* セクション非表示制御 */
.sec-news--hidden {
    display: none;
}

/* 公開ニュース一覧コンテナ */
.news-list-public {
    display: flex;
    flex-direction: column;
}

/* 行ホバーをクリッカブルに */
.news-item {
    cursor: pointer;
}

.news-item[role="button"]:focus-visible {
    outline: 2px solid var(--gold, #c9a84c);
    outline-offset: 2px;
}

/* 公開ニュース BEM 要素（既存 .news-date / .news-title クラスと併用） */
.news-item__date {
    /* 既存 .news-date に揃える補助クラス */
}

.news-item__title {
    /* 既存 .news-title に揃える補助クラス */
}

/* ニュース詳細モーダル */
.news-modal__content {
    background-color: #1a1a1a;
    color: #f5f0e8;
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 2px;
}

.news-modal__header {
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
    background-color: #001a2e;
    padding: 16px 20px;
}

.news-modal__title {
    font-family: 'Zen Old Mincho', 'Hiragino Mincho ProN', serif;
    font-size: 1.15rem;
    color: #c9a84c;
    letter-spacing: 0.08em;
    margin: 0;
}

.news-modal__body {
    padding: 24px 24px 28px;
    font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
}

.news-modal__date {
    font-size: 0.82rem;
    color: #c9a84c;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.news-modal__thumbnail {
    margin-bottom: 20px;
}

.news-modal__thumbnail--hidden {
    display: none;
}

.news-modal__thumbnail-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    border: 1px solid rgba(201, 168, 76, 0.25);
}

.news-modal__content-body {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #f5f0e8;
    word-break: break-word;
}

.news-modal__content-body p {
    margin-bottom: 1em;
}

.news-modal__content-body h1,
.news-modal__content-body h2,
.news-modal__content-body h3,
.news-modal__content-body h4 {
    font-family: 'Zen Old Mincho', 'Hiragino Mincho ProN', serif;
    color: #c9a84c;
    margin: 1.4em 0 0.6em;
    letter-spacing: 0.06em;
}

.news-modal__content-body h1 { font-size: 1.25rem; }
.news-modal__content-body h2 { font-size: 1.15rem; }
.news-modal__content-body h3 { font-size: 1.05rem; }
.news-modal__content-body h4 { font-size: 1rem; }

.news-modal__content-body a {
    color: #c9a84c;
    text-decoration: underline;
}

.news-modal__content-body a:hover {
    color: #e0bd5c;
}

.news-modal__content-body ul,
.news-modal__content-body ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.news-modal__content-body li {
    margin-bottom: 0.3em;
}

.news-modal__content-body blockquote {
    border-left: 3px solid #c9a84c;
    padding-left: 1em;
    margin: 1em 0;
    color: #d8ccbc;
    font-style: italic;
}

.news-modal__content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    margin: 0.5em 0;
}

.news-modal__content-body code {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0.1em 0.4em;
    border-radius: 2px;
    font-size: 0.9em;
}

.news-modal__content-body pre {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 12px 14px;
    border-radius: 2px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.news-modal__content-body pre code {
    background: transparent;
    padding: 0;
}

/* ============================================================
   バナー管理（管理画面） - List
============================================================ */
.banner-list {
    max-width: 1200px;
}

.banner-list__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.banner-list__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.banner-list__flash-area {
    margin-bottom: 1rem;
}

.banner-list__flash-area:empty {
    margin-bottom: 0;
}

.banner-list__table-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    background: #fff;
}

.banner-list__toolbar {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
    flex-wrap: wrap;
}

.banner-list__count {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
}

.banner-list__hint {
    font-size: 0.8rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.banner-list__table-wrapper {
    width: 100%;
}

.banner-list__table {
    margin-bottom: 0;
    vertical-align: middle;
}

.banner-list__table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    color: #4b5563;
    border-bottom: 2px solid #e5e7eb;
    padding: 0.75rem;
    white-space: nowrap;
}

.banner-list__table tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f3f5;
}

.banner-list__th--handle { width: 64px; text-align: center; }
.banner-list__th--logo   { width: 120px; }
.banner-list__th--company { min-width: 160px; }
.banner-list__th--url    { min-width: 220px; }
.banner-list__th--order  { width: 80px; text-align: center; }
.banner-list__th--actions { width: 180px; }

.banner-list__td--handle { text-align: center; }
.banner-list__td--order  { text-align: center; font-weight: 600; color: #2c3e50; }

.banner-list__handle {
    cursor: grab;
    color: #adb5bd;
    font-size: 1.2rem;
    display: inline-block;
    user-select: none;
}

.banner-list__handle:hover {
    color: #6c757d;
}

.banner-list__handle:active {
    cursor: grabbing;
}

.banner-list__logo {
    max-width: 100px;
    max-height: 44px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 4px 6px;
}

.banner-list__company-text {
    font-weight: 500;
    color: #212529;
}

.banner-list__url {
    display: inline-block;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.875rem;
}

.banner-list__url:hover {
    text-decoration: underline;
}

.banner-list__row--dragging {
    opacity: 0.5;
    background: #fff8e1;
}

.banner-list__row--ghost {
    background: #fff3cd !important;
}

.banner-list__row--empty td {
    background: #fafbfc;
}

.banner-list__empty {
    text-align: center;
    padding: 3rem 1rem !important;
    color: #6c757d;
    font-size: 0.95rem;
}

.banner-list__action-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.banner-list__delete-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.banner-list__delete-target {
    font-weight: 600;
    color: #2c3e50;
}

.banner-list__delete-warn {
    font-size: 0.875rem;
    color: #dc3545;
    margin-bottom: 0;
}

/* Buttons (banner-list) */
.banner-list__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.banner-list__btn--small {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
}

.banner-list__btn--primary {
    background: #c9a84c;
    color: #fff;
    border-color: #c9a84c;
}

.banner-list__btn--primary:hover {
    background: #b89740;
    border-color: #b89740;
    color: #fff;
}

.banner-list__btn--secondary {
    background: #fff;
    color: #4b5563;
    border-color: #d1d5db;
}

.banner-list__btn--secondary:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.banner-list__btn--danger {
    background: #fff;
    color: #dc3545;
    border-color: #dc3545;
}

.banner-list__btn--danger:hover {
    background: #dc3545;
    color: #fff;
}

/* ============================================================
   バナー管理（管理画面） - Form
============================================================ */
.banner-form {
    max-width: 760px;
}

.banner-form__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.banner-form__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.banner-form__flash-area {
    margin-bottom: 1rem;
}

.banner-form__flash-area:empty {
    margin-bottom: 0;
}

.banner-form__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 2rem;
}

.banner-form__label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.banner-form__required {
    color: #dc3545;
    margin-left: 4px;
    font-weight: 700;
}

.banner-form__input {
    display: block;
    width: 100%;
}

.banner-form__hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.35rem 0 0 0;
}

.banner-form__error {
    display: block;
    color: #dc3545;
    font-size: 0.825rem;
    margin-top: 0.35rem;
    min-height: 1.2em;
}

.banner-form__current-logo-wrapper {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.banner-form__current-logo {
    max-width: 240px;
    max-height: 96px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 6px;
}

.banner-form__checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
    margin-top: 0.5rem;
}

.banner-form__checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.banner-form__preview-wrapper {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fafbfc;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    display: inline-block;
}

.banner-form__preview-wrapper--hidden {
    display: none;
}

.banner-form__preview-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
}

.banner-form__preview {
    display: block;
    max-width: 240px;
    max-height: 96px;
    object-fit: contain;
}

.banner-form__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.banner-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1.2;
}

.banner-form__btn--primary {
    background: #c9a84c;
    color: #fff;
    border-color: #c9a84c;
}

.banner-form__btn--primary:hover {
    background: #b89740;
    border-color: #b89740;
    color: #fff;
}

.banner-form__btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.banner-form__btn--cancel {
    background: #fff;
    color: #4b5563;
    border-color: #d1d5db;
}

.banner-form__btn--cancel:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.banner-form__btn--danger {
    background: #fff;
    color: #dc3545;
    border-color: #dc3545;
}

.banner-form__btn--danger:hover {
    background: #dc3545;
    color: #fff;
}

.banner-form__btn--end {
    margin-left: auto;
}

.banner-form__delete-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.banner-form__delete-target {
    font-weight: 600;
    color: #2c3e50;
}

.banner-form__delete-warn {
    font-size: 0.875rem;
    color: #dc3545;
    margin-bottom: 0;
}

/* form-loading (共通) - 既存定義がない場合のフォールバック */
.banner-form .form-loading {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.banner-form .form-loading.form-loading--visible {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   公開サイト: バナーセクション
============================================================ */
.sec-banner {
    background: #f8f9fa;
}

.sec-banner__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.sec-banner__item {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    min-height: 80px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sec-banner__item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.sec-banner__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sec-banner__logo {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .sec-banner__item {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 576px) {
    .sec-banner__item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =============================================================================
   管理画面テーブル — スマホカード表示（768px 未満）
   テーブルの横スクロールをやめ、行をカード形式で縦積みにする。
   各 td に data-label 属性を付与し、::before 疑似要素でラベルを表示する。
   ============================================================================= */
@media (max-width: 768px) {

    /* -----------------------------------------------------------------------
       ニュース管理テーブル
       ----------------------------------------------------------------------- */
    .admin-table__table-wrapper {
        overflow-x: visible;
    }

    .admin-table__table {
        display: block;
        width: 100%;
    }

    .admin-table__table tbody {
        display: block;
        width: 100%;
        padding: 12px 12px 0;
    }

    .admin-table__table thead {
        display: none;
    }

    /* 行をカードに変換 */
    .admin-table__table tbody tr.admin-table__row {
        display: block;
        background: #ffffff;
        border: 1px solid var(--kobushi-gray-100);
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 4px 16px 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    /* セル共通: flex 行として表示 */
    .admin-table__table td.admin-table__td {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid var(--kobushi-gray-100);
        font-size: 0.85rem;
        vertical-align: top;
    }

    .admin-table__table td.admin-table__td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* data-label をラベルとして表示 */
    .admin-table__table td.admin-table__td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        min-width: 72px;
        color: var(--kobushi-gray-500);
        font-size: 0.75rem;
        padding-top: 2px;
        flex-shrink: 0;
    }

    /* サムネイル: ラベル非表示、画像を広く */
    .admin-table__td--thumbnail {
        justify-content: flex-start;
        padding-top: 12px;
    }

    .admin-table__td--thumbnail::before {
        display: none;
    }

    .admin-table__td--thumbnail .news-thumbnail {
        width: auto;
        max-width: 100px;
        height: auto;
        max-height: 64px;
        border-radius: 4px;
    }

    .admin-table__td--thumbnail .news-placeholder {
        width: 80px;
        height: 56px;
    }

    /* タイトル: ラベル非表示、テキストを目立たせる */
    .admin-table__td--title::before {
        display: none;
    }

    .admin-table__td--title .admin-table__title-text {
        font-weight: 600;
        font-size: 0.9rem;
        display: block;
        -webkit-line-clamp: unset;
    }

    /* ステータス: ラベル非表示 */
    .admin-table__td--status::before {
        display: none;
    }

    /* アクション: ラベル非表示、ボタン横並び */
    .admin-table__td--actions::before {
        display: none;
    }

    .admin-table__td--actions .admin-table__action-group {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* 空件行 */
    .admin-table__table tbody tr.admin-table__row--empty {
        text-align: center;
    }

    .admin-table__row--empty td.admin-table__td {
        justify-content: center;
        border-bottom: none;
    }

    .admin-table__row--empty td.admin-table__td::before {
        display: none;
    }

    /* -----------------------------------------------------------------------
       バナー管理テーブル
       ----------------------------------------------------------------------- */
    .banner-list__table-wrapper {
        overflow-x: visible;
    }

    .banner-list__table {
        display: block;
        width: 100%;
    }

    .banner-list__table tbody {
        display: block;
        width: 100%;
        padding: 12px 12px 0;
    }

    .banner-list__table thead {
        display: none;
    }

    /* 行をカードに変換 */
    .banner-list__table tbody tr.banner-list__row {
        display: block;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 4px 16px 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    /* セル共通: flex 行として表示 */
    .banner-list__table td.banner-list__td {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
        font-size: 0.85rem;
    }

    .banner-list__table td.banner-list__td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* data-label をラベルとして表示 */
    .banner-list__table td.banner-list__td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        min-width: 80px;
        color: #6b7280;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    /* ドラッグハンドル: ラベル非表示、上部に配置 */
    .banner-list__td--handle {
        padding-top: 12px;
        border-bottom-color: transparent;
    }

    .banner-list__td--handle::before {
        display: none;
    }

    /* ロゴ: ラベル非表示 */
    .banner-list__td--logo::before {
        display: none;
    }

    .banner-list__td--logo .banner-list__logo {
        max-width: 120px;
        max-height: 48px;
    }

    /* 企業名: ラベル非表示、テキストを目立たせる */
    .banner-list__td--company::before {
        display: none;
    }

    .banner-list__td--company .banner-list__company-text {
        font-weight: 600;
        font-size: 0.95rem;
    }

    /* リンクURL: 折り返し許可 */
    .banner-list__td--url .banner-list__url {
        word-break: break-all;
        white-space: normal;
    }

    /* アクション: ラベル非表示 */
    .banner-list__td--actions::before {
        display: none;
    }

    .banner-list__td--actions .banner-list__action-group {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* 空件行 */
    .banner-list__row--empty td.banner-list__td {
        justify-content: center;
        border-bottom: none;
    }

    .banner-list__row--empty td.banner-list__td::before {
        display: none;
    }
}

/* ==================================================================
   活動報告 — タグバッジ
   ================================================================== */
.activity-tag-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #e8f4fd;
    color: #1a6ba8;
    border-radius: 12px;
    font-size: 0.72rem;
    margin: 1px 2px 1px 0;
    white-space: nowrap;
}

.activity-tag-badge--more {
    background-color: var(--kobushi-gray-100);
    color: var(--kobushi-gray-500);
}

/* 活動報告 フォーム ボタン共通 */
.activity-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.activity-form__btn--primary {
    background: #c9a84c;
    color: #fff;
    border-color: #c9a84c;
}

.activity-form__btn--primary:hover {
    background: #b89740;
    border-color: #b89740;
    color: #fff;
}

.activity-form__btn--secondary,
.activity-form__btn--cancel {
    background: #fff;
    color: #4b5563;
    border-color: #d1d5db;
}

.activity-form__btn--secondary:hover,
.activity-form__btn--cancel:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.activity-form__btn--danger {
    background: #fff;
    color: #dc3545;
    border-color: #dc3545;
}

.activity-form__btn--danger:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.activity-form__delete-text {
    font-size: 0.9rem;
    color: var(--kobushi-gray-800);
    margin-bottom: 8px;
}

.activity-form__delete-target {
    font-weight: 600;
}

.activity-form__delete-warn {
    font-size: 0.82rem;
    color: var(--kobushi-danger);
    margin: 0;
}

/* ==================================================================
   活動報告管理 フォームページ (Activity Report Form)
   ================================================================== */
.activity-form {
    max-width: 960px;
}

.activity-form__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.activity-form__title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--kobushi-gray-800);
    margin: 0;
}

.activity-form__flash-area {
    margin-bottom: 16px;
}

.activity-form__card {
    background-color: #ffffff;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

.activity-form__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--kobushi-gray-700);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.activity-form__required {
    color: var(--kobushi-accent);
}

.activity-form__input.form-control {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    font-size: 0.9rem;
    background-color: #fff;
    color: var(--kobushi-gray-800);
    transition: border-color 0.15s ease;
}

.activity-form__input.form-control:focus {
    border-color: var(--kobushi-accent);
    box-shadow: none;
    outline: none;
}

.activity-form__input--datetime {
    max-width: 280px;
}

.activity-form__radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.activity-form__radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--kobushi-gray-800);
    cursor: pointer;
    margin: 0;
}

.activity-form__file-input {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    font-size: 0.88rem;
    background-color: #fff;
    color: var(--kobushi-gray-700);
    cursor: pointer;
}

.activity-form__hint {
    font-size: 0.78rem;
    color: var(--kobushi-gray-400);
    margin-top: 5px;
    margin-bottom: 0;
}

.activity-form__error {
    display: block;
    color: var(--kobushi-danger);
    font-size: 0.78rem;
    margin-top: 5px;
    min-height: 1.2em;
}

.activity-form__quill-wrapper {
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    background-color: #ffffff;
}

.activity-form__quill-wrapper .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid var(--kobushi-gray-200);
    background-color: var(--kobushi-gray-50);
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.activity-form__quill-wrapper .ql-container.ql-snow {
    border: none;
    min-height: 280px;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.activity-form__quill-wrapper .ql-editor {
    min-height: 280px;
    color: var(--kobushi-gray-800);
    line-height: 1.7;
}

.activity-form__quill-wrapper .ql-editor.ql-blank::before {
    color: var(--kobushi-gray-400);
    font-style: normal;
}

.activity-form__editor-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.activity-form__char-count {
    font-size: 0.78rem;
    color: var(--kobushi-gray-500);
}

/* タグ入力 */
.activity-form__tag-container {
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 2px;
    padding: 8px;
    background-color: #fff;
    min-height: 44px;
}

.activity-form__tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.activity-form__tag-list:empty {
    margin-bottom: 0;
}

.activity-form__tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 12px;
    font-size: 0.82rem;
}

.activity-form__tag-remove {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

.activity-form__tag-remove:hover {
    color: var(--kobushi-danger);
}

.activity-form__tag-input-wrapper {
    position: relative;
}

.activity-form__tag-input.form-control {
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
    padding: 4px 6px;
    font-size: 0.88rem;
    box-shadow: none;
}

.activity-form__tag-input.form-control:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

.activity-form__tag-suggestions {
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.activity-form__tag-suggestions--hidden {
    display: none;
}

.activity-form__tag-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--kobushi-gray-800);
}

.activity-form__tag-suggestion-item:hover,
.activity-form__tag-suggestion-item--active {
    background-color: var(--kobushi-gray-50);
}

/* メディアセクション */
.activity-form__media-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-form__media-add {
    padding: 16px;
    background-color: var(--kobushi-gray-50);
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 4px;
}

.activity-form__url-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.activity-form__url-input-row .activity-form__input.form-control {
    flex: 1;
}

.activity-form__media-list-header {
    margin-bottom: 4px;
}

.activity-form__media-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 40px;
}

.activity-form__media-items:empty::before {
    content: 'メディアはまだ追加されていません。';
    display: block;
    padding: 20px;
    text-align: center;
    color: var(--kobushi-gray-400);
    font-size: 0.85rem;
    background-color: var(--kobushi-gray-50);
    border: 1px dashed var(--kobushi-gray-200);
    border-radius: 4px;
}

.activity-form__media-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: #fff;
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 4px;
}

.activity-form__media-handle {
    cursor: grab;
    color: var(--kobushi-gray-400);
    font-size: 1.1rem;
    padding: 4px;
}

.activity-form__media-handle:active {
    cursor: grabbing;
}

.activity-form__media-preview {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    border: 1px solid var(--kobushi-gray-200);
    display: block;
    background-color: var(--kobushi-gray-100);
}

.activity-form__media-preview-link {
    display: inline-block;
    line-height: 0;
    flex-shrink: 0;
}

.activity-form__media-icon {
    width: 60px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--kobushi-gray-100);
    border-radius: 2px;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: var(--kobushi-gray-500);
}

.activity-form__media-info {
    flex: 1;
    min-width: 0;
}

.activity-form__media-filename {
    font-size: 0.85rem;
    color: var(--kobushi-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-form__media-type-label {
    font-size: 0.72rem;
    color: var(--kobushi-gray-500);
    margin-top: 2px;
}

.activity-form__media-thumb-label {
    font-size: 0.8rem;
    color: var(--kobushi-gray-700);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
}

.activity-form__media-remove {
    background: none;
    border: none;
    color: var(--kobushi-danger);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 2px;
}

.activity-form__media-remove:hover {
    background-color: var(--kobushi-danger-bg);
}

.activity-form__media-item--thumbnail {
    background-color: #fff9e6;
    border-color: #f0d770;
}

.activity-form__media-item.sortable-ghost {
    opacity: 0.4;
}

.activity-form__media-item.sortable-chosen {
    background-color: #eef2ff;
}

.activity-form__meta {
    font-size: 0.82rem;
    color: var(--kobushi-gray-500);
    margin-top: 16px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.activity-form__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--kobushi-gray-100);
}

.activity-form__btn--end {
    margin-left: auto;
}

@media (max-width: 768px) {
    .activity-form__card {
        padding: 20px 16px;
    }

    .activity-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .activity-form__btn--end {
        margin-left: 0;
    }

    .activity-form__btn {
        justify-content: center;
    }

    .activity-form__url-input-row {
        flex-direction: column;
    }
}

/* ==================================================================
   公開 活動報告ページ (Reports Public)
   ================================================================== */
.site-header--solid {
    position: static;
    background-color: #ffffff;
    border-bottom: 1px solid var(--kobushi-gray-100, #eaeaea);
}

.reports-page {
    background-color: #fafaf8;
    min-height: calc(100vh - 400px);
}

.reports-filter {
    background-color: #ffffff;
    border: 1px solid var(--kobushi-gray-200, #e3e3de);
    border-radius: 4px;
    padding: 18px 20px;
}

.reports-filter__label {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 4px;
}

.report-thumb__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f1ea;
    color: #b8ad95;
    font-size: 2rem;
}

.reports-pagination .pagination {
    gap: 4px;
}

.reports-pagination .page-link {
    color: #555;
    border: 1px solid #e3e3de;
    border-radius: 2px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.reports-pagination .page-item.active .page-link {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

/* ==================================================================
   活動報告 詳細ページ (Report Detail)
   ================================================================== */
.report-detail {
    background-color: #fafaf8;
    min-height: calc(100vh - 400px);
}

.report-detail__article {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid #e3e3de;
    padding: 40px 48px;
}

.report-detail__header {
    border-bottom: 1px solid #e3e3de;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.report-detail__title {
    font-family: "Zen Old Mincho", "Shippori Mincho", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 16px;
}

.report-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
}

.report-detail__meta i {
    margin-right: 4px;
    color: #c9a84c;
}

.report-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.report-detail__tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f4f1ea;
    color: #7a6a3c;
    border-radius: 12px;
    font-size: 0.8rem;
}

.report-detail__body {
    font-size: 1rem;
    line-height: 1.9;
    color: #222;
    margin-bottom: 36px;
}

.report-detail__body p {
    margin-bottom: 1.2em;
}

.report-detail__body img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 2px;
}

.report-detail__body h2,
.report-detail__body h3 {
    font-family: "Zen Old Mincho", serif;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: #1a1a1a;
}

.report-detail__body ul,
.report-detail__body ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.report-detail__gallery {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e3e3de;
}

.report-detail__gallery-title {
    font-family: "Zen Old Mincho", serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: 0.06em;
}

.report-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.report-gallery--videos,
.report-gallery--embeds {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.report-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: #000;
    aspect-ratio: 4 / 3;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    width: 100%;
}

.report-gallery__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.report-gallery__photo:hover img {
    transform: scale(1.05);
}

.report-gallery__video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.report-gallery__embed,
.report-gallery__embed-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

.report-gallery__embed-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.report-gallery__embed-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c9a84c;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 12px;
}

.report-gallery__embed-link:hover {
    text-decoration: underline;
}

.report-detail__footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e3e3de;
    text-align: center;
}

/* Lightbox モーダル */
.lightbox-modal__content {
    background-color: transparent;
    border: none;
    position: relative;
}

.lightbox-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 2;
}

.lightbox-modal__image {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .report-detail__article {
        padding: 24px 20px;
    }

    .report-detail__title {
        font-size: 1.4rem;
    }

    .reports-filter {
        padding: 14px 16px;
    }
}

/* ------------------------------------------------------------------
   管理画面 トースト通知（右上固定）
   ------------------------------------------------------------------ */
.admin-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
    width: calc(100% - 40px);
}

.admin-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    background: #fff;
    border-left: 4px solid transparent;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.admin-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.admin-toast--success {
    border-left-color: #198754;
}

.admin-toast--error {
    border-left-color: var(--kobushi-danger);
}

.admin-toast__icon {
    flex-shrink: 0;
    font-size: 15px;
    margin-top: 2px;
}

.admin-toast--success .admin-toast__icon {
    color: #198754;
}

.admin-toast--error .admin-toast__icon {
    color: var(--kobushi-danger);
}

.admin-toast__message {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--kobushi-ink);
    word-break: break-word;
}

.admin-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--kobushi-gray-400);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 4px;
}

.admin-toast__close:hover {
    color: var(--kobushi-gray-700);
}

/* ==================================================================
   管理者管理 — 一覧固有スタイル（admin-table 共通 BEM に寄せた残り）
   ================================================================== */

/* admin-table 共通に存在しない warning ボタン（招待再送など） */
.admin-table__btn--warning {
    background: #fff;
    color: #8a6d3b;
    border-color: #e0c36f;
}

.admin-table__btn--warning:hover {
    background: #f6eacb;
    color: #5a4a20;
    border-color: #d4b357;
}

/* 管理者ステータステキスト（news-status-badge と別軸） */
.admin-table__status {
    font-size: 0.875rem;
}

.admin-table__status--active {
    color: #198754;
}

.admin-table__status--invited {
    color: #6c757d;
}

.admin-table__status--expired {
    color: #dc3545;
}

/* モーダル本文テキスト（招待再送・取り消し） */
.admin-table__modal-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--kobushi-ink);
}

.admin-table__modal-target {
    font-weight: 600;
}

/* 管理者一覧テーブル用の列幅調整 */
.admin-table__th--name { min-width: 120px; }
.admin-table__th--email { min-width: 180px; }
.admin-table__th--permissions { min-width: 140px; }
.admin-table__th--last-login { min-width: 140px; white-space: nowrap; }

/* 権限バッジ共通スタイル */
.badge-perm {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}

/* 権限バッジ群のラッパー */
.admin-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* ------------------------------------------------------------------
   admin-form — 招待・編集フォーム画面
   ------------------------------------------------------------------ */
.admin-form {
    padding: 0;
}

.admin-form__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-form__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--kobushi-ink);
    margin: 0;
}

.admin-form__header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-form__flash-area {
    margin-bottom: 12px;
}

.admin-form__card {
    border: 1px solid var(--kobushi-gray-200);
    border-radius: 4px;
}

.admin-form__card-header {
    background-color: var(--kobushi-gray-50);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--kobushi-gray-700);
    border-bottom: 1px solid var(--kobushi-gray-200);
    padding: 10px 16px;
}

.admin-form__card-body {
    padding: 20px 16px;
}

.admin-form__field-group {
    margin-bottom: 16px;
}

.admin-form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--kobushi-gray-700);
    margin-bottom: 4px;
}

.admin-form__label--bold {
    font-weight: 600;
}

.admin-form__required {
    color: var(--kobushi-danger);
}

.admin-form__input {
    font-size: 0.9rem;
}

.admin-form__error {
    font-size: 0.8rem;
    color: var(--kobushi-danger);
}

.admin-form__global-error {
    font-size: 0.875rem;
}

.admin-form__plaintext {
    font-size: 0.9rem;
    color: var(--kobushi-ink);
    margin: 0;
    padding-top: 6px;
    padding-bottom: 6px;
}

.admin-form__status-badge {
    padding-top: 4px;
}

.admin-form__check {
    margin-bottom: 6px;
}

.admin-form__individual-permissions {
    padding-left: 1rem;
}

.admin-form__self-edit-notice {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--kobushi-gray-500);
}

.admin-form__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-form__delete-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--kobushi-ink);
}

.admin-form__delete-target {
    font-weight: 600;
}

/* ボタン — admin-form 固有（base / primary / secondary は admin-list と統合済み） */
.admin-form__btn--warning {
    background-color: #fff;
    color: #b45309;
    border: 1px solid #d97706;
}

.admin-form__btn--warning:hover {
    background-color: #d97706;
    color: #fff;
    border-color: #d97706;
}

.admin-form__btn--danger {
    background-color: #fff;
    color: var(--kobushi-danger);
    border: 1px solid var(--kobushi-danger);
}

.admin-form__btn--danger:hover {
    background-color: var(--kobushi-danger);
    color: #fff;
    border-color: var(--kobushi-danger);
}

.admin-form__btn--cancel {
    background-color: transparent;
    color: var(--kobushi-gray-700);
    border: 1px solid var(--kobushi-gray-400);
}

.admin-form__btn--cancel:hover {
    background-color: var(--kobushi-gray-100);
    color: var(--kobushi-gray-700);
}

/* ------------------------------------------------------------------
   auth-card__logo — 警告アイコン色
   ------------------------------------------------------------------ */
.auth-card__logo--warning {
    color: #ffc107;
}
