/* ネット宿帳 PMS - Custom Styles */

:root {
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 60px;
    --header-height: 60px;
    --primary-color: #6C8FD7;
    --primary-light: #9bb3e6;
    --primary-dark: #5570b8;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --success-color: #6C8FD7;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-800: #2c5f7a;
    --gray-900: #1a3d52;
}

/* Font size classes */
body.font-small { font-size: 12px; }
body.font-medium { font-size: 14px; }
body.font-large { font-size: 16px; }

/* Layout */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    transition: font-size 0.2s ease;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(to bottom, #E8DED5 0%, #E8DED5 40%, #f2ede8 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    overflow: visible;
}

/* Hide flyout submenu by default (non-collapsed / PC mode) */
.flyout-submenu {
    display: none;
}

/* Collapsed sidebar flyout submenu - shows submenu to the right on hover */
.sidebar.collapsed .menu-item {
    position: relative;
}

.sidebar.collapsed .menu-item .flyout-submenu {
    display: none;
    position: absolute;
    left: var(--sidebar-collapsed-width);
    top: 0;
    background-color: #522b0c;
    min-width: 220px;
    box-shadow: 4px 2px 12px rgba(0, 0, 0, 0.18), 4px 10px 12px rgba(0, 0, 0, 0.28);
    border-radius: 0 6px 6px 0;
    z-index: 1002;
    padding: 0 0 6px 0;
}

.sidebar.collapsed .menu-item:hover .flyout-submenu {
    display: block;
}

.sidebar.collapsed .flyout-submenu .flyout-title {
    padding: 10px 16px 8px;
    font-size: 0.92rem;
    font-weight: 700;
    background-color: #E8DED5;
    color: #555;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 2px;
}

.sidebar.collapsed .flyout-submenu .flyout-subtitle {
    font-size: 0.82rem;
    font-weight: 600;
    background-color: inherit;
    color: #cdb9a0;
    border-bottom: none;
    margin-top: 6px;
    margin-bottom: 0;
    padding-bottom: 2px;
}

.sidebar.collapsed .flyout-submenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #E8DED5;
    padding: 7px 16px;
    text-decoration: none;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background-color 0.15s;
}

.sidebar.collapsed .flyout-submenu .flyout-external-icon {
    margin-left: 12px;
    font-size: 11px;
    color: #cdb9a0;
    cursor: pointer;
}

.sidebar.collapsed .flyout-submenu .flyout-external-icon:hover {
    color: #fff;
}

.sidebar.collapsed .flyout-submenu a:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.sidebar.collapsed .flyout-submenu a.active {
    background-color: rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1001;
    background: #E8DED5;
}

/* サイドバー先頭のトップページリンクをヘッダー直下にSticky固定 */
ul.sidebar-menu > .menu-item:first-child {
    position: sticky;
    top: var(--header-height);
    z-index: 1000;
    background: #E8DED5;
}

.sidebar-logo img {
    height: 30px;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-logo img {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    font-size: 20px;
}

/* 閉じるアイコンはスマホのオーバーレイ表示時のみ */
.sidebar-toggle-close {
    display: none;
}

.sidebar-backdrop {
    display: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.menu-item-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-item-link.active {
    background-color: var(--primary-color);
}

.menu-item-text {
    flex: 1;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .menu-item-text {
    display: none;
}

.sidebar.collapsed .menu-item-expand {
    display: none;
}

.sidebar.collapsed .menu-item-link {
    justify-content: center;
    padding: 12px 0;
}

.sidebar.collapsed .menu-item-icon {
    margin-right: 0;
}

.sidebar.collapsed .external-icon {
    display: none;
}

.sidebar.collapsed .menu-item-badge {
    display: none;
}

.sidebar.collapsed .submenu {
    display: none !important;
}

.menu-item-icon {
    margin-right: 10px;
    font-size: 18px;
}

.menu-item-badge {
    background-color: var(--danger-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
}

.menu-item-expand,
.menu-item-expand i {
    display: inline-block;
    transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.menu-item-expand.expanded,
.menu-item-expand i.expanded {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #522b0c;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 開閉中は Bootstrap が height をインラインで補間するため、max-height の制限を外して
   開く/閉じるとも同じイージングで伸縮させる */
.submenu.collapsing {
    max-height: none;
    transition: height 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.submenu.collapsing > li,
.submenu.show > li {
    animation: submenu-item-in 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes submenu-item-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.submenu.show {
    max-height: 1000px;
}

.submenu-item-link {
    display: flex;
    align-items: center;
    padding: 10px 15px 10px 45px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.submenu-item-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.submenu-item-link .external-icon,
.menu-item-link .external-icon {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 14px;
}

.submenu-item-link:hover .external-icon,
.menu-item-link:hover .external-icon {
    opacity: 1;
}



.submenu-item-link.active {
    background-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    font-weight: 600;
    border-left: 3px solid #fff;
    padding-left: 42px;
}

/* Main Content */
.main-content {
    flex: 1;
    /* flexアイテムの既定 min-width:auto を解除し、内容が広くても本文側を縮められるようにする
       （画面全体が横スクロールせず、はみ出しは .table-responsive など内側に閉じ込められる） */
    min-width: 0;
    max-width: 100%;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Header */
.app-header {
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* スマホ表示でヘッダーに表示する現在の施設名（PCでは施設セレクトを直接表示） */
.header-accom-label {
    display: none;
}

/* スマホ表示で施設セレクトを受け入れるサイドメニュー内の枠 */
.sidebar-facility:empty {
    display: none;
}

/* 各画面がスマホ用の操作ボタンを差し込むヘッダー内の枠 */
.header-page-actions:empty {
    display: none;
}

.header-page-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.twofa-warning {
    background-color: var(--danger-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.font-size-controls {
    display: flex;
    gap: 5px;
}

.font-size-controls-menu {
    display: flex;
    gap: 5px;
    padding: 6px 15px 10px;
}

.font-size-controls-menu .font-size-btn {
    flex: 1;
    text-align: center;
}

.font-size-btn {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.font-size-btn:hover {
    background-color: var(--gray-200);
}

.font-size-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.account-menu {
    position: relative;
}

.account-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.account-menu-toggle:hover {
    background-color: var(--gray-100);
}

.account-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
}

.account-menu-dropdown.show {
    display: block;
}

.account-menu-item {
    padding: 10px 15px;
    color: var(--gray-700);
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.account-menu-item:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 20px;
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs-link {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs-link:hover {
    text-decoration: underline;
}

.breadcrumbs-separator {
    color: var(--gray-300);
}

/* Content Area */
.content-area {
    flex: 1;
    min-width: 0;
    padding: 10px 20px 20px;
}

/* 横幅が狭い環境（MacBookなど）で表がページ全体を押し広げないようにする */
.content-area .table-responsive {
    max-width: 100%;
}

/* Footer */
.app-footer {
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: 10px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--gray-700);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f5eee6 0%, #e8ded5 100%);
}

.login-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    height: 50px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.form-input {
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn {
    border-radius: 14px;
}

.btn-search {
    background-color: #e98989 !important;
    border-color: #e98989 !important;
    color: white !important;
}

.btn-search:hover {
    background-color: #d47070 !important;
    border-color: #d47070 !important;
}

.btn-search:focus,
.btn-search:focus-visible {
    background-color: #d47070 !important;
    border-color: #c05a5a !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(233, 137, 137, 0.5) !important;
    outline: none !important;
}

.btn-edit {
    background-color: #b5ceff !important;
    border-color: #b5ceff !important;
    color: #000 !important;
}

.btn-edit:hover {
    background-color: #9ab8f0 !important;
    border-color: #9ab8f0 !important;
    color: #000 !important;
}

.btn-edit:focus,
.btn-edit:focus-visible {
    background-color: #9ab8f0 !important;
    border-color: #7aa0e0 !important;
    color: #000 !important;
    box-shadow: 0 0 0 0.25rem rgba(181, 206, 255, 0.5) !important;
    outline: none !important;
}

.btn-scroll-top {
    background-color: #F8F8F8 !important;
    border: 1px solid #E5E5E5 !important;
    color: #555 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.btn-scroll-top:hover {
    background-color: #EEEEEE !important;
    border-color: #DDDDDD !important;
    color: #333 !important;
}

.settings-page-header {
    position: sticky;
    top: var(--header-height);
    z-index: 5;
    background-color: #FBFAF9;
    padding-top: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e1dc;
}

.settings-section-heading {
    border-bottom: 1px solid #ddd;
    padding: 6px 0 8px;
    /* sticky の app-header (60px) + 各種設定ヘッダー (約 70px) 分の余白 */
    scroll-margin-top: var(--settings-section-top, 140px);
    position: sticky;
    /* app-header + 各種設定ヘッダー分だけ下げて固定（JSで実測して上書き） */
    top: var(--settings-section-top, 140px);
    z-index: 4;
    background-color: #FBFAF9;
}

.settings-section-heading--spaced {
    margin-top: 110px;
    border-top: 1px solid #ddd;
    padding-top: 8px;
}

/* 権限などで先頭セクションが非表示になり、--spaced 見出しが最初に来る場合の
   無駄な上余白を防ぐ（container-fluid 直下の最初の見出しは常に余白なし） */
.container-fluid > h4.settings-section-heading:first-of-type {
    margin-top: 0;
}

.settings-section-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 0.95rem;
}

.settings-section-nav-link {
    color: #495057;
    text-decoration: underline;
}

.settings-section-nav-link:hover,
.settings-section-nav-link:focus {
    color: #0d6efd;
    text-decoration: underline;
}

.settings-section-nav-sep {
    color: #adb5bd;
    text-decoration: none;
}

.settings-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 0.9rem;
    color: #6c757d;
}

.settings-breadcrumb a {
    color: #495057;
    text-decoration: underline;
}

.settings-breadcrumb a:hover,
.settings-breadcrumb a:focus {
    color: #0d6efd;
}

.settings-breadcrumb-sep {
    color: #adb5bd;
}

.settings-breadcrumb-current {
    color: #6c757d;
}

.btn-pack-option {
    background-color: #ffd8dc !important;
    border: 1px solid #fbfbfb !important;
    color: #000 !important;
}

.btn-pack-option:hover {
    background-color: #f6c3c8 !important;
    border: 1px solid #fbfbfb !important;
    color: #000 !important;
}

.btn-delete {
    background-color: #ff6f7c !important;
    border-color: #ff6f7c !important;
    color: #000 !important;
}

.btn-delete:hover {
    background-color: #e85c68 !important;
    border-color: #e85c68 !important;
    color: #000 !important;
}

.btn-action-warning {
    background-color: #ffb98e !important;
    border-color: #ffb98e !important;
    color: #000 !important;
}

.btn-action-warning:hover {
    background-color: #f0a070 !important;
    border-color: #f0a070 !important;
    color: #000 !important;
}

.btn-kizuki {
    background-color: #ffe5e8 !important;
    border-color: #ffe5e8 !important;
    color: #212529 !important;
}

.btn-kizuki:hover {
    background-color: #f7ccd1 !important;
    border-color: #f7ccd1 !important;
    color: #212529 !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* セカンダリボタンの背景色を統一 */
.btn-secondary,
.btn-secondary:visited {
    background-color: #b3bfca;
    border-color: #b3bfca;
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle {
    background-color: #9aa9b6;
    border-color: #9aa9b6;
    color: #fff;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
    background-color: #b3bfca;
    border-color: #b3bfca;
    color: #fff;
    opacity: 0.65;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.login-link:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        z-index: 1001;
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
    }

    /* スマホは「開く/閉じる」の2状態のみとし、アイコンだけ残る幅60pxの状態を作らない */
    .sidebar.collapsed {
        width: var(--sidebar-width);
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        color: var(--gray-700);
    }

    .sidebar-toggle-collapse {
        display: none;
    }

    .sidebar-toggle-close {
        display: inline-block;
        font-size: 16px;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1000;
    }

    .sidebar-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }

    /* メニューを開いている間は背景をスクロールさせない */
    body.sidebar-open {
        overflow: hidden;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block;
        min-width: 44px;
        min-height: 44px;
    }

    .header-left {
        flex: 1 1 auto;
        min-width: 0;
        gap: 4px;
    }

    /* 現在の施設名をヘッダーに表示（セレクト本体はサイドメニューへ移動） */
    .header-accom-label {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
        font-weight: 500;
        color: var(--gray-700);
    }

    .sidebar-facility {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .sidebar-facility .facility-selection {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sidebar-facility .form-select {
        width: 100% !important;
        margin-left: 0 !important;
        min-height: 44px;
    }

    .twofa-warning {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* ヘッダーを1段に保つ（折り返しによる段崩れ・縦書き化の防止） */
    .app-header {
        padding: 0 10px;
        gap: 8px;
    }

    .header-right {
        flex: 0 1 auto;
        min-width: 0;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
    }

    /* 施設セレクトは残りの幅を分け合い、長い名称は省略表示 */
    .header-right .facility-selection {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        gap: 6px;
    }

    .header-right .facility-selection .form-select {
        flex: 1 1 0;
        min-width: 0;
        width: 100% !important;
        margin-left: 0 !important;
        min-height: 38px;
        text-overflow: ellipsis;
    }

    /* 長文アラートはアイコン（＋件数）のみに圧縮 */
    .header-right .header-btn-label {
        display: none;
    }

    .header-right .twofa-warning-btn,
    .header-right .checkout-overtime-btn {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 40px;
        min-height: 40px;
        padding: 0 6px;
        margin-right: 0 !important;
        white-space: nowrap;
    }

    #closing-time-banner {
        flex: 0 0 auto;
        margin-right: 0 !important;
        white-space: nowrap;
    }

    .notification-bell-wrapper {
        flex: 0 0 auto;
        margin-right: 0 !important;
    }

    /* アカウントは氏名を省きアイコンのみ（氏名はメニュー内で確認できる） */
    .account-menu {
        flex: 0 0 auto;
    }

    .account-menu-toggle {
        gap: 2px;
        padding: 8px 4px;
        min-height: 40px;
    }

    .account-menu-toggle > span {
        display: none;
    }

    .font-size-controls {
        display: none;
    }

    .font-size-controls-menu {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* サクセスアラートを白ベースに変更（緑背景の代わり）。文字色・ボーダーは通常色に */
.alert.alert-success {
    background-color: #ffffff;
    color: #212529;
    border-color: #dee2e6;
}
.alert.alert-success .btn-close {
    filter: none;
}

/* 注釈用の素のアラート（白背景・黒文字・標準ボーダー） */
.alert.alert-plain {
    background-color: #ffffff;
    color: #212529;
    border-color: #dee2e6;
}
.alert.alert-plain .btn-close {
    filter: none;
}

/* Option summary table in reservation create */
.option-summary-table-area .option-summary-row {
    align-items: center;
    font-size: .85rem;
}
.option-summary-table-area .option-summary-row > div {
    padding-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e9ecef;
}
.option-summary-table-area .option-summary-row > div:first-child,
.option-summary-table-area .option-summary-row > div:last-child {
    border-bottom: none;
}
.option-summary-table-area .option-summary-label {
    color: #333;
    font-weight: 500;
}
.option-summary-table-area .option-summary-name {
    color: #333;
}
.option-summary-table-area .option-summary-nights {
    text-align: center;
    white-space: nowrap;
    color: #666;
}
.option-summary-table-area .option-summary-rooms {
    text-align: center;
    white-space: nowrap;
    color: #666;
}
.option-summary-table-area .option-summary-guests {
    text-align: center;
    white-space: nowrap;
    color: #666;
}
.option-summary-table-area .option-summary-unit-price {
    text-align: right;
    white-space: nowrap;
    color: #666;
}
.option-summary-table-area .option-summary-price {
    text-align: right;
    white-space: nowrap;
    color: #333;
}

/* ===== ノートPC幅（MacBookなど 769〜1600px）向けの調整 =====
   MacBookの実効解像度は1440〜1512px程度で、サイドメニュー分を引くと本文が
   900〜1250pxしかないため、絞り込み（GET）フォームは固定カラム幅をやめて折り返し、
   ラベルやボタンの縦潰れを防ぐ。 */
@media (min-width: 769px) and (max-width: 1599.98px) {
    .content-area form[method="get"].row > [class^="col-"],
    .content-area form[method="get"].row > [class*=" col-"] {
        flex: 1 1 auto;
        width: auto;
        min-width: 150px;
        max-width: 100%;
    }

    .content-area form[method="get"].row > [class*="col-auto"] {
        flex: 0 0 auto;
        min-width: 0;
    }

    .content-area form[method="get"].row .form-label {
        white-space: nowrap;
    }

    /* 「編／集」のようにボタン内の文字が縦に割れるのを防ぐ */
    .content-area .btn,
    .app-header .btn {
        white-space: nowrap;
    }
}
