﻿/* =========================================================
   WorkLogApp / site.css
   ---------------------------------------------------------
   このファイルは「ページ別」「役割別」に整理してあります。

   [00] App Foundation
        - サイト全体の基本設定
        - 文字サイズ、body、Bootstrap変数、共通focus ring

   [10] Global Table / Home / Utility
        - テーブル共通
        - Home画面の軽いアニメーション
        - 汎用省略表示など

   [20] WorkLogs
        - /WorkLogs 系ページで使うクラス
        - prefix: wl-

   [30] Shared Calendar
        - /SharedCalendar/Index
        - /SharedCalendar/Create
        - /SharedCalendar/Edit
        - /SharedCalendar/RecurringCreate
        - /SharedCalendar/RecurringEdit
        - 予定詳細モーダル / その日の予定モーダル
        - prefix: sc-

   [40] Account
        - /Account/Manage
        - prefix: am-
        - Login / Logout は今後ここへ寄せる想定

   [50] Admin / Holidays
        - /Admin/Holidays/Index
        - prefix: hd-
        - 以前ページ内 style にあったものを site.css へ移動

   [90] Future Memo
        - まだ Bootstrap 素の見た目が残っているページのメモ
        - /Account/Login
        - /Account/Logout
        - /Admin/Users/Index
        - /Admin/Users/Create
   ========================================================= */


/* =========================================================
   [00] App Foundation
   サイト全体の土台
   ========================================================= */

/* 基本文字サイズ：スマホ時は少し小さめ、PCでは標準に戻す */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* 画面最下部のfooterぶん余白を確保 */
body {
    margin-bottom: 60px;
}

/* 共通フォーカスリング
   - ボタン
   - nav-link
   - 入力欄
   - チェックボックス
*/
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* アプリ全体の暖色テーマ */
:root {
    /* 背景と文字 */
    --bs-body-bg: #FFF7ED; /* ほんのりピーチ */
    --bs-body-color: #263238; /* 落ち着いた濃いグレー */
    /* Bootstrap primary を暖色系に */
    --bs-primary: #E76F51;
    --bs-primary-rgb: 231,111,81;
    /* 薄い境界線 */
    --bs-border-color: #F2E6DB;
}


/* =========================================================
   [10] Global Table / Home / Utility
   汎用寄りの見た目
   ========================================================= */

/* テーブルの背景は白にして読みやすさ確保 */
.table {
    background: #fff;
}

    /* thead の薄い暖色 */
    .table thead.table-light {
        background: #FFF0E6 !important;
    }

    /* テーブル見出しをスクロール時に固定 */
    .table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
    }

/* テーブル列幅を安定化 */
.table-fixed {
    table-layout: fixed;
}

/* 1行省略（…） */
.truncate-1 {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Home画面などで使う、行がふわっと出るアニメーション */
@keyframes wl-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table tbody tr {
    opacity: 0;
    animation: wl-rise .48s ease-out forwards;
}

    .table tbody tr:nth-child(1) {
        animation-delay: .04s;
    }

    .table tbody tr:nth-child(2) {
        animation-delay: .08s;
    }

    .table tbody tr:nth-child(3) {
        animation-delay: .12s;
    }

    .table tbody tr:nth-child(4) {
        animation-delay: .16s;
    }

    .table tbody tr:nth-child(5) {
        animation-delay: .20s;
    }

    .table tbody tr:nth-child(6) {
        animation-delay: .24s;
    }

/* hover時に少し浮く */
.table-hover tbody tr {
    transition: transform .08s ease, box-shadow .18s ease, background-color .18s ease;
}

    .table-hover tbody tr:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 10px rgba(0,0,0,.06);
        background-color: rgba(0,0,0,.02);
    }

/* Home画面のメインカード調整 */
.home-hero {
    max-width: 960px;
    margin: 0 auto;
}

    .home-hero .card {
        border-radius: 1rem;
    }

    .home-hero .card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .home-hero .btn {
        border-radius: 0.75rem;
    }


.home-attendance-card {
    padding: 1.15rem;
    margin-bottom: 1rem;
}

.home-attendance-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-attendance-status {
    color: #7b6c62;
    font-size: 0.96rem;
    line-height: 1.8;
}

.home-attendance-btn {
    min-width: 180px;
}

@media (max-width: 576px) {
    .home-attendance-body {
        align-items: stretch;
    }

    .home-attendance-btn {
        width: 100%;
    }
}

.home-attendance-btn {
    min-width: 180px;
    border-radius: 999px;
    min-height: 52px;
    padding: 0.82rem 1.2rem;
    font-weight: 700;
    color: #fff !important;
    border: 1px solid transparent;
    box-shadow: 0 8px 18px rgba(90, 67, 54, 0.12);
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}

    .home-attendance-btn:hover {
        color: #fff !important;
        transform: translateY(-1px);
        filter: brightness(1.02);
    }

.home-attendance-btn-checkin {
    border-color: #e6a35f;
    background: linear-gradient(135deg, #f6b56b 0%, #f08a5d 100%);
    box-shadow: 0 8px 18px rgba(240, 138, 93, 0.22);
}

    .home-attendance-btn-checkin:hover {
        box-shadow: 0 12px 24px rgba(240, 138, 93, 0.28);
    }

.home-attendance-btn-checkout {
    border-color: #5579d6;
    background: linear-gradient(135deg, #5b6ee1 0%, #243b6b 100%);
    box-shadow: 0 8px 18px rgba(52, 73, 148, 0.24);
}

    .home-attendance-btn-checkout:hover {
        box-shadow: 0 12px 24px rgba(52, 73, 148, 0.30);
    }

.home-attendance-btn-completed {
    border-color: #cfd7e3;
    background: linear-gradient(135deg, #eef2f7 0%, #dce3ec 100%);
    color: #6f7a88 !important;
    box-shadow: none;
    cursor: not-allowed;
}

/* ---------------------------------------------------------
   [10-01] Home
   /Pages/Index
   --------------------------------------------------------- */

.home-page {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.home-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.home-header-card,
.home-reminder-card,
.home-menu-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid #f2e6db;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(110, 84, 60, 0.08);
}

.home-header-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
}

.home-header-inner {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.home-eyebrow {
    color: #b07d62;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.12;
    font-weight: 300;
    color: #2f3f4a;
    letter-spacing: 0.03em;
}

.home-subtitle {
    color: #8d7467;
    font-size: 1.05rem;
}

.home-greeting {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #18324a;
}

    .home-greeting span {
        color: #10283f;
    }

.home-reminder-card {
    padding: 1.15rem;
    margin-bottom: 1rem;
}

.home-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.home-card-eyebrow {
    color: #b07d62;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #5a4336;
}

.home-reminder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.home-reminder-section {
    background: #fffaf6;
    border: 1px solid #f1e2d7;
    border-radius: 1.1rem;
    padding: 1rem;
}

.home-reminder-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.home-reminder-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #5a4336;
}

.home-reminder-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #fff1e8;
    border: 1px solid #f1ddd2;
    color: #b56b52;
    font-size: 0.82rem;
    font-weight: 700;
}

.home-reminder-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.home-reminder-item {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #f1ddd2;
    border-radius: 1rem;
    padding: 0.8rem 0.9rem;
    box-shadow: 0 2px 10px rgba(90, 67, 54, 0.04);
    transition: transform .08s ease, box-shadow .18s ease, background-color .18s ease;
}

    .home-reminder-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(90, 67, 54, 0.08);
        background: #fff8f4;
    }

.home-reminder-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.home-reminder-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: #c06d4f;
}

.home-reminder-time {
    font-size: 0.76rem;
    font-weight: 700;
    color: #8d7467;
}

.home-reminder-main {
    min-width: 0;
}

.home-reminder-user {
    font-size: 0.78rem;
    color: #8a6e60;
    font-weight: 700;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-reminder-text {
    font-size: 0.92rem;
    color: #4b3d35;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-reminder-empty {
    background: #fffdfb;
    border: 1px dashed #ead6c8;
    border-radius: 1rem;
    padding: 1rem;
    color: #8d7467;
    font-size: 0.92rem;
}

.home-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.home-menu-card {
    padding: 1.2rem;
    transition: transform .08s ease, box-shadow .18s ease, border-color .18s ease;
}

    .home-menu-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(110, 84, 60, 0.11);
        border-color: #eccfbc;
    }

.home-menu-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100%;
}

.home-menu-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #18324a;
    margin-bottom: 0.85rem;
}

.home-menu-text {
    color: #7b6c62;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    min-height: 5.5em;
}

.home-menu-btn {
    width: 100%;
    max-width: 220px;
    margin-top: auto;
}

@media (max-width: 992px) {
    .home-reminder-grid,
    .home-menu-grid {
        grid-template-columns: 1fr;
    }

    .home-header-card {
        padding: 1.6rem 1rem;
    }
}

@media (max-width: 576px) {
    .home-card-head {
        align-items: stretch;
    }

        .home-card-head .btn {
            width: 100%;
        }

    .home-reminder-item {
        padding: 0.75rem 0.8rem;
    }
}


/* =========================================================
   [20] WorkLogs
   対象:
   - /WorkLogs/Index
   - /WorkLogs/Create
   - /WorkLogs/Edit
   - /WorkLogs/Chart
   など
   prefix: wl-
   ========================================================= */

/* WorkLogs 用の最大幅ユーティリティ */
.wl-max-14 {
    max-width: 14rem;
}

.wl-max-44 {
    max-width: 44rem;
}

.wl-max-56 {
    max-width: 56rem;
}

/* 管理者用ユーザーセレクトの幅を広めに固定 */
.wl-user-wide {
    flex: 0 0 24rem;
    min-width: 20rem;
}

@media (min-width: 1200px) {
    .wl-user-wide {
        flex-basis: 28rem;
        min-width: 24rem;
    }
}

/* 全角約5文字ぶんの最低幅を確保 */
.wl-user-min5 {
    min-width: 6em;
}

@supports (min-width: 1ic) {
    .wl-user-min5 {
        min-width: 6ic;
    }
}

@media (min-width: 1200px) {
    .wl-user-min5 {
        min-width: 6em;
    }

    @supports (min-width: 1ic) {
        .wl-user-min5 {
            min-width: 6ic;
        }
    }
}

/* 凡例ピル */
.wl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .6rem;
    align-items: center;
    justify-content: center;
}

.wl-leg-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .55rem;
    background: #fff;
    border: 1.5px solid #111;
    border-radius: 9999px;
    max-width: 12em;
}

    .wl-leg-item .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        box-shadow: inset 0 0 0 1.5px #111;
    }

    .wl-leg-item .name {
        max-width: 9em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* グラフ切替用 segmented control */
.wl-seg {
    display: inline-flex;
    background: #fff;
    border: 1.5px solid #111;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

    .wl-seg .btn {
        border: 0;
        padding: .35rem .9rem;
        line-height: 1.1;
        font-weight: 600;
    }

        .wl-seg .btn:hover {
            background: #f5f5f5;
        }

    .wl-seg input:checked + .btn {
        background: #111;
        color: #fff;
    }

@media (max-width: 576px) {
    .wl-seg .btn {
        padding: .30rem .7rem;
        font-size: .925rem;
    }
}


/* =========================================================
   [30] Shared Calendar
   対象:
   - /SharedCalendar/Index
   - /SharedCalendar/Create
   - /SharedCalendar/Edit
   - /SharedCalendar/RecurringCreate
   - /SharedCalendar/RecurringEdit
   prefix: sc-
   ========================================================= */


/* ---------------------------------------------------------
   [30-01] Shared Calendar 共通ボタン
   --------------------------------------------------------- */

/* 主操作ボタン（登録・保存・編集リンク用）
   使用例:
   - Index 上部「+予定登録」「+定期スケジュール」
   - Create / Edit / RecurringCreate / RecurringEdit の保存系
   - Index モーダルの「編集」「定期設定を編集」
*/
.sc-primary-btn {
    border-radius: 999px;
    min-height: 46px;
    padding: 0.72rem 1.1rem;
    font-weight: 700;
    border: 1px solid #4f8ef7;
    background: linear-gradient(135deg, #6ea8fe 0%, #3b82f6 100%);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.22);
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}

    .sc-primary-btn:hover {
        color: #fff !important;
        filter: brightness(1.02);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(59, 130, 246, 0.28);
    }

    .sc-primary-btn:focus,
    .sc-primary-btn:active:focus {
        color: #fff !important;
        box-shadow: 0 0 0 0.1rem rgba(255,255,255,.65), 0 0 0 0.25rem rgba(59,130,246,.35);
    }

/* 補助ボタン（入力をやめて戻る、閉じる等） */
.sc-secondary-btn {
    border-radius: 999px;
    min-height: 46px;
    padding: 0.72rem 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #e9eef5 100%);
    border: 1px solid #c7d0dc;
    color: #5f6773 !important;
    box-shadow: 0 6px 16px rgba(120, 130, 145, 0.16);
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}

    .sc-secondary-btn:hover {
        color: #4f5763 !important;
        filter: brightness(1.01);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(120, 130, 145, 0.20);
    }

    .sc-secondary-btn:focus,
    .sc-secondary-btn:active:focus {
        color: #4f5763 !important;
        box-shadow: 0 0 0 0.1rem rgba(255,255,255,.65), 0 0 0 0.25rem rgba(148,163,184,.35);
    }

/* 危険操作（削除） */
.sc-danger-btn {
    border-radius: 999px;
    min-height: 46px;
    padding: 0.72rem 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
    border: 1px solid #f1a8a8;
    color: #d9485f !important;
    box-shadow: 0 6px 16px rgba(217, 72, 95, 0.10);
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}

    .sc-danger-btn:hover {
        color: #c92f49 !important;
        filter: brightness(1.01);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(217, 72, 95, 0.16);
    }

    .sc-danger-btn:focus,
    .sc-danger-btn:active:focus {
        color: #c92f49 !important;
        box-shadow: 0 0 0 0.1rem rgba(255,255,255,.65), 0 0 0 0.25rem rgba(217,72,95,.22);
    }

/* メイン戻るボタン（オレンジ）
   使用例:
   - SharedCalendar 各ページの「共有カレンダーへ戻る」
   - Index 上部の「Homeへ戻る」
*/
.sc-main-back-btn {
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    border: 1px solid #e58d63;
    background: linear-gradient(135deg, #f2a172 0%, #e76f51 100%);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(231, 111, 81, 0.18);
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}

    .sc-main-back-btn:hover {
        color: #fff !important;
        filter: brightness(1.02);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(231, 111, 81, 0.24);
    }

    .sc-main-back-btn:focus,
    .sc-main-back-btn:active:focus {
        color: #fff !important;
        box-shadow: 0 0 0 0.1rem rgba(255,255,255,.65), 0 0 0 0.25rem rgba(231,111,81,.35);
    }


/* ---------------------------------------------------------
   [30-02] Shared Calendar ページ共通レイアウト
   --------------------------------------------------------- */

.sc-page {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.sc-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.sc-header-card,
.sc-calendar-card {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    border: 1px solid #f2e6db;
    border-radius: 1.75rem;
    box-shadow: 0 14px 34px rgba(110, 84, 60, 0.08);
}

.sc-header-card {
    padding: 1.2rem 1.25rem 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

    .sc-header-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 88px;
        background: linear-gradient(135deg, rgba(255, 244, 236, 0.95) 0%, rgba(255, 249, 244, 0) 100%);
        pointer-events: none;
    }

.sc-calendar-card {
    padding: 1rem;
}

.sc-header-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.sc-header-main {
    min-width: 0;
}

.sc-eyebrow {
    color: #b07d62;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sc-title {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 700;
    color: #5a4336;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.sc-subtitle {
    margin: 0.45rem 0 0;
    color: #8d7467;
    font-size: 0.96rem;
    line-height: 1.7;
}

.sc-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.sc-add-btn {
    border-radius: 999px;
    padding: 0.72rem 1rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
}

.sc-sub-btn {
    border-radius: 0.5rem;
    min-height: 46px;
    padding: 0.72rem 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* ---------------------------------------------------------
   [30-03] Shared Calendar / Index 月移動と曜日ヘッダー
   --------------------------------------------------------- */

.sc-toolbar {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #fffaf6 0%, #fff4ed 100%);
    border: 1px solid #f1e2d7;
    border-radius: 1.35rem;
    padding: 1rem 1.05rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.sc-month-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.9rem;
}

.sc-month-center {
    text-align: center;
}

.sc-month-title {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: #3f342d;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.sc-today-link {
    display: inline-block;
    margin-top: 0.3rem;
    color: #c27657;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

    .sc-today-link:hover {
        text-decoration: underline;
    }

.sc-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 50px;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.72);
    color: #6f5444;
    border: 1px solid #ecd8c9;
    box-shadow: 0 4px 14px rgba(120, 88, 68, 0.06);
    transition: transform .08s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

    .sc-nav-btn:last-child {
        justify-self: end;
    }

    .sc-nav-btn:hover {
        background: #fff8f4;
        color: #5b4438;
        border-color: #e3c6b3;
        box-shadow: 0 8px 18px rgba(120, 88, 68, 0.11);
        transform: translateY(-1px);
    }

.sc-toolbar-bottom {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(226, 199, 182, 0.7);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sc-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid #ecd8c9;
    color: #6d584d;
    box-shadow: 0 4px 12px rgba(120, 88, 68, 0.05);
}

    .sc-filter-chip .form-check-input {
        margin-top: 0;
        cursor: pointer;
    }

    .sc-filter-chip .form-check-label {
        margin-bottom: 0;
        font-size: 0.93rem;
        font-weight: 600;
        color: #6d584d;
        cursor: pointer;
    }

.sc-week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sc-week-cell {
    text-align: center;
    font-weight: 700;
    color: #7a6458;
    padding: 0.7rem 0.25rem;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, #fff9f5 0%, #fff3ec 100%);
    border: 1px solid #f2e2d6;
}

    .sc-week-cell.sun {
        color: #d26b6b;
    }

    .sc-week-cell.sat {
        color: #6b8bd2;
    }

.sc-header-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
    margin-left: auto;
}

.sc-header-filter-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.sc-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.sc-toolbar-bottom {
    display: none;
}

@media (max-width: 992px) {
    .sc-header-side {
        width: 100%;
        align-items: stretch;
        margin-left: 0;
    }

    .sc-actions {
        justify-content: flex-start;
    }

    .sc-header-filter-row {
        justify-content: flex-start;
    }
}

.sc-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.28rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,248,243,0.96) 100%);
    border: 1px solid #ecd8c9;
    box-shadow: 0 6px 16px rgba(120, 88, 68, 0.06);
}

.sc-mode-btn {
    border: 0;
    background: transparent;
    color: #7a6255;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.78rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .08s ease;
    white-space: nowrap;
}

    .sc-mode-btn:hover {
        background: rgba(255, 244, 236, 0.95);
        color: #5f4a3f;
    }

    .sc-mode-btn.is-active {
        background: linear-gradient(135deg, #8ebcff 0%, #4f8ef7 100%);
        color: #fff;
        box-shadow: 0 6px 14px rgba(79, 142, 247, 0.22);
    }

    .sc-mode-btn:focus,
    .sc-mode-btn:focus-visible,
    .sc-mode-btn:active {
        outline: none;
        box-shadow: none;
    }

@media (max-width: 576px) {
    .sc-mode-toggle {
        width: 100%;
    }

    .sc-mode-btn {
        flex: 1 1 0;
        text-align: center;
        justify-content: center;
    }
}
/* ---------------------------------------------------------
   [30-04] Shared Calendar / Index カレンダーグリッド
   --------------------------------------------------------- */

.sc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.sc-day {
    min-height: 145px;
    background: linear-gradient(180deg, #fffdfb 0%, #fff7f1 100%);
    border: 1px solid #f3e5da;
    border-radius: 1.15rem;
    padding: 0.65rem;
    transition: transform .08s ease, box-shadow .18s ease, border-color .18s ease;
}

    .sc-day:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(117, 89, 67, 0.08);
        border-color: #eccfbc;
    }

    .sc-day.is-other-month {
        opacity: 0.58;
        background: #fcf7f3;
    }

    .sc-day.is-today {
        border: 2px solid #e7a27f;
        box-shadow: 0 10px 24px rgba(231, 111, 81, 0.14);
    }

    /* 休日セル */
    .sc-day.is-holiday {
        background: linear-gradient(180deg, #eef2f7 0%, #e3e8ef 100%);
        border-color: #cfd7e3;
    }

        .sc-day.is-holiday .sc-day-number {
            color: #5f6b7a;
            font-weight: 800;
        }

        .sc-day.is-holiday .sc-day-head {
            border-bottom: 1px solid rgba(120, 135, 155, 0.16);
            padding-bottom: 0.25rem;
        }

    .sc-day.is-other-month.is-holiday {
        background: linear-gradient(180deg, #f1f4f8 0%, #e8edf3 100%);
        opacity: 0.82;
    }

/* 日付ヘッダー */
.sc-day-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.sc-day-head-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.sc-day-date-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.sc-day-number {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4e4038;
}

.sc-day-weekday {
    display: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #8d7467;
}

    .sc-day-weekday.is-sun {
        color: #d98a8a;
    }

    .sc-day-weekday.is-sat {
        color: #7f9edc;
    }

.sc-holiday-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #7a5f52;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sc-today-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #e78a68 0%, #e76f51 100%);
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
}




/* ---------------------------------------------------------
   [30-05] Shared Calendar / Index 予定ピル
   --------------------------------------------------------- */

.sc-events {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sc-event-pill {
    border-radius: 0.9rem;
    background: #fff;
    border: 1px solid #f1ddd2;
    padding: 0.42rem 0.5rem;
    box-shadow: 0 2px 10px rgba(90, 67, 54, 0.04);
}

    .sc-event-pill.is-all-day {
        background: linear-gradient(180deg, #fff7f3 0%, #fff1ea 100%);
    }

    .sc-event-pill.is-completed {
        opacity: 0.6;
        text-decoration: line-through;
    }

    .sc-event-pill.is-recurring {
        border-left: 4px solid #9c7bd8;
    }

.sc-event-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

    .sc-event-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(90, 67, 54, 0.08);
    }

.sc-event-time {
    font-size: 0.72rem;
    font-weight: 700;
    color: #c06d4f;
    margin-bottom: 0.15rem;
}

.sc-event-main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sc-event-user {
    font-size: 0.74rem;
    color: #8a6e60;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-event-title {
    font-size: 0.83rem;
    color: #4b3d35;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-more {
    font-size: 0.78rem;
    color: #8d7467;
    padding-left: 0.15rem;
    margin-top: 0.1rem;
}

.sc-more-button {
    width: 100%;
    border: 1px dashed #d9b9a8;
    background: #fff8f4;
    color: #8d6d5c;
    border-radius: 0.85rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .18s ease, background-color .18s ease;
}

    .sc-more-button:hover {
        background: #fff1e8;
        box-shadow: 0 4px 12px rgba(90, 67, 54, 0.08);
        transform: translateY(-1px);
    }


/* ---------------------------------------------------------
   [30-06] Shared Calendar モーダル
   - 予定詳細
   - その日の全予定
   --------------------------------------------------------- */

.sc-modal-content {
    border-radius: 1.25rem;
    border: 1px solid #f2e6db;
    box-shadow: 0 12px 32px rgba(110, 84, 60, 0.12);
}

    /* モーダル下部ボタンの並び補正 */
    .sc-modal-content .modal-footer {
        display: flex;
        gap: 0.65rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

        .sc-modal-content .modal-footer .btn,
        .sc-modal-content .modal-footer form {
            margin: 0;
        }

/* 詳細表示カード */
.sc-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sc-detail-item {
    background: #fffaf6;
    border: 1px solid #f1e2d7;
    border-radius: 0.9rem;
    padding: 0.75rem 0.9rem;
}

.sc-detail-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #a2735d;
    margin-bottom: 0.15rem;
}

.sc-detail-value {
    color: #4b3d35;
    white-space: pre-wrap;
    word-break: break-word;
}

/* その日の全予定一覧 */
.sc-day-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.sc-day-event-item {
    width: 100%;
    text-align: left;
    border: 1px solid #f1ddd2;
    background: #fffaf7;
    border-radius: 1rem;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .18s ease, background-color .18s ease;
}

    .sc-day-event-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(90, 67, 54, 0.08);
        background: #fff5ef;
    }

    .sc-day-event-item.is-completed {
        opacity: 0.6;
        text-decoration: line-through;
    }

    .sc-day-event-item.is-recurring {
        border-left: 4px solid #9c7bd8;
    }

.sc-day-event-time {
    font-size: 0.78rem;
    font-weight: 700;
    color: #c06d4f;
    margin-bottom: 0.2rem;
}

.sc-day-event-user {
    font-size: 0.8rem;
    color: #8a6e60;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.sc-day-event-title {
    font-size: 0.92rem;
    color: #4b3d35;
    font-weight: 600;
}


/* ---------------------------------------------------------
   [30-07] Shared Calendar フォーム共通
   対象:
   - Create
   - Edit
   - RecurringCreate
   - RecurringEdit
   --------------------------------------------------------- */

.sc-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* RecurringCreate / RecurringEdit の小カード */
.sc-subcard {
    background: #fffaf6;
    border: 1px solid #f1e2d7;
    border-radius: 1rem;
    padding: 1rem;
}

.sc-subcard-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #a2735d;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.sc-inline-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.sc-help-text {
    font-size: 0.85rem;
    color: #8d7467;
    margin-top: 0.35rem;
}

/* 開閉アニメ付き補助エリア */
.sc-dynamic-wrap {
    overflow: hidden;
    transition: max-height .28s ease, opacity .22s ease, transform .22s ease, margin-top .22s ease;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    margin-top: 0;
    pointer-events: none;
}

    .sc-dynamic-wrap.is-open {
        max-height: 220px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 0.75rem;
        pointer-events: auto;
    }

.sc-dynamic-inner {
    background: #fff;
    border: 1px solid #f1ddd2;
    border-radius: 0.9rem;
    padding: 0.85rem;
}

/* 定期スケジュール一覧のカード間余白 */
.sc-list-card + .sc-list-card {
    margin-top: 1rem;
}


/* ---------------------------------------------------------
   [30-08] Shared Calendar レスポンシブ
   --------------------------------------------------------- */

@media (max-width: 992px) {
    .sc-grid,
    .sc-week-header {
        grid-template-columns: repeat(2, 1fr);
    }

    .sc-week-header {
        display: none;
    }

    .sc-day {
        min-height: 170px;
    }

    .sc-day-weekday {
        display: inline;
    }
}

@media (max-width: 576px) {
    .sc-month-nav {
        grid-template-columns: 1fr;
    }

    .sc-nav-btn,
    .sc-nav-btn:last-child {
        justify-self: stretch;
    }

    .sc-grid {
        grid-template-columns: 1fr;
    }

    .sc-day {
        min-height: auto;
    }
}


/* =========================================================
   [40] Account
   対象:
   - /Account/Manage
   prefix: am-
   ========================================================= */

.am-page {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.am-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.am-header-card,
.am-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid #f2e6db;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(110, 84, 60, 0.08);
}

.am-header-card {
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 1rem;
}

.am-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.am-eyebrow {
    color: #b07d62;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.am-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5a4336;
}

.am-subtitle {
    color: #8d7467;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.am-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.am-card {
    padding: 1.15rem;
    height: 100%;
}

.am-card-wide {
    grid-column: 1 / -1;
}

.am-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #5a4336;
    margin-bottom: 0.95rem;
}

.am-form-label {
    font-weight: 700;
    color: #6f5444;
    margin-bottom: 0.35rem;
}

.am-help {
    font-size: 0.85rem;
    color: #8d7467;
}

.am-status {
    border-radius: 1rem;
    margin-bottom: 1rem;
    background: #dff4fb;
    border: 1px solid #b9e4f2;
    color: #2d5f6d;
}

/* Account の保存系ボタン */
.am-primary-btn {
    border-radius: 999px;
    padding: 0.72rem 1.1rem;
    font-weight: 700;
    border: 1px solid #4f8ef7;
    background: linear-gradient(135deg, #6ea8fe 0%, #3b82f6 100%);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.22);
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}

    .am-primary-btn:hover {
        color: #fff !important;
        filter: brightness(1.02);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(59, 130, 246, 0.28);
    }

/* Account の補助ボタン（プレビュー、パスワード表示丸ボタン等） */
.am-sub-btn {
    border-radius: 999px;
    padding: 0.68rem 1rem;
    font-weight: 700;
    background: #fff8f4;
    border: 1px solid #ead6c8;
    color: #6f5444;
}

    .am-sub-btn:hover {
        background: #fff1e8;
        color: #5b4438;
    }

/* Account のオレンジ戻るボタン */
.am-main-back-btn {
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    border: 1px solid #e58d63;
    background: linear-gradient(135deg, #f2a172 0%, #e76f51 100%);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(231, 111, 81, 0.18);
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}

    .am-main-back-btn:hover {
        color: #fff !important;
        filter: brightness(1.02);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(231, 111, 81, 0.24);
    }

/* メール本文 textarea */
.am-textarea {
    min-height: 280px;
    resize: vertical;
}

/* Manage 内の入力欄 */
.am-card .form-control,
.am-card .form-select,
.am-card textarea {
    border-radius: 0.9rem;
    border-color: #eaded3;
    background: #fffdfb;
}

/* パスワード表示 input-group の左右角丸 */
.am-card .input-group .form-control {
    border-radius: 0.9rem 0 0 0.9rem;
}

.am-card .input-group .btn {
    border-radius: 0 0.9rem 0.9rem 0;
}

@media (max-width: 992px) {
    .am-grid {
        grid-template-columns: 1fr;
    }

    .am-card-wide {
        grid-column: auto;
    }
}


/* =========================================================
   [50] Admin / Holidays
   対象:
   - /Admin/Holidays/Index
   prefix: hd-
   以前ページ内 style にあった内容を移設
   ========================================================= */

.hd-page {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.hd-shell {
    max-width: 1080px;
    margin: 0 auto;
}

.hd-header-card,
.hd-content-card,
.hd-summary-card,
.hd-upload-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid #f2e6db;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(110, 84, 60, 0.08);
}

.hd-header-card {
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 1rem;
}

.hd-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hd-eyebrow {
    color: #b07d62;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hd-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5a4336;
}

.hd-subtitle {
    color: #8d7467;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.hd-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hd-main-back-btn {
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    border: 1px solid #e58d63;
    background: linear-gradient(135deg, #f2a172 0%, #e76f51 100%);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(231, 111, 81, 0.18);
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
    text-decoration: none;
}

    .hd-main-back-btn:hover {
        color: #fff !important;
        filter: brightness(1.02);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(231, 111, 81, 0.24);
    }

.hd-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1rem;
}

.hd-content-card,
.hd-summary-card,
.hd-upload-card {
    padding: 1.1rem;
}

.hd-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #5a4336;
    margin-bottom: 0.85rem;
}

.hd-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hd-info-item {
    background: #fffaf6;
    border: 1px solid #f1e2d7;
    border-radius: 1rem;
    padding: 0.85rem 0.95rem;
}

.hd-info-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #a2735d;
    margin-bottom: 0.2rem;
}

.hd-info-value {
    color: #4b3d35;
    font-weight: 600;
    word-break: break-word;
}

.hd-link-box {
    background: linear-gradient(180deg, #fff7f3 0%, #fff1ea 100%);
    border: 1px solid #f1ddd2;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    margin-top: 1rem;
}

    .hd-link-box a {
        color: #c06d4f;
        font-weight: 700;
        text-decoration: none;
    }

        .hd-link-box a:hover {
            text-decoration: underline;
        }

.hd-help-text {
    font-size: 0.9rem;
    color: #8d7467;
    line-height: 1.8;
    margin-bottom: 0;
}

.hd-upload-zone {
    border: 2px dashed #e7b8a2;
    background: linear-gradient(180deg, #fffdfb 0%, #fff7f1 100%);
    border-radius: 1.25rem;
    padding: 1.4rem 1rem;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, transform .08s ease;
}

    .hd-upload-zone:hover {
        border-color: #de9c7b;
        box-shadow: 0 8px 20px rgba(117, 89, 67, 0.08);
        transform: translateY(-1px);
    }

.hd-upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hd-upload-title {
    font-size: 1rem;
    font-weight: 700;
    color: #5a4336;
    margin-bottom: 0.35rem;
}

.hd-upload-sub {
    color: #8d7467;
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
}

.hd-file-input {
    max-width: 100%;
}

.hd-note-box {
    margin-top: 1rem;
    background: #fffaf6;
    border: 1px solid #f1e2d7;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
}

.hd-note-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #a2735d;
    margin-bottom: 0.35rem;
}

.hd-note-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #6f5444;
    line-height: 1.8;
    font-size: 0.92rem;
}

.hd-submit-btn {
    border-radius: 999px;
    padding: 0.78rem 1.15rem;
    font-weight: 700;
    min-width: 180px;
}

.hd-status {
    border-radius: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .hd-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   [60] Admin / Users
   対象:
   - /Admin/Users/Index
   - 将来的に /Admin/Users/Create にも流用可
   prefix: ad-
   ========================================================= */

.ad-page {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.ad-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.ad-header-card,
.ad-table-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid #f2e6db;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(110, 84, 60, 0.08);
}

.ad-header-card {
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 1rem;
}

.ad-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ad-eyebrow {
    color: #b07d62;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5a4336;
}

.ad-subtitle {
    color: #8d7467;
    margin-top: 0.35rem;
    margin-bottom: 0;
    line-height: 1.7;
}

.ad-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ad-create-btn {
    border-radius: 999px;
    padding: 0.72rem 1rem;
    font-weight: 700;
    border: 1px solid #4f8ef7;
    background: linear-gradient(135deg, #6ea8fe 0%, #3b82f6 100%);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.22);
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}

    .ad-create-btn:hover {
        color: #fff !important;
        filter: brightness(1.02);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(59, 130, 246, 0.28);
    }

.ad-main-back-btn {
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    border: 1px solid #e58d63;
    background: linear-gradient(135deg, #f2a172 0%, #e76f51 100%);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(231, 111, 81, 0.18);
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}

    .ad-main-back-btn:hover {
        color: #fff !important;
        filter: brightness(1.02);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(231, 111, 81, 0.24);
    }

.ad-table-card {
    padding: 1.1rem;
}

.ad-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.ad-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #5a4336;
    margin-bottom: 0.2rem;
}

.ad-card-subtitle {
    color: #8d7467;
    font-size: 0.92rem;
}

.ad-table-wrap {
    overflow-x: auto;
}

.ad-table {
    min-width: 980px;
    margin-bottom: 0;
    background: transparent;
    border-collapse: separate;
    border-spacing: 0 0.55rem;
}

    .ad-table thead th {
        background: transparent !important;
        border: 0 !important;
        color: #7f685b;
        font-size: 0.9rem;
        font-weight: 700;
        padding-bottom: 0.55rem;
        position: static;
    }

    .ad-table tbody tr {
        opacity: 1;
        animation: none;
    }

    .ad-table tbody td {
        background: #fffdfb;
        border-top: 1px solid #f1e2d7 !important;
        border-bottom: 1px solid #f1e2d7 !important;
        vertical-align: middle;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

        .ad-table tbody td:first-child {
            border-left: 1px solid #f1e2d7 !important;
            border-top-left-radius: 1rem;
            border-bottom-left-radius: 1rem;
        }

        .ad-table tbody td:last-child {
            border-right: 1px solid #f1e2d7 !important;
            border-top-right-radius: 1rem;
            border-bottom-right-radius: 1rem;
        }

    .ad-table tbody tr:hover td {
        background: #fff8f4;
        border-color: #eccfbc !important;
    }

.ad-no-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #fff1e8;
    border: 1px solid #f1ddd2;
    color: #b56b52;
    font-size: 0.82rem;
    font-weight: 700;
}

.ad-user-main {
    color: #4b3d35;
    font-weight: 700;
}

.ad-display-name {
    color: #6f5444;
    font-weight: 600;
}

.ad-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.ad-pill-admin {
    background: #e8f4ec;
    border-color: #cfe7d8;
    color: #2f7a4e;
}

.ad-pill-user {
    background: #f1f3f5;
    border-color: #dde2e7;
    color: #66707a;
}

.ad-pill-active {
    background: #eef4ff;
    border-color: #d7e4ff;
    color: #3767c7;
}

.ad-pill-inactive {
    background: #f4f5f7;
    border-color: #e1e4e8;
    color: #7b8490;
}

.ad-action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

    .ad-action-list form {
        margin: 0;
    }

.ad-action-btn {
    border-radius: 999px;
    min-height: 40px;
    padding: 0.62rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid #ead6c8;
    background: #fff8f4;
    color: #6f5444;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .08s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease;
}

    .ad-action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(110, 84, 60, 0.10);
    }

    .ad-action-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.ad-action-primary {
    border-color: #8ebcff;
    background: linear-gradient(135deg, #eef5ff 0%, #dfeeff 100%);
    color: #3169c6;
}

    .ad-action-primary:hover {
        color: #2d60b5;
        background: linear-gradient(135deg, #e8f2ff 0%, #d5e8ff 100%);
    }

.ad-action-neutral {
    background: #fffaf6;
    border-color: #eaded3;
    color: #6f5444;
}

    .ad-action-neutral:hover {
        background: #fff1e8;
        color: #5b4438;
    }

.ad-action-warn {
    background: linear-gradient(135deg, #fff7eb 0%, #ffe8c7 100%);
    border-color: #f2c27f;
    color: #a66316;
}

    .ad-action-warn:hover {
        color: #94580f;
    }

.ad-action-success {
    background: linear-gradient(135deg, #edf9f0 0%, #daf1e0 100%);
    border-color: #b9dfc4;
    color: #2f7a4e;
}

    .ad-action-success:hover {
        color: #286843;
    }

.ad-status {
    border-radius: 1rem;
    margin-bottom: 1rem;
    background: #dff4fb;
    border: 1px solid #b9e4f2;
    color: #2d5f6d;
}

.ad-help-note {
    font-size: 0.82rem;
    color: #9a7e70;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .ad-actions {
        width: 100%;
    }

        .ad-actions a {
            flex: 1 1 220px;
            text-align: center;
            justify-content: center;
        }
}

@media (max-width: 576px) {
    .ad-page {
        padding-bottom: 1rem;
    }

    .ad-header-card,
    .ad-table-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.ad-form-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid #f2e6db;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(110, 84, 60, 0.08);
    padding: 1.15rem;
}

.ad-form {
    margin-top: 0.25rem;
}

.ad-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.ad-form-field {
    min-width: 0;
}

.ad-form-label {
    font-weight: 700;
    color: #6f5444;
    margin-bottom: 0.35rem;
}

.ad-form-control {
    border-radius: 0.9rem;
    border-color: #eaded3;
    background: #fffdfb;
    min-height: 48px;
}

.ad-check-card {
    margin-top: 1rem;
    background: #fffaf6;
    border: 1px solid #f1e2d7;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
}

.ad-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0;
}

    .ad-check .form-check-input {
        margin-top: 0;
    }

.ad-check-label {
    font-weight: 700;
    color: #5b4438;
}

.ad-submit-row {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
}

.ad-create-sub-btn {
    border-radius: 999px;
    padding: 0.72rem 1rem;
    font-weight: 700;
    background: #fff8f4;
    border: 1px solid #ead6c8;
    color: #6f5444 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    transition: transform .08s ease, box-shadow .18s ease, background-color .18s ease;
}

    .ad-create-sub-btn:hover {
        background: #fff1e8;
        color: #5b4438 !important;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(110, 84, 60, 0.10);
    }

.ad-status-success {
    background: #edf9f0;
    border-color: #b9dfc4;
    color: #2f7a4e;
}

@media (max-width: 992px) {
    .ad-form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   [90] Future Memo
   ここは実装メモ。CSS定義はまだ増やしていない。

   現状 Bootstrap 素の見た目が残っている主なページ:
   - /Account/Login
   - /Account/Logout
   - /Admin/Users/Index
   - /Admin/Users/Create

   将来的には
   - Account 系を am-
   - Admin Users 系を ad-
   で寄せると、さらに統一感が上がる。
   ========================================================= */
