/* =====================================================
   物品貸出システム - スタイルシート
   大妻女子大学 メディア教育開発グループ
===================================================== */

/* ----- CSS変数 ----- */
:root {
    --primary-color: #42104A;
    --primary-light: #6B2D73;
    --primary-dark: #2D0B33;
    --secondary-color: #B1365F;
    --accent-color: #AB8B00;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    
    --bg-color: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.3s ease;
}

/* ----- リセットと基本スタイル ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ----- ヘッダー ----- */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    color: white;
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-sub {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-list a {
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* ----- メインコンテンツ ----- */
.main {
    flex: 1;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.page-title h1 i {
    margin-right: 10px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ----- 進捗インジケーター ----- */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background-color: var(--success-color);
    color: white;
}

.step-label {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 500;
}

.step-line {
    width: 60px;
    height: 3px;
    background-color: var(--border-color);
    margin: 0 10px;
    margin-bottom: 28px;
}

/* ----- フォームセクション ----- */
.form-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.form-section.hidden {
    display: none;
}

/* 汎用非表示クラス */
.hidden {
    display: none !important;
}

.section-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-title i {
    margin-right: 10px;
}

.application-deadline-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(220, 53, 69, 0.18);
    border-left: 5px solid var(--danger-color);
    background-color: rgba(255, 193, 7, 0.15);
}

.application-deadline-icon {
    width: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-deadline-icon i {
    font-size: 1.15rem;
}

.application-deadline-notice p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--danger-color);
    font-weight: 700;
}

/* ----- フォーム要素 ----- */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

label.required::after {
    content: ' *';
    color: var(--danger-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-white);
}

/* プレースホルダーの色を薄く */
input::placeholder,
textarea::placeholder {
    color: #aaa;
    opacity: 1;
}

input::-webkit-input-placeholder {
    color: #aaa;
}

input::-moz-placeholder {
    color: #aaa;
}

input:-ms-input-placeholder {
    color: #aaa;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 16, 74, 0.1);
}

input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
    border-color: var(--danger-color);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ----- ボタン ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34c759 100%);
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #8c959d 100%);
    cursor: not-allowed;
    transform: none;
    opacity: 0.8;
}

.btn-success .btn-text,
.btn-success .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-success .btn-loading.hidden,
.btn-success .btn-text.hidden {
    display: none;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn:only-child {
    margin-left: auto;
}

/* ----- 日付入力ラッパー ----- */
.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input-wrapper input[type="text"].flatpickr-input {
    width: 100%;
    padding-right: 40px; /* アイコンのスペース */
    cursor: pointer; /* 入力欄全体をクリック可能に見せる */
    background-color: #fff; /* Readonlyでも白背景に */
}

.date-input-wrapper .date-icon {
    position: absolute;
    right: 12px;
    color: var(--text-light);
    pointer-events: none; /* アイコンへのクリックを下のinputに透過させる */
    font-size: 1.1rem;
}

/* Flatpickrのカスタマイズ（大きく表示） */
.flatpickr-calendar {
    transform: scale(1.2); /* 全体を1.2倍に拡大 */
    transform-origin: top left; /* 左上を基準に拡大 */
    margin-top: 10px;
    background-color: #f9f9f9; /* 背景を少し濃いグレーに変更して区別 */
    border: 1px solid #999; /* 枠線を濃くして境界を明確に */
    box-shadow: 0 15px 40px rgba(0,0,0,0.25); /* 影を強くして浮き出し感を強調 */
}

/* 前月・翌月の日付を非表示にする（1ヶ月分だけきっちり表示） */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    visibility: hidden;
}

/* 土日祝日の背景色（淡く） */
.flatpickr-day:nth-child(7n):not(.flatpickr-prev-month):not(.flatpickr-next-month) {
    background-color: #f0f8ff; /* 土曜日の背景（淡い青） */
}
.flatpickr-day:nth-child(7n+1):not(.flatpickr-prev-month):not(.flatpickr-next-month) {
    background-color: #fff0f0; /* 日曜日の背景（淡い赤） */
}

/* モバイル対応: 画面幅が狭いときは拡大率を調整 */
@media (max-width: 768px) {
    .flatpickr-calendar {
        transform: scale(1.0); /* モバイルでは標準サイズに戻す（はみ出し防止） */
        left: 50% !important;
        transform: translateX(-50%) !important; /* 中央寄せ */
    }
}

/* Flatpickrの土日祝日カラー */
.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(57,57,57,0.3);
}

/* 土曜日 */
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month,
span.flatpickr-weekday:nth-child(7n),
.flatpickr-day:nth-child(7n):not(.flatpickr-prev-month):not(.flatpickr-next-month) {
    color: #007bff;
}

/* 日曜日 */
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month,
span.flatpickr-weekday:nth-child(7n+1),
.flatpickr-day:nth-child(7n+1):not(.flatpickr-prev-month):not(.flatpickr-next-month) {
    color: #dc3545;
}

/* 祝日（JSでクラス付与） */
.flatpickr-day.is-holiday {
    color: #dc3545 !important;
    font-weight: bold;
    background-color: #fff9f9;
    border-color: #ffcccc;
}

/* 選択された祝日 */
.flatpickr-day.selected.is-holiday,
.flatpickr-day.startRange.is-holiday,
.flatpickr-day.endRange.is-holiday {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* ----- カレンダー ----- */
.calendar-container {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: visible;
    position: relative;
    z-index: 10;
    background: var(--bg-white);
}

#calendar,
#calendarMulti {
    padding: 15px;
    min-height: 400px;
}

.fc {
    font-family: inherit;
}

.fc .fc-toolbar-title {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.fc .fc-button-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.fc .fc-button-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.fc .fc-day-today {
    background-color: rgba(66, 16, 74, 0.1) !important;
}

/* 日曜日を赤字に */
.fc .fc-day-sun .fc-daygrid-day-number {
    color: #dc3545;
}

/* 祝日マーク用 */
.fc .fc-daygrid-day[title] .fc-daygrid-day-number {
    color: #dc3545;
}

/* 選択されていない日曜・祝日は赤字を維持 */
.fc .fc-day-sun:not(.fc-day-selected) .fc-daygrid-day-number,
.fc-holiday .fc-daygrid-day-number {
    color: #dc3545 !important;
}

.fc .fc-daygrid-day:hover {
    background-color: rgba(66, 16, 74, 0.05);
    cursor: pointer;
}

.fc .fc-daygrid-day.fc-day-selected {
    background-color: var(--primary-color) !important;
}

.fc .fc-daygrid-day.fc-day-selected .fc-daygrid-day-number {
    color: white !important;
    font-weight: 700;
}

.fc .fc-daygrid-day.fc-day-selected .fc-daygrid-day-top {
    color: white;
}

/* ----- 情報ボックス ----- */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    background-color: rgba(23, 162, 184, 0.1);
    border-left: 4px solid var(--info-color);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.info-box i {
    color: var(--info-color);
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-box p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* ----- 注意ボックス ----- */
.notice-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.notice-box.warning {
    background-color: rgba(255, 193, 7, 0.15);
    border-left: 4px solid var(--warning-color);
}

.notice-box i {
    color: var(--warning-color);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.notice-box p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

.notice-box p strong {
    color: #856404;
}

/* ----- 使用目的クイックボタン ----- */
.purpose-label-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.purpose-label-row label {
    margin-bottom: 0;
}

.purpose-quick-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.purpose-btn {
    padding: 3px 10px;
    font-size: 0.75rem;
    border: 1px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.purpose-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.purpose-btn:active {
    transform: scale(0.95);
}

/* ----- 貸出タイプ選択 ----- */
.lending-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.lending-type-selector.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.type-option {
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center everything initially */
    padding: 20px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
}

.type-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    width: 100%;
}

.type-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0; /* Removing bottom margin to align with text */
}

.type-card .type-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.type-card .type-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: block; /* Ensure it takes full width/new line */
}

.type-option input:checked + .type-card {
    border-color: var(--primary-color);
    background: rgba(66, 16, 74, 0.05);
    box-shadow: 0 0 0 3px rgba(66, 16, 74, 0.1);
}

.type-option:hover .type-card {
    border-color: var(--primary-light);
}

/* ----- 時間入力セクション ----- */
.time-inputs-section,
.multi-time-inputs-section {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
}

.time-inputs-section h4,
.multi-time-inputs-section h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-input-group {
    margin-bottom: 15px;
}

.time-input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.time-input {
    width: 120px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.time-with-checkbox {
    display: flex;
    align-items: center;
    gap: 15px;
}

.different-day-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.different-day-check input {
    width: auto;
    margin: 0;
}

/* 時間バリデーション警告 */
.time-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin-top: 8px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #856404;
}

.time-warning i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* 入力フィールドのエラースタイル */
input.error,
select.error,
textarea.error {
    border-color: var(--danger-color) !important;
    background-color: #fff8f8;
}

/* エラーメッセージ */
.error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #721c24;
}

.error-message i {
    flex-shrink: 0;
}

.additional-date-input {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.additional-date-input label {
    margin: 0;
    font-weight: 400;
    font-size: 0.85rem;
}

.additional-date-input input {
    width: auto;
}

/* 複数日用時間入力カード */
.multi-time-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 12px;
}

.multi-time-card:first-child {
    border: 2px solid var(--primary-color);
}

/* 休日のカードは背景を変更 */
.multi-time-card.holiday {
    background: #fffbf0;
    border-color: #ffc107;
}

.multi-time-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.multi-time-card-date {
    font-weight: 600;
    color: var(--primary-color);
}

.multi-time-card-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1rem;
    margin-left: auto;
    order: 10; /* 常に最後に配置 */
}

.multi-time-card-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.multi-time-card-inputs .time-input-mini {
    font-size: 0.85rem;
}

.multi-time-card-inputs .time-input-mini label {
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.time-input-note {
    display: block;
    font-size: 0.7rem;
    color: var(--primary-color);
    margin-top: 2px;
}

.multi-time-card-inputs input {
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
    text-align: center;
}

/* 複数日の翌日返却/前日受取オプション */
.multi-time-card-options {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.multi-time-card-options .different-day-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 5px;
}

.multi-time-card-options .different-day-check input {
    width: auto;
    margin: 0;
}

/* 自動計算された日付の表示 */
.auto-date-display {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: #e7f3ff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
    font-weight: 500;
}

.auto-date-display.hidden {
    display: none;
}

.multi-time-card-options .additional-date-input {
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
}

.multi-time-card-options .additional-date-input label {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 4px;
}

.multi-time-card-options .additional-date-input input[type="date"] {
    width: 100%;
    padding: 6px;
    font-size: 0.85rem;
}

/* 日曜・祝日警告（インライン） */
.holiday-warning-inline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 10px 12px;
    margin: 8px 0;
    font-size: 0.85rem;
    color: #856404;
}

.holiday-warning-inline i {
    color: #ffc107;
    flex-shrink: 0;
    margin-top: 2px;
}

.holiday-warning-inline span {
    flex: 1;
    line-height: 1.4;
}

/* 日曜・祝日警告 */
.holiday-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-md);
    padding: 12px 15px;
    margin-top: 15px;
}

.holiday-warning i {
    color: #856404;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.holiday-warning-content {
    flex: 1;
}

.holiday-warning-content strong {
    display: block;
    color: #856404;
    margin-bottom: 5px;
}

.holiday-warning-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.5;
}

.holiday-warning-dates {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #856404;
}

/* 時間コピーボタン */
.copy-time-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: var(--info-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.copy-time-btn:hover {
    background: #138496;
}

.copy-time-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

/* 1日選択表示 */
.selected-date-single {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-top: 15px;
    text-align: center;
}

.selected-date-single .selected-date-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ----- 曜日選択 ----- */
.weekday-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.weekday-option {
    cursor: pointer;
}

.weekday-option input {
    display: none;
}

.weekday-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: 600;
    transition: var(--transition);
}

.weekday-option:hover span {
    border-color: var(--primary-light);
}

.weekday-option input:checked + span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ----- 時限選択 ----- */
.period-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.period-option {
    cursor: pointer;
}

.period-option input {
    display: none;
}

.period-option span {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.period-option span small {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.period-option:hover span {
    border-color: var(--primary-light);
}

.period-option input:checked + span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.period-option input:checked + span small {
    color: rgba(255,255,255,0.8);
}

/* ----- 選択日付ボックス ----- */
.selected-dates-box,
.selected-schedule-box {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-top: 20px;
}

.selected-dates-box h4,
.selected-schedule-box h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-date-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

.selected-date-tag .remove-date {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1;
}

.no-dates,
.no-schedule {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.selected-schedule p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* ----- 物品リスト ----- */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.category-tab i {
    font-size: 0.85rem;
}

.category-tab .count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.category-tab.active .count {
    background: rgba(255,255,255,0.3);
}

/* 物品テーブル */
.equipment-grid {
    margin-bottom: 100px; /* フローティングパネル用スペース */
}

.equipment-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.equipment-table thead {
    background: var(--primary-color);
    color: white;
}

.equipment-table th {
    padding: 12px 10px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: left;
}

.equipment-table th.eq-image-col,
.equipment-table th.eq-stock-col,
.equipment-table th.eq-action-col {
    text-align: center;
}

.equipment-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.equipment-row {
    transition: var(--transition);
}

.equipment-row:hover {
    background: rgba(66, 16, 74, 0.03);
}

.equipment-row.selected {
    background: rgba(66, 16, 74, 0.08);
}

.equipment-row.unavailable {
    opacity: 0.5;
}

.eq-name-col { width: 40%; }
.eq-image-col { width: 80px; }
.eq-stock-col { width: 80px; }
.eq-action-col { width: 120px; }

.eq-name-cell {
    padding-left: 15px !important;
}

.eq-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
    display: inline-block;
    margin-right: 4px;
}

.eq-item-notes {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-top: 2px;
    font-weight: 400;
}

.eq-item-notes i {
    margin-right: 3px;
    font-size: 0.7rem;
}

.eq-details-link {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--info-color);
    text-decoration: none;
    border: 1px solid var(--info-color);
    padding: 1px 5px;
    border-radius: 4px;
    transition: var(--transition);
    vertical-align: middle;
}

.eq-details-link:hover {
    background-color: var(--info-color);
    color: white;
}

.eq-details-link i {
    margin-left: 2px;
    font-size: 0.7rem;
}

.eq-image-cell {
    text-align: center;
}

.eq-thumb {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.eq-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.eq-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eq-thumb-placeholder {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.eq-stock-cell {
    text-align: center;
    font-size: 0.9rem;
}

.eq-stock-cell .available {
    font-weight: 700;
    color: var(--success-color);
}

.eq-stock-cell .limited {
    font-weight: 700;
    color: #d39e00;
}

.eq-stock-cell .out {
    font-weight: 700;
    color: var(--danger-color);
}

.eq-stock-cell .stock-total {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* 在庫詳細ボタン */
.stock-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    padding: 0;
    border: none;
    background: #e8f4fd;
    color: #0056b3;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.stock-detail-btn:hover {
    background: #0056b3;
    color: #fff;
}

/* 日別在庫モーダル */
.daily-stock-modal {
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
}

.daily-stock-modal-content h3 {
    margin: 0 0 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.daily-stock-summary {
    margin: 0 0 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.daily-stock-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.daily-stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--success-color);
}

.daily-stock-item.limited {
    border-left-color: #d39e00;
    background: #fffbf0;
}

.daily-stock-item.out {
    border-left-color: var(--danger-color);
    background: #fff5f5;
}

.daily-stock-date {
    font-size: 0.85rem;
    color: var(--text-color);
}

.daily-stock-status {
    font-size: 0.9rem;
}

.daily-stock-available {
    font-weight: 700;
}

.daily-stock-available.available {
    color: var(--success-color);
}

.daily-stock-available.limited {
    color: #d39e00;
}

.daily-stock-available.out {
    color: var(--danger-color);
}

.daily-stock-total {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.daily-stock-note {
    margin: 15px 0;
    padding: 10px;
    background: #e8f4fd;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #0056b3;
}

.daily-stock-note i {
    margin-right: 5px;
}

.daily-stock-modal-content .btn {
    width: 100%;
    margin-top: 10px;
}

/* インライン日別在庫表示（在庫0の場合のみ） */
.inline-daily-stock {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}

.daily-stock-tag {
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

.daily-stock-tag.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.daily-stock-tag.limited {
    background: #fff3e0;
    color: #e65100;
}

.daily-stock-tag.out {
    background: #ffebee;
    color: #c62828;
}

.eq-action-cell {
    text-align: center;
}

.eq-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.eq-controls .qty-btn {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-color);
}

.eq-controls .qty-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.eq-controls .qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.eq-controls .qty-display {
    width: 30px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 旧グリッドスタイルを削除 */
.equipment-item {
    display: none;
}

.equipment-item.unavailable {
    opacity: 0.5;
    pointer-events: none;
}

.equipment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.equipment-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    flex: 1;
    padding-right: 8px;
}

.equipment-image-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.equipment-image-btn:hover {
    background: var(--primary-color);
    color: white;
}

.equipment-item-stock {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.equipment-item-stock .available {
    font-weight: 600;
    color: var(--success-color);
}

.equipment-item-stock .limited {
    font-weight: 600;
    color: #d39e00;
}

.equipment-item-stock .out {
    font-weight: 600;
    color: var(--danger-color);
}

.equipment-item-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-color);
}

.qty-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-display {
    width: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* フローティング選択パネル */
.selected-float {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 100;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.selected-float-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.selected-float-header i {
    transition: var(--transition);
}

.selected-float-header i.rotated {
    transform: rotate(180deg);
}

.selected-float-body {
    padding: 0 20px;
    overflow-y: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.selected-float-body.expanded {
    max-height: 50vh;
    padding: 15px 20px;
    overflow-y: auto;
}

.selected-float .no-items {
    color: var(--text-muted);
    text-align: center;
    padding: 10px;
}

.selected-float-actions {
    padding: 15px 20px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.selected-float-actions .btn {
    flex: 1;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.selected-item:last-child {
    margin-bottom: 0;
}

.selected-item-name {
    flex: 1;
    font-size: 0.9rem;
}

.selected-item-qty {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 15px;
}

.selected-item-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
}

/* 画像モーダル */
.modal-image {
    max-width: 500px;
    padding: 20px;
    position: relative;
}

.modal-image h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding-right: 40px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--bg-color);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
}

.image-preview-container {
    position: relative;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.image-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.image-placeholder p {
    font-size: 0.9rem;
}

/* ----- 確認画面 ----- */
.confirmation-box {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 20px;
}

.confirmation-box h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.confirm-table {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
}

.confirm-table th,
.confirm-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.confirm-table th {
    width: 35%;
    background-color: rgba(66, 16, 74, 0.05);
    font-weight: 500;
    color: var(--text-light);
}

.confirm-table td {
    color: var(--text-color);
}

/* ----- チェックボックス ----- */
.agreement {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #800020; /* ワインレッド */
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: 700;
}

.agreement-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ----- モーダル ----- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: modalIn 0.3s ease;
    position: relative;
}

.modal-large {
    max-width: 700px;
    text-align: left;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.modal-icon.success {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--success-color);
}

.modal-icon.warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: var(--warning-color);
}

.modal-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.modal-actions {
    margin-top: 25px;
}

.terms-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.terms-content h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p {
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ----- ローディング ----- */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ----- フッター ----- */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 40px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ----- レスポンシブ ----- */
@media screen and (max-width: 768px) {
    .header-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        width: 100%;
        order: 3;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 15px;
        gap: 5px;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list a {
        display: block;
        padding: 12px 15px;
    }

    .page-title h1 {
        font-size: 1.4rem;
    }

    .progress-indicator {
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
    }

    .step-line {
        display: none;
    }

    .step {
        flex: 1;
        min-width: 70px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .form-section {
        padding: 20px 15px;
    }

    .application-deadline-notice {
        padding: 14px 15px;
        gap: 12px;
    }

    .application-deadline-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .application-deadline-notice p {
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* 貸出タイプセレクタのレスポンシブ */
    .lending-type-selector,
    .lending-type-selector.three-cols {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .type-card {
        /* Keep as column layout similar to desktop */
        flex-direction: column; 
        padding: 15px;
        gap: 8px;
        align-items: center;
        text-align: center;
    }

    .type-card i {
        font-size: 1.8rem; /* Slightly smaller than desktop but larger than row layout */
        margin-bottom: 5px;
        min-width: auto;
        text-align: center;
    }

    /* .type-card-content is not used in HTML, removing it */

    .type-card .type-name {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .type-card .type-desc {
        font-size: 0.8rem;
    }

    /* 時間入力のレスポンシブ */
    .time-with-checkbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .multi-time-card-inputs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* 物品選択のレスポンシブ */
    .category-tabs {
        gap: 6px;
        padding: 12px;
    }

    .category-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .category-tab .count {
        display: none;
    }

    /* 物品テーブルのレスポンシブ */
    .equipment-table thead {
        display: none;
    }

    .equipment-table,
    .equipment-table tbody,
    .equipment-table tr,
    .equipment-table td {
        display: block;
        width: 100%;
    }

    .equipment-row {
        background: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-bottom: 10px;
        padding: 12px;
    }

    .equipment-row.selected {
        border-color: var(--primary-color);
        background: rgba(66, 16, 74, 0.05);
    }

    .eq-name-cell,
    .eq-image-cell,
    .eq-stock-cell,
    .eq-action-cell {
        display: flex;
        align-items: center;
        padding: 5px 0 !important;
        border: none !important;
    }

    .eq-name-cell {
        padding-left: 0 !important;
        font-weight: 600;
    }

    .eq-image-cell {
        justify-content: flex-start;
    }

    .eq-thumb {
        width: 45px;
        height: 45px;
    }

    .eq-stock-cell {
        justify-content: flex-start;
    }

    .eq-stock-cell::before {
        content: '在庫: ';
        color: var(--text-muted);
        font-size: 0.8rem;
        margin-right: 5px;
    }

    .eq-action-cell {
        justify-content: flex-end;
        margin-top: 5px;
        padding-top: 10px !important;
        border-top: 1px solid var(--border-color) !important;
    }

    .selected-float-body {
        padding: 12px 15px;
    }

    .selected-item {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
    }

    .confirm-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .confirm-table td {
        padding-top: 5px;
        padding-left: 15px;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .modal-image {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .logo-main {
        font-size: 1rem;
    }

    .logo-sub {
        font-size: 0.75rem;
    }

    .page-title h1 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .eq-item-name {
        font-size: 0.85rem;
    }
}

/* ----- 変更ページ固有スタイル ----- */
.detail-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-of-type {
    border-bottom: none;
}

.detail-section h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h5 {
    font-size: 1rem;
    color: var(--text-color);
    margin: 15px 0 10px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.detail-table th,
.detail-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.detail-table th {
    width: 150px;
    background-color: #f8f9fa;
    color: var(--text-light);
    font-weight: 500;
}

.current-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.current-items li {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: var(--radius-sm);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-items li i {
    color: var(--primary-color);
}

/* コンパクトな物品グリッド */
.equipment-grid.compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: var(--radius-md);
}

.equipment-card.compact {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.equipment-card.compact:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.equipment-card.compact.selected {
    border-color: var(--success-color);
    background-color: #e8f5e9;
}

.equipment-card.compact.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.equipment-card.compact .equipment-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 50%;
}

.equipment-card.compact .equipment-info h4 {
    font-size: 0.85rem;
    margin: 0;
}

.equipment-card.compact .stock {
    font-size: 0.75rem;
}

.equipment-card.compact .selected-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* 選択物品リスト */
.selected-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selected-items-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.selected-items-list .item-name {
    font-weight: 500;
}

.selected-items-list .item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    background-color: var(--danger-color);
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background-color: #c82333;
}

.no-items {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* ステータスバッジ */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background-color: var(--warning-color);
    color: #333;
}

.status-approved {
    background-color: var(--info-color);
    color: white;
}

.status-borrowed {
    background-color: var(--primary-color);
    color: white;
}

.status-returned {
    background-color: var(--success-color);
    color: white;
}

.status-cancelled {
    background-color: #6c757d;
    color: white;
}

.status-expired,
.status.expired {
    background-color: #dc3545;
    color: white;
}

/* カードヘッダー拡張 */
.card-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* カテゴリタブ（コンパクト版） */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.category-tab {
    padding: 6px 14px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* レスポンシブ（変更ページ） */
@media screen and (max-width: 768px) {
    .detail-table th {
        width: 120px;
    }

    .selected-items-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .selected-items-list .item-controls {
        width: 100%;
        justify-content: space-between;
    }

    .equipment-grid.compact {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ----- 印刷スタイル ----- */
@media print {
    .header,
    .footer,
    .form-actions,
    .progress-indicator {
        display: none;
    }

    .main {
        padding: 0;
    }

    .form-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ----- 変更画面追加スタイル ----- */

/* フォームヒント */
.form-hint {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f8ff;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--info-color);
}

/* 貸出タイプセクション */
.lending-type-section {
    margin-bottom: 20px;
}

/* 複数日選択用 */
.selected-dates-display {
    min-height: 40px;
}

.date-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.date-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--primary-light);
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
}

.date-tag button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}

.date-tag button:hover {
    opacity: 1;
}

.date-picker-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-picker-inline input {
    flex: 1;
    max-width: 200px;
}

.no-dates {
    color: var(--text-muted);
    font-style: italic;
}

/* 選択物品リスト - 備考 */
.selected-items-list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-remarks {
    width: 100%;
}

.btn-toggle-remarks {
    background: none;
    border: 1px dashed var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.btn-toggle-remarks:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.remarks-input {
    margin-top: 8px;
}

.remarks-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.remarks-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.item-remark {
    color: var(--text-muted);
    font-size: 0.85em;
    font-style: italic;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 5px;
    font-size: 1.1em;
}

.btn-remove:hover {
    color: #c82333;
}

/* 曜日・時限セレクター（変更画面用） */
.weekday-selector,
.period-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weekday-option,
.period-option {
    display: flex;
    align-items: center;
}

.weekday-option input,
.period-option input {
    display: none;
}

.weekday-option span,
.period-option span {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.weekday-option input:checked + span,
.period-option input:checked + span {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.period-option span small {
    display: block;
    font-size: 0.75em;
    color: inherit;
    opacity: 0.8;
}
/* =====================================================
   利用日程詳細表示スタイル
===================================================== */
.schedule-detail {
    margin-top: 8px;
}

.schedule-type-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 12px;
}

.schedule-table {
    margin-top: 0;
}

/* 複数日リスト */
.multi-dates-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.date-item {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.date-number {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8em;
    font-weight: 500;
    margin-right: 12px;
    min-width: 50px;
    text-align: center;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-value {
    font-weight: 500;
    color: var(--text-color);
}

.time-info {
    font-size: 0.85em;
    color: var(--text-light);
}

/* 備考表示（読み取り専用） */
.remarks-display {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 0.95em;
    line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .date-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-number {
        margin-right: 0;
        margin-bottom: 6px;
    }
    
    .time-info {
        font-size: 0.8em;
    }
}

/* =====================================================
   管理者備考スタイル
===================================================== */
.admin-remarks {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.admin-remarks h5 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95em;
}

.admin-remarks .remarks-display {
    background: #fff9e6;
    border-color: var(--warning-color);
}

.current-schedule-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.current-schedule-section h5 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95em;
}

/* =====================================================
   時間設定・提案メッセージスタイル
===================================================== */
.business-hours-info {
    font-size: 0.85em;
    color: #0056b3;
    background: #e8f4fd;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: 1px solid #b8daff;
    margin-left: auto;
}

.suggestion-message {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 0.85em;
    color: #004085;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-message i {
    color: #0056b3;
}

.multi-time-card-pickup-return {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

/* 貸出休止期間カレンダースタイル */
.fc-day-closed-period {
    position: relative;
}

.fc-day-closed-period::after {
    content: '休止';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.6em;
    color: var(--danger-color);
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 3px;
    border-radius: 2px;
}

.fc-day-closed {
    position: relative;
}

/* =====================================================
   変更画面カレンダースタイル
===================================================== */
.change-calendar-container {
    /* index.htmlの.calendar-containerと#calendarのスタイルを統合 */
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    position: relative;
    z-index: 10;
    padding: 15px;
    min-height: 400px;
}

.change-calendar-hint {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.selected-dates-container {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
}

.selected-dates-container h5 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.no-dates-hint {
    color: var(--text-muted);
    font-size: 0.9em;
    font-style: italic;
}

.date-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.date-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85em;
}

.date-tag button {
    background: none;
    border: none;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}

.date-tag button:hover {
    opacity: 1;
}

/* 時間設定セクション */
.time-settings-section {
    margin-top: 20px;
}

.time-settings-section h5 {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.time-setting-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 12px;
}

.time-setting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.date-label {
    font-weight: 500;
    color: var(--text-color);
}

.holiday-warning {
    font-size: 0.8em;
    color: var(--warning-color);
}

.time-setting-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.time-input-group {
    flex: 1;
    min-width: 120px;
}

.time-input-group label {
    display: block;
    font-size: 0.8em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.time-input-group input[type="time"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

/* カレンダーの警告表示 */
.fc .fc-day-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.fc .fc-day-warning .fc-daygrid-day-number {
    color: #856404;
}

/* カレンダーの休業日表示 */
.fc .fc-day-closed {
    background-color: rgba(220, 53, 69, 0.1) !important;
    pointer-events: none;
}

.fc .fc-day-closed .fc-daygrid-day-number {
    color: #999;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .time-setting-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .time-input-group {
        min-width: 100%;
    }
}

/* 特別営業時間バッジ */
.special-hours-badge {
    display: inline-block;
    background-color: #e7f3ff;
    color: #0056b3;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    border: 1px solid #b8daff;
}

/* ローディングオーバーレイ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none !important;
}

.loading-content {
    background: white;
    padding: 40px 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.loading-content i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.loading-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 15px;
    font-weight: 500;
}

/* ボタン無効化スタイル */
.btn-disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}


/* モバイル表示の調整 */
@media (max-width: 768px) {
    /* 日本語�E単語途中での改行を防ぁE*/
    h1, h2, h3, h4, h5, h6, th, .btn, .step-label, .type-name {
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    /* チE�Eブルなどの横スクロール */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 入力フォームのフォントサイズ調整�E�ズーム防止�E�E*/
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
        font-size: 16px; /* iOSでのズーム防止 */
    }
}

/* �x�~�o�b�W�̃X�^�C�� */
.closed-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: white;
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
}

/* ���o�C���Ή� */
@media (max-width: 768px) {
    .closed-badge {
        font-size: 0.65rem;
        padding: 1px 5px;
        bottom: 3px;
        right: 3px;
    }
}

@media (max-width: 480px) {
    .closed-badge {
        /* �e�L�X�g���\���ɂ��ăA�C�R���̂ݕ\�� */
        font-size: 0; 
        padding: 0;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        bottom: 2px;
        right: 2px;
    }
    
    .closed-badge i {
        font-size: 12px; /* �A�C�R���̃T�C�Y�𖾎� */
    }
}


/* �e�L�X�g�}�[�J�[�i�ԉ������j */
.text-marker-red {
    background: linear-gradient(transparent 60%, #ffcccc 60%);
    font-weight: bold;
}


/* Manual Date Selection Styles */
.date-option-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.date-mode-select { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border-color); }
.manual-warning-box { margin-top: 5px; padding: 8px; background-color: #fff3cd; border-radius: 4px; font-size: 0.8rem; color: #856404; border: 1px solid #ffeeba; }
.text-danger { color: #dc3545; }
.business-hours-info.is-closed {
    color: #b54747;
    background: #fdecec;
    border-color: #f6caca;
}
.date-option-stack { margin-top: 10px; }
.date-option-block { margin-bottom: 10px; }
.date-option-block:last-child { margin-bottom: 0; }

/* Utilities for Manual Date Selection (mimic Bootstrap) */
.row.date-option-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  gap: 10px;
}

.col-md-6 {
  flex: 0 0 calc(50% - 5px);
  max-width: calc(50% - 5px);
}

.mb-2 {
  margin-bottom: 0.5rem;
}
.mt-2 {
    margin-top: 0.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.8rem;
}

.form-select, .form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-select:focus, .form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-select.form-select-sm, .form-control.form-control-sm {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: 0.875rem;
}

.d-block { display: block !important; }
.text-start { text-align: left !important; }
.small { font-size: 0.875em; }

