/* =========================================
   1. 変数定義 (:root)
   ========================================= */
:root {
    /* Bootstrap 5 変数オーバーライド */
    --bs-primary: #3E7092;
    --bs-primary-rgb: 62, 112, 146;
    --bs-body-font-family: "Meiryo UI", "メイリオ", Meiryo, sans-serif;
    --bs-body-line-height: 1.6;
    /* 従来変数 (Bootstrap移行までの互換性維持) */
    --primary-color: #3E7092;
    --primary-dark: #2e5a72;
    --header-bg: #fafafa;
    --footer-bg: #fafafa;
    --border-color: #ccc;
    --required-bg: #F5D0D1;
    --tag-orange: #FFA500;
    --tag-blue: #4169E1;
    --tag-yellow: #FFD700;
    --tag-red: #DC143C;
    --tag-gray: #767676;
    --success-bg: #a8d5ba;
    --success-border: #6bb896;
    /* ヘッダー用変数 */
    --header-text: #2F5A74;
    --header-hover-bg: rgba(47, 90, 116, 0.1);
}

/* =========================================
   2. 基本設定 (html, body, main, 共通クラス)
   ========================================= */

/* 横スクロール防止の基本設定 */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    /* フォント等は変数で適用済み */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    padding-top: 50px; /* ヘッダーの高さ分のパディング */
}

    /* ヘッダー部分は横スクロール制限を解除 */
    body:has(.system-header) {
        overflow-x: visible;
    }

/* ヘッダー要素とその子要素は横スクロール制限を解除 */
.system-header,
.system-header *,
.dropdown-container,
.dropdown-menu {
    overflow: visible !important;
}

/* 全ての要素に対する基本的な横スクロール防止 */
* {
    box-sizing: border-box;
}

/* コンテナ要素の横スクロール防止 */
.container,
.container-fluid,
.row,
.col,
[class*="col-"] {
    max-width: 100%;
    overflow-x: hidden;
}

/* ヘッダーコンテナは例外 */
.system-header .container-fluid {
    overflow-x: visible;
}

main {
    flex: 1 0 auto;
}

.main-container {
    max-width: 1200px;
    min-height: 500px;
    margin: 0 auto 30px auto;
    width: 100%;
    overflow-x: hidden; /* 横スクロール防止 */
}

/* メインコンテンツエリア（共通パディング） */
.main-content {
    padding: 0 2rem 2rem 2rem;
    max-width: 100%;
    overflow-x: hidden; /* 横スクロール防止 */
    box-sizing: border-box; /* パディングを含めた幅計算 */
}

/* =========================================
   3. レイアウト (Header, Footer, Navigation)
   ========================================= */

/* --- サイトヘッダー・フッター（簡易版） --- */
.site-footer {
    background-color: var(--footer-bg);
    text-align: center;
    border-top: 2px solid var(--border-color);
}

/* --- システムヘッダー（詳細版） --- */
.system-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    border-bottom: 2px solid var(--border-color);
    height: 50px;
    /* ドロップダウンをはみ出して表示するために必要 */
    overflow: visible;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

    /* ヘッダー内の共通Flexbox設定 (高さ100%・垂直中央揃え) */
    .system-header .container-fluid,
    .header-content,
    .header-left,
    .header-right,
    .system-title,
    .header-nav,
    .nav-item,
    .user-info,
    .dropdown-container,
    .logout-btn {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .system-header .container-fluid {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 0 0 1rem;
        align-items: stretch;
    }

.header-content {
    justify-content: space-between;
    width: 100%;
    align-items: stretch;
}

.header-left,
.header-right {
    align-items: stretch;
}

.header-left {
    gap: 2rem;
}

.header-right {
    gap: 1rem;
}

/* タイトル */
.system-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    color: var(--header-text);
}

/* ナビゲーション */
.header-nav {
    margin-left: 1rem;
    align-items: stretch;
}

/* ナビゲーションアイテム・ログアウトボタン共通 */
.nav-item,
.logout-btn {
    color: var(--header-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s;
    cursor: pointer;
}

.nav-item {
    gap: 0.5rem;
    padding: 0 2rem;
    /* アイコンとテキストの順序入替 */
    flex-direction: row-reverse;
}

.logout-btn {
    gap: 0.5rem;
    padding: 0 1.5rem 0 2rem;
    flex-direction: row-reverse;
}

.nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ドロップダウントリガー（button要素のスタイルリセット） */
.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    text-decoration: none;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ホバー・フォーカス時のスタイル（ドロップダウン含む） */
.nav-item:hover,
.logout-btn:hover,
.dropdown-container:hover .nav-item,
.dropdown-container:focus-within .nav-item,
.dropdown-container:hover .logout-btn,
.dropdown-container:focus-within .logout-btn {
    background-color: var(--header-hover-bg);
    color: var(--header-text);
    text-decoration: none;
}

/* ユーザー情報 */
.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.7rem;
    line-height: 1.2;
    color: #000; /* 通常時は黒文字 */
    font-weight: bold;
    max-width: 300px; /* 最大幅を制限 */
    overflow: hidden; /* はみ出し部分を隠す */
}

    .user-details span {
        max-width: 20em; /* 全角20文字相当で省略 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* 代理登録中の場合のみ赤文字にする */
.user-details-dairi {
    color: #9E0000;
}

/* ドロップダウンメニュー */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    padding: 0;
    margin: 0;
    min-width: 100%;
    white-space: nowrap;
}

.dropdown-container.is-open .dropdown-menu {
    display: block;
}

.header-right .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--header-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: normal;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
    position: relative;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #f8f9fa;
        color: var(--header-text);
        font-weight: bold;
        outline: none;
    }

        .dropdown-item:hover::before,
        .dropdown-item:focus::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background-color: var(--header-text);
        }

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0;
}

/* レスポンシブ: 画面幅が狭い場合アイコンのみ表示 */
@media (max-width: 1360px) {
    .user-details span {
        display: none;
    }
}

@media (max-width: 1090px) {
    .nav-item .nav-icon,
    .logout-btn .nav-icon,
    .alert-icon {
        /*display: none;*/
    }

    .nav-item,
    .logout-btn {
        padding: 0 1rem;
        justify-content: center;
    }
}

@media (max-width: 730px) {
    .system-title {
        display: none;
    }
}

.footer-org-name {
    color: var(--primary-dark) !important;
    font-size: 1.2rem !important;
    font-weight: bold;
}

.system-header .system-title {
    color: #2c5f8d;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
}

.section-header h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
}

.site-footer h2 {
    color: #2c5f8d;
    font-size: 1.20rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
}

.site-footer p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.footer-links {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

    .footer-links a {
        margin: 0 1rem;
        font-weight: bold;
    }

        .footer-links a:hover {
            text-decoration: underline;
            color: var(--primary-dark);
        }

.nav-item {
    gap: 0.5rem;
    padding: 0 2rem;
    /* アイコンとテキストの順序入替 */
    flex-direction: row-reverse;
}

.logout-btn {
    gap: 0.5rem;
    padding: 0 1.5rem 0 2rem;
    flex-direction: row-reverse;
}

.nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
/* ホバー・フォーカス時のスタイル（ドロップダウン含む） */
.nav-item:hover,
.logout-btn:hover,
.dropdown-container:hover .nav-item,
.dropdown-container:focus-within .nav-item,
.dropdown-container:hover .logout-btn,
.dropdown-container:focus-within .logout-btn {
    background-color: var(--header-hover-bg);
    color: var(--header-text);
    text-decoration: none;
}
/* ユーザー情報 */
.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.7rem;
    line-height: 1.2;
    color: #000; /* 通常時は黒文字 */
    font-weight: bold;
    max-width: 300px; /* 最大幅を制限 */
    overflow: hidden; /* はみ出し部分を隠す */
}

    .user-details span {
        max-width: 20em; /* 全角20文字相当で省略 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* 代理登録中の場合のみ赤文字にする */
.user-details-dairi {
    color: #9E0000;
}
/* ドロップダウンメニュー */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    padding: 0;
    margin: 0;
    min-width: 100%;
    white-space: nowrap;
}

.dropdown-container.is-open .dropdown-menu {
    display: block;
}

.header-right .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--header-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: normal;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
    position: relative;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #f8f9fa;
        color: var(--header-text);
        font-weight: bold;
        outline: none;
    }

        .dropdown-item:hover::before,
        .dropdown-item:focus::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background-color: var(--header-text);
        }

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0;
}
/* --- ページヘッダー --- */
.page-header {
    padding: 1.5rem 0 0 2rem;
    text-align: left;
    margin: 0;
    background-color: transparent;
}

.page-title {
    color: #2c5f8d;
    font-size: 1.45rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

/* main内に直接配置されたpage-title（アクセシビリティ対応） */
main > .page-title {
    padding: 1.5rem 0 0 2rem;
    text-align: left;
    margin: 0 0 0.5rem 0;
    background-color: transparent;
    max-width: none;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

/* --- 説明文 --- */
.instruction-text {
    padding: 0 2rem 0 6rem;
    margin-bottom: 1rem;
}
/* --- セクションヘッダー --- */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    gap: 15px;
}

.section-bar {
    width: 8px;
    height: 24px;
    background-color: #3a5f7d;
    flex-shrink: 0;
    margin-top: 2px;
}

.section-title {
    font-size: 1.1rem !important;
    font-weight: bold;
    margin: 0;
    line-height: 24px;
    flex: 1;
    position: relative;
}
    /* セクションタイトルの下線（点線） */
    .section-title::after {
        content: '';
        display: block;
        width: 100%;
        padding-bottom: 0.5rem;
        background-image: linear-gradient(to right, #999 0%, #999 33%, transparent 33%, transparent 100%);
        background-position: bottom;
        background-size: 6px 1px;
        background-repeat: repeat-x;
    }
/* 旧クラス名との互換性のため残す */
.section-title-underline::after {
    content: '';
    display: block;
    width: 100%;
    border-bottom: 1px dotted #999;
    margin-top: 0.5rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    flex-shrink: 0;
}

    .section-icon.info,
    .section-icon.check {
        color: var(--primary-color);
        background-color: transparent;
    }

    .section-icon.rectangle {
        background-color: var(--primary-color);
        border-radius: 0;
        width: 20px;
        height: 40px;
    }

    .section-icon img {
        width: 35px;
        height: 35px;
    }
/* レスポンシブ: 画面幅が狭い場合アイコンのみ表示 */
@media (max-width: 1360px) {

    .user-details span {
        display: none;
    }
}


@media (max-width: 1090px) {

    .nav-item span,
    .logout-btn span,
    .user-details span {
        display: none;
    }

    .nav-item,
    .logout-btn {
        padding: 0 1rem;
        justify-content: center;
    }
}

@media (max-width: 730px) {

    .system-title {
        display: none;
    }
}
/* =========================================
   4. フォーム (Inputs, Checkboxes, Textarea)
   ========================================= */
.form-group {
    margin-bottom: 1rem;
    /* Bootstrap: .mb-3 推奨 */
    text-align: left;
}

td .form-group {
    margin-bottom: 0rem !important;
}


.form-label {
    font-weight: bold;
    /* Bootstrap: .fw-bold */
    margin-bottom: 0.5rem;
    /* Bootstrap: .mb-2 */
    display: block;
    text-align: left;
    width: 100%;
    font-size: unset;
}

.required-badge {
    background-color: var(--required-bg);
    color: #000;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.5rem;
    display: inline-block;
}
/* .form-control はBootstrap標準設定を利用。独自修正のみ記述 */
.form-control,
.form-select {
    width: 100%;
    max-width: 500px;
    /* 全画面共通の入力フィールドスタイル */
    border: 0.5px solid #666;
    color: #000;
}

textarea.form-control {
    max-width: 100%;
    min-height: 100px;
}

.form-control-full {
    max-width: 100% !important;
}
/* 入力フィールドのフォーカス時スタイル（全画面統一） */
.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
    border-color: #0056b3 !important;
    outline: 3px solid rgba(0, 86, 179, 0.25) !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #F2F2F2;
    color: #666;
    cursor: not-allowed;
    opacity: 1;
}

.form-control.error,
.form-control.is-invalid,
.form-select.error,
.form-select.is-invalid {
    border-color: #dc3545;
}

    .form-control.error:focus,
    .form-control.is-invalid:focus,
    .form-select.error:focus,
    .form-select.is-invalid:focus {
        border-color: #dc3545;
        outline: 3px solid rgba(220, 53, 69, 0.25);
        outline-offset: 2px;
        box-shadow: none;
    }
/* 差戻コメント */
.form-text-diff {
    display: table;
    background-color: #FFFFCC;
    color: #C00000;
    padding: 0.125rem 0.5rem;
    margin-top: 0;
    margin-bottom: 0.125rem;
    font-size: 0.9rem;
    box-sizing: border-box;
}
/* =========================================
   SWE001系画面共通スタイル (ログイン関連画面)
   ========================================= */
/* カードの外枠スタイル */
.login-card,
.reset-card,
.otp-card,
.password-change-card,
.notice-card {
    border: 1px solid #3E7092;
}
    /* フォーム項目のラベルスタイル */
    .login-card .form-label,
    .reset-card .form-label,
    .otp-card .form-label,
    .password-change-card .form-label {
        color: #000;
        font-weight: bold;
    }
/* 中央寄せ用ヘルパー */
.form-centered {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box; /* パディングを含めた幅計算 */
}

    .form-centered .form-group {
        text-align: left;
    }

    .form-centered .form-label,
    .form-centered .form-control,
    .form-centered .field-error-message {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box; /* パディングを含めた幅計算 */
    }
/* プレースホルダー */
.form-control::placeholder {
    color: #767676;
}

.form-control::-webkit-input-placeholder {
    color: #767676;
}

.form-control::-moz-placeholder {
    color: #767676;
}

.form-control:-ms-input-placeholder {
    color: #767676;
}

input[type="date"]::placeholder {
    color: transparent;
}

input[type="date"]::-webkit-input-placeholder {
    color: transparent;
}

input[type="date"]::-webkit-datetime-edit-year-field {
    color: transparent;
}

.input-group-text {
    cursor: pointer;
}
/* =========================================
   5. ボタン (Buttons, Links)
   ========================================= */
/* 基本的な .btn スタイルはBootstrap標準に委任 */
.btn {
    font-weight: bold;
    /* 独自: 太字 */
    min-width: 130px;
    /* 独自: 最小幅 */
}
/* .btn-primary-custom: Bootstrap変数(--bs-primary)の設定により .btn-primary で代用可能 */
.btn-primary-custom {
    background-color: var(--bs-primary);
    color: white;
    border: none;
    /* 追加: Bootstrap 5のCSS変数を定義 */
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-color: white;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-color: white;
    --bs-btn-active-border-color: transparent;
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-color: white;
    /* 非活性時: 背景を薄いグレー、文字を濃いグレーにしてコントラスト比を確保 */
    /* #767676 on #e0e0e0 → コントラスト比 約4.6:1（WCAG AA通常テキスト基準を満たす） */
    --bs-btn-disabled-bg: #e0e0e0;
    --bs-btn-disabled-color: #767676;
    --bs-btn-disabled-border-color: #e0e0e0;
    --bs-btn-disabled-opacity: 1;
}

    /* 非活性時のスタイルを明示的に上書き（Bootstrap の opacity 合成に依存しない） */
    .btn-primary-custom:disabled,
    .btn-primary-custom.disabled {
        background-color: #e0e0e0;
        color: #767676;
        border-color: #e0e0e0;
        opacity: 1;
    }

    .btn-primary-custom:hover {
        background-color: var(--primary-dark);
        transform: scale(1.02);
        color: white;
    }

    .btn-primary-custom:focus,
    .btn-primary-custom:focus-visible {
        background-color: var(--primary-dark);
        transform: scale(1.05);
        outline: none;
        outline-offset: 2px;
        box-shadow: 0 0 0 2px white;
    }

.btn-outline-custom {
    background-color: white;
    color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
}

    .btn-outline-custom:hover {
        background-color: #f0f0f0;
        border-color: #666;
        transform: scale(1.05);
    }

    .btn-outline-custom:focus,
    .btn-outline-custom:focus-visible {
        background-color: #f0f0f0;
        border-color: #333;
        transform: scale(1.02);
        outline: none;
        outline-offset: 2px;
        box-shadow: 0 0 0 2px white;
    }

.address-button {
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    vertical-align: middle;
}

    .address-button:hover {
        background-color: var(--primary-dark);
        transform: scale(1.02);
        color: white;
    }

    .address-button:focus,
    .address-button:focus-visible {
        background-color: var(--primary-dark);
        transform: scale(1.05);
        outline: none;
        outline-offset: 2px;
        box-shadow: 0 0 0 2px white;
    }

.btn-save-primary {
    background-color: var(--bs-primary);
    color: white;
}

    .btn-save-primary:hover {
        background-color: var(--primary-dark);
        transform: scale(1.02);
        color: white;
    }

    .btn-save-primary:focus,
    .btn-save-primary:focus-visible {
        background-color: var(--primary-dark);
        transform: scale(1.05);
        outline: none;
        outline-offset: 2px;
        box-shadow: 0 0 0 2px white;
    }

.button-group {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
}
/* ボタン押下時に色を変えない */
.btn-primary-custom:active,
.btn-primary-custom:active:focus {
    background-color: var(--bs-primary);
    color: white;
    border: none;
    transform: none;
    box-shadow: none;
}

.btn-outline-custom:active,
.btn-outline-custom:active:focus {
    background-color: white;
    color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
    transform: none;
    box-shadow: none;
}

.btn-outline-custom.address-button:active,
.btn-outline-custom.address-button:active:focus {
    background-color: var(--bs-primary);
    color: white;
    border: none;
    transform: none;
    box-shadow: none;
}
/* アクションボタン（ダッシュボード等） */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

    .action-buttons.mt-2 {
        margin-top: 1rem;
    }
/* =========================================
   6. コンポーネント (Cards, Modals, Alerts)
   ========================================= */
/* --- カード --- */
.action-card {
    border: 2px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
    outline: none;
}

    .action-card:hover,
    .action-card:focus {
        border-color: var(--primary-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-0.5px);
        background-color: #fff;
    }

    .action-card:focus {
        box-shadow: 0 0 0 4px rgba(62, 112, 146, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.action-card-title {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.action-card-description {
    display: block;
    font-size: 0.875rem;
    color: #666;
}
/* --- 通知ボックス --- */
.notification-box {
    background-color: white;
    border: none;
    border-radius: 0.25rem;
    margin-bottom: 2rem;
    position: relative;
}

.notification-scroll-container {
    max-height: 300px;
    overflow: auto;
    width: 100%;
}
    /* 共通スクロールバー設定 */
    .notification-scroll-container::-webkit-scrollbar,
    .notice-card .card-body::-webkit-scrollbar {
        width: 16px;
        height: 16px;
    }

    .notification-scroll-container::-webkit-scrollbar-track,
    .notice-card .card-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-left: 1px solid var(--border-color);
        border-radius: 8px;
    }

    .notification-scroll-container::-webkit-scrollbar-thumb,
    .notice-card .card-body::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 8px;
        border: 3px solid #f1f1f1;
    }

        .notification-scroll-container::-webkit-scrollbar-thumb:hover,
        .notice-card .card-body::-webkit-scrollbar-thumb:hover {
            background: #333;
        }

    .notification-scroll-container::-webkit-scrollbar-button {
        height: 20px;
        background-color: #e0e0e0;
        border: 1px solid var(--border-color);
    }

        .notification-scroll-container::-webkit-scrollbar-button:vertical:decrement {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M6 4 L2 8 L10 8 Z" fill="%23333" /></svg>');
            background-repeat: no-repeat;
            background-position: center;
        }

        .notification-scroll-container::-webkit-scrollbar-button:vertical:increment {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M6 8 L2 4 L10 4 Z" fill="%23333" /></svg>');
            background-repeat: no-repeat;
            background-position: center;
        }
/* --- メッセージ・アラート --- */
.error-message {
    background-color: #F0D3D3;
    color: #000;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: bold;
    display: none;
}

    .error-message.show {
        display: block;
    }

    .error-message ul {
        margin: 0;
        padding-left: 0;
        list-style: none;
    }

    .error-message li {
        margin-bottom: 0.25rem;
    }

.field-error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    font-weight: bold;
    margin-top: 0.25rem;
    text-align: left;
    width: 100%;
    height: 1.2rem;
    visibility: hidden;
}

    .field-error-message.show {
        visibility: visible;
    }

.alert-success-custom {
    background-color: var(--success-bg);
    border: none;
    padding: 1rem;
    margin: 0 0 1.5rem 0;
    border-radius: 0.375rem;
    font-weight: bold;
    display: none;
    color: #333;
    max-width: 100%;
}
    /* 説明文用の成功メッセージスタイル */
    .alert-success-custom.show,
    .alert-info-custom {
        background-color: #D1E7DD;
        border: none;
        padding: 1rem;
        margin: 0 0 1.5rem 0;
        border-radius: 0.375rem;
        font-weight: bold;
        display: block;
        color: #333;
        max-width: 100%;
    }
/* 一時保存完了メッセージ */
.save-success-message {
    background-color: #A3CFBB;
    color: #000;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    display: none;
}

.alert-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.25rem;
}
/* --- タグ・バッジ --- */
.notification-status-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: bold;
    color: #333;
    font-size: 0.875rem;
    text-align: center;
    min-width: 60px;
}

    .notification-status-tag.status-returned,
    .notification-status-tag.status-unpaid,
    .notification-status-tag.status-reminder,
    .notification-status-tag.status-cancelled {
        background-color: #F2DCDB;
    }

    .notification-status-tag.status-approved {
        background-color: #DBEEF4;
    }
/* --- モーダル --- */
.modal {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

.modal-backdrop {
    display: block !important;
    background-color: rgba(0, 0, 0, 0.4);
}
/* モーダル表示時の背景固定（シンプル版） */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

.modal-dialog-top {
    max-width: 500px;
    position: relative;
    margin: 3rem auto;
    z-index: 1050;
}

.modal-content {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background-color: white;
}

.modal-header {
    background-color: transparent;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 1.5rem 0.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #2c5f8d;
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    text-align: left;
    flex: 1;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-close:hover,
    .btn-close:focus,
    .btn-close:focus-visible {
        color: #333;
        outline: none;
    }

.modal-body {
    padding: 1rem 2rem 1rem 2rem;
    text-align: center;
}

.modal-message {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #333;
}

.modal-sub-message {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.modal-footer {
    border-top: none;
    padding: 0 2rem 1.5rem 2rem;
    justify-content: center;
    gap: 1rem;
}

.modal-btn {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.375rem 2.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

.modal-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

    .modal-btn-primary:hover,
    .modal-btn-primary:focus,
    .modal-btn-primary:focus-visible {
        background-color: var(--primary-dark);
        outline: none;
    }

.modal-btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .modal-btn-secondary:hover,
    .modal-btn-secondary:focus,
    .modal-btn-secondary:focus-visible {
        background-color: #f5f5f5;
        outline: none;
    }

.modal-btn-danger {
    background-color: #9E0000;
    color: white;
}

    .modal-btn-danger:hover,
    .modal-btn-danger:focus,
    .modal-btn-danger:focus-visible {
        background-color: #7A0000;
        outline: none;
    }

.modal.fade .modal-dialog {
    transform: none;
    transition: none;
}

.modal.show .modal-dialog {
    transform: none;
}
/* =========================================
   7. テーブル (Tables)
   ========================================= */
/* --- お知らせテーブル --- */
.notice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

    .notice-table thead {
        background-color: #f8f9fa;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .notice-table th {
        border: none;
        padding: 0.75rem;
        text-align: center;
        font-weight: bold;
        font-size: 0.875rem;
    }

        .notice-table th:first-child {
            width: 150px;
        }

    .notice-table tbody tr {
        border-bottom: 1px solid #e0e0e0;
    }

        .notice-table tbody tr:last-child {
            border-bottom: none;
        }

    .notice-table td {
        padding: 1rem 0.75rem;
        vertical-align: top;
        font-size: 0.875rem;
    }

.notice-date-cell {
    color: #333;
}

.notice-content-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.notice-content-text {
    line-height: 1.6;
    color: #333;
}
/* --- 通知テーブル --- */
.notification-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    margin: 0;
}

    .notification-table thead {
        background-color: #f8f9fa;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .notification-table th {
        border: none;
        padding: 0.75rem;
        text-align: center;
        font-weight: bold;
        font-size: 0.875rem;
        white-space: nowrap;
    }

        .notification-table th:nth-child(1) {
            width: 80px;
        }

        .notification-table th:nth-child(2) {
            width: 130px;
        }

        .notification-table th:nth-child(4) {
            width: 150px;
        }

        .notification-table th:nth-child(5) {
            width: 100px;
        }

    .notification-table tbody tr {
        border-bottom: 1px solid #e0e0e0;
    }

        .notification-table tbody tr:last-child {
            border-bottom: none;
        }

    .notification-table td {
        padding: 0.75rem;
        vertical-align: middle;
        font-size: 0.875rem;
        white-space: nowrap;
    }
        /* 内容列のみ折り返しを許可 */
        .notification-table td:nth-child(3) {
            white-space: normal;
            min-width: 300px;
        }

.notification-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-block;
    margin-right: 0.5rem;
}

    .notification-link:hover,
    .notification-link:focus {
        color: var(--primary-dark);
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: 2px;
        text-decoration: none;
    }
/* =========================================
   8. 特定機能 (Datepicker, Progress Bar)
   ========================================= */
/* --- Datepicker --- */
.datepicker {
    padding: 15px !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: auto;
}

    .datepicker table tr td.day,
    .datepicker table tr th.dow,
    .datepicker table tr th.prev,
    .datepicker table tr th.next {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    .datepicker table tr th.prev,
    .datepicker table tr th.next {
        font-size: 0.85rem !important;
        font-weight: normal !important;
        text-decoration: underline !important;
        color: #0055d3 !important;
        cursor: pointer !important;
        border-radius: 4px !important;
        background: transparent !important;
        white-space: nowrap !important;
    }

        .datepicker table tr th.prev:hover,
        .datepicker table tr th.next:hover {
            background-color: #f0f0f0 !important;
        }

        .datepicker table tr th.prev:after,
        .datepicker table tr th.next:after,
        .datepicker table tr th.prev:before,
        .datepicker table tr th.next:before,
        .datepicker table tr th.prev i,
        .datepicker table tr th.next i {
            display: none !important;
        }

    .datepicker table tr th.datepicker-switch {
        height: 40px !important;
        line-height: 40px !important;
        text-align: center !important;
        font-weight: bold !important;
        font-size: 1rem !important;
        width: auto !important;
        pointer-events: none !important;
        cursor: default !important;
    }

    .datepicker table tr td.day:hover,
    .datepicker table tr td.day.focused {
        background: #eeeeee !important;
        border-radius: 50% !important;
        cursor: pointer !important;
    }

    .datepicker table tr td.active,
    .datepicker table tr td.active:hover,
    .datepicker table tr td.active.disabled,
    .datepicker table tr td.active.disabled:hover {
        background-color: #0055d3 !important;
        border-radius: 50% !important;
        background-image: none !important;
        color: #fff !important;
        text-shadow: none !important;
    }

    .datepicker table tr td.today:not(.active),
    .datepicker table tr td.today.disabled:not(.active) {
        font-weight: 700 !important;
        text-decoration: underline !important;
        color: #0055d3 !important;
        background-color: transparent !important;
        border: none !important;
    }

        .datepicker table tr td.today:not(.active):hover,
        .datepicker table tr td.today.focused:not(.active) {
            background-color: #eeeeee !important;
        }
/* --- プログレスバー --- */
.progress-container {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-left {
    flex: 0 0 auto;
    margin-left: 2rem;
}

.nav-right {
    display: flex;
    gap: 1rem;
    flex: 0 0 auto;
    margin-right: 2rem;
}

.progress-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.progress-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
    background-color: #F0FBFF;
    padding: 0.75rem 0;
    border-radius: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    line-height: unset;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1.5rem;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.step-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    border: 2px solid transparent;
}

    .step-circle.active,
    .step-circle.completed {
        background-color: #1254A1;
        color: white;
        border: 2px solid #1254A1;
    }

    .step-circle.inactive {
        background-color: #d3d3d3;
        color: #666;
        border: 2px solid #d3d3d3;
    }

.step-label {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

    .step-label.completed,
    .step-label.active {
        color: #1254A1;
        font-weight: bold;
    }

    .step-label.inactive {
        color: #666;
        font-weight: 500;
    }

.step-connector {
    flex: 1;
    height: 4px;
    background-color: #1254A1;
    margin: 0;
    position: relative;
    top: -15px;
    z-index: 1;
    min-width: 40px;
    max-width: 50px;
}

    .step-connector.inactive {
        background: none;
        border-top: 4px dashed #d3d3d3;
        height: 4px;
        margin: 0;
        position: relative;
        top: -15px;
        z-index: 1;
        min-width: 40px;
        max-width: 50px;
    }
/* =========================================
   9. レスポンシブ対応
   ========================================= */

@media (max-width: 768px) {
    .main-content {
        padding: 0 1rem 1.5rem 1rem;
    }

    .form-control {
        max-width: 100%;
    }

    .button-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .step-connector {
        display: none;
    }
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.step-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    border: 2px solid transparent;
}

    .step-circle.active,
    .step-circle.completed {
        background-color: #1254A1;
        color: white;
        border: 2px solid #1254A1;
    }

    .step-circle.inactive {
        background-color: #d3d3d3;
        color: #666;
        border: 2px solid #d3d3d3;
    }

.step-label {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

    .step-label.completed,
    .step-label.active {
        color: #1254A1;
        font-weight: 500;
    }

    .step-label.active {
        font-weight: bold;
    }

.step-connector {
    flex: 1;
    height: 4px;
    background-color: #1254A1;
    margin: 0;
    position: relative;
    top: -15px;
    z-index: 1;
    min-width: 40px;
    max-width: 50px;
}

    .step-connector.inactive {
        background: none;
        border: none;
        position: relative;
        background-image: repeating-linear-gradient(to right, #d3d3d3 0px, #d3d3d3 12px, transparent 12px, transparent 20px);
        background-size: 20px 4px;
        background-repeat: repeat-x;
        background-position: 0 0;
        height: 4px;
        margin: 0;
        top: -15px;
        z-index: 1;
        min-width: 40px;
        max-width: 50px;
    }

        .step-connector.inactive::before {
            content: '';
            display: none;
        }
/* =========================================
   9. レスポンシブ (Media Queries)
   ========================================= */
@media (max-width: 991px) {
    .progress-wrapper {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    /* Header Layout */

    .header-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    /* Page Header & Container */
    .page-header {
        padding: 1.5rem 1rem 0 1rem;
    }

    .main-content {
        padding: 0 1rem 1.5rem 1rem !important;
    }

    .main-container {
        padding: 0 1rem;
    }
    /* Forms */
    .form-control,
    .form-label,
    .field-error-message {
        width: 100%;
    }
    /* Progress Bar */
    .progress-container {
        padding: 1rem 0;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .step-connector {
        display: none;
    }

    .step {
        margin-bottom: 1rem;
    }

    .step-circle {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 0 1rem;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-right {
        flex-direction: column;
        gap: 0.5rem;
    }
    /* Dashboard Actions */
    .action-buttons {
        grid-template-columns: 1fr;
    }

    .notification-table th:nth-child(4),
    .notification-table td:nth-child(4) {
        display: none;
    }
}
/* =========================================
   添付資料テーブル（メーターテーブル）
   ========================================= */
.attachment-table,
.meter-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    border: 1px solid #666;
}

    .attachment-table th,
    .attachment-table td,
    .meter-table th,
    .meter-table td {
        border: 1px solid #666;
        padding: 0.5rem;
        text-align: left;
        vertical-align: middle;
        height: 25px;
    }

    .attachment-table th,
    .meter-table th {
        background-color: #D9D9D9;
        font-weight: bold;
        text-align: center;
    }
    /* Noカラム（第1列）は中央揃え */
    .attachment-table td:first-child,
    .meter-table td:first-child {
        text-align: center;
    }
    /* 書類名カラム（第2列）は左揃え */
    .attachment-table td:nth-child(2) {
        text-align: left;
    }
/* ====================
   共通ファイル選択スタイル
   ==================== */
/* ファイル選択エリア */
.file-area {
    border: 2px dashed #ccc;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}
    /* ファイル入力要素を視覚的に隠す（セキュリティ制限を回避） */
    .file-area input[type="file"] {
        position: absolute;
        width: 0.1px;
        height: 0.1px;
        opacity: 0;
        overflow: hidden;
        z-index: -1;
    }

    .file-area:hover {
        border-color: #3E7092;
        background-color: #f0f8ff;
    }

    .file-area.drag-over {
        border-color: #3E7092;
        background-color: #e6f2ff;
    }
/* ファイル選択テキスト */
.file-select-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    font-size: 0.7rem;
    cursor: pointer;
    width: 100%;
    pointer-events: none; /* 子要素のクリックイベントを無効化 */
}

    .file-select-text * {
        pointer-events: none; /* すべての子要素のクリックイベントを無効化 */
    }
/* アップロードアイコン（SVG画像） */
.upload-icon {
    width: 10px;
    height: 10px;
    display: inline-block;
    background-image: url('../icon/arrow-up-from-bracket-solid-full.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/* ファイルを選択（青色・太字） */
.file-select-label {
    color: #3366FF;
    font-weight: bold;
    font-size: 0.7rem;
}
/* またはドラッグ（グレー） */
.file-drag-label {
    color: #999;
    font-weight: normal;
    font-size: 0.7rem;
}
/* ファイル表示エリア */
.file-display {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    background-color: #f9f9f9;
}

.file-name {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    cursor: pointer;
}

.file-remove {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

    .file-remove:hover {
        background-color: #c82333;
    }
/* =========================================
   チェックボックス共通スタイル
   ========================================= */

.form-check-input {
    margin-right: 0.3rem;
}

    .form-check-input:checked {
        background-color: #3E7092 !important;
        border-color: #3E7092 !important;
    }

    .form-check-input:focus {
        border-color: #3E7092 !important;
        box-shadow: 0 0 0 0.25rem rgba(62, 112, 146, 0.25) !important;
    }

.form-check-label {
    font-size: 0.8rem;
}
/* 縦並び */
.checkbox-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}
/* 横並び（デフォルト） */
.checkbox-group-inline {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    flex-direction: unset !important;
}
/* 縦並び */
.radio-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}
/* 横並び（デフォルト） */
.radio-group-inline {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    flex-direction: unset !important;
}


.data-table {
    caption-side: unset !important;
}

.scroll-spy-list {
    list-style: none;
    padding-inline-start: 0;
    margin-block-end: 0;
}
/* 改行コードを反映させ、端まで来たら折り返す */
.text-break-line {
    white-space: pre-wrap;
}
/* 外部リンクアイコン */
.icon-external-link {
    width: 14px;
    height: 14px;
    margin-right: 2px;
    vertical-align: -2px;
}
/* body をflexレイアウトにする */
body, #swearea {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 50px);
}
/* main が余白を埋める */
main {
    height: auto; /* fit-content を削除 */
    flex: 1; /* 残りスペースを埋める */
    min-height: 0;
}
/* フッターを下に固定 */
.site-footer {
    margin-top: auto;
}

.blockquote-footer::before {
    content: "" !important;
    speak: never !important;
}
/* site.css に追加 */
[class^="bi-"]::before,
[class*=" bi-"]::before {
    speak: never !important;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
}


#msgArea {
    padding: 0 1rem 0rem 1rem;
}

/* =========================================
   SWE999 共通スタイル（全ページ共通）
   ========================================= */

/* 下部ナビゲーションボタン配置 */
.bottom-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.nav-left {
    margin-left: 2rem;
}

.nav-right {
    margin-right: 2rem;
}

/* SWE999 セクションヘッダーバー */
.section-header-bar {
    width: 8px;
    height: 40px;
    background-color: #2c5282;
    margin-right: 1rem;
}

/* =========================================
   SWE999 共通スタイル（002〜006 共通）
   ========================================= */
.section-header:first-of-type {
    margin-top: 0;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.section-text {
    line-height: 1.8;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    margin-left: 65px;
}

/* =========================================
   SWE999 共通スタイル（002・003 共通）
   ========================================= */
.section-content {
    margin-bottom: 1.5rem;
}

.browser-list {
    margin-left: 85px;
    margin-bottom: 0.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
    color: #333;
    font-family: inherit;
}

    .browser-list div {
        font-family: inherit;
    }

.note-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-left: 65px;
}

.card-images {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

    .card-images img {
        height: 30px;
    }

/* =========================================
   SWE999 共通スタイル（005・006 共通）
   ========================================= */
.back-button-container {
    margin-bottom: 2rem;
    margin-left: 65px;
}

.btn-back {
    background-color: white;
    color: #3E7092;
    border: 2px solid #3E7092;
    padding: 0.375rem 2rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

    .btn-back:hover {
        background-color: #f5f5f5;
    }

.btn-primary-custom {
    color: white !important;
}


/* ====================
   メンテナンスお知らせメッセージ
   ==================== */
.maintenance-warning {
    background-color: #FFF3CD;
    border: 1px solid #FFECB5;
    padding: 0.75rem 1rem;
    margin: 0 1rem 1rem 1rem;
    border-radius: 0.375rem;
    color: #664D03;
    font-size: 0.9rem;
    max-height: 110px;
    overflow: auto;
}

.toiawase-footer {
    max-height: 100px;
    overflow: auto;
}

.fc-red {
    color: #C00000 !important;
}

/* =========================================
   エラーアイコン
   ========================================= */
.error-icon {
    vertical-align: -0.125em;
    margin-right: 0.25rem;
    padding-top: 2px;
}

/* エラーアイコンは site.js の swe_applyErrorIcons により <img class="error-icon"> として
   各エラーメッセージ（.invalid-feedback.d-block）の先頭へ挿入される。
   TagHelper 等が出力する <img> と併せ、色以外でエラーを識別できるようにする。 */

.form-check-input {
    border: 0.5px solid #666;
}

.version {
    font-size: 1rem;
    padding-top: 8px;
    padding-left: 5px;
}
