/* ============================================================
   ニセコキャンプ場予約システム — メインスタイルシート
   ============================================================ */

/* === リセット & 基本設定 === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット */
    --color-primary: #2b5c3b;
    /* Forest Green */
    --color-primary-dark: #1b3d26;
    --color-text: #2c3e2d;
    --color-text-light: #5a7560;
    --color-bg: #f8faf9;
    --color-border: #e2e8e4;
    --color-error: #ef4444;
    --color-success: #10b981;
    --color-accent: #d4a373;
    /* Sand Beige/Wood tone accent */

    /* タイポグラフィ */
    --font-family: 'Noto Sans JP', sans-serif;

    /* 余白・角丸 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

.lucide {
    vertical-align: text-bottom;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === ヘッダー === */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.header__nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header__link {
    color: var(--color-text-light);
    font-weight: 500;
    transition: color 0.2s ease;
}

.header__link:hover {
    color: var(--color-primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary-dark);
}

/* === メインコンテンツ === */
.main {
    flex: 1;
    padding: 2rem 0;
}

/* === フッター === */
.footer {
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* === ヒーロー === */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* === サイトセクション === */
.site-section {
    margin-bottom: 3rem;
}

.site-section__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 0.75rem;
    border-left: 5px solid var(--color-primary);
}

/* === サイトカード === */
.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.site-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.site-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.site-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-card__body {
    padding: 1.5rem;
    flex: 1;
}

.site-card__name {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.site-card__description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}

.site-card__meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.site-card__actions {
    display: flex;
    gap: 0.75rem;
}

/* === ボタン === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(43, 92, 59, 0.15);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(43, 92, 59, 0.25);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* === ページヘッダー === */
.page-header {
    margin-bottom: 2rem;
}

.back-link {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* === 予約フォーム用 === */
.reserve-site-info {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.reserve-site-info__name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reserve-site-info__name i {
    color: var(--color-primary);
    flex-shrink: 0;
}

.reserve-site-info__desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.reserve-site-info__meta {
    display: flex;
    gap: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row--three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Custom Checkbox Styling */
input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    background-color: #fff !important;
    border: 2px solid var(--color-border) !important;
    border-radius: 4px !important;
    display: inline-block !important;
    /* Changed from inline-grid */
    position: relative !important;
    /* Added for ::after positioning */
    cursor: pointer !important;
    margin: 0 !important;
    transform: translateY(4px) !important;
    transition: all 0.2s ease-in-out !important;
}

input[type="checkbox"]:checked {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* 信頼性の高いボーダーを使ったチェックマーク表現 */
input[type="checkbox"]:checked::after {
    content: "" !important;
    position: absolute !important;
    left: 5px !important;
    top: 2px !important;
    width: 6px !important;
    height: 10px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

input[type="checkbox"]:focus {
    outline: max(2px, 0.15em) solid var(--color-primary-light);
    outline-offset: max(2px, 0.15em);
}

.form-label--checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
    /* Reset label margin for flex flow */
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 92, 59, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background-color: #fff;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.price-calc {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.price-calc__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-calc__total {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 2px solid #bbf7d0;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.price-calc__note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 0.5rem;
}

.alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

/* 管理者メニュー追加分 (Step 147 参照) */
.admin-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.admin-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.admin-header__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 38px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn--ghost i {
    width: 1.1rem;
    height: 1.1rem;
}

/* ============================================================
   復元・再定義用 CSS (管理者画面・カレンダー等)
   ============================================================ */

/* === 管理者ダッシュボード (統計・フィルター・テーブル) === */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card--reservations::after {
    background: var(--color-primary);
}

.stat-card--revenue::after {
    background: #f59e0b;
}

.stat-card--occupancy::after {
    background: #3b82f6;
}

.stat-card--checkin::after {
    background: #8b5cf6;
}

.stat-card--checkin-today::after {
    background: #f97316;
}

/* 統計カードのアクティブ状態（クリックで絞り込み中） */
.stat-card--active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary), 0 4px 12px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.stat-card__icon {
    font-size: 2.5rem;
}

.stat-card__info {
    display: flex;
    flex-direction: column;
}

.stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.stat-card__label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.admin-filters {
    margin-bottom: 2rem;
}

.admin-filters__card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-filters__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.admin-filters__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-filters__row:last-child {
    grid-template-columns: 1fr 1fr 2fr;
    margin-bottom: 0;
}

.admin-filters__group {
    display: flex;
    flex-direction: column;
}

.admin-filters__select {
    width: 100%;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.admin-filters__actions {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.5rem;
}

.admin-table-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: #fafafa;
}

.admin-table-header__title {
    font-size: 1.25rem;
    font-weight: 700;
}

.admin-table-header__count {
    font-size: 0.85rem;
    color: var(--color-text-light);
    background: #e5e7eb;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.admin-table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--color-border);
    background: #f9fafb;
    white-space: nowrap;
}

.admin-table__row {
    transition: background 0.15s;
}

.admin-table__row:hover {
    background: #f9fafb;
}

.admin-table__row--cancelled {
    opacity: 0.6;
}

.admin-table__cell {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge--confirmed {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.badge--cancelled {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge--danger {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.badge--success {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.guest-info {
    display: flex;
    flex-direction: column;
}

.guest-info__name {
    font-weight: 600;
}

.btn--sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn--danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn--danger:hover {
    background: #dc2626;
}

.btn--success {
    background: #10b981;
    color: white;
    border: none;
}

.btn--success:hover {
    background: #059669;
}

.admin-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.admin-empty__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* === モーダル === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal__content {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.modal__content--wide {
    max-width: 720px;
}

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

.modal__title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* === 管理者カレンダー (ガントチャート) === */
.gantt-wrapper {
    padding: 0 0 1rem 0;
}

.gantt-scroll {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gantt-row {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    min-width: max-content;
}

.gantt-row:last-child {
    border-bottom: none;
}

.gantt-row--header {
    background: #1f2937;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.gantt-cell {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gantt-cell--label {
    width: 160px;
    min-width: 160px;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: left;
    justify-content: center;
    align-items: flex-start;
    background-color: #fff;
    /* 不透明対応 */
    border-right: 1px solid var(--color-border);
    position: sticky;
    left: 0;
    z-index: 10;
}

.gantt-row--header .gantt-cell--label {
    background-color: #1f2937;
}

.gantt-cell--day {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 2px;
    font-size: 0.7rem;
    cursor: default;
    border-right: 1px solid #f3f4f6;
    position: relative;
    transition: background 0.15s;
}

.gantt-day-num {
    font-weight: 700;
    font-size: 0.8rem;
}

.gantt-day-name {
    font-size: 0.6rem;
    opacity: 0.7;
}

.gantt-cell--today {
    background: #ecfdf5 !important;
    border-bottom: 2px solid var(--color-primary);
}

.gantt-row--header .gantt-cell--today {
    background: rgba(16, 185, 129, 0.3) !important;
}

.gantt-cell--weekend {
    background: rgba(245, 158, 11, 0.08);
}

.gantt-row--header .gantt-cell--weekend {
    background: rgba(245, 158, 11, 0.2);
}

.gantt-cell--booked {
    /* 予約済みの色 */
    background: #3b82f6 !important;
    color: #fff;
    border-radius: 0;
}

.gantt-tooltip {
    position: absolute;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* === ログイン画面 === */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
}

.login-card__header {
    background: var(--color-primary);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.login-card__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.login-card__title {
    font-size: 1.5rem;
    font-weight: 700;
}

.login-card__form {
    padding: 2rem;
}

.login-card__submit {
    width: 100%;
    margin-top: 1.5rem;
}

/* === 画像ライブラリ用 Grid タイルレイアウト === */
.img-lib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 140px);
    justify-content: start;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* === サイト編集モーダル内の画像ギャラリー（選択済みプレビュー） === */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px);
    gap: 10px;
    margin-top: 10px;
}

.image-gallery__item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
}

.image-gallery__item--primary {
    border-color: var(--color-primary);
}

.image-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-gallery__badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: bold;
}

.image-gallery__set-primary {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    color: #64748b;
    transition: all 0.2s;
}

.image-gallery__set-primary:hover {
    color: var(--color-primary);
    background: #fff;
}

.image-gallery__delete {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.image-gallery__empty {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 5px;
}

.img-lib-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.img-lib-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.img-lib-card--selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.img-lib-card__img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.img-lib-card__info {
    padding: 0.5rem;
    font-size: 0.75rem;
    background: #fafafa;
    border-top: 1px solid var(--color-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-lib-card__check {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
    font-size: 0.8rem;
    color: var(--color-text);
    z-index: 2;
}

.img-lib-card--selected .img-lib-card__check {
    background: var(--color-primary);
    color: #fff;
}

/* === レスポンシブ用 === */
@media (max-width: 1024px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-filters__row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-filters__row,
    .admin-filters__row:last-child {
        grid-template-columns: 1fr;
    }

    .admin-filters__actions {
        justify-content: stretch;
    }

    .admin-filters__actions .btn {
        flex: 1;
    }

    /* 予約フォームや全体レイアウトのレスポンシブ化 */
    .form-row--two,
    .form-row--three {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .hamburger {
        display: block;
    }

    .header__nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--color-border);
    }

    .header__nav--open {
        display: flex;
    }

    .header__link {
        width: 100%;
        padding: 0.75rem 0;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
    }

    .header__link:last-child {
        border-bottom: none;
    }

    /* ヒーロー画像の縮小 */
    .hero {
        padding: 3rem 1rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }
}