:root {
    --primary: #191919;
    --text: #222;
    --muted: #6c6c6c;
    --line: #e8e8e8;
    --bg: #f7f7f5;
    --white: #ffffff;
    --error-bg: #fff1f0;
    --error-text: #b42318;
    --success-bg: #ecfdf3;
    --success-text: #027a48;
    --warning-bg: #fff7e5;
    --warning-text: #9a6700;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

a {
    color: inherit;
}

.header {
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.logo {
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a,
.nav-button {
    text-decoration: none;
    font-size: 14px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-primary {
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
}

.main {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0;
}

.hero {
    max-width: 760px;
    margin: 80px auto;
    text-align: center;
}

.hero h1,
.card h1,
.dashboard h1,
.page-heading h1 {
    margin: 8px 0 18px;
    font-size: clamp(32px, 6vw, 58px);
    line-height: 1.18;
    letter-spacing: -2px;
}

.hero-text,
.description,
.dashboard-title > p,
.page-heading > div > p {
    color: var(--muted);
    line-height: 1.8;
}

.eyebrow {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1.4px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

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

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

.full {
    width: 100%;
    margin-top: 10px;
}

.auth-wrap {
    display: flex;
    justify-content: center;
}

.card {
    width: min(100%, 470px);
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
}


.card h1 {
    font-size: 28px;
    letter-spacing: -1px;
}

.card h2 {
    margin-top: 0;
}

.form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    font: inherit;
    background: white;
}

input:focus,
select:focus {
    outline: 2px solid #b9b9b9;
    border-color: var(--primary);
}

small {
    color: var(--muted);
    line-height: 1.5;
}

.form-bottom {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.flash {
    width: min(100%, 620px);
    margin: 0 auto 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.dashboard {
    display: grid;
    gap: 24px;
}

.dashboard-title h1,
.page-heading h1 {
    font-size: 38px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}

.notice-card,
.pricing-card,
.store-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.notice-card h2,
.store-card h2 {
    margin: 6px 0 8px;
    font-size: 20px;
}

.notice-card p,
.store-card p,
.pricing-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.store-list {
    display: grid;
    gap: 12px;
}

.store-card {
    min-height: 145px;
}

.store-card-actions {
    flex-shrink: 0;
}

.status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}

.status-active {
    color: var(--success-text);
    background: var(--success-bg);
}

.status-pending_payment {
    color: var(--warning-text);
    background: var(--warning-bg);
}

.empty-card {
    padding: 42px 24px;
    text-align: center;
    background: white;
    border: 1px dashed #cfcfcf;
    border-radius: 14px;
}

.empty-card h2 {
    margin-top: 0;
}

.empty-card p {
    color: var(--muted);
    margin-bottom: 22px;
}

@media (max-width: 720px) {
    .header {
        padding: 0 16px;
    }

    .nav {
        gap: 10px;
    }

    .nav a,
    .nav-button {
        font-size: 12px;
    }

    .nav-primary {
        padding: 8px 10px;
    }

    .main {
        padding: 28px 0;
    }

    .hero {
        margin: 38px auto;
        text-align: left;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .card {
        padding: 24px 18px;
    }

    .page-heading,
    .notice-card,
    .pricing-card,
    .store-card {
        align-items: stretch;
        flex-direction: column;
    }

    .page-heading .button,
    .notice-card .button,
    .store-card-actions .button {
        width: 100%;
    }

    .store-card-actions {
        width: 100%;
    }
}

.wide-card {
    width: min(100%, 620px);
}

.time-range {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 8px;
}

.time-select-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
}

.time-select-row select {
    min-width: 0;
}

.time-select-row span {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .time-range {
        grid-template-columns: 1fr;
    }
}

.settings-tab.is-active {
    color: white;
    background: var(--primary);
}

.settings-panel.is-active {
    display: block;
}

.settings-form .button {
    width: fit-content;
    margin-top: 16px;
}

@media (max-width: 800px) {

    .settings-form .button {
        width: 100%;
    }
}

.store-app {
    background: #f8f8f7;
}

.sidebar-logout {
    margin: 0;
}

.store-settings-card .button {
    width: fit-content;
    margin-top: 14px;
}

/* =========================
   精密再現用：店舗サイドバー
   ========================= */

.store-sidebar {
    position: fixed;
    top: 122px;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: 143px;
    padding-top: 0;
    background: #1f1f1f;
    overflow: visible;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 60px;
    padding: 0 14px 0 14px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    box-sizing: border-box;
}

.sidebar-link .sidebar-label {
    line-height: 1;
}

.sidebar-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
}

.sidebar-link:hover::before,
.sidebar-link.is-active::before {
    background: #ffffff;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    background: #5572ff;
}

.sidebar-link.is-active::after,
.settings-main-link:hover::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 22px solid #5572ff;
}

.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.sidebar-group {
    position: relative;
}

.settings-main-link {
    z-index: 3;
}

.settings-flyout {
    position: absolute;
    top: 0;
    left: 143px;
    display: none;
    width: 190px;
    padding: 12px 0;
    background: #191919;
    box-shadow: none;
    z-index: 2;
}

.settings-group:hover .settings-flyout,
.settings-group:focus-within .settings-flyout {
    display: block;
}

.settings-flyout a {
    display: block;
    padding: 8px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.settings-flyout a:hover {
    background: transparent;
}


/* 設定ページを開いている時は、
   サブメニューを設定の下に表示 */
.settings-inline-menu {
    display: block;
    background: #191919;
    padding: 8px 0 10px;
}

.settings-inline-menu a {
    display: block;
    padding: 6px 0 6px 40px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.settings-inline-menu a:hover {
    opacity: 1;
}


.settings-group.is-open .settings-flyout {
    display: none !important;
}

.sidebar-button {
    font: inherit;
    text-align: left;
    background: transparent;
}

/* 上部バーと本文位置を微調整 */
.store-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: 122px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    background: #ffffff;
    border-bottom: 1px solid #ededed;
}

.store-topbar-name {
    color: #111111;
    text-decoration: none;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -2px;
}

.store-topbar-logo {
    color: #2a2a2a;
    font-size: 14px;
    font-weight: 500;
}

.store-main {
    min-height: 100vh;
    margin-left: 143px;
    padding: 154px 54px 60px;
}

/* フラッシュメッセージ */
.store-main .flash {
    width: 100%;
    max-width: 780px;
    margin: 0 0 22px;
}

/* 既存設定カードはそのまま使用 */
.store-page {
    width: min(100%, 1080px);
}

/* スマホ簡易対応 */
@media (max-width: 800px) {
    .store-topbar {
        height: 76px;
        padding: 0 18px;
    }

    .store-topbar-name {
        font-size: 26px;
    }

    .store-sidebar {
        top: 76px;
        width: 68px;
    }

    .sidebar-link {
        justify-content: center;
        padding: 0;
        min-height: 56px;
    }

    .sidebar-link .sidebar-label {
        display: none;
    }

    .sidebar-link.is-active::after,
    .settings-main-link:hover::after {
        display: none;
    }

    .sidebar-icon {
        font-size: 22px;
    }

    .settings-flyout {
        left: 68px;
        width: 180px;
    }

    .settings-inline-menu {
        display: none;
    }

    .store-main {
        margin-left: 68px;
        padding: 104px 20px 40px;
    }

    .store-page-heading h1 {
        font-size: 34px;
    }

    .store-settings-card {
        padding: 22px 18px;
    }
}

/* =========================
   営業時間ページ 精密寄せ
   ========================= */


.hours-title-wrap {
    margin-bottom: 18px;
}

.hours-main-title {
    margin: 0;
    color: #111111;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.hours-sub-title {
    margin: 6px 0 0;
    color: #111111;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.15;
}

/* 営業時間画面の余白を寄せる */
.store-main {
    padding-top: 138px;
}

/* フラッシュ位置調整 */
.store-main .flash {
    max-width: 1100px;
}

@media (max-width: 640px) {
    .hours-main-title {
        font-size: 38px;
    }

    .hours-sub-title {
        font-size: 22px;
    }
}

/* =========================
   基準画像に合わせたサイズ調整
   ========================= */

/* 上部ヘッダー */
.store-topbar {
    height: 122px;
    padding: 0 40px;
}

.store-topbar-name {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -2px;
}

.store-topbar-logo {
    font-size: 12px;
    font-weight: 400;
}

/* 左サイドメニュー */
.store-sidebar {
    top: 122px;
    width: 175px;
    background: #202020;
}

.sidebar-link {
    min-height: 48px;
    padding: 0 12px;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
}

.sidebar-icon {
    width: 24px;
    min-width: 24px;
    font-size: 20px;
}

/* 選択中は左の白線を出さない */
.sidebar-link.is-active::before {
    background: transparent !important;
}

/* カーソルを合わせている時だけ左白線 */
.sidebar-link:hover::before {
    background: #ffffff !important;
}

/* 選択中の矢印は消す */
.sidebar-link.is-active:not(:hover)::after {
    display: none !important;
}

/* 設定にカーソルを合わせた時だけ右矢印 */
.settings-main-link:hover::after {
    content: "";
    display: block !important;
    position: absolute;
    top: 50%;
    right: -22px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 22px solid #5572ff;
}

/* 設定サブメニュー */
.settings-flyout {
    left: 175px;
    width: 160px;
    padding: 7px 0 8px;
    background: #1c1c1c;
}

.settings-flyout a {
    padding: 7px 20px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.settings-flyout a.is-current {
    font-weight: 700;
}

/* 設定画面を開いている時のサブメニュー */
.settings-inline-menu {
    padding: 6px 0 9px;
    background: #1c1c1c;
}

.settings-inline-menu a {
    padding: 5px 0 5px 40px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.settings-inline-menu a.is-current {
    font-weight: 700;
}

/* 本文 */
.store-main {
    margin-left: 175px;
    padding: 138px 24px 60px;
}

.hours-title-wrap {
    margin-bottom: 22px;
}

.hours-main-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.hours-sub-title {
    margin-top: 4px;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.15;
}

@media (max-width: 900px) {
    .store-sidebar {
        width: 68px;
    }

    .store-main {
        margin-left: 68px;
    }
}

.hours-title-wrap {
    margin-bottom: 18px !important;
}

.hours-main-title {
    font-size: 42px !important;
    font-weight: 800 !important;
    letter-spacing: -2px !important;
    line-height: 1 !important;
}

.hours-sub-title {
    margin-top: 4px !important;
    font-size: 23px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
}

/* 営業時間設定画面：PC表示を画面内に収める最終調整 */
@media (min-width: 901px) {
    .store-main {
        padding: 132px 24px 24px !important;
    }

    .hours-title-wrap {
        margin-bottom: 12px !important;
    }

    .hours-main-title {
        font-size: 36px !important;
        letter-spacing: -1.5px !important;
    }

    .hours-sub-title {
        margin-top: 2px !important;
        font-size: 19px !important;
        line-height: 1.1 !important;
    }
}

/* ヘッダー縮小 */
@media (min-width: 901px) {
    .store-topbar {
        height: 86px !important;
        padding: 0 30px !important;
    }

    .store-topbar-name {
        font-size: 30px !important;
        letter-spacing: -1.5px !important;
    }

    .store-sidebar {
        top: 86px !important;
    }

    .store-main {
        padding-top: 98px !important;
    }
}

/* 設定サブメニュー操作時のホバー状態 */
.settings-group:hover .settings-main-link {
    background: #5572ff !important;
}

/* サブメニューへ移動中は、設定の左白ラインは出さない */
.settings-group:hover .settings-main-link::before {
    background: transparent !important;
}

/* 設定そのものに直接カーソルがある時だけ左白ライン */
.settings-main-link:hover::before {
    background: #ffffff !important;
}

/* サブメニューのホバー項目も青くする */
.settings-flyout a {
    position: relative;
    transition: background-color 0.1s ease;
}

.settings-flyout a:hover {
    color: #ffffff !important;
    background: #5572ff !important;
}

/* 選択済みの設定画面では、サブメニュー下表示も同じ挙動 */
.settings-inline-menu a {
    transition: background-color 0.1s ease;
}

.settings-inline-menu a:hover {
    color: #ffffff !important;
    background: #5572ff !important;
}

/* ヘッダーを店舗名の高さギリギリまで縮小 */
@media (min-width: 901px) {
    .store-topbar {
        height: 54px !important;
        padding: 0 18px !important;
    }

    .store-topbar-name {
        font-size: 30px !important;
        line-height: 1 !important;
        letter-spacing: -1.5px !important;
    }

    .store-topbar-logo {
        font-size: 11px !important;
    }

    .store-sidebar {
        top: 54px !important;
    }

    .store-main {
        padding-top: 66px !important;
    }
}

/* 左メニューを閉じる機能 */
.menu-toggle {
    margin-top: 0;
}

.menu-toggle .sidebar-icon {
    font-size: 17px;
}

/* 閉じた時のサイドバー */
body.sidebar-collapsed .store-sidebar {
    width: 56px !important;
}

body.sidebar-collapsed .store-main {
    margin-left: 56px !important;
}

body.sidebar-collapsed .sidebar-link {
    justify-content: center;
    gap: 0;
    padding: 0;
}

body.sidebar-collapsed .sidebar-label {
    display: none;
}

body.sidebar-collapsed .sidebar-icon {
    width: 100%;
    min-width: 0;
    margin: 0;
}

/* 設定を開いている時でも、閉じた状態では下のサブメニューを隠す */
body.sidebar-collapsed .settings-inline-menu {
    display: none !important;
}

/* 閉じた状態で設定アイコンに乗せると右にサブメニュー表示 */
body.sidebar-collapsed .settings-flyout {
    left: 56px !important;
}

body.sidebar-collapsed .settings-group.is-open:hover .settings-flyout {
    display: block !important;
}

/* 閉じた状態でも設定のホバー時は三角を表示 */
body.sidebar-collapsed .settings-main-link:hover::after {
    display: block !important;
}

/* アイコンのみの時はメニュー右三角の位置を調整 */
body.sidebar-collapsed .settings-main-link:hover::after {
    right: -22px;
}

/* モバイルでも閉じた時は56px */
@media (max-width: 900px) {
    body.sidebar-collapsed .store-sidebar {
        width: 56px !important;
    }
}

/* 左メニュー：未選択項目にカーソルを合わせた時だけ白ライン */
.store-sidebar > .sidebar-link:not(.is-active):hover::before,
.store-sidebar > .sidebar-group > .sidebar-link:not(.is-active):hover::before,
.store-sidebar > .sidebar-logout > .sidebar-link:hover::before,
.store-sidebar > .menu-toggle:hover::before {
    background: #ffffff !important;
}

/* 選択中の項目は、カーソルを置いていない限り白ラインなし */
.store-sidebar .sidebar-link.is-active:not(:hover)::before {
    background: transparent !important;
}

/* 設定は親要素のCSSに負けないよう、直接カーソル時だけ白ライン */
.store-sidebar .settings-group:hover > .settings-main-link:hover::before {
    background: #ffffff !important;
}

/* サブメニュー側にカーソルがある時は、設定の白ラインは出さない */
.store-sidebar .settings-group:hover > .settings-main-link:not(:hover)::before {
    background: transparent !important;
}

/* 店舗名設定：営業時間画面と見出し位置・縮尺を統一 */
@media (min-width: 901px) {
    .store-basic-page .hours-title-wrap {
        margin-bottom: 18px !important;
    }

    .store-basic-page .hours-main-title {
        font-size: 36px !important;
        font-weight: 800 !important;
        letter-spacing: -1.5px !important;
        line-height: 1 !important;
    }

    .store-basic-page .hours-sub-title {
        margin-top: 2px !important;
        font-size: 19px !important;
        font-weight: 400 !important;
        line-height: 1.1 !important;
    }

    .store-basic-card {
        width: 420px !important;
        padding: 22px !important;
    }

    .store-basic-card label {
        font-size: 15px !important;
    }

    .store-basic-card input {
        min-height: 38px !important;
        font-size: 14px !important;
    }

    .store-basic-save-area .button {
        min-width: 128px !important;
        min-height: 38px !important;
        font-size: 13px !important;
    }
}

/* 店舗設定：白枠なし、営業時間画面と同じ本文構成 */
@media (min-width: 901px) {
    .store-basic-page {
        width: min(100%, 1180px) !important;
        padding: 14px 0 0 16px !important;
    }

    .store-basic-page .hours-title-wrap {
        margin-bottom: 22px !important;
    }

    .store-basic-form {
        width: 360px;
        display: grid;
        gap: 0;
    }

    .store-basic-section {
        display: grid;
        gap: 8px;
        padding: 0 0 22px;
        margin-bottom: 18px;
        border-bottom: 1px solid #e4e4e4;
    }

    .store-basic-section:last-of-type {
        margin-bottom: 0;
        border-bottom: 0;
    }

    .store-basic-section-title {
        margin: 0 0 4px;
        color: #111111;
        font-size: 16px;
        font-weight: 700;
    }

    .store-basic-form label {
        margin-top: 5px;
        color: #111111;
        font-size: 14px;
        font-weight: 500;
    }

    .store-basic-form input {
        width: 340px;
        min-height: 34px;
        padding: 0 9px;
        font-size: 13px;
    }

    .store-basic-form small {
        color: #707070;
        font-size: 11px;
        line-height: 1.45;
    }

    .store-basic-save-area {
        margin-top: 8px;
    }

    .store-basic-save-area .button {
        min-width: 128px;
        min-height: 38px;
        font-size: 13px;
    }
}

/* 予約開始時間設定：店舗設定と同じ白枠なしレイアウト */
@media (min-width: 901px) {
    .store-reservation-page {
        width: min(100%, 1180px) !important;
        padding: 14px 0 0 16px !important;
    }

    .store-reservation-page .hours-title-wrap {
        margin-bottom: 22px !important;
    }

    .store-reservation-form {
        width: 360px;
        display: grid;
        gap: 0;
    }

    .store-reservation-section {
        display: grid;
        gap: 8px;
        padding: 0 0 22px;
        margin-bottom: 18px;
        border-bottom: 1px solid #e4e4e4;
    }

    .store-reservation-section:last-of-type {
        margin-bottom: 0;
        border-bottom: 0;
    }

    .store-reservation-section-title {
        margin: 0 0 4px;
        color: #111111;
        font-size: 16px;
        font-weight: 700;
    }

    .store-reservation-form label {
        margin-top: 5px;
        color: #111111;
        font-size: 14px;
        font-weight: 500;
    }

    .store-reservation-form select {
        width: 340px;
        min-height: 34px;
        padding: 0 9px;
        font-size: 13px;
    }

    .store-reservation-form small {
        color: #707070;
        font-size: 11px;
        line-height: 1.5;
    }

    .store-reservation-save-area {
        margin-top: 8px;
    }

    .store-reservation-save-area .button {
        min-width: 128px;
        min-height: 38px;
        font-size: 13px;
    }
}

/* 予約開始時間設定：固定・自由の説明 */
.store-reservation-form .reservation-interval-help {
    display: grid;
    gap: 7px;
    padding-top: 2px;
}

.store-reservation-form .reservation-interval-help p {
    margin: 0;
    color: #666666;
    font-size: 11px;
    line-height: 1.55;
}

.store-reservation-form .reservation-interval-help span {
    display: inline-block;
    min-width: 30px;
    color: #111111;
    font-weight: 700;
}

/* 自動送信メール：店舗設定・予約設定と統一 */
@media (min-width: 901px) {
    .store-email-page {
        width: min(100%, 1180px) !important;
        padding: 14px 0 0 16px !important;
    }

    .store-email-page .hours-title-wrap {
        margin-bottom: 22px !important;
    }

    .store-email-form {
        width: 420px;
        display: grid;
        gap: 0;
    }

    .store-email-section {
        display: grid;
        gap: 8px;
        padding: 0 0 22px;
    }

    .store-email-section-title {
        margin: 0 0 4px;
        color: #111111;
        font-size: 16px;
        font-weight: 700;
    }

    .store-email-form label {
        margin-top: 5px;
        color: #111111;
        font-size: 14px;
        font-weight: 500;
    }

    .store-email-form input {
        width: 400px;
        min-height: 34px;
        padding: 0 9px;
        font-size: 13px;
    }

    .store-email-help {
        display: grid;
        gap: 7px;
        padding-top: 2px;
    }

    .store-email-help p {
        margin: 0;
        color: #666666;
        font-size: 11px;
        line-height: 1.55;
    }

    .store-email-save-area {
        margin-top: 8px;
    }

    .store-email-save-area .button {
        min-width: 128px;
        min-height: 38px;
        font-size: 13px;
    }
}

/* 自動送信メール：SMTP設定画面 */
@media (min-width: 901px) {
    .store-email-form {
        width: 420px;
    }

    .store-email-section {
        display: grid;
        gap: 8px;
        padding: 0 0 22px;
        margin-bottom: 18px;
        border-bottom: 1px solid #e4e4e4;
    }

    .store-email-section:last-of-type {
        border-bottom: 0;
        margin-bottom: 0;
    }

    .store-email-form input[type="text"],
    .store-email-form input[type="email"],
    .store-email-form input[type="number"],
    .store-email-form input[type="password"] {
        width: 400px;
        min-height: 34px;
        padding: 0 9px;
        font-size: 13px;
    }

    .smtp-tls-label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
        font-size: 13px !important;
        cursor: pointer;
    }

    .smtp-tls-label input {
        width: 17px;
        height: 17px;
        margin: 0;
        accent-color: #1f1f1f;
    }
}

/* 自動送信メール：設定ガイドとテスト送信 */
@media (min-width: 901px) {
    .smtp-guide {
        width: 520px;
        margin: 0 0 24px;
        border-bottom: 1px solid #e4e4e4;
    }

    .smtp-guide summary {
        padding: 0 0 14px;
        color: #111111;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }

    .smtp-guide summary::-webkit-details-marker {
        display: none;
    }

    .smtp-guide summary::before {
        content: "＋";
        display: inline-block;
        width: 18px;
        font-size: 16px;
    }

    .smtp-guide[open] summary::before {
        content: "−";
    }

    .smtp-guide-content {
        padding: 0 0 18px;
        color: #555555;
        font-size: 12px;
        line-height: 1.7;
    }

    .smtp-guide-content > p {
        margin: 0 0 10px;
    }

    .smtp-guide-content ol {
        margin: 0 0 16px;
        padding-left: 20px;
    }

    .smtp-example {
        padding: 14px;
        background: #f4f4f4;
        border-radius: 4px;
    }

    .smtp-example > p:first-child {
        margin: 0 0 9px;
        color: #111111;
        font-weight: 700;
    }

    .smtp-example dl {
        display: grid;
        gap: 4px;
        margin: 0;
    }

    .smtp-example dl > div {
        display: grid;
        grid-template-columns: 145px 1fr;
        gap: 8px;
    }

    .smtp-example dt {
        color: #666666;
    }

    .smtp-example dd {
        margin: 0;
        color: #111111;
    }

    .smtp-guide-note {
        margin: 12px 0 0 !important;
        color: #666666;
    }

    .smtp-test-section {
        width: 420px;
        margin-top: 26px;
        padding-top: 20px;
        border-top: 1px solid #e4e4e4;
    }

    .smtp-test-description {
        margin: 0 0 12px;
        color: #666666;
        font-size: 11px;
        line-height: 1.55;
    }

    .smtp-test-form {
        display: grid;
        gap: 8px;
    }

    .smtp-test-form label {
        color: #111111;
        font-size: 14px;
        font-weight: 500;
    }

    .smtp-test-form input {
        width: 400px;
        min-height: 34px;
        padding: 0 9px;
        font-size: 13px;
    }

    .smtp-test-form .button {
        width: fit-content;
        min-width: 128px;
        min-height: 38px;
        margin-top: 5px;
        font-size: 13px;
    }
}

/* メールメニュー */
.mail-group {
    position: relative;
}

.mail-main-link {
    z-index: 3;
}

.mail-flyout {
    position: absolute;
    top: 0;
    left: 175px;
    display: none;
    width: 160px;
    padding: 7px 0 8px;
    background: #1c1c1c;
    z-index: 2;
}

.mail-group:hover .mail-flyout,
.mail-group:focus-within .mail-flyout {
    display: block;
}

.mail-group:hover .mail-main-link {
    background: #5572ff !important;
}

.mail-group:hover .mail-main-link::before {
    background: transparent !important;
}

.mail-main-link:hover::before {
    background: #ffffff !important;
}

.mail-main-link:hover::after {
    content: "";
    display: block !important;
    position: absolute;
    top: 50%;
    right: -22px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 22px solid #5572ff;
}

.mail-flyout a {
    display: block;
    padding: 7px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.mail-flyout a:hover {
    color: #ffffff;
    background: #5572ff;
}

.mail-flyout a.is-current {
    font-weight: 700;
}

.mail-inline-menu {
    display: block;
    padding: 6px 0 9px;
    background: #1c1c1c;
}

.mail-inline-menu a {
    display: block;
    padding: 5px 0 5px 40px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.mail-inline-menu a:hover {
    color: #ffffff;
    background: #5572ff;
}

.mail-inline-menu a.is-current {
    font-weight: 700;
}

/* メール配下を開いている時は右のフライアウトを消す */
.mail-group.is-open .mail-flyout {
    display: none !important;
}

/* メールを選択中は左白線なし。直接ホバーした時だけ白線 */
.mail-group.is-open .mail-main-link::before {
    background: transparent !important;
}

.mail-group.is-open .mail-main-link:hover::before {
    background: #ffffff !important;
}

.mail-group.is-open .mail-main-link:not(:hover)::after {
    display: none !important;
}

/* メニューを閉じた時 */
body.sidebar-collapsed .mail-inline-menu {
    display: none !important;
}

body.sidebar-collapsed .mail-flyout {
    left: 56px !important;
}

body.sidebar-collapsed .mail-group.is-open:hover .mail-flyout {
    display: block !important;
}

/* TLS：チェックボックス本体だけクリック可能にする */
.smtp-tls-label {
    cursor: default !important;
}

.smtp-tls-label input[type="checkbox"] {
    cursor: pointer !important;
}

.smtp-tls-label span {
    cursor: default !important;
    user-select: none;
}

/* TLSチェックボックス：通常の入力欄スタイルを完全に解除 */
.store-email-form .smtp-tls-label input[type="checkbox"] {
    display: inline-block !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    accent-color: #1f1f1f;
    vertical-align: middle;
    cursor: pointer !important;
}

.store-email-form .smtp-tls-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
    padding: 0;
}

.store-email-form .smtp-tls-label span {
    line-height: 18px;
}

/* 受信メール設定 */
@media (min-width: 901px) {
    .store-received-email-page {
        width: min(100%, 1180px);
        padding: 14px 0 0 16px;
    }

    .received-mail-form {
        width: 760px;
    }

    .received-mail-description {
        margin: 0 0 18px;
        color: #666666;
        font-size: 12px;
        line-height: 1.55;
    }

    .received-mail-head,
    .recipient-row {
        display: grid;
        grid-template-columns: minmax(240px, 1fr) 66px 66px 66px 66px 52px;
        gap: 8px;
        align-items: center;
    }

    .received-mail-head {
        margin-bottom: 7px;
        color: #111111;
        font-size: 12px;
        font-weight: 700;
        text-align: center;
    }

    .received-mail-head span:first-child {
        text-align: left;
    }

    .recipient-rows {
        display: grid;
        gap: 8px;
    }

    .recipient-row {
        min-height: 36px;
    }

    .recipient-email-input {
        width: 100%;
        min-height: 34px;
        padding: 0 9px;
        font-size: 13px;
    }

    .recipient-check-cell,
    .recipient-remove-cell {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .recipient-check-cell input[type="checkbox"] {
        width: 18px;
        min-width: 18px;
        height: 18px;
        min-height: 18px;
        margin: 0;
        padding: 0;
        border: 0;
        appearance: auto;
        -webkit-appearance: checkbox;
        accent-color: #1f1f1f;
        cursor: pointer;
    }

    .recipient-remove-button {
        padding: 5px 7px;
        color: #555555;
        font-size: 11px;
        background: transparent;
        border: 1px solid #cfcfcf;
        border-radius: 3px;
        cursor: pointer;
    }

    .recipient-remove-button:hover {
        color: #ffffff;
        background: #1f1f1f;
        border-color: #1f1f1f;
    }

    .add-recipient-button {
        margin-top: 14px;
        padding: 0;
        color: #111111;
        font-size: 13px;
        font-weight: 700;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .add-recipient-button:hover {
        text-decoration: underline;
    }

    .received-mail-save-area {
        margin-top: 24px;
    }

    .received-mail-save-area .button {
        min-width: 128px;
        min-height: 38px;
        font-size: 13px;
    }
}

/* 受信メール：シンプル設定画面 */
@media (min-width: 901px) {
        .store-received-email-page .hours-title-wrap {
        margin-bottom: 22px;
    }

    .simple-received-mail-form {
        width: 420px;
    }

    .simple-received-mail-section {
        display: grid;
        gap: 8px;
        padding-bottom: 22px;
    }

    .simple-received-mail-title {
        margin: 0 0 4px;
        color: #111111;
        font-size: 16px;
        font-weight: 700;
    }

    .simple-received-mail-form label {
        margin-top: 5px;
        color: #111111;
        font-size: 14px;
        font-weight: 500;
    }

    .simple-received-mail-form input {
        width: 400px;
        min-height: 34px;
        padding: 0 9px;
        font-size: 13px;
    }

    .simple-received-mail-help {
        margin: 2px 0 0;
        color: #666666;
        font-size: 11px;
        line-height: 1.55;
    }

    .simple-received-mail-save-area {
        margin-top: 8px;
    }

    .simple-received-mail-save-area .button {
        min-width: 128px;
        min-height: 38px;
        font-size: 13px;
    }
}

/* 受信メール：複数アドレス設定 */
@media (min-width: 901px) {
            .simple-received-mail-form {
        width: 520px;
    }

    .simple-received-mail-help {
        margin: 0 0 16px;
        color: #666666;
        font-size: 11px;
        line-height: 1.55;
    }

    .simple-recipient-rows {
        display: grid;
        gap: 9px;
    }

    .simple-recipient-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .simple-recipient-input {
        width: 400px;
        min-height: 34px;
        padding: 0 9px;
        font-size: 13px;
    }

    .simple-recipient-remove {
        min-width: 46px;
        min-height: 30px;
        padding: 0 7px;
        color: #555555;
        font-size: 11px;
        background: transparent;
        border: 1px solid #cfcfcf;
        border-radius: 3px;
        cursor: pointer;
    }

    .simple-recipient-remove:hover {
        color: #ffffff;
        background: #1f1f1f;
        border-color: #1f1f1f;
    }

            .simple-received-mail-save-area {
        margin-top: 24px;
    }

    }

/* メニューのサブメニュー */
.service-menu-group {
    position: relative;
}

.service-menu-main-link {
    z-index: 3;
}

.service-menu-flyout {
    position: absolute;
    top: 0;
    left: 175px;
    display: none;
    width: 160px;
    padding: 7px 0 8px;
    background: #1c1c1c;
    z-index: 2;
}

.service-menu-group:hover .service-menu-flyout,
.service-menu-group:focus-within .service-menu-flyout {
    display: block;
}

.service-menu-group:hover .service-menu-main-link {
    background: #5572ff !important;
}

.service-menu-group:hover .service-menu-main-link::before {
    background: transparent !important;
}

.service-menu-main-link:hover::before {
    background: #ffffff !important;
}

.service-menu-main-link:hover::after {
    content: "";
    display: block !important;
    position: absolute;
    top: 50%;
    right: -22px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 22px solid #5572ff;
}

.service-menu-flyout a {
    display: block;
    padding: 7px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.service-menu-flyout a:hover {
    color: #ffffff;
    background: #5572ff;
}

.service-menu-flyout a.is-current {
    font-weight: 700;
}

/* メニュー配下のページを開いている時 */
.service-menu-inline {
    display: block;
    padding: 6px 0 9px;
    background: #1c1c1c;
}

.service-menu-inline a {
    display: block;
    padding: 5px 0 5px 40px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.service-menu-inline a:hover {
    color: #ffffff;
    background: #5572ff;
}

.service-menu-inline a.is-current {
    font-weight: 700;
}

.service-menu-group.is-open .service-menu-flyout {
    display: none !important;
}

.service-menu-group.is-open .service-menu-main-link::before {
    background: transparent !important;
}

.service-menu-group.is-open .service-menu-main-link:hover::before {
    background: #ffffff !important;
}

.service-menu-group.is-open .service-menu-main-link:not(:hover)::after {
    display: none !important;
}

/* 閉じたメニュー状態 */
body.sidebar-collapsed .service-menu-inline {
    display: none !important;
}

body.sidebar-collapsed .service-menu-flyout {
    left: 56px !important;
}

body.sidebar-collapsed .service-menu-group.is-open:hover .service-menu-flyout {
    display: block !important;
}

/* メニュー一覧・メニュー作成画面 */
.store-menu-page {
    width: min(100%, 1180px);
    padding: 14px 0 0 16px;
}

.menu-empty-state {
    margin-top: 22px;
    color: #666666;
    font-size: 13px;
}

.menu-empty-state p {
    margin: 0 0 16px;
}

.menu-empty-state .button {
    min-width: 128px;
    min-height: 38px;
    font-size: 13px;
}

/* メニュー作成 */
@media (min-width: 901px) {
    .store-menu-create-page {
        width: min(100%, 1180px);
        padding: 14px 0 0 16px;
    }

    .store-menu-create-page .hours-title-wrap {
        margin-bottom: 22px;
    }

    .menu-create-form {
        width: 460px;
    }

    .menu-create-section {
        display: grid;
        gap: 14px;
        padding: 0 0 22px;
        margin: 0 0 22px;
        border-bottom: 1px solid #e5e5e5;
    }

    .menu-create-section[hidden] {
        display: none !important;
    }

    .menu-create-section-title {
        margin: 0 0 2px;
        color: #111111;
        font-size: 16px;
        font-weight: 700;
    }

    .menu-form-field {
        display: grid;
        gap: 7px;
    }

    .menu-form-field label {
        color: #111111;
        font-size: 14px;
        font-weight: 500;
    }

    .menu-form-field input,
    .menu-form-field select,
    .menu-form-field textarea {
        width: 420px;
        min-height: 34px;
        padding: 0 9px;
        font-size: 13px;
        box-sizing: border-box;
    }

    .menu-form-field textarea {
        min-height: 110px;
        padding-top: 9px;
        resize: vertical;
        line-height: 1.5;
    }

    .menu-create-button-area {
        margin: 4px 0 30px;
    }

    .menu-create-button-area .button {
        min-width: 128px;
        min-height: 38px;
        font-size: 13px;
    }

    /* メニュー一覧 */
    .menu-list-table {
        width: min(100%, 980px);
        margin-top: 20px;
        border-top: 1px solid #dcdcdc;
    }

    .menu-list-head,
    .menu-list-row {
        display: grid;
        grid-template-columns: 190px 100px minmax(280px, 1fr) 100px;
        gap: 14px;
        align-items: center;
    }

    .menu-list-head {
        min-height: 38px;
        color: #555555;
        font-size: 12px;
        font-weight: 700;
        border-bottom: 1px solid #dcdcdc;
    }

    .menu-list-row {
        min-height: 58px;
        color: #333333;
        font-size: 13px;
        border-bottom: 1px solid #e5e5e5;
    }

    .menu-list-name {
        color: #111111;
        font-weight: 700;
    }

    .menu-list-detail {
        color: #666666;
        font-size: 12px;
        line-height: 1.45;
    }

    .menu-list-price {
        color: #111111;
        font-weight: 700;
        text-align: right;
    }
}

@media (max-width: 900px) {
    .menu-create-form {
        width: 100%;
    }

    .menu-form-field input,
    .menu-form-field select,
    .menu-form-field textarea {
        width: 100%;
    }

    .menu-list-head {
        display: none;
    }

    .menu-list-row {
        display: grid;
        gap: 7px;
        padding: 14px 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .menu-list-price {
        font-weight: 700;
    }
}

/* メニュー作成：繰越・有効期限の詳細設定 */
@media (min-width: 901px) {
    .menu-create-form {
        width: 900px;
    }

    .menu-conditional-row {
        display: flex;
        align-items: flex-start;
        gap: 22px;
    }

    .menu-choice-field {
        width: 420px;
        flex: 0 0 420px;
    }

    .menu-rule-panel {
        width: 360px;
        display: grid;
        gap: 13px;
        padding: 13px 14px 14px;
        margin-top: 23px;
        background: #f6f6f6;
        border-radius: 4px;
    }

    .menu-rule-panel[hidden] {
        display: none !important;
    }

    .menu-rule-panel-title {
        margin: 0 0 1px;
        color: #111111;
        font-size: 13px;
        font-weight: 700;
    }

    .menu-rule-panel .menu-form-field {
        gap: 6px;
    }

    .menu-rule-panel .menu-form-field label {
        font-size: 12px;
    }

    .menu-rule-panel .menu-form-field input,
    .menu-rule-panel .menu-form-field select {
        width: 100%;
    }

    .expiration-value-field[hidden] {
        display: none !important;
    }
}

/* 繰越・有効期限の左右レイアウト調整 */
@media (min-width: 901px) {
    .menu-create-form {
        width: 900px !important;
    }

    .menu-conditional-row.menu-rule-layout {
        display: grid !important;
        grid-template-columns: 420px 400px;
        gap: 26px;
        align-items: start;
    }

    .menu-rule-left {
        display: grid;
        gap: 14px;
        width: 420px;
    }

    .menu-rule-left .menu-choice-field {
        width: 100%;
        flex: none;
    }

    .menu-rule-layout .menu-rule-panel {
        width: 100%;
        margin-top: 0 !important;
        box-sizing: border-box;
    }
}

/* 繰越・有効期限の詳細設定を選択欄の下へ縦並びにする */
@media (min-width: 901px) {
    .menu-conditional-row {
        display: grid !important;
        grid-template-columns: 420px !important;
        gap: 14px !important;
        width: 420px;
    }

    .menu-choice-field {
        width: 420px !important;
        flex: none !important;
    }

    .menu-rule-panel {
        width: 420px !important;
        margin-top: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-sizing: border-box;
    }

    .menu-rule-panel .menu-form-field input,
    .menu-rule-panel .menu-form-field select {
        width: 420px !important;
    }
}

/* 繰越・有効期限：詳細設定を選択欄の直下に配置 */
@media (min-width: 901px) {
    .menu-conditional-row.menu-rule-layout {
        display: block !important;
        width: 420px !important;
    }

    .menu-rule-layout .menu-rule-left {
        display: grid;
        gap: 14px;
        width: 420px !important;
    }

    .menu-rule-layout .menu-rule-panel {
        width: 420px !important;
        margin: 0 !important;
    }
}

/* キャンセル・ペナルティ設定 */
@media (min-width: 901px) {
    .menu-detail-stack,
    .menu-detail-settings,
    .menu-cancellation-settings,
    .menu-penalty-settings {
        display: grid;
        gap: 14px;
        width: 420px;
    }

    .menu-detail-settings[hidden],
    .menu-cancellation-settings[hidden],
    .menu-penalty-settings[hidden],
    [data-expiration-value][hidden],
    [data-penalty-hours-field][hidden] {
        display: none !important;
    }

    .menu-detail-title {
        margin: 2px 0 0;
        color: #111111;
        font-size: 14px;
        font-weight: 700;
    }

    .menu-number-with-unit {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .menu-number-with-unit input {
        width: 360px !important;
    }

    .menu-number-with-unit span {
        color: #333333;
        font-size: 13px;
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    .menu-detail-stack,
    .menu-detail-settings,
    .menu-cancellation-settings,
    .menu-penalty-settings {
        display: grid;
        gap: 14px;
        width: 100%;
    }

    .menu-detail-settings[hidden],
    .menu-cancellation-settings[hidden],
    .menu-penalty-settings[hidden],
    [data-expiration-value][hidden],
    [data-penalty-hours-field][hidden] {
        display: none !important;
    }

    .menu-number-with-unit {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .menu-number-with-unit input {
        width: 100% !important;
    }

    .menu-number-with-unit span {
        white-space: nowrap;
    }
}

/* メニュー一覧：名前にカーソルを合わせると編集・削除を表示 */
@media (min-width: 901px) {
    .menu-list-name-cell {
        display: grid;
        justify-items: start;
        min-width: 0;
    }

    .menu-list-actions {
        display: flex;
        gap: 12px;
        max-height: 0;
        margin-top: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-4px);
        pointer-events: none;
        transition:
            max-height 0.15s ease,
            margin-top 0.15s ease,
            opacity 0.15s ease,
            transform 0.15s ease;
    }

    .menu-list-name-cell:hover .menu-list-actions,
    .menu-list-name-cell:focus-within .menu-list-actions {
        max-height: 28px;
        margin-top: 6px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu-list-action {
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;
    }

    .menu-list-action-edit {
        color: #5572ff;
    }

    .menu-list-action-delete {
        color: #777777;
    }
}

@media (max-width: 900px) {
    .menu-list-name-cell {
        display: grid;
        gap: 6px;
    }

    .menu-list-actions {
        display: flex;
        gap: 12px;
    }

    .menu-list-action {
        font-size: 11px;
    }

    .menu-list-action-edit {
        color: #5572ff;
    }

    .menu-list-action-delete {
        color: #777777;
    }
}

/* メニュー一覧：編集・削除の操作ボタン */
.menu-list-actions a {
    text-decoration: none;
}

.menu-list-delete-form {
    display: inline;
    margin: 0;
}

.menu-list-action-delete {
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.menu-list-action-edit:hover,
.menu-list-action-delete:hover {
    text-decoration: underline;
}

/* メニュー一覧：操作表示時も各列の高さを上揃えにする */
@media (min-width: 901px) {
    .menu-list-row {
        align-items: start !important;
        padding: 16px 0 !important;
    }

    .menu-list-name-cell {
        min-height: 42px;
    }

    .menu-list-row .menu-list-price {
        padding-top: 0 !important;
    }
}

/* メニュー一覧：通常時の行高さを戻し、編集・削除は浮かせて表示 */
@media (min-width: 901px) {
    .menu-list-row > * {
        padding-top: 0 !important;
    }

    .menu-list-name-cell {
        position: relative !important;
        display: block !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .menu-list-actions {
        position: absolute !important;
        top: calc(100% + 5px) !important;
        left: 0 !important;
        z-index: 20 !important;

        display: flex !important;
        gap: 10px !important;
        width: max-content !important;

        max-height: none !important;
        margin: 0 !important;
        padding: 4px 7px !important;

        background: #ffffff;
        border: 1px solid #e2e2e2;
        border-radius: 3px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-4px) !important;

        transition:
            opacity 0.15s ease,
            transform 0.15s ease,
            visibility 0.15s ease;
    }

    .menu-list-name-cell:hover .menu-list-actions,
    .menu-list-name-cell:focus-within .menu-list-actions {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .menu-list-action {
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: nowrap;
    }
}

/* メニュー一覧：操作追加前の表示へ戻す */
@media (min-width: 901px) {
    .menu-list-row {
        min-height: 58px !important;
        padding: 0 !important;
        align-items: center !important;
        overflow: visible !important;
    }

    .menu-list-name-cell {
        position: static !important;
        display: grid !important;
        justify-items: start !important;
        min-width: 0 !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .menu-list-actions {
        position: static !important;
        top: auto !important;
        left: auto !important;
        z-index: auto !important;

        display: flex !important;
        gap: 12px !important;
        width: auto !important;

        max-height: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        opacity: 0 !important;
        visibility: visible !important;
        pointer-events: none !important;
        transform: translateY(-4px) !important;

        transition:
            max-height 0.15s ease,
            margin-top 0.15s ease,
            opacity 0.15s ease,
            transform 0.15s ease !important;
    }

    .menu-list-name-cell:hover .menu-list-actions,
    .menu-list-name-cell:focus-within .menu-list-actions {
        max-height: 28px !important;
        margin-top: 6px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .menu-list-action {
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
}

/* メニュー一覧：編集・削除の文字位置を揃える */
@media (min-width: 901px) {
    .menu-list-actions {
        align-items: center !important;
    }

    .menu-list-delete-form {
        display: flex !important;
        align-items: center !important;
        height: 13px !important;
        margin: 0 !important;
    }

    .menu-list-action-delete {
        display: block !important;
        height: 13px !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 13px !important;
        vertical-align: top !important;
    }

    .menu-list-action-edit {
        display: block !important;
        height: 13px !important;
        line-height: 13px !important;
    }
}

/* メニュー一覧：並び替え・絞込み・キーワード検索 */
@media (min-width: 901px) {
    .menu-list-controls {
        display: flex;
        flex-wrap: wrap;
        align-items: end;
        gap: 16px 20px;
        width: min(100%, 980px);
        margin: 22px 0 20px;
        padding: 16px 0 18px;
        border-top: 1px solid #e2e2e2;
        border-bottom: 1px solid #e2e2e2;
    }

    .menu-control-block {
        display: grid;
        gap: 7px;
    }

    .menu-control-block label,
    .menu-control-label {
        margin: 0;
        color: #111111;
        font-size: 12px;
        font-weight: 700;
    }

    .menu-sort-block {
        width: 150px;
    }

    .menu-keyword-block {
        width: 230px;
    }

    .menu-filter-block {
        min-width: 470px;
        flex: 1;
    }

    .menu-list-controls select,
    .menu-list-controls input {
        width: 100%;
        min-height: 33px;
        padding: 0 8px;
        color: #222222;
        font-size: 12px;
        box-sizing: border-box;
    }

    .menu-filter-fields {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .menu-price-filter {
        display: flex;
        grid-column: span 2;
        align-items: center;
        gap: 6px;
    }

    .menu-price-filter input {
        min-width: 0;
    }

    .menu-price-filter span {
        color: #666666;
        font-size: 12px;
    }

    .menu-control-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .menu-control-actions .button {
        min-width: 92px;
        min-height: 33px;
        font-size: 12px;
    }

    .menu-filter-reset {
        color: #666666;
        font-size: 11px;
        text-decoration: none;
        white-space: nowrap;
    }

    .menu-filter-reset:hover {
        color: #111111;
        text-decoration: underline;
    }
}

/* メニュー一覧：並び替え */
@media (min-width: 901px) {
    .menu-sort-controls {
        display: flex;
        align-items: end;
        gap: 10px;
        width: min(100%, 980px);
        margin: 20px 0 16px;
    }

    .menu-sort-controls label {
        padding-bottom: 8px;
        color: #111111;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    .menu-sort-controls select {
        width: 190px;
        min-height: 34px;
        padding: 0 9px;
        color: #222222;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .menu-sort-controls {
        display: grid;
        gap: 7px;
        margin: 18px 0 14px;
    }

    .menu-sort-controls label {
        font-size: 12px;
        font-weight: 700;
    }

    .menu-sort-controls select {
        width: 100%;
        min-height: 36px;
    }
}

/* メニュー一覧：並び替え・絞込み */
@media (min-width: 901px) {
    .menu-list-toolbar {
        display: flex;
        align-items: end;
        gap: 12px;
        width: min(100%, 980px);
        margin: 20px 0 16px;
    }

    .menu-list-toolbar .menu-sort-controls {
        margin: 0;
    }

    .menu-filter-trigger {
        position: relative;
        min-width: 88px;
        min-height: 34px;
        padding: 0 13px;
        color: #222222;
        font-size: 12px;
        font-weight: 700;
        background: #ffffff;
        border: 1px solid #bdbdbd;
        border-radius: 3px;
        cursor: pointer;
    }

    .menu-filter-trigger:hover,
    .menu-filter-trigger.is-active {
        color: #5572ff;
        border-color: #5572ff;
    }

    .menu-filter-trigger-dot {
        position: absolute;
        top: 7px;
        right: 7px;
        width: 6px;
        height: 6px;
        background: #5572ff;
        border-radius: 50%;
    }
}

/* 絞込みモーダル */
body.menu-filter-modal-open {
    overflow: hidden;
}

.menu-filter-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.42);
}

.menu-filter-modal.is-open {
    display: flex;
}

.menu-filter-modal-card {
    width: min(780px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    padding: 26px 28px 24px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    box-sizing: border-box;
}

.menu-filter-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 17px;
    margin-bottom: 19px;
    border-bottom: 1px solid #e5e5e5;
}

.menu-filter-modal-head h2 {
    margin: 0;
    color: #111111;
    font-size: 24px;
    font-weight: 700;
}

.menu-filter-close {
    width: 32px;
    height: 32px;
    padding: 0;
    color: #333333;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-filter-form {
    display: grid;
    gap: 22px;
}

.menu-filter-section {
    display: grid;
    gap: 12px;
}

.menu-filter-section h3 {
    margin: 0;
    color: #111111;
    font-size: 15px;
    font-weight: 700;
}

.menu-filter-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 13px;
}

.menu-filter-options-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-filter-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 12px;
    color: #222222;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
}

.menu-filter-option:hover {
    border-color: #5572ff;
}

.menu-filter-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.menu-filter-checkbox {
    position: relative;
    display: inline-block;
    width: 18px;
    min-width: 18px;
    height: 18px;
    background: #ffffff;
    border: 2px solid #8e8e8e;
    border-radius: 3px;
    box-sizing: border-box;
}

.menu-filter-option input:checked + .menu-filter-checkbox {
    background: #5572ff;
    border-color: #5572ff;
}

.menu-filter-option input:checked + .menu-filter-checkbox::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.menu-filter-option:has(input:checked) {
    color: #111111;
    background: #eef2ff;
    border-color: #5572ff;
}

.menu-filter-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.menu-range-section {
    padding: 16px;
    background: #f7f7f7;
    border-radius: 6px;
}

.menu-dual-range {
    position: relative;
    height: 34px;
    --range-start: 0%;
    --range-end: 100%;
}

.menu-dual-range::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(
        to right,
        #d9d9d9 0%,
        #d9d9d9 var(--range-start),
        #5572ff var(--range-start),
        #5572ff var(--range-end),
        #d9d9d9 var(--range-end),
        #d9d9d9 100%
    );
    border-radius: 99px;
}

.menu-dual-range input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 34px;
    margin: 0;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

.menu-dual-range input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.menu-dual-range input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -8px;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 4px solid #5572ff;
    border-radius: 50%;
    cursor: pointer;
    box-sizing: border-box;
}

.menu-dual-range input[type="range"]::-moz-range-track {
    height: 6px;
    background: transparent;
}

.menu-dual-range input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    pointer-events: auto;
    background: #ffffff;
    border: 4px solid #5572ff;
    border-radius: 50%;
    cursor: pointer;
    box-sizing: border-box;
}

.menu-range-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #333333;
    font-size: 12px;
    font-weight: 700;
}

.menu-range-values span:nth-child(2) {
    color: #777777;
    font-weight: 400;
}

.menu-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
}

.menu-filter-actions .button {
    min-width: 132px;
    min-height: 40px;
    font-size: 13px;
}

.menu-filter-reset-button {
    color: #666666;
    font-size: 12px;
    text-decoration: none;
}

.menu-filter-reset-button:hover {
    color: #111111;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .menu-list-toolbar {
        display: flex;
        align-items: end;
        gap: 10px;
        margin: 18px 0 14px;
    }

    .menu-list-toolbar .menu-sort-controls {
        width: 100%;
        margin: 0;
    }

    .menu-filter-trigger {
        min-width: 78px;
        min-height: 36px;
    }

    .menu-filter-modal {
        align-items: end;
        padding: 0;
    }

    .menu-filter-modal-card {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 22px 18px 20px;
        border-radius: 14px 14px 0 0;
    }

    .menu-filter-options,
    .menu-filter-options-four,
    .menu-filter-range-grid {
        grid-template-columns: 1fr;
    }

    .menu-filter-actions {
        padding-bottom: 6px;
    }
}

/* 絞込みモーダル：レンジスライダーの見た目調整 */
.menu-dual-range {
    position: relative !important;
    height: 40px !important;
    --thumb-size: 24px;
    --track-height: 4px;
    --track-offset: calc(var(--thumb-size) / 2);
}

.menu-dual-range::before {
    content: "" !important;
    position: absolute !important;
    left: var(--track-offset) !important;
    right: var(--track-offset) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: var(--track-height) !important;
    border-radius: 999px !important;
    background: linear-gradient(
        to right,
        #d9d9d9 0%,
        #d9d9d9 var(--range-start),
        #5572ff var(--range-start),
        #5572ff var(--range-end),
        #d9d9d9 var(--range-end),
        #d9d9d9 100%
    ) !important;
}

.menu-dual-range input[type="range"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 40px !important;
    margin: 0 !important;
    pointer-events: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
}

.menu-dual-range input[type="range"]::-webkit-slider-runnable-track {
    height: var(--track-height) !important;
    background: transparent !important;
}

.menu-dual-range input[type="range"]::-webkit-slider-thumb {
    width: var(--thumb-size) !important;
    height: var(--thumb-size) !important;
    margin-top: calc((var(--track-height) - var(--thumb-size)) / 2) !important;
    pointer-events: auto !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #ffffff !important;
    border: 4px solid #5572ff !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.menu-dual-range input[type="range"]::-moz-range-track {
    height: var(--track-height) !important;
    background: transparent !important;
}

.menu-dual-range input[type="range"]::-moz-range-thumb {
    width: var(--thumb-size) !important;
    height: var(--thumb-size) !important;
    pointer-events: auto !important;
    background: #ffffff !important;
    border: 4px solid #5572ff !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.menu-range-values {
    margin-top: 8px !important;
}

/* 絞込みスライダー：線と丸の中心・端点を完全に揃える */
@media (min-width: 901px) {
    .menu-filter-modal .menu-dual-range {
        height: 44px !important;
        --thumb-size: 24px !important;
    }

    .menu-filter-modal .menu-dual-range::before {
        top: 50% !important;
        left: 24px !important;
        right: 24px !important;
        height: 4px !important;
        transform: translateY(-50%) !important;
    }

    .menu-filter-modal .menu-dual-range input[type="range"] {
        top: 50% !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        height: 40px !important;
        transform: translateY(-50%) !important;
    }

    .menu-filter-modal
    .menu-dual-range
    input[type="range"]::-webkit-slider-thumb {
        width: 24px !important;
        height: 24px !important;
        margin-top: -10px !important;
    }
}

/* 絞込み：チェックマークをチェックボックスの中心に固定 */
.menu-filter-option {
    align-items: center !important;
}

.menu-filter-checkbox {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 18px !important;
}

.menu-filter-option input:checked + .menu-filter-checkbox::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    width: auto !important;
    height: auto !important;
    margin: 0 !important;

    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    border: 0 !important;
    transform: translate(-50%, -54%) !important;
}

/* メニュー一覧：絞込みとキーワード検索 */
@media (min-width: 901px) {
    .menu-list-toolbar {
        align-items: end !important;
        gap: 10px !important;
    }

    .menu-filter-trigger {
        margin-left: -5px !important;
    }

    .menu-keyword-search {
        display: grid;
        gap: 7px;
        margin-left: 6px;
    }

    .menu-keyword-search label {
        color: #111111;
        font-size: 12px;
        font-weight: 700;
    }

    .menu-keyword-search-row {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .menu-keyword-search input[type="search"] {
        width: 220px;
        min-height: 34px;
        padding: 0 9px;
        color: #222222;
        font-size: 12px;
        box-sizing: border-box;
    }

    .menu-keyword-search .button {
        min-width: 58px;
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .menu-list-toolbar {
        display: grid !important;
        grid-template-columns: 1fr auto;
        gap: 12px !important;
    }

    .menu-keyword-search {
        grid-column: 1 / -1;
        display: grid;
        gap: 7px;
    }

    .menu-keyword-search label {
        font-size: 12px;
        font-weight: 700;
    }

    .menu-keyword-search-row {
        display: flex;
        gap: 7px;
    }

    .menu-keyword-search input[type="search"] {
        width: 100%;
        min-height: 36px;
        min-width: 0;
    }

    .menu-keyword-search .button {
        min-width: 60px;
        min-height: 36px;
    }
}

/* 顧客のサブメニュー */
.customer-group {
    position: relative;
}

.customer-main-link {
    z-index: 3;
}

.customer-flyout {
    position: absolute;
    top: 0;
    left: 175px;
    display: none;
    width: 160px;
    padding: 7px 0 8px;
    background: #1c1c1c;
    z-index: 2;
}

.customer-group:hover .customer-flyout,
.customer-group:focus-within .customer-flyout {
    display: block;
}

.customer-group:hover .customer-main-link {
    background: #5572ff !important;
}

.customer-group:hover .customer-main-link::before {
    background: transparent !important;
}

.customer-main-link:hover::before {
    background: #ffffff !important;
}

.customer-main-link:hover::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    display: block !important;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 22px solid #5572ff;
    transform: translateY(-50%);
}

.customer-flyout a {
    display: block;
    padding: 7px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.customer-flyout a:hover {
    color: #ffffff;
    background: #5572ff;
}

.customer-flyout a.is-current {
    font-weight: 700;
}

.customer-inline-menu {
    display: block;
    padding: 6px 0 9px;
    background: #1c1c1c;
}

.customer-inline-menu a {
    display: block;
    padding: 5px 0 5px 40px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    text-decoration: none;
}

.customer-inline-menu a:hover {
    color: #ffffff;
    background: #5572ff;
}

.customer-inline-menu a.is-current {
    font-weight: 700;
}

.customer-group.is-open .customer-flyout {
    display: none !important;
}

.customer-group.is-open .customer-main-link::before {
    background: transparent !important;
}

.customer-group.is-open .customer-main-link:hover::before {
    background: #ffffff !important;
}

.customer-group.is-open .customer-main-link:not(:hover)::after {
    display: none !important;
}

body.sidebar-collapsed .customer-inline-menu {
    display: none !important;
}

body.sidebar-collapsed .customer-flyout {
    left: 56px !important;
}

body.sidebar-collapsed .customer-group.is-open:hover .customer-flyout {
    display: block !important;
}

/* 顧客一覧・顧客作成 */
.store-customer-page {
    width: min(100%, 1180px);
    padding: 14px 0 0 16px;
}

.customer-empty-state {
    margin-top: 22px;
    color: #666666;
    font-size: 13px;
}

.customer-empty-state p {
    margin: 0 0 16px;
}

.customer-empty-state .button {
    min-width: 128px;
    min-height: 38px;
    font-size: 13px;
}

/* 顧客作成 */
@media (min-width: 901px) {
    .store-customer-page .hours-title-wrap {
        margin-bottom: 22px;
    }

    .customer-create-form {
        width: 880px;
    }

    .customer-create-section {
        display: grid;
        gap: 14px;
        padding: 0 0 24px;
        margin: 0 0 24px;
        border-bottom: 1px solid #e5e5e5;
    }

    .customer-create-section-title {
        margin: 0 0 3px;
        color: #111111;
        font-size: 16px;
        font-weight: 700;
    }

    .customer-form-field {
        display: grid;
        gap: 7px;
        width: 420px;
    }

    .customer-form-field label {
        color: #111111;
        font-size: 14px;
        font-weight: 500;
    }

    .customer-form-field input,
    .customer-form-field select {
        width: 420px;
        min-height: 34px;
        padding: 0 9px;
        color: #222222;
        font-size: 13px;
        box-sizing: border-box;
    }

    .customer-form-field small {
        color: #666666;
        font-size: 11px;
    }

    .customer-contract-note {
        width: 760px;
        margin: 0 0 3px;
        color: #666666;
        font-size: 12px;
        line-height: 1.55;
    }

    .customer-contract-grid {
        display: grid;
        grid-template-columns: repeat(2, 420px);
        gap: 16px 26px;
    }

    .customer-form-field select:disabled {
        color: #999999;
        background: #f3f3f3;
        cursor: not-allowed;
    }

    .customer-create-button-area {
        margin: 2px 0 30px;
    }

    .customer-create-button-area .button {
        min-width: 128px;
        min-height: 38px;
        font-size: 13px;
    }

    /* 顧客一覧 */
    .customer-list-table {
        width: min(100%, 1040px);
        margin-top: 20px;
        border-top: 1px solid #dcdcdc;
    }

    .customer-list-head,
    .customer-list-row {
        display: grid;
        grid-template-columns: 170px 160px 240px minmax(220px, 1fr);
        gap: 14px;
        align-items: center;
    }

    .customer-list-head {
        min-height: 38px;
        color: #555555;
        font-size: 12px;
        font-weight: 700;
        border-bottom: 1px solid #dcdcdc;
    }

    .customer-list-row {
        min-height: 58px;
        color: #333333;
        font-size: 13px;
        border-bottom: 1px solid #e5e5e5;
    }

    .customer-list-name {
        color: #111111;
        font-weight: 700;
    }

    .customer-list-contracts {
        color: #666666;
        font-size: 12px;
        line-height: 1.45;
    }
}

@media (max-width: 900px) {
    .customer-create-form,
    .customer-form-field,
    .customer-form-field input,
    .customer-form-field select,
    .customer-contract-note {
        width: 100%;
    }

    .customer-list-head {
        display: none;
    }

    .customer-list-row {
        display: grid;
        gap: 7px;
        padding: 14px 0;
        border-bottom: 1px solid #e5e5e5;
    }
}

/* 顧客作成：契約メニュー選択枠 */
@media (min-width: 901px) {
    .customer-contract-box {
        width: 866px;
        padding: 16px;
        background: #ffffff;
        border: 1px solid #dedede;
        border-radius: 5px;
        box-sizing: border-box;
    }

    .customer-contract-picker {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 116px;
        gap: 10px;
        align-items: center;
    }

    .customer-contract-picker select {
        width: 100%;
        min-height: 36px;
        padding: 0 9px;
        color: #222222;
        font-size: 13px;
        box-sizing: border-box;
    }

    .customer-contract-picker .button {
        min-width: 116px;
        min-height: 36px;
        font-size: 12px;
    }

    .customer-contract-message {
        min-height: 17px;
        margin: 9px 0 0;
        color: #5572ff;
        font-size: 11px;
    }

    .customer-contract-message.is-error {
        color: #b74444;
    }

    .customer-selected-contracts {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }

    .customer-contract-empty {
        width: 100%;
        margin: 3px 0 1px;
        color: #777777;
        font-size: 12px;
    }

    .customer-contract-tag {
        display: flex;
        align-items: center;
        gap: 7px;
        min-height: 34px;
        padding: 0 8px 0 10px;
        color: #222222;
        background: #f3f5ff;
        border: 1px solid #cdd5ff;
        border-radius: 999px;
        font-size: 12px;
    }

    .customer-contract-tag-type {
        color: #5572ff;
        font-size: 10px;
        font-weight: 700;
    }

    .customer-contract-tag-name {
        font-weight: 700;
    }

    .customer-contract-tag-price {
        color: #666666;
        font-size: 11px;
    }

    .customer-contract-tag-remove {
        width: 18px;
        height: 18px;
        padding: 0;
        color: #666666;
        font-size: 17px;
        line-height: 16px;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .customer-contract-tag-remove:hover {
        color: #111111;
    }
}

@media (max-width: 900px) {
    .customer-contract-box {
        width: 100%;
        padding: 14px;
        border: 1px solid #dedede;
        border-radius: 5px;
        box-sizing: border-box;
    }

    .customer-contract-picker {
        display: grid;
        gap: 10px;
    }

    .customer-contract-picker select,
    .customer-contract-picker .button {
        width: 100%;
        min-height: 38px;
    }

    .customer-selected-contracts {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }
}

/* 顧客一覧：名前にカーソルを合わせると編集・削除を表示 */
@media (min-width: 901px) {
    .customer-list-name-cell {
        display: grid;
        justify-items: start;
        min-width: 0;
    }

    .customer-list-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        max-height: 0;
        margin-top: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-4px);
        transition:
            max-height 0.15s ease,
            margin-top 0.15s ease,
            opacity 0.15s ease,
            transform 0.15s ease;
    }

    .customer-list-name-cell:hover .customer-list-actions,
    .customer-list-name-cell:focus-within .customer-list-actions {
        max-height: 28px;
        margin-top: 6px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .customer-list-action {
        font-size: 11px;
        font-weight: 500;
        line-height: 13px;
        white-space: nowrap;
    }

    .customer-list-action-edit {
        color: #5572ff;
    }

    .customer-list-action-delete {
        color: #777777;
    }
}

@media (max-width: 900px) {
    .customer-list-name-cell {
        display: grid;
        gap: 6px;
    }

    .customer-list-actions {
        display: flex;
        gap: 12px;
    }

    .customer-list-action {
        font-size: 11px;
    }

    .customer-list-action-edit {
        color: #5572ff;
    }

    .customer-list-action-delete {
        color: #777777;
    }
}

/* 顧客一覧：編集・削除の操作 */
.customer-list-actions a {
    text-decoration: none;
}

.customer-list-delete-form {
    display: flex;
    align-items: center;
    height: 13px;
    margin: 0;
}

.customer-list-action-delete {
    display: block;
    height: 13px;
    padding: 0;
    margin: 0;
    color: #777777;
    font-family: inherit;
    font-size: 11px;
    line-height: 13px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.customer-list-action-edit {
    display: block;
    height: 13px;
    line-height: 13px;
}

.customer-list-action-edit:hover,
.customer-list-action-delete:hover {
    text-decoration: underline;
}

/* 顧客契約：月回数の初月分入力 */
@media (min-width: 901px) {
    .customer-contract-tag-monthly {
        min-width: 390px;
        border-radius: 6px;
    }

    .customer-initial-session-field {
        display: flex;
        align-items: center;
        gap: 7px;
        padding-left: 10px;
        margin-left: 2px;
        border-left: 1px solid #cdd5ff;
    }

    .customer-initial-session-field label {
        color: #333333;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
    }

    .customer-initial-session-field > div {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .customer-initial-session-field input {
        width: 54px;
        min-height: 28px;
        padding: 0 6px;
        color: #222222;
        font-size: 12px;
        text-align: center;
        background: #ffffff;
        border: 1px solid #aebaff;
        border-radius: 3px;
        box-sizing: border-box;
    }

    .customer-initial-session-field > div span {
        color: #444444;
        font-size: 11px;
    }

    .customer-initial-session-field small {
        color: #666666;
        font-size: 10px;
        white-space: nowrap;
    }
}

@media (max-width: 900px) {

    .customer-initial-session-field {
        display: flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        padding-top: 8px;
        margin-top: 3px;
        border-top: 1px solid #cdd5ff;
    }

    .customer-initial-session-field input {
        width: 58px;
        min-height: 30px;
        text-align: center;
    }
}

/* 顧客契約：初月分の縦位置と入力欄幅を調整 */
@media (min-width: 901px) {
    .customer-initial-session-field {
        align-items: center !important;
        gap: 6px !important;
    }

    .customer-initial-session-field label {
        display: flex !important;
        align-items: center !important;
        height: 28px !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    .customer-initial-session-field > div {
        height: 28px !important;
        align-items: center !important;
    }

    .customer-initial-session-field input {
        width: 42px !important;
        min-width: 42px !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 4px !important;
        line-height: 28px !important;
    }

    .customer-initial-session-field > div span {
        display: flex !important;
        align-items: center !important;
        height: 28px !important;
        line-height: 1 !important;
    }

    .customer-initial-session-field small {
        display: flex !important;
        align-items: center !important;
        height: 28px !important;
        line-height: 1 !important;
    }
}

/* 顧客編集：登録済みカード表示 */
@media (max-width: 900px) {
    .customer-card-last4-display {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 36px;
        padding: 0 10px;
        color: #222222;
        background: #f7f7f7;
        border: 1px solid #dedede;
        border-radius: 3px;
        box-sizing: border-box;
        font-size: 13px;
    }
}

/* 顧客編集：回数情報 */
@media (min-width: 901px) {
    .customer-session-info-section {
        gap: 14px;
    }

    .customer-session-info-groups {
        display: grid;
        gap: 12px;
        width: 866px;
    }

    .customer-session-info-card {
        padding: 14px 16px;
        border: 1px solid #dedede;
        border-radius: 5px;
        box-sizing: border-box;
    }

    .customer-session-info-head {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 13px;
    }

    .customer-session-info-type {
        padding: 3px 7px;
        color: #5572ff;
        font-size: 10px;
        font-weight: 700;
        background: #f0f3ff;
        border-radius: 999px;
    }

    .customer-session-info-name {
        color: #111111;
        font-size: 13px;
        font-weight: 700;
    }

    .customer-session-info-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        border-top: 1px solid #ececec;
    }

    .customer-session-info-stats-ticket {
        grid-template-columns: 1fr 1fr;
    }

    .customer-session-info-stats > div {
        display: grid;
        gap: 5px;
        padding: 12px 14px 2px 0;
    }

    .customer-session-info-stats > div + div {
        padding-left: 14px;
        border-left: 1px solid #ececec;
    }

    .customer-session-info-stats span {
        color: #777777;
        font-size: 11px;
    }

    .customer-session-info-stats strong {
        color: #111111;
        font-size: 16px;
        font-weight: 700;
    }
}

@media (max-width: 900px) {
    .customer-session-info-groups {
        display: grid;
        gap: 10px;
        width: 100%;
    }

    .customer-session-info-card {
        padding: 13px;
        border: 1px solid #dedede;
        border-radius: 5px;
    }

    .customer-session-info-head {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }

    .customer-session-info-stats,
    .customer-session-info-stats-ticket {
        display: grid;
        gap: 9px;
        padding-top: 11px;
        border-top: 1px solid #ececec;
    }

    .customer-session-info-stats > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .customer-session-info-stats span {
        color: #777777;
        font-size: 11px;
    }

    .customer-session-info-stats strong {
        color: #111111;
        font-size: 14px;
    }
}

/* 顧客編集：回数情報カードの個別編集 */
.customer-session-info-card {
    position: relative;
}

.customer-session-info-head {
    justify-content: space-between;
}

.customer-session-info-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.customer-session-info-edit-button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #666666;
    font-size: 17px;
    line-height: 1;
    background: transparent;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    cursor: pointer;
}

.customer-session-info-edit-button:hover {
    color: #5572ff;
    border-color: #5572ff;
}

.customer-session-info-edit {
    display: none;
    padding-top: 13px;
    margin-top: 13px;
    border-top: 1px solid #ececec;
}

.customer-session-info-card.is-editing .customer-session-info-view {
    display: none;
}

.customer-session-info-card.is-editing .customer-session-info-edit {
    display: grid;
    gap: 14px;
}

.customer-session-info-card.is-editing .customer-session-info-edit-button {
    color: #5572ff;
    border-color: #5572ff;
}

.customer-session-info-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.customer-session-info-edit-grid > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 6px;
}

.customer-session-info-edit-grid label {
    grid-column: 1 / -1;
    color: #666666;
    font-size: 11px;
}

.customer-session-info-edit-grid input {
    width: 100%;
    min-height: 32px;
    padding: 0 8px;
    color: #222222;
    font-size: 13px;
    box-sizing: border-box;
}

.customer-session-info-edit-grid span {
    min-height: 32px;
    display: flex;
    align-items: center;
    color: #444444;
    font-size: 12px;
}

.customer-session-info-edit-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-session-info-edit-actions .button {
    min-width: 94px;
    min-height: 34px;
    font-size: 12px;
}

.customer-session-info-cancel-button {
    min-height: 34px;
    padding: 0 8px;
    color: #666666;
    font-size: 12px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.customer-session-info-cancel-button:hover {
    color: #111111;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .customer-session-info-edit-grid,
    .customer-session-info-edit-grid-ticket {
        grid-template-columns: 1fr;
    }

    .customer-session-info-edit-grid > div {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

/* 回数情報：編集時もカードサイズを固定 */
@media (min-width: 901px) {
    .customer-session-info-head-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 132px;
        height: 28px;
    }

    .customer-session-info-header-actions {
        display: none;
        align-items: center;
        gap: 8px;
    }

    .customer-session-info-card.is-editing .customer-session-info-edit-button {
        display: none !important;
    }

    .customer-session-info-card.is-editing .customer-session-info-header-actions {
        display: flex !important;
    }

    .customer-session-info-header-actions .button {
        min-width: 54px !important;
        min-height: 28px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
    }

    .customer-session-info-header-actions .customer-session-info-cancel-button {
        min-height: 28px !important;
        padding: 0 2px !important;
        font-size: 11px !important;
    }

    .customer-session-info-edit {
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }

    .customer-session-info-card.is-editing .customer-session-info-edit {
        display: block !important;
    }

    .customer-session-info-view .customer-session-info-stats,
    .customer-session-info-edit .customer-session-info-edit-grid {
        min-height: 62px;
    }

    .customer-session-info-view .customer-session-info-stats > div,
    .customer-session-info-edit .customer-session-info-edit-grid > div {
        min-height: 62px;
        box-sizing: border-box;
    }

    .customer-session-info-edit-grid {
        display: grid !important;
        gap: 0 !important;
        padding-top: 0 !important;
        margin: 0 !important;
    }

    .customer-session-info-edit-grid > div {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-content: start;
        gap: 5px !important;
        padding: 12px 14px 2px 0 !important;
    }

    .customer-session-info-edit-grid > div + div {
        padding-left: 14px !important;
        border-left: 1px solid #ececec !important;
    }

    .customer-session-info-edit-grid > div > span {
        color: #777777;
        font-size: 11px;
    }

    .customer-session-info-value-editor {
        display: flex;
        align-items: center;
        gap: 4px;
        min-height: 25px;
    }

    .customer-session-info-value-editor input {
        width: 54px !important;
        min-width: 54px !important;
        height: 25px !important;
        min-height: 25px !important;
        padding: 0 5px !important;
        font-size: 12px !important;
        line-height: 25px !important;
        box-sizing: border-box;
    }

    .customer-session-info-value-editor input[type="date"] {
        width: 142px !important;
    }

    .customer-session-info-value-editor em {
        color: #444444;
        font-size: 12px;
        font-style: normal;
    }

}

/* 回数情報：編集時も通常表示と完全に同じ高さを維持 */
@media (min-width: 901px) {
    .customer-session-info-card {
        position: relative !important;
    }

    /* 通常表示の高さは残しつつ、文字だけ隠す */
    .customer-session-info-card.is-editing .customer-session-info-view {
        display: none !important;
    }

    /* 編集欄は通常の数値表示エリアに重ねる */
    .customer-session-info-card.is-editing .customer-session-info-edit {
        position: absolute !important;
        right: 16px !important;
        bottom: 14px !important;
        left: 16px !important;

        display: block !important;
        height: 62px !important;
        min-height: 62px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }

    .customer-session-info-card.is-editing
    .customer-session-info-edit
    .customer-session-info-edit-grid {
        height: 62px !important;
        min-height: 62px !important;
    }

    .customer-session-info-card.is-editing
    .customer-session-info-edit
    .customer-session-info-edit-grid > div {
        min-height: 62px !important;
        height: 62px !important;
        box-sizing: border-box !important;
    }

    .customer-session-info-card.is-editing
    .customer-session-info-edit
    .customer-session-info-value-editor {
        min-height: 25px !important;
    }

    .customer-session-info-card.is-editing
    .customer-session-info-edit
    .customer-session-info-value-editor input {
        height: 25px !important;
        min-height: 25px !important;
    }
}

/* 回数情報：通常表示と編集表示の文字位置を完全に固定 */
@media (min-width: 901px) {
    .customer-session-info-view .customer-session-info-stats > div,
    .customer-session-info-edit .customer-session-info-edit-grid > div {
        display: grid !important;
        grid-template-rows: 16px 28px !important;
        align-content: center !important;
        row-gap: 4px !important;
        min-height: 62px !important;
        height: 62px !important;
        box-sizing: border-box !important;
    }

    .customer-session-info-view .customer-session-info-stats > div > span,
    .customer-session-info-edit .customer-session-info-edit-grid > div > span {
        display: flex !important;
        align-items: center !important;
        height: 16px !important;
        margin: 0 !important;
        line-height: 16px !important;
    }

    .customer-session-info-view .customer-session-info-stats > div > strong {
        display: flex !important;
        align-items: center !important;
        height: 28px !important;
        margin: 0 !important;
        line-height: 28px !important;
    }

    .customer-session-info-edit
    .customer-session-info-value-editor {
        display: flex !important;
        align-items: center !important;
        height: 28px !important;
        min-height: 28px !important;
        margin: 0 !important;
    }

    .customer-session-info-edit
    .customer-session-info-value-editor input {
        margin: 0 !important;
    }

    .customer-session-info-edit
    .customer-session-info-value-editor em {
        display: flex !important;
        align-items: center !important;
        height: 28px !important;
        margin: 0 !important;
        line-height: 28px !important;
    }
}

/* 回数情報：小さい見出し文字は通常表示の位置をそのまま使う */
@media (min-width: 901px) {
    /* 編集時も通常側のラベルは表示したまま */
    .customer-session-info-card.is-editing .customer-session-info-view {
        visibility: visible !important;
    }

    /* 通常の数値だけ隠す */
    .customer-session-info-card.is-editing
    .customer-session-info-view
    .customer-session-info-stats
    strong {
        visibility: hidden !important;
    }

    /* 編集側にある重複ラベルは見せない */
    .customer-session-info-card.is-editing
    .customer-session-info-edit-grid
    > div
    > span {
        visibility: hidden !important;
    }

    /* 編集用入力欄だけ通常の数値位置に重ねる */
    .customer-session-info-card.is-editing
    .customer-session-info-edit
    .customer-session-info-edit-grid {
        grid-template-rows: 16px 28px !important;
        align-content: center !important;
        row-gap: 4px !important;
    }

    .customer-session-info-card.is-editing
    .customer-session-info-edit
    .customer-session-info-value-editor {
        grid-row: 2 !important;
        align-self: center !important;
    }
}

/* 回数券：有効期限の編集位置を通常表示と完全に揃える */
@media (min-width: 901px) {
    .customer-session-info-card.is-editing
    .customer-session-info-edit-grid-ticket {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .customer-session-info-card.is-editing
    .customer-session-info-edit-grid-ticket > div {
        grid-template-columns: 1fr !important;
        grid-template-rows: 16px 28px !important;
    }

    .customer-session-info-card.is-editing
    .customer-session-info-edit-grid-ticket
    .customer-ticket-expiry-edit {
        grid-template-columns: 1fr !important;
    }

    .customer-session-info-card.is-editing
    .customer-session-info-edit-grid-ticket
    .customer-ticket-expiry-edit
    .customer-session-info-value-editor {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-content: flex-start !important;
        align-self: center !important;
        height: 28px !important;
        min-height: 28px !important;
    }

    .customer-session-info-card.is-editing
    .customer-session-info-edit-grid-ticket
    input[type="date"] {
        width: 160px !important;
        height: 28px !important;
        min-height: 28px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

/* 回数券：有効期限の通常表示・編集表示を完全に同じ位置に揃える */
@media (min-width: 901px) {
    .customer-ticket-session-card {
        position: relative !important;
    }

    .customer-ticket-session-card.is-editing
    .customer-session-info-view {
        display: block !important;
        visibility: visible !important;
        pointer-events: none !important;
    }

    .customer-ticket-session-card.is-editing
    .customer-session-info-view
    strong {
        visibility: hidden !important;
    }

    .customer-ticket-session-card.is-editing
    .customer-session-info-edit {
        position: absolute !important;
        right: 16px !important;
        bottom: 14px !important;
        left: 16px !important;

        display: block !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }

    .customer-ticket-edit-overlay {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        height: 28px !important;
        min-height: 28px !important;
    }

    .customer-ticket-edit-value {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        height: 28px !important;
        min-height: 28px !important;
    }

    .customer-ticket-edit-value + .customer-ticket-edit-value {
        padding-left: 14px !important;
        border-left: 1px solid #ececec !important;
    }

    .customer-ticket-edit-value input[type="number"] {
        width: 54px !important;
        min-width: 54px !important;
        height: 25px !important;
        min-height: 25px !important;
        padding: 0 5px !important;
        box-sizing: border-box !important;
        font-size: 12px !important;
    }

    .customer-ticket-edit-value input[type="date"] {
        width: 160px !important;
        height: 28px !important;
        min-height: 28px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        font-size: 12px !important;
    }

    .customer-ticket-edit-value em {
        display: flex !important;
        align-items: center !important;
        height: 28px !important;
        color: #444444 !important;
        font-size: 12px !important;
        font-style: normal !important;
    }
}

/* 顧客編集：現在契約中メニューを先に表示 */
@media (min-width: 901px) {
    .customer-current-contract-label {
        margin: 0 0 8px;
        color: #555555;
        font-size: 11px;
        font-weight: 700;
    }

    .customer-contract-box .customer-selected-contracts {
        margin-top: 0;
    }

    .customer-contract-box .customer-contract-picker {
        margin-top: 14px;
    }

    .customer-contract-box .customer-contract-message {
        margin-bottom: 0;
    }
}

@media (max-width: 900px) {

    .customer-contract-box .customer-selected-contracts {
        margin-top: 0;
    }

    .customer-contract-box .customer-contract-picker {
        margin-top: 12px;
    }
}


/* 契約メニューの選択済みタグを統一 */
.customer-selected-contracts {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 12px;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
}

.customer-selected-contracts:empty {
    display: none;
}

.customer-selected-contracts .selected-contract-chip,
.customer-selected-contracts .contract-chip,
.customer-selected-contracts .customer-contract-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    max-width: 100%;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    padding: 10px 14px;
    border: 1px solid #d9dcf3;
    border-radius: 999px;
    background: #f7f7ff;
    line-height: 1.2;
    box-sizing: border-box;
    white-space: nowrap;
}

.customer-selected-contracts .selected-contract-chip * ,
.customer-selected-contracts .contract-chip * ,
.customer-selected-contracts .customer-contract-chip * {
    white-space: nowrap;
}

.customer-selected-contracts .selected-contract-chip .remove-contract,
.customer-selected-contracts .contract-chip .remove-contract,
.customer-selected-contracts .customer-contract-chip .remove-contract,
.customer-selected-contracts .selected-contract-chip button,
.customer-selected-contracts .contract-chip button,
.customer-selected-contracts .customer-contract-chip button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 0 0 2px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    font-size: 16px;
}

.customer-selected-contracts .selected-contract-chip button:hover,
.customer-selected-contracts .contract-chip button:hover,
.customer-selected-contracts .customer-contract-chip button:hover {
    color: #111;
}

/* もし内側に余計な枠用クラスがあれば無効化 */
.customer-selected-contracts .contract-menu-item,
.customer-selected-contracts .selected-contract-item,
.customer-selected-contracts .customer-contract-item {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 契約メニュー選択ボックスの見た目を他と揃える */
.customer-contract-box {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
}

/* 体験のサブメニュー */
.trial-group {
    position: relative;
}

.trial-main-link {
    z-index: 3;
}

.trial-flyout {
    position: absolute;
    top: 0;
    left: 175px;
    z-index: 2;
    display: none;
    width: 175px;
    padding: 7px 0 8px;
    background: #1c1c1c;
}

.trial-group:hover .trial-flyout,
.trial-group:focus-within .trial-flyout {
    display: block;
}

.trial-group:hover .trial-main-link {
    background: #5572ff !important;
}

.trial-group:hover .trial-main-link::before {
    background: transparent !important;
}

.trial-main-link:hover::before {
    background: #ffffff !important;
}

.trial-main-link:hover::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    display: block !important;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 22px solid #5572ff;
    transform: translateY(-50%);
}

.trial-flyout a {
    display: block;
    padding: 7px 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.trial-flyout a:hover {
    color: #ffffff;
    background: #5572ff;
}

.trial-flyout a.is-current {
    font-weight: 700;
}

.trial-inline-menu {
    display: block;
    padding: 6px 0 9px;
    background: #1c1c1c;
}

.trial-inline-menu a {
    display: block;
    padding: 5px 0 5px 40px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    text-decoration: none;
}

.trial-inline-menu a:hover {
    color: #ffffff;
    background: #5572ff;
}

.trial-inline-menu a.is-current {
    font-weight: 700;
}

.trial-group.is-open .trial-flyout {
    display: none !important;
}

.trial-group.is-open .trial-main-link::before {
    background: transparent !important;
}

.trial-group.is-open .trial-main-link:hover::before {
    background: #ffffff !important;
}

.trial-group.is-open .trial-main-link:not(:hover)::after {
    display: none !important;
}

body.sidebar-collapsed .trial-inline-menu {
    display: none !important;
}

body.sidebar-collapsed .trial-flyout {
    left: 56px !important;
}

body.sidebar-collapsed .trial-group.is-open:hover .trial-flyout {
    display: block !important;
}

.store-trial-page .hours-title-wrap {
    margin-bottom: 22px;
}

.trial-empty-state .button {
    min-width: 150px;
    min-height: 38px;
    font-size: 13px;
}

/* 体験メニュー一覧：現在使用中の3列レイアウト */
@media (min-width: 901px) {
    .trial-menu-list-head,
    .trial-menu-list-row {
        grid-template-columns: 190px minmax(280px, 1fr) 100px !important;
    }
}

.trial-reservation-display-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    color: #222222;
    font-size: 13px;
    cursor: pointer;
}

.trial-reservation-display-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.trial-reservation-field-note {
    margin: 7px 0 0;
    color: #777777;
    font-size: 12px;
    line-height: 1.5;
}

.trial-reservation-custom-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.trial-reservation-custom-head .menu-create-section-title {
    margin-bottom: 0;
}

.trial-reservation-add-field,
.trial-reservation-remove-field {
    padding: 0;
    color: #5572ff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.trial-reservation-add-field:hover,
.trial-reservation-remove-field:hover {
    text-decoration: underline;
}

.trial-reservation-custom-field {
    width: 420px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e2e2;
}

.trial-reservation-custom-field-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.trial-reservation-custom-field-top p {
    margin: 0;
    color: #111111;
    font-size: 13px;
    font-weight: 700;
}

.trial-reservation-remove-field {
    color: #777777;
}

@media (max-width: 900px) {
    .trial-reservation-fixed-note,
    .trial-reservation-custom-field {
        width: 100%;
    }
}

.trial-reservation-fixed-always,
.trial-reservation-fixed-required {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 1;
    border-radius: 999px;
}

.trial-reservation-fixed-always {
    color: #555555;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #d8d8d8;
}

.trial-reservation-fixed-required {
    color: #ffffff;
    font-weight: 700;
    background: #5572ff;
    border: 1px solid #5572ff;
}

/* 体験予約ページ：固定項目は枠なしで横並び */
.trial-reservation-fixed-field {
    width: 420px;
}

.trial-reservation-fixed-label-row .trial-reservation-fixed-always,
.trial-reservation-fixed-label-row .trial-reservation-fixed-required {
    min-height: 20px;
    padding: 0 7px;
    font-size: 11px;
}



/* ONE_RESERVE_TRIAL_FIXED_INLINE_START */
.trial-reservation-fixed-field {
    width: 420px;
    margin-bottom: 16px !important;
}

.trial-reservation-fixed-inline {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
}

.trial-reservation-fixed-name {
    color: #111111;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.trial-reservation-fixed-inline .trial-reservation-fixed-always,
.trial-reservation-fixed-inline .trial-reservation-fixed-required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 7px;
    font-size: 11px;
    line-height: 1;
    border-radius: 999px;
    box-sizing: border-box;
}

.trial-reservation-fixed-inline .trial-reservation-fixed-always {
    color: #666666;
    font-weight: 500;
    background: #f4f4f4;
    border: 1px solid #dddddd;
}

.trial-reservation-fixed-inline .trial-reservation-fixed-required {
    color: #ffffff;
    font-weight: 700;
    background: #5572ff;
    border: 1px solid #5572ff;
}

@media (max-width: 900px) {
    .trial-reservation-fixed-field {
        width: 100%;
    }
}
/* ONE_RESERVE_TRIAL_FIXED_INLINE_END */

/* 体験予約ページ：チェックボックスへ入力欄用の枠が当たらないようにする */
.menu-form-field .trial-reservation-display-check {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.menu-form-field .trial-reservation-display-check input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-block !important;
    flex: 0 0 18px !important;

    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;

    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;
    border: 1px solid #9d9d9d !important;
    border-radius: 3px !important;

    box-shadow: none !important;
    outline: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.menu-form-field .trial-reservation-display-check input[type="checkbox"]:checked {
    background: #5572ff !important;
    border-color: #5572ff !important;
}

.menu-form-field .trial-reservation-display-check input[type="checkbox"]:checked::after {
    content: "" !important;
    position: absolute !important;
    top: 2px !important;
    left: 5px !important;

    width: 5px !important;
    height: 9px !important;

    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;

    transform: rotate(45deg) !important;
}

/* 体験予約ページ：チェック済みの印を確実に表示 */
.menu-form-field .trial-reservation-display-check input[type="checkbox"]:checked {
    background-color: #5572ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.2 6.4 11.5 13 4.8' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 13px 13px !important;
}

.menu-form-field .trial-reservation-display-check input[type="checkbox"]:checked::after {
    content: none !important;
}

/* ONE_RESERVE_TRIAL_COMPLETION_PAGE */
.trial-completion-placeholder-area {
    width: 420px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e2e2;
}

.trial-completion-placeholder-title {
    margin: 0 0 5px;
    color: #111111;
    font-size: 13px;
    font-weight: 700;
}

.trial-completion-placeholder-note {
    margin: 0 0 11px;
    color: #777777;
    font-size: 12px;
    line-height: 1.5;
}

.trial-completion-placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trial-completion-placeholder-button {
    min-height: 30px;
    padding: 0 10px;
    color: #5572ff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #5572ff;
    border-radius: 3px;
    cursor: pointer;
}

.trial-completion-placeholder-button:hover {
    color: #ffffff;
    background: #5572ff;
}

.trial-completion-preview {
    width: 420px;
    min-height: 110px;
    padding: 12px;
    color: #333333;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .trial-completion-placeholder-area,
    .trial-completion-preview {
        width: 100%;
    }
}

/* ONE_RESERVE_TRIAL_COMPLETION_EMAIL */
.trial-email-placeholder-button {
    min-height: 30px;
    padding: 0 10px;
    color: #5572ff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #5572ff;
    border-radius: 3px;
    cursor: pointer;
}

.trial-email-placeholder-button:hover {
    color: #ffffff;
    background: #5572ff;
}

.trial-email-preview {
    width: 420px;
    padding: 14px;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.trial-email-preview-label {
    margin: 0 0 5px;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
}

.trial-email-preview-subject {
    margin: 0 0 16px;
    color: #222222;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.trial-email-preview-body {
    color: #333333;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
}

@media (max-width: 900px) {
    .trial-email-preview {
        width: 100%;
    }
}


/* ONE_RESERVE_HOLIDAY_CALENDAR_START */
.holiday-page {
    width: min(100%, 980px);
}

.holiday-calendar-wrap {
    width: min(100%, 760px);
    margin-top: 20px;
    border-top: 1px solid #dcdcdc;
    border-left: 1px solid #dcdcdc;
}

.holiday-calendar-head {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-right: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.holiday-calendar-head h2 {
    margin: 0;
    color: #111111;
    font-size: 16px;
    font-weight: 700;
}

.holiday-calendar-weekdays,
.holiday-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.holiday-calendar-weekdays span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: #555555;
    font-size: 12px;
    font-weight: 700;
    border-right: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.holiday-calendar-weekdays .holiday-sunday {
    color: #cc4f4f;
}

.holiday-calendar-weekdays .holiday-saturday {
    color: #5572ff;
}

.holiday-calendar-day {
    position: relative;
    min-height: 84px;
    padding: 9px;
    background: transparent;
    border-right: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
    box-sizing: border-box;
}

.holiday-calendar-day.is-empty {
    background: #fafafa;
}

.holiday-calendar-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    color: #333333;
    font-size: 13px;
    font-weight: 500;
    border-radius: 50%;
}

.holiday-calendar-day:nth-child(7n + 1) .holiday-calendar-date {
    color: #cc4f4f;
}

.holiday-calendar-day:nth-child(7n) .holiday-calendar-date {
    color: #5572ff;
}

.holiday-calendar-day.is-today .holiday-calendar-date {
    color: #ffffff;
    font-weight: 700;
    background: #5572ff;
}

@media (max-width: 900px) {
    .holiday-calendar-wrap {
        width: 100%;
    }

    .holiday-calendar-day {
        min-height: 58px;
        padding: 6px;
    }

    .holiday-calendar-weekdays span {
        min-height: 34px;
    }
}
/* ONE_RESERVE_HOLIDAY_CALENDAR_END */

/* ONE_RESERVE_HOURS_V2 */
.hours-v2-page {
    width: min(100%, 1040px);
}

.hours-v2-form {
    width: min(100%, 980px) !important;
}

.hours-v2-schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 34px;
    width: 100%;
}

.hours-v2-schedule-column {
    display: grid;
    gap: 10px;
}

.hours-v2-day-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 62px;
    align-items: end;
    gap: 10px;
    min-height: 68px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: opacity 0.15s ease;
}

.hours-v2-day-row.is-closed {
    opacity: 0.48;
}

.hours-v2-day-name {
    padding-bottom: 8px;
    color: #111111;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
}

.hours-v2-time-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.hours-v2-field-label {
    color: #555555;
    font-size: 11px;
    font-weight: 700;
}

.hours-v2-time-pair {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.hours-v2-select {
    width: 56px;
    min-width: 0;
    min-height: 34px;
    padding: 0 6px;
    color: #222222;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    box-sizing: border-box;
}

.hours-v2-time-pair span {
    color: #555555;
    font-size: 12px;
    white-space: nowrap;
}

.hours-v2-closed-toggle,
.hours-v2-color-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #222222;
    font-size: 12px;
    cursor: pointer;
}

.hours-v2-closed-toggle {
    min-height: 34px;
    padding-bottom: 0;
}

.hours-v2-closed-toggle input,
.hours-v2-color-option input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #9d9d9d;
    border-radius: 3px;
    cursor: pointer;
}

.hours-v2-closed-toggle input:checked,
.hours-v2-color-option input:checked {
    background-color: #5572ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.2 6.4 11.5 13 4.8' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 13px;
    border-color: #5572ff;
}

@media (max-width: 900px) {
    .hours-v2-schedule-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hours-v2-day-row {
        grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 58px;
    }
}

@media (max-width: 560px) {
    .hours-v2-day-row {
        grid-template-columns: 30px 1fr 1fr;
        align-items: start;
    }

    .hours-v2-closed-toggle {
        grid-column: 2 / -1;
    }

    .hours-v2-select {
        width: 48px;
    }
}

/* 営業時間：チェックボックスのサイズを固定 */
.hours-v2-form .hours-v2-closed-toggle input[type="checkbox"],
.hours-v2-form .hours-v2-color-option input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-block !important;
    flex: 0 0 17px !important;

    width: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;

    height: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;
    border: 1px solid #9d9d9d !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.hours-v2-form .hours-v2-closed-toggle,
.hours-v2-form .hours-v2-color-option {
    min-height: 22px !important;
}

.hours-v2-form .hours-v2-closed-toggle input[type="checkbox"]:checked,
.hours-v2-form .hours-v2-color-option input[type="checkbox"]:checked {
    background-color: #5572ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.2 6.4 11.5 13 4.8' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 13px 13px !important;
    border-color: #5572ff !important;
}

/* 営業時間：休日中は見た目だけ操作不可にする */
.hours-v2-day-row.is-closed .hours-v2-select {
    pointer-events: none !important;
    color: #999999 !important;
    background: #f3f3f3 !important;
}

/* 休日カレンダー：営業時間設定で休日にした曜日 */
.holiday-calendar-day.is-weekly-closed {
    background: #fff1f4 !important;
}

.holiday-calendar-day.is-weekly-closed .holiday-calendar-date {
    color: #c95268;
    font-weight: 700;
}

.holiday-calendar-day.is-weekly-closed.is-today .holiday-calendar-date {
    color: #ffffff;
    background: #5572ff;
}

/* 休日カレンダー：月移動ボタン */
.holiday-calendar-head {
    justify-content: space-between;
    gap: 16px;
}

.holiday-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 7px;
}

.holiday-calendar-nav-button {
    min-height: 30px;
    padding: 0 10px;
    color: #333333;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    cursor: pointer;
}

.holiday-calendar-nav-button:hover {
    color: #5572ff;
    border-color: #5572ff;
}

@media (max-width: 700px) {
    .holiday-calendar-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 10px 12px;
    }
}

/* 休日カレンダー：数字の色と休日背景 */
.holiday-calendar-day .holiday-calendar-date {
    color: #333333 !important;
    font-weight: 500 !important;
}

/* 定休日・祝日休業日は背景のみ薄いピンク */
.holiday-calendar-day.is-closed-day {
    background: #fff1f4 !important;
}

/* 平日を休日にしても数字は黒のまま */
.holiday-calendar-day.is-closed-day .holiday-calendar-date {
    color: #333333 !important;
}

/* 曜日・祝日の文字色 */
.holiday-calendar-day.is-saturday .holiday-calendar-date {
    color: #5572ff !important;
    font-weight: 700 !important;
}

.holiday-calendar-day.is-sunday .holiday-calendar-date,
.holiday-calendar-day.is-japanese-holiday .holiday-calendar-date {
    color: #cc4f4f !important;
    font-weight: 700 !important;
}

/* 今日の丸は最優先 */
.holiday-calendar-day.is-today .holiday-calendar-date {
    color: #ffffff !important;
    font-weight: 700 !important;
    background: #5572ff !important;
}

/* 休日カレンダー：営業時間を枠サイズを変えずに下部へ表示 */
.holiday-calendar-day {
    height: 84px !important;
    min-height: 84px !important;
    overflow: hidden !important;
}

.holiday-calendar-hours {
    position: absolute;
    right: 8px;
    bottom: 7px;
    left: 8px;
    overflow: hidden;
    color: #777777;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .holiday-calendar-day {
        height: 58px !important;
        min-height: 58px !important;
    }

    .holiday-calendar-hours {
        right: 5px;
        bottom: 5px;
        left: 5px;
        font-size: 8px;
    }
}

/* 休日カレンダー：日付クリック */
.holiday-calendar-day:not(.is-empty) {
    cursor: pointer;
}

.holiday-calendar-day:not(.is-empty):hover {
    box-shadow: inset 0 0 0 2px rgba(85, 114, 255, 0.42);
}

.holiday-calendar-day:not(.is-empty):focus-visible {
    z-index: 2;
    outline: 2px solid #5572ff;
    outline-offset: -2px;
}

.holiday-calendar-day.has-date-override::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    width: 5px;
    height: 5px;
    background: #5572ff;
    border-radius: 50%;
}

/* 休日カレンダー：日付別設定モーダル */
.holiday-date-modal {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.42);
}

.holiday-date-modal.is-open {
    display: flex;
}

.holiday-date-modal-card {
    width: min(440px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    padding: 24px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-sizing: border-box;
}

.holiday-date-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e4e4e4;
}

.holiday-date-modal-kicker {
    margin: 0 0 4px;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
}

.holiday-date-modal-head h2 {
    margin: 0;
    color: #111111;
    font-size: 19px;
    font-weight: 700;
}

.holiday-date-modal-close {
    width: 30px;
    height: 30px;
    padding: 0;
    color: #333333;
    font-family: inherit;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.holiday-date-default-info {
    margin: 0 0 16px;
    padding: 10px 11px;
    color: #666666;
    font-size: 12px;
    line-height: 1.5;
    background: #f6f6f6;
    border-radius: 4px;
}

.holiday-date-setting-options {
    display: grid;
    gap: 9px;
}

.holiday-date-setting-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px;
    color: #222222;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    cursor: pointer;
}

.holiday-date-setting-option:has(input:checked) {
    background: #f1f4ff;
    border-color: #5572ff;
}

.holiday-date-setting-option input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: #5572ff;
}

.holiday-date-setting-option span {
    display: grid;
    gap: 4px;
}

.holiday-date-setting-option strong {
    font-size: 13px;
    font-weight: 700;
}

.holiday-date-setting-option small {
    color: #777777;
    font-size: 11px;
    line-height: 1.45;
}

.holiday-date-custom-hours {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    background: #f7f7f7;
    border-radius: 5px;
}

.holiday-date-time-field {
    display: grid;
    gap: 6px;
}

.holiday-date-time-field label {
    color: #333333;
    font-size: 12px;
    font-weight: 700;
}

.holiday-date-time-field input {
    width: 100%;
    min-height: 36px;
    padding: 0 8px;
    color: #222222;
    font-family: inherit;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    box-sizing: border-box;
}

.holiday-date-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #e4e4e4;
}

.holiday-date-cancel-button {
    padding: 0;
    color: #666666;
    font-family: inherit;
    font-size: 12px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.holiday-date-cancel-button:hover {
    text-decoration: underline;
}

.holiday-date-modal-actions .button {
    min-width: 92px;
    min-height: 36px;
    font-size: 12px;
}

@media (max-width: 560px) {
    .holiday-date-modal {
        align-items: end;
        padding: 0;
    }

    .holiday-date-modal-card {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 20px 18px;
        border-radius: 12px 12px 0 0;
    }
}

/* 休日モーダル：ラジオボタンを丸だけにする */
.holiday-date-setting-option input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: block !important;
    flex: 0 0 18px !important;

    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;

    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;

    margin: 2px 0 0 !important;
    padding: 0 !important;

    background: #ffffff !important;
    border: 1px solid #9d9d9d !important;
    border-radius: 50% !important;

    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.holiday-date-setting-option input[type="radio"]:checked {
    background: radial-gradient(
        circle at center,
        #5572ff 0 5px,
        #ffffff 5.5px
    ) !important;
    border-color: #5572ff !important;
}

/* 休日モーダル：営業時間を時・分のプルダウンで表示 */


@media (max-width: 560px) {
    .holiday-date-custom-hours {
        grid-template-columns: 1fr;
    }
}

/* 休日モーダル：営業時間の時・分プルダウン */
.holiday-date-time-selects {
    display: flex;
    align-items: center;
    gap: 4px;
}

.holiday-date-time-selects select {
    width: 64px;
    min-height: 36px;
    padding: 0 7px;
    color: #222222;
    font-family: inherit;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    box-sizing: border-box;
}

.holiday-date-time-selects span {
    color: #555555;
    font-size: 12px;
    white-space: nowrap;
}

/* 休日カレンダー：今日・過去の日付は編集不可 */


/* 休日カレンダー：今日・過去の日付は変更不可 */
.holiday-calendar-day.is-past-or-today {
    cursor: default !important;
    pointer-events: none !important;
}

.holiday-calendar-day.is-past-or-today:hover {
    box-shadow: none !important;
}


/* ONE_RESERVE_TOP_FIXED_CALENDAR_CSS_START */
.store-top-page {
    width: min(100%, 1180px);
}

.store-top-page .hours-title-wrap {
    margin-bottom: 18px;
}

.top-calendar-note {
    margin: 0 0 14px;
    color: #666666;
    font-size: 12px;
    font-weight: 500;
}

.top-fixed-calendar-scroll {
    width: 100%;
    overflow-x: auto;
}

.top-fixed-calendar {
    width: 100%;
    min-width: 940px;
    background: #ffffff;
    border-top: 1px solid #dedede;
    border-left: 1px solid #dedede;
}

.top-fixed-calendar-grid {
    display: grid;
    grid-template-columns: 78px repeat(7, minmax(120px, 1fr));
}

.top-fixed-calendar-head > div,
.top-fixed-calendar-row > div {
    border-right: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
    box-sizing: border-box;
}

.top-time-head {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    color: #666666;
    font-size: 11px;
    font-weight: 700;
    background: #fafafa;
}

.top-day-head {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    min-height: 82px;
    padding: 8px;
    text-align: center;
    background: #fafafa;
}

.top-day-head.is-today {
    background: #f1f4ff;
}

.top-day-head.is-closed {
    background: #fff1f4;
}

.top-day-week {
    color: #222222;
    font-size: 14px;
    font-weight: 700;
}

.top-day-date {
    color: #333333;
    font-size: 12px;
    font-weight: 600;
}

.top-day-hours {
    color: #777777;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
}

.top-day-head.is-saturday .top-day-week,
.top-day-head.is-saturday .top-day-date {
    color: #5572ff;
}

.top-day-head.is-sunday .top-day-week,
.top-day-head.is-sunday .top-day-date {
    color: #d65363;
}

.top-fixed-calendar-row {
    min-height: 50px;
}

.top-time-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    color: #555555;
    font-size: 11px;
    font-weight: 700;
    background: #fafafa;
}

.top-slot-cell {
    min-height: 50px;
}

.top-slot-cell.is-open {
    background: #ffffff;
}

.top-slot-cell.is-outside {
    background: #f5f5f5;
}

.top-slot-cell.is-closed {
    background: #fff1f4;
}

.top-calendar-empty {
    color: #666666;
    font-size: 13px;
}
/* ONE_RESERVE_TOP_FIXED_CALENDAR_CSS_END */

/* トップ：曜日と日付を横並びにする */
.top-day-head {
    display: grid !important;
    grid-template-columns: auto auto !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-content: center !important;
    column-gap: 6px !important;
    row-gap: 4px !important;
}

.top-day-week {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.top-day-date {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.top-day-hours {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
}

/* トップ：日付と曜日を「7/3 金」で同じサイズ・高さに統一 */
.top-day-head {
    display: flex !important;
    flex-wrap: wrap !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 6px !important;
}

.top-day-date {
    order: 1 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.top-day-week {
    order: 2 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.top-day-hours {
    order: 3 !important;
    flex-basis: 100% !important;
    margin-top: 5px !important;
    text-align: center !important;
}

/* トップ：日付・曜日ヘッダーの高さを狭くする */
.top-time-head,
.top-day-head {
    min-height: 58px !important;
    height: 58px !important;
    padding: 5px 8px !important;
}

.top-day-head {
    align-content: center !important;
}

.top-day-hours {
    margin-top: 3px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
}

/* トップ：前後7日移動ボタン */
.top-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(100%, 1180px);
    margin: 0 0 14px;
}

.top-calendar-toolbar .top-calendar-note {
    margin: 0 !important;
}

.top-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 7px;
}

.top-calendar-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    color: #333333;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    box-sizing: border-box;
}

.top-calendar-nav-button:hover {
    color: #5572ff;
    border-color: #5572ff;
}

@media (max-width: 700px) {
    .top-calendar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-calendar-navigation {
        width: 100%;
    }

    .top-calendar-nav-button {
        flex: 1;
        padding: 0 6px;
    }
}


/* ONE_RESERVE_DASHBOARD_SLOT_MODAL_START */
/* トップ：空き枠 */
.top-slot-cell.is-open {
    cursor: pointer;
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.top-slot-cell.is-open:hover {
    background: #f1f4ff;
    box-shadow: inset 0 0 0 2px rgba(85, 114, 255, 0.5);
}

.top-slot-cell.is-open:focus-visible {
    outline: 2px solid #5572ff;
    outline-offset: -2px;
}

/* トップ：保存済み枠 */
.top-slot-cell.is-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #eeeeee;
}

.top-slot-cell.is-customer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #eaf0ff;
}

.top-slot-cell.is-trial {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #fff4df;
}

.top-slot-label {
    display: -webkit-box;
    overflow: hidden;
    color: #333333;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* トップ：枠登録モーダル */
.dashboard-slot-modal {
    position: fixed;
    inset: 0;
    z-index: 7000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.42);
}

.dashboard-slot-modal.is-open {
    display: flex;
}

.dashboard-slot-modal-card {
    width: min(450px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    padding: 24px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-sizing: border-box;
}

.dashboard-slot-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e4e4e4;
}

.dashboard-slot-modal-kicker {
    margin: 0 0 4px;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-slot-modal-head h2 {
    margin: 0;
    color: #111111;
    font-size: 20px;
    font-weight: 700;
}

.dashboard-slot-modal-close {
    width: 30px;
    height: 30px;
    padding: 0;
    color: #333333;
    font-family: inherit;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.dashboard-slot-form-field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.dashboard-slot-form-field > label {
    color: #222222;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-slot-form-field select,
.dashboard-slot-form-field input,
.dashboard-slot-form-field textarea {
    width: 100%;
    min-height: 37px;
    padding: 0 9px;
    color: #222222;
    font-family: inherit;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    box-sizing: border-box;
}

.dashboard-slot-form-field textarea {
    min-height: 88px;
    padding-top: 9px;
    resize: vertical;
    line-height: 1.5;
}

.dashboard-slot-type-fields {
    padding-top: 2px;
}

.dashboard-slot-type-note {
    margin: 0 0 18px;
    padding: 11px;
    color: #666666;
    font-size: 12px;
    line-height: 1.5;
    background: #f6f6f6;
    border-radius: 4px;
}

.dashboard-slot-optional {
    margin-left: 4px;
    color: #888888;
    font-size: 11px;
    font-weight: 500;
}

.dashboard-slot-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1px solid #e4e4e4;
}

.dashboard-slot-cancel-button {
    padding: 0;
    color: #666666;
    font-family: inherit;
    font-size: 12px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.dashboard-slot-cancel-button:hover {
    text-decoration: underline;
}

.dashboard-slot-modal-actions .button {
    min-width: 92px;
    min-height: 36px;
    font-size: 12px;
}

@media (max-width: 560px) {
    .dashboard-slot-modal {
        align-items: end;
        padding: 0;
    }

    .dashboard-slot-modal-card {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 20px 18px;
        border-radius: 12px 12px 0 0;
    }
}
/* ONE_RESERVE_DASHBOARD_SLOT_MODAL_END */

/* トップ：所要時間が長い予約は次の枠まで連続表示 */
.top-slot-cell.is-customer,
.top-slot-cell.is-trial,
.top-slot-cell.is-block {
    position: relative;
}

.top-slot-cell.is-continues-next {
    border-bottom-color: transparent !important;
}

.top-slot-cell.is-continuation {
    border-top-color: transparent !important;
}

.top-slot-cell.is-customer.is-continuation,
.top-slot-cell.is-trial.is-continuation,
.top-slot-cell.is-block.is-continuation {
    padding-top: 0 !important;
}

.top-slot-cell.is-event-start .top-slot-label {
    position: relative;
    z-index: 2;
}

/* トップ：所要時間を予約間隔に対する割合で表示 */


.top-slot-cell.is-continues-next {
    border-bottom-color: #dedede !important;
}

.top-slot-cell.is-continuation {
    border-top-color: #dedede !important;
}


/* ONE_RESERVE_TOP_SLOT_RATIO_FILL_START */
/* トップ：予約の所要時間を枠内の割合で表示 */
.top-slot-cell {
    position: relative !important;
    overflow: hidden !important;
}

.top-slot-cell.is-customer,
.top-slot-cell.is-trial,
.top-slot-cell.is-block {
    display: block !important;
    padding: 0 !important;
    background: #ffffff !important;
}

.top-slot-fill {
    position: absolute;
    top: var(--slot-fill-top);
    right: 0;
    left: 0;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    height: var(--slot-fill-height);
    overflow: hidden;
}

.top-slot-cell.is-customer .top-slot-fill {
    background: #eaf0ff;
}

.top-slot-cell.is-trial .top-slot-fill {
    background: #fff4df;
}

.top-slot-cell.is-block .top-slot-fill {
    background: #eeeeee;
}

.top-slot-fill .top-slot-label {
    display: -webkit-box;
    width: 100%;
    padding: 4px;
    overflow: hidden;

    color: #333333;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-overflow: ellipsis;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    box-sizing: border-box;
}
/* ONE_RESERVE_TOP_SLOT_RATIO_FILL_END */


/* ONE_RESERVE_TOP_SLOT_OVERFLOW_END_START */
/* 次の枠へ食い込んだ予約の終了位置だけ線を表示 */
.top-slot-fill.is-overflow-end {
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
/* ONE_RESERVE_TOP_SLOT_OVERFLOW_END_END */


/* ONE_RESERVE_DASHBOARD_EVENT_DELETE_CSS_START */
/* トップ：保存済みの予約・ブロックを削除 */
.top-slot-cell[data-saved-slot] {
    cursor: pointer;
}

.top-slot-cell[data-saved-slot]:hover .top-slot-fill {
    box-shadow: inset 0 0 0 2px rgba(40, 40, 40, 0.18);
}

.top-slot-cell[data-saved-slot]:focus-visible {
    outline: 2px solid #5572ff;
    outline-offset: -2px;
}
/* ONE_RESERVE_DASHBOARD_EVENT_DELETE_CSS_END */

/* 保存済み枠は、予約の色が入っている部分を含めてタップ可能 */
.top-slot-cell[data-saved-slot],
.top-slot-cell[data-saved-slot] .top-slot-fill,
.top-slot-cell[data-saved-slot] .top-slot-label {
    cursor: pointer !important;
}

.dashboard-slot-modal {
    z-index: 99999 !important;
}


/* OR_DIRECT_DELETE_MODAL_CSS_START */
/* 保存済み予約・体験・ブロックの押下エリア */
.top-slot-cell {
    position: relative !important;
}

.or-delete-event-button {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    appearance: none;
}

.or-delete-event-button:hover {
    box-shadow: inset 0 0 0 2px rgba(35, 35, 35, 0.18);
}

.or-delete-event-button:focus-visible {
    outline: 2px solid #5572ff;
    outline-offset: -2px;
}

/* 削除モーダル */
.or-direct-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.42);
}

.or-direct-delete-modal.is-open {
    display: flex;
}

.or-direct-delete-modal-card {
    width: min(420px, calc(100vw - 48px));
    padding: 24px;
    background: #ffffff;
    border-radius: 10px;
    box-sizing: border-box;
}

.or-direct-delete-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e3e3e3;
}

.or-direct-delete-head p {
    margin: 0 0 5px;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
}

.or-direct-delete-head h2 {
    margin: 0;
    color: #171717;
    font-size: 20px;
}

.or-direct-delete-close {
    width: 30px;
    height: 30px;
    padding: 0;
    color: #333333;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.or-direct-delete-summary {
    display: grid;
    gap: 5px;
    padding: 13px;
    background: #f5f5f5;
    border-radius: 4px;
}

.or-direct-delete-summary strong {
    color: #222222;
    font-size: 14px;
}

.or-direct-delete-summary span {
    color: #777777;
    font-size: 12px;
}

.or-direct-delete-note {
    margin: 14px 0 0;
    color: #777777;
    font-size: 12px;
}

.or-direct-delete-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
}

.or-direct-delete-cancel {
    padding: 0;
    color: #666666;
    font-size: 12px;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.or-direct-delete-submit {
    min-width: 94px;
    min-height: 36px;
    padding: 0 14px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: #d65363;
    border: 1px solid #d65363;
    border-radius: 4px;
}

@media (max-width: 560px) {
    .or-direct-delete-modal {
        align-items: flex-end;
        padding: 0;
    }

    .or-direct-delete-modal-card {
        width: 100%;
        padding: 20px 18px;
        border-radius: 12px 12px 0 0;
    }
}
/* OR_DIRECT_DELETE_MODAL_CSS_END */


/* OR_DIRECT_CREATE_MODAL_CSS_START */
/* 空き枠の押下エリア */
.or-create-event-button {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    appearance: none;
}

.or-create-event-button:hover {
    background: rgba(85, 114, 255, 0.07);
    box-shadow: inset 0 0 0 2px rgba(85, 114, 255, 0.45);
}

.or-create-event-button:focus-visible {
    outline: 2px solid #5572ff;
    outline-offset: -2px;
}

/* 空き枠登録モーダル */
.or-direct-create-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.42);
}

.or-direct-create-modal.is-open {
    display: flex;
}

.or-direct-create-modal-card {
    width: min(460px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    padding: 24px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-sizing: border-box;
}

.or-direct-create-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e3e3e3;
}

.or-direct-create-head p {
    margin: 0 0 5px;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
}

.or-direct-create-head h2 {
    margin: 0;
    color: #171717;
    font-size: 20px;
}

.or-direct-create-close {
    width: 30px;
    height: 30px;
    padding: 0;
    color: #333333;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.or-direct-create-field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.or-direct-create-field label {
    color: #222222;
    font-size: 13px;
    font-weight: 700;
}

.or-direct-create-field label span {
    margin-left: 4px;
    color: #888888;
    font-size: 11px;
    font-weight: 500;
}

.or-direct-create-field input,
.or-direct-create-field select,
.or-direct-create-field textarea {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    color: #222222;
    font-family: inherit;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    box-sizing: border-box;
}

.or-direct-create-field textarea {
    min-height: 90px;
    padding-top: 9px;
    resize: vertical;
    line-height: 1.5;
}

.or-direct-create-note {
    margin: 0 0 18px;
    padding: 12px;
    color: #666666;
    font-size: 12px;
    line-height: 1.5;
    background: #f5f5f5;
    border-radius: 4px;
}

.or-direct-create-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    margin-top: 4px;
    border-top: 1px solid #e3e3e3;
}

.or-direct-create-cancel {
    padding: 0;
    color: #666666;
    font-size: 12px;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.or-direct-create-submit {
    min-width: 94px;
    min-height: 36px;
    padding: 0 14px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: #5572ff;
    border: 1px solid #5572ff;
    border-radius: 4px;
}

@media (max-width: 560px) {
    .or-direct-create-modal {
        align-items: flex-end;
        padding: 0;
    }

    .or-direct-create-modal-card {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 20px 18px;
        border-radius: 12px 12px 0 0;
    }
}
/* OR_DIRECT_CREATE_MODAL_CSS_END */


/* ONE_RESERVE_PAYMENT_STATUS_CSS_START */
/* 顧客詳細：契約ごとの決済状況 */
.customer-session-payment-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.customer-session-payment-status label {
    color: #666666;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.customer-session-payment-status select {
    width: auto;
    min-width: 94px;
    min-height: 30px;
    padding: 0 7px;
    color: #222222;
    font-family: inherit;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    box-sizing: border-box;
}

.customer-session-payment-status-save {
    min-width: 42px;
    min-height: 30px;
    padding: 0 8px;
    color: #5572ff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #bfcaff;
    border-radius: 4px;
}

.customer-session-payment-status-save:hover {
    color: #ffffff;
    background: #5572ff;
    border-color: #5572ff;
}

.customer-session-payment-status-form {
    display: none;
}

@media (max-width: 760px) {
    .customer-session-info-head {
        flex-wrap: wrap;
    }

    .customer-session-payment-status {
        width: 100%;
        margin: 8px 0 0;
    }
}
/* ONE_RESERVE_PAYMENT_STATUS_CSS_END */

/* メニュー：予約受付時間の制限 */
.booking-limit-section {
    display: grid;
    gap: 14px;
}

/* トップ：自由形式は毎時00分ごとに表示 */
.top-fixed-calendar.is-free-calendar .top-fixed-calendar-row,
.top-fixed-calendar.is-free-calendar .top-time-label,
.top-fixed-calendar.is-free-calendar .top-slot-cell {
    min-height: 60px;
}

.top-fixed-calendar.is-free-calendar .top-slot-cell.is-open {
    cursor: default;
}

.top-fixed-calendar.is-free-calendar .top-slot-cell.is-open:hover {
    background: #ffffff;
    box-shadow: none;
}


/* ONE_RESERVE_FREE_TIME_LINE_LABEL_START */
/* 自由形式：時刻を各時間の横線位置へ合わせる */
.top-fixed-calendar.is-free-calendar .top-time-label {
    position: relative;
    display: block;
    overflow: visible;
}

.top-fixed-calendar.is-free-calendar .top-time-label-text {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    display: inline-block;
    transform: translate(-50%, -50%);
    padding: 0 10px;
    background: #ffffff;
    color: #555555;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}
/* ONE_RESERVE_FREE_TIME_LINE_LABEL_END */

/* 自由形式：1時間ごとの縦幅を少し狭くする */
.top-fixed-calendar.is-free-calendar .top-fixed-calendar-row,
.top-fixed-calendar.is-free-calendar .top-time-label,
.top-fixed-calendar.is-free-calendar .top-slot-cell {
    min-height: 46px !important;
    height: 46px !important;
}


/* ONE_RESERVE_FREE_PARTIAL_OUTSIDE_CSS_START */
/* 自由形式：営業時間外の部分だけグレー表示 */
.top-fixed-calendar.is-free-calendar .top-slot-cell {
    position: relative;
    overflow: hidden;
}

.top-fixed-calendar.is-free-calendar .top-free-outside-fill {
    position: absolute;
    top: var(--free-outside-top);
    right: 0;
    left: 0;
    z-index: 0;
    height: var(--free-outside-height);
    background: #f5f5f5;
    pointer-events: none;
}
/* ONE_RESERVE_FREE_PARTIAL_OUTSIDE_CSS_END */

/* トップ：昨日以前と今日の経過時間をグレー表示 */


.top-past-time-fill {
    position: absolute;
    top: var(--past-time-top);
    right: 0;
    left: 0;
    z-index: 0;
    height: var(--past-time-height);
    background: #eeeeee;
    pointer-events: none;
}

/* トップ：過去日時のグレーを営業時間外と同じ薄さへ統一 */
.top-past-time-fill {
    background: #f5f5f5 !important;
}


/* ONE_RESERVE_PAST_TIME_GRAY_CSS_START */
/* トップ：昨日以前と今日の経過時間を営業時間外と同じ薄いグレーで表示 */
.top-slot-cell {
    position: relative;
    overflow: hidden;
}

.top-past-time-fill {
    position: absolute;
    top: var(--past-time-top);
    right: 0;
    left: 0;
    z-index: 0;
    height: var(--past-time-height);
    background: #f5f5f5;
    pointer-events: none;
}
/* ONE_RESERVE_PAST_TIME_GRAY_CSS_END */


/* ONE_RESERVE_FREE_CREATE_MODAL_CSS_START */
/* 自由形式：空いている部分だけ押下可能にする */
.top-fixed-calendar.is-free-calendar .or-free-create-event-button {
    position: absolute;
    top: var(--free-create-top);
    right: 0;
    left: 0;
    z-index: 40;
    display: block;
    width: 100%;
    height: var(--free-create-height);
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    appearance: none;
}

.top-fixed-calendar.is-free-calendar .or-free-create-event-button:hover {
    background: rgba(85, 114, 255, 0.07);
    box-shadow: inset 0 0 0 2px rgba(85, 114, 255, 0.45);
}

.top-fixed-calendar.is-free-calendar .or-free-create-event-button:focus-visible {
    outline: 2px solid #5572ff;
    outline-offset: -2px;
}

/* 自由形式：予約済みの色がある部分だけ削除対象にする */
.top-fixed-calendar.is-free-calendar .or-delete-event-button.is-free-calendar-event {
    top: var(--free-delete-top);
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--free-delete-height);
}

/* 自由形式：空き枠登録モーダル */
.or-free-create-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.42);
}

.or-free-create-modal.is-open {
    display: flex;
}

.or-free-create-modal-card {
    width: min(460px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    padding: 24px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-sizing: border-box;
}

.or-free-create-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e3e3e3;
}

.or-free-create-head p {
    margin: 0 0 5px;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
}

.or-free-create-head h2 {
    margin: 0;
    color: #171717;
    font-size: 20px;
}

.or-free-create-close {
    width: 30px;
    height: 30px;
    padding: 0;
    color: #333333;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.or-free-create-field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.or-free-create-field label {
    color: #222222;
    font-size: 13px;
    font-weight: 700;
}

.or-free-create-field label span {
    margin-left: 4px;
    color: #888888;
    font-size: 11px;
    font-weight: 500;
}

.or-free-create-field input,
.or-free-create-field select,
.or-free-create-field textarea {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    color: #222222;
    font-family: inherit;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    box-sizing: border-box;
}

.or-free-create-field textarea {
    min-height: 90px;
    padding-top: 9px;
    resize: vertical;
    line-height: 1.5;
}

.or-free-create-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    margin-top: 4px;
    border-top: 1px solid #e3e3e3;
}

.or-free-create-cancel {
    padding: 0;
    color: #666666;
    font-size: 12px;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.or-free-create-submit {
    min-width: 94px;
    min-height: 36px;
    padding: 0 14px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: #5572ff;
    border: 1px solid #5572ff;
    border-radius: 4px;
}

@media (max-width: 560px) {
    .or-free-create-modal {
        align-items: flex-end;
        padding: 0;
    }

    .or-free-create-modal-card {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 20px 18px;
        border-radius: 12px 12px 0 0;
    }
}
/* ONE_RESERVE_FREE_CREATE_MODAL_CSS_END */


/* ONE_RESERVE_FREE_EVENT_JOIN_CSS_START */
/* 自由形式：00分をまたぐ同一予約を1つの連続した枠に見せる */
.top-fixed-calendar.is-free-calendar .top-slot-cell.is-continues-next,
.top-fixed-calendar.is-free-calendar .top-slot-cell.is-continuation {
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
}

/* 上側の予約色を横線まで伸ばす */


/* 次の時間帯の予約色を横線より少し上から開始する */
.top-fixed-calendar.is-free-calendar .top-slot-cell.is-continuation .top-slot-fill {
    top: calc(var(--slot-fill-top) - 1px) !important;
    height: calc(var(--slot-fill-height) + 1px) !important;
}

/* 途中の時間帯だけにホバー枠が出て、分割して見えないようにする */
.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continues-next
.or-delete-event-button.is-free-calendar-event,
.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continuation
.or-delete-event-button.is-free-calendar-event {
    box-shadow: none !important;
    border-radius: 0 !important;
}
/* ONE_RESERVE_FREE_EVENT_JOIN_CSS_END */

/* 自由形式：同じ予約が00分をまたぐ場合、途中の時間線だけ消す */


/* 予約が終了する時間帯の下線は通常どおり残す */
.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continuation:not(.is-continues-next) {
    border-bottom-color: #dedede !important;
}

/* 途中の線を予約色で自然につなぐ */
.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continues-next
.top-slot-fill {
    height: calc(var(--slot-fill-height) + 1px) !important;
}

/* 自由形式では予約をまたいだ各断片のホバー枠を出さない */
.top-fixed-calendar.is-free-calendar
.top-slot-cell[data-saved-slot]:hover
.top-slot-fill,
.top-fixed-calendar.is-free-calendar
.or-delete-event-button.is-free-calendar-event:hover {
    box-shadow: none !important;
}

/* 自由形式：同一予約が次の00分へ続く境目だけ完全に消す */
.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continues-next {
    border-bottom-color: transparent !important;
}

.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continuation {
    border-top-color: transparent !important;
}

/*
  例：12:35〜13:35
  12:00枠の下線・13:00枠の上線だけを消す。
  13:00枠の下線（=14:00の線）は残す。
*/

/* 予約色を境目へ少し重ね、横線が透けないようにする */
.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continues-next,
.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continuation {
    overflow: visible !important;
    z-index: 3;
}

.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continues-next
.top-slot-fill {
    height: calc(var(--slot-fill-height) + 2px) !important;
}

.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continuation
.top-slot-fill {
    top: calc(var(--slot-fill-top) - 2px) !important;
    height: calc(var(--slot-fill-height) + 2px) !important;
}

/* 自由形式では、時間帯ごとに削除ボタンの枠が出ないようにする */
.top-fixed-calendar.is-free-calendar
.or-delete-event-button:hover,
.top-fixed-calendar.is-free-calendar
.or-delete-event-button:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

/* 自由形式：予約枠を各背景色より少し濃い1px線で囲む */
.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-customer
.top-slot-fill {
    box-sizing: border-box;
    border: 1px solid #cbd9ff;
}

.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-trial
.top-slot-fill {
    box-sizing: border-box;
    border: 1px solid #efd8a5;
}

.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-block
.top-slot-fill {
    box-sizing: border-box;
    border: 1px solid #d7d7d7;
}

/* 00分をまたぐ同一予約の途中には枠線を出さない */


/* 自由形式：予約枠の線を3px・やや濃い色へ変更 */
.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-customer
.top-slot-fill {
    border-color: #7f9fff !important;
    border-width: 3px !important;
}

.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-trial
.top-slot-fill {
    border-color: #c99535 !important;
    border-width: 3px !important;
}

.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-block
.top-slot-fill {
    border-color: #9f9f9f !important;
    border-width: 3px !important;
}

/* 00分をまたぐ予約の途中線は消したまま維持 */
.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continues-next
.top-slot-fill {
    border-bottom-width: 0 !important;
}

.top-fixed-calendar.is-free-calendar
.top-slot-cell.is-continuation
.top-slot-fill {
    border-top-width: 0 !important;
}

/* 自由形式：予約表示を予約全体の中央へ配置 */
.top-fixed-calendar.is-free-calendar .top-fixed-calendar-body {
    position: relative;
}

.top-fixed-calendar.is-free-calendar.or-free-event-center-ready
.top-slot-label {
    visibility: hidden;
}

.or-free-event-centered-label {
    position: absolute;
    z-index: 60;
    display: block;
    padding: 0 4px;
    overflow: hidden;
    color: #333333;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-50%);
    box-sizing: border-box;
}


/* ONE_RESERVE_EVENT_DETAIL_CSS_START */
.or-event-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.48);
}

.or-event-detail-modal.is-open {
    display: flex;
}

.or-event-detail-modal-card {
    width: min(100%, 560px);
    max-height: min(760px, calc(100vh - 40px));
    padding: 28px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 14px;
    box-sizing: border-box;
}

.or-event-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8e8e8;
}

.or-event-detail-head p {
    margin: 0 0 5px;
    color: #6b6b6b;
    font-size: 14px;
    font-weight: 700;
}

.or-event-detail-head h2 {
    margin: 0;
    color: #171717;
    font-size: 24px;
}

.or-event-detail-close {
    width: 38px;
    height: 38px;
    padding: 0;
    color: #333333;
    font-size: 30px;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.or-event-detail-fields {
    display: grid;
    gap: 0;
    margin-top: 18px;
    border-top: 1px solid #eeeeee;
}

.or-event-detail-row {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid #eeeeee;
}

.or-event-detail-label {
    color: #686868;
    font-size: 14px;
    font-weight: 700;
}

.or-event-detail-value {
    min-width: 0;
    color: #202020;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.or-event-detail-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.or-event-detail-cancel,
.or-event-detail-delete {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 7px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.or-event-detail-cancel {
    color: #333333;
    background: #ffffff;
    border: 1px solid #d7d7d7;
}

.or-event-detail-delete {
    margin-left: auto;
    color: #ffffff;
    background: #d64d4d;
    border: 1px solid #d64d4d;
}

@media (max-width: 640px) {
    .or-event-detail-modal-card {
        padding: 22px 18px;
    }

    .or-event-detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
/* ONE_RESERVE_EVENT_DETAIL_CSS_END */


/* 自由形式：予約不可の開始時間を表示 */
.or-free-create-field select.is-or-invalid {
    border-color: #d64d4d !important;
    box-shadow: 0 0 0 1px rgba(214, 77, 77, 0.14);
}


/* ONE_RESERVE_START_TIME_ERROR_CSS_START */


/* ONE_RESERVE_START_TIME_ERROR_CSS_END */


/* ONE_RESERVE_TIME_AVAILABILITY_CSS_START */
.or-free-create-field select.is-or-invalid {
    border-color: #d64d4d !important;
    box-shadow: 0 0 0 1px rgba(214, 77, 77, 0.15);
}

.or-free-create-time-error {
    margin: 7px 0 0;
    color: #c94141;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}
/* ONE_RESERVE_TIME_AVAILABILITY_CSS_END */


/* ONE_RESERVE_MULTI_EVENT_SEGMENTS_CSS_START */
/* 自由形式：同じ1時間内に複数の予約を独立して表示 */
.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill.is-customer {
    background: #eaf0ff !important;
    border-color: #7f9fff !important;
    border-width: 3px !important;
    border-style: solid !important;
    box-sizing: border-box;
}

.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill.is-trial {
    background: #fff4df !important;
    border-color: #c99535 !important;
    border-width: 3px !important;
    border-style: solid !important;
    box-sizing: border-box;
}

.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill.is-block {
    background: #eeeeee !important;
    border-color: #9f9f9f !important;
    border-width: 3px !important;
    border-style: solid !important;
    box-sizing: border-box;
}

/* 予約が00分をまたぐ時だけ、途中の境界線を消して連続表示 */
.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill.is-continues-next {
    border-bottom-width: 0 !important;
}

.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill.is-continuation {
    border-top-width: 0 !important;
}

/* 同じセル内の別予約は、それぞれの範囲だけをタップ対象にする */
.top-fixed-calendar.is-free-calendar
.or-delete-event-button.is-free-calendar-event {
    z-index: 50;
}
/* ONE_RESERVE_MULTI_EVENT_SEGMENTS_CSS_END */


/* 自由形式：過去時間になっても予約・体験・ブロックはグレーの上に残す */
.top-fixed-calendar.is-free-calendar .top-past-time-fill {
    z-index: 0 !important;
}

.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill {
    z-index: 20 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* 自由形式：過去時間のグレーを予約間の空白にも確実に表示 */
.top-fixed-calendar.is-free-calendar .top-slot-cell {
    isolation: isolate;
}

.top-fixed-calendar.is-free-calendar .top-past-time-fill {
    z-index: 10 !important;
    display: block !important;
    background: #f5f5f5 !important;
    pointer-events: none !important;
}

/* 予約枠・操作領域・名前は過去時間グレーより前に残す */


.top-fixed-calendar.is-free-calendar
.or-delete-event-button.is-free-calendar-event {
    z-index: 30 !important;
}


/* 自由形式：過去時間はセル背景をグレー化し、予約枠だけを前面に表示 */
.top-fixed-calendar.is-free-calendar
.top-slot-cell[data-or-past-cell="1"] {
    background:
        linear-gradient(
            to bottom,
            #f5f5f5 0,
            #f5f5f5 var(--or-past-cell-height),
            #ffffff var(--or-past-cell-height),
            #ffffff 100%
        ) !important;
}

/* 過去時間用の子要素は使わず、セル背景だけで表示する */
.top-fixed-calendar.is-free-calendar
.top-slot-cell[data-or-past-cell="1"]
.top-past-time-fill {
    display: none !important;
}

/* 予約枠はグレー化したセル背景より必ず前面 */
.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill {
    position: absolute;
    z-index: 20 !important;
}

.top-fixed-calendar.is-free-calendar
.or-delete-event-button.is-free-calendar-event {
    position: absolute;
    z-index: 50 !important;
}


/* 自由形式：経過時間のセル背景を維持。予約枠のみ前面に出す */
.top-fixed-calendar.is-free-calendar
.top-slot-cell[data-or-past-cell="1"]:hover {
    background:
        linear-gradient(
            to bottom,
            #f5f5f5 0,
            #f5f5f5 var(--or-past-cell-height),
            #ffffff var(--or-past-cell-height),
            #ffffff 100%
        ) !important;
}

.top-fixed-calendar.is-free-calendar
.top-slot-cell[data-or-past-cell="1"]
.or-free-create-event-button {
    background: transparent !important;
}

.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill {
    z-index: 20 !important;
}

.top-fixed-calendar.is-free-calendar
.or-delete-event-button.is-free-calendar-event {
    z-index: 50 !important;
}


/* ONE_RESERVE_FREE_PAST_LAYER_CSS_START */
/*
  自由形式：
  セルの過去部分をグレー化。
  予約枠・体験枠・ブロック枠は、この上に表示する。
*/
.top-fixed-calendar.is-free-calendar .top-slot-cell {
    position: relative !important;
    overflow: hidden !important;
}

.top-fixed-calendar.is-free-calendar
.or-free-past-cell-layer {
    position: absolute !important;
    top: var(--or-free-past-top) !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
    display: block !important;
    height: var(--or-free-past-height) !important;
    background: #f5f5f5 !important;
    pointer-events: none !important;
}

.top-fixed-calendar.is-free-calendar
.top-free-outside-fill {
    z-index: 11 !important;
}

.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill {
    position: absolute !important;
    z-index: 30 !important;
}


/* ONE_RESERVE_FREE_PAST_LAYER_CSS_END */


/* ONE_RESERVE_PAST_CELL_GRAY_FINAL_START */
/* 自由形式：完全に過去の時間帯はセル自体をグレーにする */
.top-fixed-calendar.is-free-calendar
.top-slot-cell[data-or-past-full="1"] {
    background: #f5f5f5 !important;
}

/* 現在時刻までの途中部分は、セル内のグレーレイヤーで表示 */
.top-fixed-calendar.is-free-calendar
.top-slot-cell[data-or-past-cell="1"] {
    position: relative !important;
}

/* 過去時間レイヤーは常に表示 */
.top-fixed-calendar.is-free-calendar
.top-past-time-fill[data-or-force-past-fill="1"] {
    display: block !important;
    background: #f5f5f5 !important;
    pointer-events: none !important;
}

/* 予約・体験・ブロックは過去セルのグレーより前面 */
.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill {
    position: absolute !important;
    z-index: 20 !important;
}

.top-fixed-calendar.is-free-calendar
.or-delete-event-button.is-free-calendar-event {
    position: absolute !important;
    z-index: 50 !important;
}

.top-fixed-calendar.is-free-calendar
.or-free-event-centered-label {
    z-index: 60 !important;
}
/* ONE_RESERVE_PAST_CELL_GRAY_FINAL_END */


/* ONE_RESERVE_CONTIGUOUS_BLOCK_MERGE_CSS_START */
/* 自由形式：連続するブロックの内側の線だけ消して合体表示 */
.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill.is-block.is-block-joined-next {
    height: calc(var(--slot-fill-height) + 1px) !important;
    border-bottom-width: 0 !important;
}

.top-fixed-calendar.is-free-calendar
.top-slot-fill.or-free-event-fill.is-block.is-block-joined-previous {
    top: calc(var(--slot-fill-top) - 1px) !important;
    height: calc(var(--slot-fill-height) + 1px) !important;
    border-top-width: 0 !important;
}
/* ONE_RESERVE_CONTIGUOUS_BLOCK_MERGE_CSS_END */


/* ONE_RESERVE_FULL_DAY_BLOCK_CSS_START */
/* トップ：日付ヘッダーから営業時間を一括ブロック */
.top-day-head.is-full-day-block-action {
    cursor: pointer;
    transition:
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.top-day-head.is-full-day-block-action:hover {
    box-shadow: inset 0 0 0 2px rgba(85, 114, 255, 0.62);
}

.top-day-head.is-full-day-block-action:focus-visible {
    outline: 2px solid #5572ff;
    outline-offset: -2px;
}

.or-full-day-block-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.48);
}

.or-full-day-block-modal.is-open {
    display: flex;
}

.or-full-day-block-modal-card {
    width: min(100%, 500px);
    padding: 28px;
    background: #ffffff;
    border-radius: 14px;
    box-sizing: border-box;
}

.or-full-day-block-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e7e7e7;
}

.or-full-day-block-modal-kicker {
    margin: 0 0 5px;
    color: #6b6b6b;
    font-size: 13px;
    font-weight: 700;
}

.or-full-day-block-modal-head h2 {
    margin: 0;
    color: #202020;
    font-size: 23px;
    line-height: 1.35;
}

.or-full-day-block-modal-close {
    width: 38px;
    height: 38px;
    padding: 0;
    color: #333333;
    font-size: 30px;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.or-full-day-block-modal-message {
    margin: 18px 0 0;
    color: #555555;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.75;
}

.or-full-day-block-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.or-full-day-block-cancel,
.or-full-day-block-submit {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 7px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.or-full-day-block-cancel {
    color: #333333;
    background: #ffffff;
    border: 1px solid #d7d7d7;
}

.or-full-day-block-submit {
    margin-left: auto;
    color: #ffffff;
    background: #323232;
    border: 1px solid #323232;
}

@media (max-width: 640px) {
    .or-full-day-block-modal-card {
        padding: 22px 18px;
    }

    .or-full-day-block-actions {
        flex-direction: column-reverse;
    }

    .or-full-day-block-cancel,
    .or-full-day-block-submit {
        width: 100%;
    }
}
/* ONE_RESERVE_FULL_DAY_BLOCK_CSS_END */


/* ONE_RESERVE_FULL_DAY_UNBLOCK_CSS_START */
/* トップ：全ブロック状態の日付は解除操作であることを示す */
.top-day-head.is-full-day-unblock-action {
    background: #fff5f5;
}

.top-day-head.is-full-day-unblock-action:hover {
    box-shadow: inset 0 0 0 2px rgba(205, 77, 77, 0.68);
}

.or-full-day-block-submit.is-unblock {
    background: #d64d4d;
    border-color: #d64d4d;
}
/* ONE_RESERVE_FULL_DAY_UNBLOCK_CSS_END */


/* ONE_RESERVE_CUSTOMER_APP_CSS_START */
.customer-app-body {
    min-width: 0;
    min-height: 100svh;
    margin: 0;
    background: #f4f6fb;
    color: #1d2433;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        sans-serif;
}

.customer-app {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding:
        max(20px, env(safe-area-inset-top))
        16px
        max(20px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.customer-app-card {
    width: min(100%, 430px);
    padding: 32px 24px;
    background: #ffffff;
    border: 1px solid #e8ebf2;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(41, 58, 92, 0.08);
    box-sizing: border-box;
}

.customer-app-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
    color: #1c2941;
    font-size: 14px;
    font-weight: 800;
}

.customer-app-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    color: #ffffff;
    font-size: 15px;
    background: #3f6ee8;
    border-radius: 9px;
}

.customer-app-heading {
    margin-bottom: 25px;
}

.customer-app-heading p {
    margin: 0 0 8px;
    color: #6d7890;
    font-size: 13px;
    font-weight: 700;
}

.customer-app-heading h1 {
    margin: 0;
    color: #182033;
    font-size: clamp(26px, 8vw, 34px);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.03em;
}

.customer-app-form {
    display: grid;
    gap: 9px;
}

.customer-app-form label {
    margin-top: 11px;
    color: #38445d;
    font-size: 13px;
    font-weight: 800;
}

.customer-app-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    color: #1e2738;
    font: inherit;
    font-size: 16px;
    background: #ffffff;
    border: 1px solid #d8deea;
    border-radius: 11px;
    box-sizing: border-box;
    outline: none;
}

.customer-app-form input:focus {
    border-color: #3f6ee8;
    box-shadow: 0 0 0 3px rgba(63, 110, 232, 0.14);
}

.customer-app-form button,
.customer-app-outline-button {
    width: 100%;
    min-height: 53px;
    margin-top: 19px;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    background: #3f6ee8;
    border: 1px solid #3f6ee8;
    border-radius: 11px;
    cursor: pointer;
}

.customer-app-form button:active,
.customer-app-outline-button:active {
    transform: scale(0.99);
}

.customer-app-note {
    margin: 20px 0 0;
    color: #778198;
    font-size: 12px;
    line-height: 1.7;
}

.customer-app-message.is-error {
    color: #b63434;
    background: #fff2f2;
    border: 1px solid #ffd7d7;
}

.customer-app-message.is-success {
    color: #24683c;
    background: #effaf2;
    border: 1px solid #cfedd6;
}

.customer-app-back {
    display: inline-block;
    margin-bottom: 28px;
    color: #607090;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 420px) {
    .customer-app-card {
        padding: 28px 19px;
        border-radius: 17px;
    }
}


/* ONE_RESERVE_CUSTOMER_FIVE_PAGE_NAV_CSS_START */
.customer-page-body {
    min-height: 100svh;
    background: #eef2fb;
}

.customer-page-shell {
    width: min(100%, 560px);
    min-height: 100svh;
    margin: 0 auto;
    padding-bottom: 105px;
    background: #f7f9fe;
    box-sizing: border-box;
}

.customer-page-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding:
        max(10px, env(safe-area-inset-top))
        18px
        10px;
    background: #3f6ee8;
    box-sizing: border-box;
}

.customer-page-store-name {
    max-width: 84%;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-page-main {
    padding: 28px 18px 20px;
}

.customer-page-intro {
    margin-bottom: 22px;
}

.customer-page-intro p {
    margin: 0 0 5px;
    color: #6e7b93;
    font-size: 13px;
    font-weight: 800;
}

.customer-page-intro h1 {
    margin: 0;
    color: #182033;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.customer-page-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px 17px;
    background: #ffffff;
    border: 1px solid #e2e7f1;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(34, 53, 89, 0.05);
}

.customer-page-card-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    color: #3f6ee8;
    font-size: 24px;
    font-weight: 800;
    background: #edf2ff;
    border-radius: 13px;
}

.customer-page-card h2 {
    margin: 0 0 5px;
    color: #1e293d;
    font-size: 16px;
    font-weight: 800;
}

.customer-page-card p {
    margin: 0;
    color: #748098;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
}

.customer-page-empty-card {
    display: grid;
    justify-items: center;
    padding: 38px 20px;
    text-align: center;
}

.customer-page-primary-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 18px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    background: #3f6ee8;
    border-radius: 13px;
}

.customer-bottom-nav-wrap {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: min(100%, 560px);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e4e8f0;
    box-shadow: 0 -7px 22px rgba(35, 53, 86, 0.06);
    backdrop-filter: blur(10px);
}

.customer-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 70px;
    padding-bottom: env(safe-area-inset-bottom);
}

.customer-bottom-nav-item {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-width: 0;
    padding: 9px 2px 7px;
    color: #8b96aa;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    box-sizing: border-box;
}

.customer-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.customer-bottom-nav-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-bottom-nav-item.is-active {
    color: #3f6ee8;
}

.customer-bottom-nav-item.is-active svg {
    stroke-width: 2.3;
}

.customer-logout-form {
    margin-top: 22px;
}

.customer-page-logout-button {
    width: 100%;
    min-height: 50px;
    color: #cb4a4a;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    background: #ffffff;
    border: 1px solid #f0d4d4;
    border-radius: 13px;
    cursor: pointer;
}

@media (min-width: 561px) {
    .customer-page-shell {
        box-shadow: 0 0 30px rgba(41, 57, 88, 0.09);
    }
}
/* ONE_RESERVE_CUSTOMER_FIVE_PAGE_NAV_CSS_END */


/* ONE_RESERVE_CUSTOMER_CONTRACTS_CSS_START */
.customer-contract-list {
    display: grid;
    gap: 15px;
}

.customer-contract-card {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e7f1;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(34, 53, 89, 0.05);
}

.customer-contract-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.customer-contract-type,
.customer-contract-payment {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    color: #3f6ee8;
    font-size: 11px;
    font-weight: 800;
    background: #edf2ff;
    border-radius: 999px;
}

.customer-contract-payment {
    color: #3c7651;
    background: #eef9f1;
}

.customer-contract-payment.is-pending {
    color: #a56b18;
    background: #fff6e7;
}

.customer-contract-card h2 {
    margin: 15px 0 5px;
    color: #1d293d;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
}

.customer-contract-summary {
    margin: 0;
    color: #718098;
    font-size: 13px;
    font-weight: 700;
}

.customer-contract-main-count {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-top: 18px;
    padding: 15px 0;
    border-top: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
}

.customer-contract-main-count span {
    color: #66748d;
    font-size: 13px;
    font-weight: 800;
}

.customer-contract-main-count strong {
    color: #3f6ee8;
    font-size: 31px;
    font-weight: 800;
    line-height: 1;
}

.customer-contract-main-count small {
    margin-left: 2px;
    color: #536078;
    font-size: 13px;
}

.customer-contract-details {
    display: grid;
    gap: 0;
    margin: 7px 0 0;
}

.customer-contract-details div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 40px;
    border-bottom: 1px solid #f0f2f6;
}

.customer-contract-details div:last-child {
    border-bottom: 0;
}

.customer-contract-details dt {
    color: #78849a;
    font-size: 12px;
    font-weight: 700;
}

.customer-contract-details dd {
    margin: 0;
    color: #34425a;
    font-size: 13px;
    font-weight: 800;
}

.customer-contract-details dd.is-expired {
    color: #c84a4a;
}

/* 顧客側：オプション内容説明を完全に左上詰め */
.customer-contract-card .customer-option-description {
    display: block !important;
    min-height: 0 !important;
    padding: 15px !important;
    text-align: left !important;
}

.customer-contract-card .customer-option-description span {
    display: block !important;
    width: auto !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    text-align: left !important;
}

.customer-contract-card .customer-option-description p {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.7 !important;
    white-space: pre-wrap !important;
}

/* 顧客側・契約情報：オプション内容説明を左上へ固定 */
.customer-contract-card .customer-option-description {
    display: block !important;
    min-height: 0 !important;
    text-align: left !important;
}

.customer-contract-card .customer-option-description-text {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #34425a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    text-align: left !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}


/* ONE_RESERVE_CUSTOMER_RESERVE_CALENDAR_CSS_START */
.customer-reserve-calendar-card {
    padding: 16px 0 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e7f1;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(34, 53, 89, 0.05);
}

.customer-reserve-calendar-legend .is-mine::before {
    background: #8db1ff;
    border: 1px solid #4d83f0;
}

.customer-reserve-calendar-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.customer-reserve-calendar {
    width: 100%;
    min-width: 594px;
    background: #ffffff;
    border-top: 1px solid #e3e7ef;
    border-left: 1px solid #e3e7ef;
    box-sizing: border-box;
}

.customer-reserve-calendar-grid {
    display: grid;
    grid-template-columns: 54px repeat(5, minmax(108px, 1fr));
}

.customer-reserve-time-head,
.customer-reserve-day-head,
.customer-reserve-time-cell,
.customer-reserve-cell {
    border-right: 1px solid #e3e7ef;
    border-bottom: 1px solid #e3e7ef;
    box-sizing: border-box;
}

.customer-reserve-time-head {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    color: #8490a5;
    font-size: 10px;
    font-weight: 800;
    background: #f7f9fe;
}

.customer-reserve-day-head {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    min-height: 54px;
    color: #42516b;
    background: #f7f9fe;
}

.customer-reserve-day-head strong {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.customer-reserve-day-head span {
    color: #7e8aa0;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.customer-reserve-day-head.is-today {
    color: #3f6ee8;
    background: #edf3ff;
}

.customer-reserve-day-head.is-today span {
    color: #3f6ee8;
}

.customer-reserve-day-head.is-saturday strong,
.customer-reserve-day-head.is-saturday span {
    color: #4682d9;
}

.customer-reserve-day-head.is-sunday strong,
.customer-reserve-day-head.is-sunday span {
    color: #d35b68;
}

.customer-reserve-time-cell {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 36px;
    padding-top: 3px;
    color: #7e8aa0;
    font-size: 10px;
    font-weight: 700;
    background: #f9fbff;
}

.customer-reserve-cell {
    position: relative;
    min-height: 36px;
    overflow: hidden;
    background: #ffffff;
}

.customer-reserve-calendar.is-free .customer-reserve-time-cell,
.customer-reserve-calendar.is-free .customer-reserve-cell {
    min-height: 50px;
}

.customer-reserve-cell.is-closed {
    background: #f7f7f7;
}

.customer-reserve-cell.is-outside {
    background: #f5f5f5;
}

.customer-reserve-outside-fill,
.customer-reserve-past-fill,
.customer-reserve-event-fill {
    position: absolute;
    top: var(--customer-fill-top);
    right: 0;
    left: 0;
    height: var(--customer-fill-height);
    box-sizing: border-box;
}

.customer-reserve-outside-fill {
    z-index: 1;
    background: #f5f5f5;
}

.customer-reserve-past-fill {
    z-index: 2;
    background: #f1f3f6;
}

.customer-reserve-event-fill {
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2px;
    overflow: hidden;
    padding: 1px 3px;
    color: #2455b5;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.customer-reserve-event-fill.is-mine {
    background: #cfe0ff;
    border: 1px solid #5f8ff2;
}

.customer-reserve-event-fill.is-unavailable {
    background: #dde2ea;
    border: 1px solid #b2bdcd;
}

.customer-reserve-event-fill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ONE_RESERVE_CUSTOMER_RESERVE_CALENDAR_CSS_END */


/* 顧客側・新規予約：案内枠をなくし、カレンダーを上へ詰める */
.customer-page-main:has(.customer-reserve-page) {
    padding: 0 !important;
}

.customer-reserve-page {
    min-width: 0;
    padding: 0 0 18px;
}

.customer-reserve-page .customer-reserve-calendar-card {
    padding: 0 0 12px !important;
    overflow: hidden;
    background: #ffffff;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.customer-reserve-page .customer-reserve-calendar {
    border-top: 0 !important;
}


/* ONE_RESERVE_CUSTOMER_RESERVE_NAV_CSS_START */
/* 顧客側・新規予約：カレンダー右上の移動ボタン */
.customer-reserve-page
.customer-reserve-calendar-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    padding: 10px 12px;
    background: #ffffff;
    border-bottom: 1px solid #e3e7ef;
}

.customer-reserve-toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 32px;
    padding: 0 10px;
    color: #3f6ee8;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    background: #f5f8ff;
    border: 1px solid #cfdcff;
    border-radius: 8px;
    box-sizing: border-box;
}

.customer-reserve-toolbar-button:active {
    transform: scale(0.98);
}

.customer-reserve-toolbar-button.is-disabled {
    color: #aab3c2;
    background: #f7f8fa;
    border-color: #e4e7ec;
    cursor: default;
}
/* ONE_RESERVE_CUSTOMER_RESERVE_NAV_CSS_END */


/* 顧客側・新規予約：各日の横幅を少し狭くする */
.customer-reserve-calendar-grid {
    grid-template-columns:
        48px
        repeat(5, minmax(108px, 1fr)) !important;
    min-width: 588px !important;
}

/* 顧客側・新規予約：各日の横幅をさらに縮小 */
.customer-reserve-calendar-grid {
    grid-template-columns:
        48px
        repeat(5, minmax(72px, 1fr)) !important;
    min-width: 408px !important;
}

/* 顧客側・新規予約：日付と曜日を同じ行で表示 */
.customer-reserve-day-head {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.customer-reserve-day-head strong {
    display: block !important;
    white-space: nowrap !important;
}

.customer-reserve-day-head span {
    display: none !important;
}

/* 顧客側・新規予約：日付ヘッダーの高さを時間ヘッダーと統一 */
.customer-reserve-time-head,
.customer-reserve-day-head {
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
}

.customer-reserve-day-head strong {
    line-height: 1 !important;
}

/* 顧客側・新規予約：時間を各枠の中央に表示 */
.customer-reserve-time-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* 顧客側・新規予約：カレンダー左右の余白 */
.customer-reserve-calendar-scroll {
    padding-right: 12px !important;
    padding-left: 12px !important;
    box-sizing: border-box !important;
}

/* 顧客側・新規予約：カレンダー内ではなく画面の左右に余白を作る */
.customer-page-main:has(.customer-reserve-page) {
    padding-right: 12px !important;
    padding-left: 12px !important;
}

.customer-reserve-calendar-scroll {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* 顧客側・新規予約：カレンダー上下の背景を画面左右と統一 */
.customer-reserve-page,
.customer-reserve-page .customer-reserve-calendar-card,
.customer-reserve-page .customer-reserve-calendar-toolbar,
.customer-reserve-page .customer-reserve-calendar-scroll {
    background: #f7f9fe !important;
}

/* 顧客側・新規予約：日付行と時間列をスクロール時も固定 */
.customer-reserve-calendar-scroll {
    position: relative !important;
    max-height: calc(100svh - 190px) !important;
    overflow: auto !important;
    overscroll-behavior: contain;
}

/* 左上の「時間」 */
.customer-reserve-time-head {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 40 !important;
    background: #f7f9fe !important;
}

/* 上部の日付 */
.customer-reserve-day-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    background: #f7f9fe !important;
}

/* 左側の時間 */
.customer-reserve-time-cell {
    position: sticky !important;
    left: 0 !important;
    z-index: 20 !important;
    background: #f7f9fe !important;
}

/* 顧客側・新規予約：カレンダー下の余白をなくす */
.customer-page-shell:has(.customer-reserve-page) {
    padding-bottom: 0 !important;
}

.customer-page-main:has(.customer-reserve-page) {
    padding-bottom: 0 !important;
}

.customer-reserve-page {
    padding-bottom: 0 !important;
}

.customer-reserve-page .customer-reserve-calendar-card {
    margin-bottom: 0 !important;
}

/* 顧客側：下部アイコンを常に最前面に表示 */
.customer-bottom-nav-wrap {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 99999 !important;
    display: block !important;
    width: min(100%, 560px) !important;
    height: auto !important;
    min-height: 70px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

.customer-bottom-nav {
    display: grid !important;
    min-height: 70px !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 新規予約：余白ではなくカレンダー表示領域を下部ナビ手前で止める */
.customer-page-shell:has(.customer-reserve-page),
.customer-page-main:has(.customer-reserve-page),
.customer-reserve-page {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.customer-reserve-calendar-scroll {
    max-height: calc(100svh - 190px) !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 顧客側：下部ナビを画面内に固定し、必ず表示する */
.customer-page-shell {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
}

.customer-page-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

.customer-bottom-nav-wrap {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 99999 !important;
    flex: 0 0 auto !important;
    display: block !important;
    width: 100% !important;
    min-height: 70px !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #e4e8f0 !important;
    box-shadow: 0 -7px 22px rgba(35, 53, 86, 0.12) !important;
}

.customer-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    min-height: 70px !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.customer-bottom-nav-item {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 新規予約はカレンダーだけを下部ナビ手前までスクロール */
.customer-page-main:has(.customer-reserve-page) {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 0 12px !important;
    overflow: hidden !important;
}

.customer-reserve-page {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.customer-reserve-page .customer-reserve-calendar-card {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

.customer-reserve-calendar-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto !important;
}

/* 顧客側・新規予約：予約できない時間をグレー表示 */


/* 営業時間外・過去時間 */
.customer-reserve-outside-fill,
.customer-reserve-past-fill {
    position: absolute !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 5 !important;
    display: block !important;
    height: var(--customer-fill-height) !important;
    background: #f1f3f5 !important;
    pointer-events: none !important;
}

/* 他の顧客予約・体験・ブロック */
.customer-reserve-event-fill.is-unavailable {
    z-index: 10 !important;
    background: #dfe3e8 !important;
    border: 1px solid #c7cdd5 !important;
    box-sizing: border-box !important;
}

/* 自分の予約は青で維持 */
.customer-reserve-event-fill.is-mine {
    z-index: 11 !important;
    background: #8eb0ff !important;
    border: 1px solid #5f8ff0 !important;
    box-sizing: border-box !important;
}

/* 顧客側・新規予約：予約不可を過去時間と同じグレーへ統一 */
.customer-reserve-cell.is-closed,
.customer-reserve-cell.is-outside {
    background: #f1f3f5 !important;
}

.customer-reserve-event-fill.is-unavailable {
    background: #f1f3f5 !important;
    border-color: #f1f3f5 !important;
}

/* 顧客側・新規予約：自分の予約は薄い青＋枠線 */
.customer-reserve-event-fill.is-mine {
    background: #e8f0ff !important;
    border: 2px solid #5f8ff0 !important;
    box-sizing: border-box !important;
}

/* 顧客側・新規予約：休日は過去時間と同じ薄いグレーで表示 */
.customer-reserve-cell.is-closed {
    background: #f1f3f5 !important;
}

.customer-reserve-cell.is-closed::after {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    content: "";
    background: #f1f3f5;
    pointer-events: none;
}

.customer-reserve-cell.is-closed .customer-reserve-event-fill {
    z-index: 4 !important;
}

/* 顧客側・新規予約：休日を過去時間と同じ薄いグレーで表示 */
.customer-reserve-cell.is-closed {
    position: relative !important;
    background: #f1f3f5 !important;
}

.customer-reserve-cell.is-closed::before {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: block !important;
    content: "" !important;
    background: #f1f3f5 !important;
    pointer-events: none !important;
}

.customer-reserve-cell.is-closed .customer-reserve-event-fill {
    z-index: 3 !important;
}


/* ONE_RESERVE_CUSTOMER_BOOKING_MODAL_CSS_START */
/* 顧客側・新規予約：空き枠タップと予約確認モーダル */
.customer-reserve-cell {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.customer-reserve-cell.is-closed,
.customer-reserve-cell.is-outside {
    cursor: default;
}

.customer-reserve-event-fill {
    cursor: default;
}

.customer-reserve-flash.is-error {
    color: #b63434;
    background: #fff2f2;
    border-color: #ffd7d7;
}

.customer-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 27, 49, 0.42);
    box-sizing: border-box;
}

.customer-booking-modal.is-open {
    display: flex;
}

.customer-booking-modal-card {
    position: relative;
    width: min(100%, 430px);
    max-height: min(720px, calc(100dvh - 40px));
    padding: 27px 21px 22px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(17, 32, 63, 0.25);
    box-sizing: border-box;
}

.customer-booking-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #536078;
    font-size: 27px;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.customer-booking-modal-kicker {
    margin: 0 0 5px;
    color: #3f6ee8;
    font-size: 12px;
    font-weight: 800;
}

.customer-booking-modal-card h2 {
    margin: 0 40px 19px 0;
    color: #182033;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
}

.customer-booking-modal-message {
    margin: 0 0 14px;
    padding: 11px 12px;
    color: #b63434;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
    background: #fff2f2;
    border: 1px solid #ffd7d7;
    border-radius: 10px;
}

.customer-booking-summary-list {
    display: grid;
    gap: 0;
    margin: 0 0 19px;
    border-top: 1px solid #edf0f5;
}

.customer-booking-summary-list div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid #edf0f5;
}

.customer-booking-summary-list dt {
    color: #758198;
    font-size: 12px;
    font-weight: 800;
}

.customer-booking-summary-list dd {
    margin: 0;
    overflow: hidden;
    color: #1d293d;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-booking-field-label {
    display: block;
    margin: 0 0 7px;
    color: #38445d;
    font-size: 13px;
    font-weight: 800;
}

.customer-booking-menu-select {
    width: 100%;
    min-height: 50px;
    padding: 0 13px;
    color: #1d293d;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #d8deea;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
}

.customer-booking-menu-select:focus {
    border-color: #3f6ee8;
    box-shadow: 0 0 0 3px rgba(63, 110, 232, 0.14);
}

.customer-booking-empty-note {
    margin: 15px 0 0;
    color: #a56b18;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}

.customer-booking-primary-button,
.customer-booking-secondary-button {
    width: 100%;
    min-height: 51px;
    margin-top: 20px;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    background: #3f6ee8;
    border: 1px solid #3f6ee8;
    border-radius: 11px;
    cursor: pointer;
}

.customer-booking-primary-button:active,
.customer-booking-secondary-button:active {
    transform: scale(0.99);
}

.customer-booking-secondary-button {
    margin-top: 0;
    color: #536078;
    background: #ffffff;
    border-color: #d8deea;
}

.customer-booking-confirm-lead {
    margin: 0 0 15px;
    color: #58657d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
}

.customer-booking-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
}

.customer-booking-confirm-actions .customer-booking-primary-button {
    margin-top: 0;
}

@media (max-width: 360px) {
    .customer-booking-modal {
        padding: 12px;
    }

    .customer-booking-modal-card {
        padding: 24px 16px 18px;
    }

    .customer-booking-summary-list div {
        grid-template-columns: 76px minmax(0, 1fr);
    }
}
/* ONE_RESERVE_CUSTOMER_BOOKING_MODAL_CSS_END */


/* ONE_RESERVE_CUSTOMER_OPEN_BUTTON_CSS_START */
/* 顧客側：空き枠を確実にタップできる透明ボタン */
.customer-reserve-cell {
    isolation: isolate;
}

.customer-reserve-open-button {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.customer-reserve-open-button:active {
    background: rgba(63, 110, 232, 0.05);
}

/* 予約済み枠は空き枠ボタンより前面に残す */
.customer-reserve-event-fill.is-unavailable {
    z-index: 20 !important;
}

.customer-reserve-event-fill.is-mine {
    z-index: 21 !important;
}
/* ONE_RESERVE_CUSTOMER_OPEN_BUTTON_CSS_END */


/* 顧客側：予約確認モーダルをコンパクト化 */
.customer-booking-modal {
    padding: 14px !important;
}

.customer-booking-modal-card {
    width: min(100%, 340px) !important;
    max-height: min(620px, calc(100dvh - 28px)) !important;
    padding: 20px 16px 16px !important;
    border-radius: 14px !important;
}

.customer-booking-modal-close {
    top: 7px !important;
    right: 7px !important;
    width: 31px !important;
    height: 31px !important;
    font-size: 23px !important;
}

.customer-booking-modal-kicker {
    margin-bottom: 3px !important;
    font-size: 11px !important;
}

.customer-booking-modal-card h2 {
    margin: 0 32px 13px 0 !important;
    font-size: 18px !important;
}

.customer-booking-summary-list {
    margin-bottom: 13px !important;
}

.customer-booking-summary-list div {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    min-height: 39px !important;
}

.customer-booking-summary-list dt,
.customer-booking-summary-list dd,
.customer-booking-field-label {
    font-size: 12px !important;
}

.customer-booking-menu-select {
    min-height: 42px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

.customer-booking-primary-button,
.customer-booking-secondary-button {
    min-height: 43px !important;
    margin-top: 14px !important;
    font-size: 13px !important;
    border-radius: 9px !important;
}

.customer-booking-confirm-lead {
    margin-bottom: 11px !important;
    font-size: 12px !important;
}

.customer-booking-confirm-actions {
    gap: 7px !important;
}

/* 顧客側：予約モーダルの閉じるボタンを最前面に固定 */
.customer-booking-modal-card {
    position: relative !important;
}

.customer-booking-modal-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}


/* ONE_RESERVE_CUSTOMER_HISTORY_CSS_START */
.customer-history-list {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e7f1;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(34, 53, 89, 0.05);
}

.customer-history-row {
    display: grid;
    grid-template-columns: 42px 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 0 14px;
    border-bottom: 1px solid #edf0f5;
}

.customer-history-row.is-penalty {
    grid-template-columns: 42px 96px minmax(0, 1fr) auto;
    gap: 6px;
}

.customer-history-row:last-child {
    border-bottom: 0;
}

.customer-history-row time,
.customer-history-time {
    color: #6f7d94;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.customer-history-time.is-penalty {
    color: #c14b4b;
    font-size: 10px;
    letter-spacing: -0.03em;
}

.customer-history-row strong {
    overflow: hidden;
    color: #26344b;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-history-count {
    min-width: 34px;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.customer-history-count.is-current {
    color: #3f6ee8;
}

.customer-history-count.is-rollover {
    color: #c14b4b;
}

.customer-history-count.is-next-month {
    color: #32945f;
}

@media (max-width: 360px) {
    .customer-history-row {
        padding: 0 10px;
        gap: 6px;
    }

    .customer-history-row.is-penalty {
        grid-template-columns: 39px 88px minmax(0, 1fr) auto;
        gap: 4px;
    }

    .customer-history-time.is-penalty {
        font-size: 9px;
    }
}
/* ONE_RESERVE_CUSTOMER_HISTORY_CSS_END */


/* ONE_RESERVE_CUSTOMER_HOME_UPCOMING_CSS_START */
.customer-home-intro {
    margin-bottom: 18px;
}

.customer-home-reservations {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e7f1;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(34, 53, 89, 0.05);
}

.customer-home-reservations-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid #edf0f5;
}

.customer-home-reservations-head h2 {
    margin: 0;
    color: #26344b;
    font-size: 15px;
    font-weight: 800;
}

.customer-home-reservations-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    padding: 0 8px;
    color: #3f6ee8;
    font-size: 11px;
    font-weight: 800;
    background: #edf2ff;
    border-radius: 999px;
}

.customer-home-reservation-list {
    display: grid;
}

.customer-home-reservation-row {
    display: grid;
    grid-template-columns: 60px 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 0 14px;
    border-bottom: 1px solid #edf0f5;
}

.customer-home-reservation-row:last-child {
    border-bottom: 0;
}

.customer-home-reservation-row time {
    color: #52617a;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.customer-home-reservation-time {
    color: #3f6ee8;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.customer-home-reservation-row strong {
    min-width: 0;
    overflow: hidden;
    color: #2b3950;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-home-reservation-count {
    min-width: 28px;
    color: #3f6ee8;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.customer-home-no-reservation {
    padding: 25px 16px;
    color: #76839a;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.customer-home-reservations + .customer-page-primary-link {
    margin-top: 18px;
}
/* ONE_RESERVE_CUSTOMER_HOME_UPCOMING_CSS_END */


/* 顧客側：予約モーダルのステップ切替を確実に反映 */
#customerBookingEditStep[hidden],
#customerBookingConfirmStep[hidden] {
    display: none !important;
}

#customerBookingReviewButton,
#customerBookingBackButton,
#customerBookingSubmitButton {
    position: relative !important;
    z-index: 2000 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}


/* ONE_RESERVE_CUSTOMER_HOME_COUNT_COLOR_CSS_START */
.customer-home-reservation-count.is-current {
    color: #3f6ee8 !important;
}

.customer-home-reservation-count.is-rollover {
    color: #d64d4d !important;
}

.customer-home-reservation-count.is-next-month {
    color: #32945f !important;
}
/* ONE_RESERVE_CUSTOMER_HOME_COUNT_COLOR_CSS_END */


/* ONE_RESERVE_CUSTOMER_HOME_DURATION_CSS_START */
.customer-home-reservation-row {
    grid-template-columns: 60px 46px minmax(0, 1fr) 35px auto !important;
}

.customer-home-reservation-duration {
    color: #7a879c;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}
/* ONE_RESERVE_CUSTOMER_HOME_DURATION_CSS_END */


/* ONE_RESERVE_CUSTOMER_HOME_CANCEL_CSS_START */
.customer-home-reservation-row {
    grid-template-columns:
        54px
        40px
        minmax(0, 1fr)
        29px
        30px
        56px !important;
    gap: 5px !important;
    min-height: 62px !important;
    padding: 0 10px !important;
}

.customer-home-reservation-duration {
    font-size: 10px !important;
}

.customer-home-reservation-count {
    min-width: 0 !important;
    font-size: 12px !important;
}

.customer-home-reservation-cancel {
    min-width: 0;
}

.customer-home-reservation-cancel form {
    margin: 0;
}

.customer-home-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-height: 30px;
    padding: 0 4px;
    color: #c74b4b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    background: #fff5f5;
    border: 1px solid #f0caca;
    border-radius: 7px;
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
}

.customer-home-cancel-button:active {
    transform: scale(0.98);
}

.customer-home-cancel-button.is-disabled,
.customer-home-cancel-button:disabled {
    color: #8b95a7;
    background: #f3f5f8;
    border-color: #e1e5eb;
    cursor: default;
    opacity: 1;
}

@media (max-width: 360px) {
    .customer-home-reservation-row {
        grid-template-columns:
            50px
            37px
            minmax(0, 1fr)
            27px
            27px
            50px !important;
        gap: 4px !important;
        padding: 0 8px !important;
    }

    .customer-home-cancel-button {
        width: 50px;
        min-height: 29px;
        font-size: 9px;
    }

    .customer-home-reservation-row time,
    .customer-home-reservation-time,
    .customer-home-reservation-row strong,
    .customer-home-reservation-count {
        font-size: 11px !important;
    }
}
/* ONE_RESERVE_CUSTOMER_HOME_CANCEL_CSS_END */


/* ONE_RESERVE_CUSTOMER_CANCEL_MODAL_CSS_START */
body.customer-cancel-modal-open {
    overflow: hidden;
}

.customer-cancel-modal[hidden] {
    display: none !important;
}

.customer-cancel-modal {
    position: fixed;
    z-index: 1000000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(20, 31, 51, 0.46);
}

.customer-cancel-modal-card {
    position: relative;
    width: min(100%, 338px);
    padding: 21px 17px 16px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(16, 29, 53, 0.24);
}

.customer-cancel-modal-close {
    position: absolute;
    top: 7px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #52617a;
    font-size: 24px;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.customer-cancel-modal-kicker {
    margin: 0 0 4px;
    color: #c74b4b;
    font-size: 11px;
    font-weight: 800;
}

.customer-cancel-modal-card h2 {
    margin: 0 32px 14px 0;
    color: #26344b;
    font-size: 18px;
    line-height: 1.45;
}

.customer-cancel-modal-summary {
    margin: 0;
    border-top: 1px solid #e9edf4;
}

.customer-cancel-modal-summary div {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: center;
    min-height: 39px;
    border-bottom: 1px solid #e9edf4;
}

.customer-cancel-modal-summary dt {
    color: #78859a;
    font-size: 12px;
    font-weight: 800;
}

.customer-cancel-modal-summary dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #2b3950;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-cancel-modal-penalty {
    margin: 12px 0 0;
    padding: 10px 11px;
    color: #a84444;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
    background: #fff3f3;
    border: 1px solid #f1c8c8;
    border-radius: 9px;
}

.customer-cancel-modal-note {
    margin: 12px 0 0;
    color: #718097;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.customer-cancel-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.customer-cancel-modal-back,
.customer-cancel-modal-submit {
    min-height: 42px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 9px;
    cursor: pointer;
    touch-action: manipulation;
}

.customer-cancel-modal-back {
    color: #52617a;
    background: #ffffff;
    border: 1px solid #dce3ee;
}

.customer-cancel-modal-submit {
    color: #ffffff;
    background: #cb4f4f;
    border: 1px solid #cb4f4f;
}

.customer-cancel-modal-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}
/* ONE_RESERVE_CUSTOMER_CANCEL_MODAL_CSS_END */


/* ONE_RESERVE_CUSTOMER_MONTHLY_POOL_CSS_START */
.customer-monthly-pool-list {
    display: grid;
    gap: 0;
    margin-top: 17px;
    overflow: hidden;
    border-top: 1px solid #e8edf5;
    border-bottom: 1px solid #e8edf5;
    border-radius: 10px;
}

.customer-monthly-pool-header,
.customer-monthly-pool-row {
    display: grid;
    grid-template-columns: 58px repeat(4, minmax(0, 1fr));
    align-items: center;
    column-gap: 4px;
}

.customer-monthly-pool-header {
    min-height: 31px;
    color: #7c8799;
    font-size: 10px;
    font-weight: 800;
    text-align: right;
    background: #f8faff;
    border-bottom: 1px solid #e8edf5;
}

.customer-monthly-pool-header span:first-child {
    text-align: left;
}

.customer-monthly-pool-row {
    min-height: 49px;
    border-bottom: 1px solid #edf0f5;
}

.customer-monthly-pool-row:last-child {
    border-bottom: 0;
}

.customer-monthly-pool-label,
.customer-monthly-pool-total,
.customer-monthly-pool-reserved,
.customer-monthly-pool-consumed,
.customer-monthly-pool-remaining {
    min-width: 0;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.customer-monthly-pool-label {
    position: relative;
    padding-left: 11px;
    color: #536078;
    text-align: left;
}

.customer-monthly-pool-label::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 999px;
    transform: translateY(-50%);
}

.customer-monthly-pool-total {
    color: #4f5e76;
}

.customer-monthly-pool-reserved {
    color: #516887;
}

.customer-monthly-pool-consumed {
    color: #6c7890;
}

.customer-monthly-pool-remaining {
    font-weight: 900;
}

.customer-monthly-pool-row.is-current .customer-monthly-pool-label,
.customer-monthly-pool-row.is-current .customer-monthly-pool-remaining {
    color: #3f6ee8;
}

.customer-monthly-pool-row.is-current .customer-monthly-pool-label::before {
    background: #3f6ee8;
}

.customer-monthly-pool-row.is-rollover .customer-monthly-pool-label,
.customer-monthly-pool-row.is-rollover .customer-monthly-pool-remaining {
    color: #c14b4b;
}

.customer-monthly-pool-row.is-rollover .customer-monthly-pool-label::before {
    background: #c14b4b;
}

.customer-monthly-pool-row.is-next-month .customer-monthly-pool-label,
.customer-monthly-pool-row.is-next-month .customer-monthly-pool-remaining {
    color: #32945f;
}

.customer-monthly-pool-row.is-next-month .customer-monthly-pool-label::before {
    background: #32945f;
}

@media (max-width: 390px) {
    .customer-monthly-pool-header,
    .customer-monthly-pool-row {
        grid-template-columns: 50px repeat(4, minmax(0, 1fr));
        column-gap: 2px;
    }

    .customer-monthly-pool-header {
        min-height: 29px;
        font-size: 9px;
    }

    .customer-monthly-pool-label,
    .customer-monthly-pool-total,
    .customer-monthly-pool-reserved,
    .customer-monthly-pool-consumed,
    .customer-monthly-pool-remaining {
        font-size: 10px;
    }
}
/* ONE_RESERVE_CUSTOMER_MONTHLY_POOL_CSS_END */


/* ONE_RESERVE_CUSTOMER_SETTINGS_EDIT_CSS_START */
.customer-settings-form {
    display: grid;
    gap: 15px;
}

.customer-settings-notice {
    margin: 0 0 14px;
    padding: 12px 13px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    border-radius: 11px;
}

.customer-settings-notice.is-success {
    color: #276d4b;
    background: #edf9f1;
    border: 1px solid #c8e9d3;
}

.customer-settings-notice.is-error {
    color: #ab4040;
    background: #fff3f3;
    border: 1px solid #f0c8c8;
}

.customer-settings-edit-card {
    display: grid;
    gap: 0;
    padding: 0 16px;
}

.customer-settings-section-head {
    padding: 17px 0 12px;
    border-bottom: 1px solid #e9edf4;
}

.customer-settings-section-head h2 {
    margin: 0;
    color: #26344b;
    font-size: 15px;
    font-weight: 800;
}

.customer-settings-section-head p {
    margin: 5px 0 0;
    color: #748198;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.customer-settings-field {
    display: grid;
    gap: 7px;
    padding: 15px 0;
    border-bottom: 1px solid #edf0f5;
}

.customer-settings-field:last-of-type {
    border-bottom: 0;
}

.customer-settings-field > span {
    color: #59677f;
    font-size: 12px;
    font-weight: 800;
}

.customer-settings-field input,
.customer-settings-field select {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    color: #26344b;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #d9e0eb;
    border-radius: 9px;
    outline: none;
    box-sizing: border-box;
}

.customer-settings-field input:focus,
.customer-settings-field select:focus {
    border-color: #3f6ee8;
    box-shadow: 0 0 0 3px rgba(63, 110, 232, 0.13);
}

.customer-settings-field small {
    color: #8994a6;
    font-size: 10px;
    font-weight: 700;
}

.customer-settings-save-button {
    width: 100%;
    min-height: 52px;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    background: #3f6ee8;
    border: 1px solid #3f6ee8;
    border-radius: 13px;
    cursor: pointer;
    touch-action: manipulation;
}

.customer-settings-save-button:active {
    transform: scale(0.99);
}
/* ONE_RESERVE_CUSTOMER_SETTINGS_EDIT_CSS_END */


/* ONE_RESERVE_CUSTOMER_RESERVE_DRAG_CSS_START */
.customer-reserve-cell.is-drag-target {
    z-index: 30 !important;
    background: #edf3ff !important;
    box-shadow: inset 0 0 0 2px #3f6ee8 !important;
}

.customer-reserve-open-button {
    touch-action: none !important;
}

/* 時間列を上下へ動かすと、従来どおりカレンダーをスクロールできる */
.customer-reserve-time-cell,
.customer-reserve-time-head {
    touch-action: pan-y !important;
}
/* ONE_RESERVE_CUSTOMER_RESERVE_DRAG_CSS_END */


/* ONE_RESERVE_CUSTOMER_FREE_TIME_LINE_CSS_START */
/* 顧客側・自由形式：管理側と同じく、00分を横線の中央へ配置 */
.customer-reserve-calendar.is-free .customer-reserve-time-cell,
.customer-reserve-calendar.is-free .customer-reserve-cell {
    min-height: 46px !important;
    height: 46px !important;
}

.customer-reserve-calendar.is-free .customer-reserve-time-cell {
    position: sticky !important;
    left: 0 !important;
    z-index: 25 !important;
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
    background: #f7f9fe !important;
}

.customer-reserve-calendar.is-free .customer-reserve-time-label {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 50;
    display: inline-block;
    padding: 0 4px;
    color: #7e8aa0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    background: #f7f9fe;
    transform: translate(-50%, -50%);
}
/* ONE_RESERVE_CUSTOMER_FREE_TIME_LINE_CSS_END */


/* ONE_RESERVE_CUSTOMER_FREE_FIRST_TIME_FIX_CSS_START */
/* 自由形式：一番上の時刻だけ日付ヘッダーとの重なりを避ける */
.customer-reserve-calendar.is-free
.customer-reserve-time-cell.is-first-free-time-row
.customer-reserve-time-label {
    top: 7px !important;
    transform: translate(-50%, 0) !important;
}
/* ONE_RESERVE_CUSTOMER_FREE_FIRST_TIME_FIX_CSS_END */


/* ONE_RESERVE_CUSTOMER_START_TIME_SELECT_CSS_START */
/* モーダルの高さは変えず、開始時間行の中だけを時・分選択にする */
.customer-booking-start-time-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 3px !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

.customer-booking-time-select {
    width: 47px;
    min-width: 47px;
    height: 30px;
    padding: 0 2px;
    color: #1d293d;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    background: #ffffff;
    border: 1px solid #d8deea;
    border-radius: 7px;
    box-sizing: border-box;
    outline: none;
}

.customer-booking-time-select:focus {
    border-color: #3f6ee8;
    box-shadow: 0 0 0 2px rgba(63, 110, 232, 0.13);
}

.customer-booking-time-select:disabled {
    color: #98a2b3;
    background: #f4f6f9;
}

.customer-booking-time-unit {
    color: #52617a;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 360px) {
    .customer-booking-time-select {
        width: 43px;
        min-width: 43px;
    }
}
/* ONE_RESERVE_CUSTOMER_START_TIME_SELECT_CSS_END */

/* 顧客側：設定アイコンのサイズと線幅を他のナビアイコンに合わせる */
.customer-bottom-nav-item .customer-settings-nav-icon {
    width: 21px !important;
    height: 21px !important;
    stroke-width: 1.8 !important;
}

.customer-bottom-nav-item.is-active .customer-settings-nav-icon {
    stroke-width: 2.1 !important;
}


/* 顧客側：翌日・当日の予約受付制限で取得できない時間 */
.customer-reserve-booking-limit-fill {
    position: absolute !important;
    top: var(--customer-fill-top) !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 6 !important;
    display: block !important;
    height: var(--customer-fill-height) !important;
    background: #f1f3f5 !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
}


/* ONE_RESERVE_CUSTOMER_BOOKING_LIMIT_GRAY_FORCE_START */
/* 顧客側：予約受付制限のグレー表示を確実に前面へ出す */
.customer-reserve-booking-limit-fill {
    z-index: 15 !important;
    background: #f1f3f5 !important;
    pointer-events: none !important;
}

.customer-reserve-cell.is-booking-limit-blocked {
    background: #f1f3f5 !important;
    cursor: default !important;
}

.customer-reserve-cell.is-booking-limit-blocked::after {
    position: absolute !important;
    inset: 0 !important;
    z-index: 15 !important;
    display: block !important;
    content: "" !important;
    background: #f1f3f5 !important;
    pointer-events: none !important;
}

.customer-reserve-cell.is-booking-limit-blocked
.customer-reserve-open-button {
    z-index: 14 !important;
    cursor: default !important;
    pointer-events: none !important;
}

.customer-reserve-cell.is-booking-limit-blocked
.customer-reserve-event-fill {
    z-index: 20 !important;
}
/* ONE_RESERVE_CUSTOMER_BOOKING_LIMIT_GRAY_FORCE_END */


/* ONE_RESERVE_CUSTOMER_BOOKING_TIME_LIMIT_SERVER_CSS_START */
.customer-reserve-booking-limit-fill {
    position: absolute !important;
    top: var(--customer-fill-top) !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 16 !important;
    display: block !important;
    height: var(--customer-fill-height) !important;
    background: #f1f3f5 !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
}

.customer-reserve-cell
.customer-reserve-event-fill.is-unavailable {
    z-index: 20 !important;
}

.customer-reserve-cell
.customer-reserve-event-fill.is-mine {
    z-index: 21 !important;
}
/* ONE_RESERVE_CUSTOMER_BOOKING_TIME_LIMIT_SERVER_CSS_END */

/* ===== ONE RESERVE CONTRACT CARD ===== */

.customer-contract-card {
    margin: 12px 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}

.customer-contract-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.customer-contract-card-title {
    font-size: 16px;
    font-weight: 700;
}

.customer-contract-card-price {
    color: #666666;
    font-size: 14px;
}

.customer-contract-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.customer-contract-tag-remove {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #ef4444;
    color: #ffffff;
    cursor: pointer;
}

.customer-contract-tag-remove:hover {
    opacity: 0.9;
}


.customer-contract-item{
    margin-bottom:16px;
}


/* ONE_RESERVE_CONTRACT_CARD_FINAL_START */

/* 契約一覧 */
.customer-selected-contracts {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 14px !important;
}

.customer-contract-item {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.customer-contract-box {
    padding: 16px !important;
}

.customer-contract-picker {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr) 110px !important;
    gap: 10px !important;
    margin-bottom: 4px !important;
}

.customer-contract-picker select,
.customer-contract-picker button {
    min-height: 42px !important;
}

/* 契約カード本体 */
.customer-contract-card {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 12px 14px !important;

    border-radius: 10px !important;
    box-sizing: border-box !important;
}

.customer-contract-card-title {
    justify-self: start !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
}

.customer-contract-card-price {
    color: #666666;
    font-size: 13px !important;
}

/* 契約カードヘッダー */
.customer-contract-card-header {
    display: grid !important;
    grid-template-columns:
        minmax(180px, 1fr)
        auto
        minmax(90px, 1fr) !important;

    align-items: center !important;
    gap: 16px !important;

    min-height: 44px !important;
    margin: 0 !important;
}

.customer-contract-card-header-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
}

.customer-contract-card-header-center
.customer-contract-card-price {
    display: flex !important;
    align-items: center !important;
    min-height: 38px !important;

    margin: 0 !important;
    white-space: nowrap !important;
}

.customer-contract-card-header-center
.customer-session-payment-status {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;

    min-height: 38px !important;
    margin: 0 !important;
}

.customer-contract-card-header-center
.customer-session-payment-status label {
    display: flex !important;
    align-items: center !important;

    min-height: 38px !important;
    margin: 0 !important;

    white-space: nowrap !important;
}

.customer-contract-card-header-center
.customer-session-payment-status select,
.customer-contract-card-header-center
.customer-session-payment-status-save {
    height: 38px !important;
    min-height: 38px !important;

    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ヘッダー右側操作 */
.customer-contract-card-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;

    min-height: 38px !important;
}

.customer-contract-card-edit-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 42px !important;
    min-width: 42px !important;

    height: 38px !important;
    min-height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #d1d5db !important;
    border-radius: 7px !important;
    background: #ffffff !important;

    color: #333333 !important;
    font-size: 18px !important;

    cursor: pointer !important;
}

.customer-contract-card-edit-actions {
    display: none !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;

    position: static !important;
    transform: none !important;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.customer-contract-card-edit-actions.is-visible {
    display: flex !important;
}

.customer-contract-card-edit-actions button {
    height: 38px !important;
    min-height: 38px !important;

    margin: 0 !important;
    padding: 0 14px !important;

    white-space: nowrap !important;
}

/* 契約内の回数情報 */
.customer-contract-card
.customer-session-info-title {
    display: none !important;
}

.customer-contract-card
.customer-session-info-head {
    display: none !important;
}

.customer-contract-card > .customer-session-info-card {
    width: 100% !important;
    max-width: none !important;

    margin-top: 8px !important;
    padding-top: 8px !important;

    border-top: 1px solid #e5e7eb !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;

    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.customer-contract-card
.customer-session-info-view {
    border-top: 0 !important;
}

.customer-contract-card
.customer-session-info-stats {
    gap: 0 !important;
    margin: 0 !important;
}

.customer-contract-card
.customer-session-info-stats > div {
    padding: 8px 10px !important;
}

.customer-contract-card
.customer-session-info-stats span {
    margin-bottom: 3px !important;
    font-size: 12px !important;
}

.customer-contract-card
.customer-session-info-stats strong {
    font-size: 20px !important;
    line-height: 1.2 !important;
}

/* 旧線・装飾を消す */
.customer-contract-card
.customer-session-info-card,
.customer-contract-card
.customer-session-info-view,
.customer-contract-card
.customer-session-info-stats,
.customer-contract-card
.customer-session-info-stats > div,
.customer-contract-card
.customer-session-info-head {
    border-top: 0 !important;
}

.customer-contract-card > hr,
.customer-contract-card .divider,
.customer-contract-card .customer-divider {
    display: none !important;
}

.customer-contract-card::before,
.customer-contract-card::after,
.customer-session-info-card::before,
.customer-session-info-card::after,
.customer-session-info-view::before,
.customer-session-info-view::after {
    display: none !important;
    border: 0 !important;
}

/* 削除ボタン */
.customer-contract-card-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    margin-top: 4px !important;
    padding-top: 4px !important;
    border-top: 0 !important;
}

.customer-contract-tag-remove {
    position: static !important;
    inset: auto !important;
    transform: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 64px !important;

    height: auto !important;
    min-height: 36px !important;

    margin: 0 !important;
    padding: 6px 12px !important;

    border: none !important;
    border-radius: 8px !important;
    background: #ef4444 !important;

    color: #ffffff !important;
    font-size: 13px !important;
    line-height: 1.4 !important;

    white-space: nowrap !important;
    cursor: pointer !important;
}

.customer-contract-tag-remove:hover {
    opacity: 0.9;
}

/* PC編集状態 */
@media (min-width: 901px) {
    .customer-contract-card {
        position: relative !important;
    }

    .customer-contract-card > .customer-session-info-card {
        position: relative !important;
        display: grid !important;
        grid-template-areas:
            "session-content" !important;

        overflow: visible !important;

        margin-top: 8px !important;
        padding-top: 8px !important;

        border-top:
            1px solid #e5e7eb !important;
    }

    .customer-contract-card
    .customer-session-info-view,
    .customer-contract-card
    .customer-session-info-edit {
        grid-area: session-content !important;
    }

    .customer-contract-card
    .customer-session-info-edit {
        position: static !important;
        inset: auto !important;

        display: none !important;

        width: 100% !important;
        height: auto !important;
        min-height: 62px !important;

        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;

        box-sizing: border-box !important;
    }

    .customer-contract-card
    .customer-session-info-card.is-editing
    .customer-session-info-view {
        display: block !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .customer-contract-card
    .customer-session-info-card.is-editing
    .customer-session-info-edit {
        position: static !important;
        inset: auto !important;

        display: block !important;
        visibility: visible !important;

        width: 100% !important;
        height: auto !important;
        min-height: 62px !important;

        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .customer-contract-card
    .customer-session-info-card.is-editing
    .customer-session-info-edit-grid {
        display: grid !important;

        width: 100% !important;
        height: 62px !important;
        min-height: 62px !important;

        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .customer-contract-card
    .customer-session-info-card.is-editing
    .customer-session-info-edit-grid > div {
        height: 62px !important;
        min-height: 62px !important;
        border: 0 !important;
    }

    .customer-contract-card
    .customer-session-info-card.is-editing
    .customer-session-info-edit-grid
    > div > span {
        visibility: visible !important;
    }

    .customer-contract-card-actions {
        position: absolute !important;
        right: 14px !important;
        bottom: 24px !important;

        margin: 0 !important;
        padding: 0 !important;
    }
}

/* スマホ */
@media (max-width: 900px) {
    .customer-contract-card-header {
        grid-template-columns:
            1fr auto !important;
    }

    .customer-contract-card-header-center {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-content: flex-start !important;
    }

    .customer-contract-card-header-actions {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }
}

/* ONE_RESERVE_CONTRACT_CARD_FINAL_END */


/* ONE_RESERVE_COMPANY_SALES_CHART_START */
.company-top-dashboard {
    display: grid;
    align-content: start;
    gap: 20px;
    min-height: calc(100vh - 90px);
    padding: 26px 32px 50px;
}

.company-sales-filter-section {
    display: grid;
    gap: 10px;
}

.company-sales-store-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.company-sales-store-option {
    --company-store-color: #2563eb;

    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #d9e0eb;
    border-radius: 10px;
    background: #ffffff;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    user-select: none;
}

.company-sales-store-option:hover {
    border-color: #b9c5d8;
    background: #fafcff;
}

.company-sales-store-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--company-store-color);
}

.company-sales-store-color {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--company-store-color);
    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--company-store-color) 14%,
            transparent
        );
}

.company-sales-no-store {
    margin: 0;
    color: #667085;
    font-size: 13px;
    font-weight: 650;
}

.company-dashboard-grid {
    display: grid;
    grid-template-columns:
        minmax(420px, min(48vw, 620px))
        minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.company-sales-chart-card {
    min-width: 0;
    padding: 18px 18px 14px;
    border: 1px solid #dfe5ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.05);
}

.company-sales-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.company-sales-chart-eyebrow {
    margin: 0 0 3px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.company-sales-chart-header h2 {
    margin: 0;
    color: #172033;
    font-size: 17px;
    line-height: 1.4;
}

.company-sales-chart-unit {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.company-sales-chart-wrap {
    position: relative;
    width: 100%;
    height: 275px;
}

.company-sales-chart-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.company-sales-chart-tooltip {
    position: absolute;
    z-index: 4;
    display: grid;
    gap: 3px;
    min-width: 120px;
    padding: 9px 11px;
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background:
        rgba(255, 255, 255, 0.97);
    color: #172033;
    font-size: 11px;
    pointer-events: none;
    box-shadow:
        0 10px 24px
        rgba(15, 23, 42, 0.12);
    transform: translateY(-100%);
}

.company-sales-chart-tooltip strong {
    font-size: 12px;
}

.company-sales-chart-tooltip span {
    color: #667085;
}

.company-sales-chart-tooltip b {
    margin-top: 2px;
    font-size: 13px;
}

@media (max-width: 980px) {
    .company-top-dashboard {
        padding: 22px 20px 40px;
    }

    .company-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .company-sales-chart-card {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .company-top-dashboard {
        gap: 16px;
        padding: 18px 14px 34px;
    }

    .company-sales-store-filters {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .company-sales-store-option {
        min-width: 0;
    }

    .company-sales-chart-card {
        padding: 15px 12px 10px;
    }

    .company-sales-chart-wrap {
        height: 255px;
    }
}
/* ONE_RESERVE_COMPANY_SALES_CHART_END */

/* 企業トップ：店舗チェックボックスの白枠を削除 */
.company-sales-store-option {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.company-sales-store-option:hover {
    border: 0;
    background: transparent;
}

/* 企業トップ：売上グラフを左上へ調整 */
@media (min-width: 981px) {
    .company-top-dashboard {
        margin-top: -30px;
        margin-left: -75px;
        gap: 8px;
    }

    .company-sales-filter-section {
        gap: 0;
        margin-bottom: 0;
    }

    .company-dashboard-grid {
        margin-top: 0;
    }
}

/* 企業トップ：左・上の余白を20pxに固定 */
@media (min-width: 981px) {
    main:has(.company-top-dashboard) {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 20px !important;
    }

    .company-top-dashboard {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 6px !important;
    }

    .company-sales-filter-section {
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .company-dashboard-grid {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* 企業トップ：左余白35px、上余白20px */
@media (min-width: 981px) {
    main:has(.company-top-dashboard) {
        padding: 20px 20px 20px 35px !important;
    }
}

/* 企業トップ：チェックボックス上の余白を縮小 */
@media (min-width: 981px) {
    main:has(.company-top-dashboard) {
        padding: 5px 20px 20px 35px !important;
    }
}


/* ONE_RESERVE_TRIAL_PAYMENT_GAP_START */
.trial-payment-method-section {
    display: grid !important;
    gap: 4px !important;
}

.trial-payment-method-section > .menu-create-section-title,
.trial-payment-method-section > .trial-payment-method-list,
.trial-payment-method-section > .trial-payment-method-help {
    margin: 0 !important;
}

.trial-payment-method-section .trial-payment-method-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
}

.trial-payment-method-section .trial-payment-method-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.trial-payment-method-section .trial-payment-method-item input {
    margin: 0 !important;
}
/* ONE_RESERVE_TRIAL_PAYMENT_GAP_END */

/* 体験メニュー作成：チェックボックスの余計な上下枠を削除 */
.trial-payment-method-section
.trial-payment-method-item
input[type="checkbox"] {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    outline-offset: 2px;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
}

/* 体験メニュー作成：チェックボックスの形と文字間隔 */
.trial-payment-method-section .trial-payment-method-item {
    gap: 8px !important;
}

.trial-payment-method-section
.trial-payment-method-item
input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border-radius: 4px !important;
}

/* 体験メニュー作成：チェックボックスを4px小さくする */
.trial-payment-method-section .trial-payment-method-item {
    gap: 8px !important;
}

.trial-payment-method-section
.trial-payment-method-item
input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
}

/* 体験予約：メニューで無効な決済方法を確実に非表示 */
.trial-public-payment-option[hidden] {
    display: none !important;
}

/* 体験予約ページ：決済方法ラジオボタンの余計な上下枠を削除 */
.trial-public-payment-option input[type="radio"] {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    appearance: radio !important;
    -webkit-appearance: radio !important;
}

/* 企業トップ：店舗チェックボックスの余計な上下枠を削除 */
.company-sales-store-option input[type="checkbox"] {
    display: inline-block !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
}

/* 企業トップ：店舗チェックボックスを4px小さくする */
.company-sales-store-option input[type="checkbox"] {
    flex-basis: 12px !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
}

/* 企業トップ：店舗名横の丸い色マークを非表示 */
.company-sales-store-color {
    display: none !important;
}

/* 企業トップ：未使用時のグラフ吹き出しを確実に非表示 */
.company-sales-chart-tooltip[hidden] {
    display: none !important;
}


/* ONE_RESERVE_COMPANY_SALES_TABLE_START */
@media (min-width: 981px) {
    .company-dashboard-grid {
        grid-template-columns:
            minmax(420px, 620px)
            minmax(650px, 1fr) !important;
        width: 100%;
        max-width: 100%;
    }
}

.company-sales-table-card {
    display: grid;
    align-content: start;
    min-width: 0;
    max-height: 307px;
    padding: 18px;
    border: 1px solid #dfe5ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.company-sales-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
}

.company-sales-table-header h2 {
    margin: 0;
    color: #172033;
    font-size: 17px;
    line-height: 1.4;
}

.company-sales-table-header > span {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.company-sales-table-wrap {
    min-width: 0;
    overflow: auto;
    border: 1px solid #e3e8f0;
    border-radius: 11px;
}

.company-sales-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    table-layout: fixed;
}

.company-sales-table th,
.company-sales-table td {
    padding: 11px 10px;
    border-right: 1px solid #edf0f5;
    border-bottom: 1px solid #e8ecf2;
    color: #344054;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.company-sales-table th:last-child,
.company-sales-table td:last-child {
    border-right: 0;
}

.company-sales-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7f9fc;
    color: #667085;
    font-weight: 850;
}

.company-sales-table thead th:first-child,
.company-sales-table tbody th {
    width: 150px;
    text-align: left;
}

.company-sales-table tbody th {
    color: #172033;
    font-weight: 850;
}

.company-sales-table tbody td {
    font-weight: 700;
}

.company-sales-table tbody td.is-total {
    color: #1557d8;
    font-weight: 900;
}

.company-sales-table tbody tr:last-child th,
.company-sales-table tbody tr:last-child td {
    border-bottom: 0;
}

.company-sales-table tbody tr[hidden],
.company-sales-table-no-selection[hidden] {
    display: none !important;
}

.company-sales-table-no-selection {
    margin: 0;
    padding: 28px 10px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 980px) {
    .company-sales-table-card {
        width: 100%;
        max-height: none;
    }
}
/* ONE_RESERVE_COMPANY_SALES_TABLE_END */


/* ONE_RESERVE_COMPANY_SALES_MONTH_LINKS_START */
.company-sales-month-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.company-sales-month-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #cfd8e8;
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

a.company-sales-month-button:hover {
    border-color: #1557d8;
    color: #1557d8;
}

.company-sales-month-button.is-disabled {
    background: #f4f6f9;
    color: #a0a8b5;
}
/* ONE_RESERVE_COMPANY_SALES_MONTH_LINKS_END */


/* ONE_RESERVE_COMPANY_SALES_DETAIL_PAGE_START */
.company-sales-detail-link {
    display: block;
    width: 100%;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: right;
    text-decoration: none;
}

.company-sales-detail-link:hover {
    color: #1557d8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.company-sales-detail-page-table td.is-amount {
    color: #172033;
    font-weight: 900;
    text-align: right;
}
/* ONE_RESERVE_COMPANY_SALES_DETAIL_PAGE_END */


/* ONE_RESERVE_COMPANY_SALES_DETAIL_SIMPLE_START */
.company-sales-detail-simple {
    width: 100%;
    padding: 28px 32px 50px;
}

.company-sales-detail-simple__table-wrap {
    width: 100%;
    margin-top: 24px;
    overflow-x: auto;
    border: 1px solid #dfe5ef;
    border-radius: 14px;
    background: #ffffff;
}

.company-sales-detail-simple__table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.company-sales-detail-simple__table th,
.company-sales-detail-simple__table td {
    padding: 15px 18px;
    border-right: 1px solid #edf0f5;
    border-bottom: 1px solid #e8ecf2;
    color: #344054;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
}

.company-sales-detail-simple__table th:last-child,
.company-sales-detail-simple__table td:last-child {
    border-right: 0;
}

.company-sales-detail-simple__table thead th {
    background: #f7f9fc;
    color: #667085;
    font-weight: 850;
}

.company-sales-detail-simple__table tbody tr:last-child td {
    border-bottom: 0;
}

.company-sales-detail-simple__table td.is-amount {
    color: #172033;
    font-weight: 900;
}

.company-sales-detail-simple__empty {
    padding: 42px 18px !important;
    color: #667085 !important;
    font-weight: 700;
    text-align: center !important;
}

@media (max-width: 640px) {
    .company-sales-detail-simple {
        padding: 20px 14px 36px;
    }

    .company-sales-detail-simple__table-wrap {
        margin-top: 18px;
    }

    .company-sales-detail-simple__table th,
    .company-sales-detail-simple__table td {
        padding: 13px 14px;
        font-size: 13px;
    }
}
/* ONE_RESERVE_COMPANY_SALES_DETAIL_SIMPLE_END */


/* ONE_RESERVE_COMPANY_SALES_PAYMENT_DETAIL_START */
.company-sales-detail-simple__payment-label {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef3ff;
    color: #1557d8;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}
/* ONE_RESERVE_COMPANY_SALES_PAYMENT_DETAIL_END */

/* 売上明細：決済内容を通常テキスト表示にする */
.company-sales-detail-simple__payment-label {
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    font-weight: inherit !important;
    box-shadow: none !important;
}


/* ONE_RESERVE_COMPANY_SALES_SUMMARY_UI_START */

/* 売上サマリー全体 */
.company-sales-summary-panel {
    display: grid;
    grid-template-columns:
        minmax(250px, 0.54fr)
        minmax(520px, 1.46fr) !important;
    align-items: stretch !important;
    gap: 14px;
    width: 100%;
    margin: 0 !important;
}

/* 左側3カード */
.company-sales-summary-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows:
        repeat(3, minmax(0, 1fr)) !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    gap: 7px !important;
}

.company-sales-summary-card,
.company-upcoming-payment-panel {
    border: 1px solid #dfe5ef;
    border-radius: 14px;
    background: #ffffff;
}

.company-sales-summary-card {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    column-gap: 12px !important;
    row-gap: 2px !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 14px !important;
}

.company-sales-summary-card p,
.company-sales-summary-card small,
.company-upcoming-payment-heading p,
.company-upcoming-payment-note {
    margin: 0;
}

.company-sales-summary-card > p {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    color: #667085;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25 !important;
}

.company-sales-summary-card p span {
    font-size: 10px;
}

.company-sales-summary-card > strong {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;

    margin: 0 !important;
    color: #172033;
    font-size: 19px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.company-sales-summary-card > small {
    grid-column: 1 !important;
    grid-row: 2 !important;

    margin: 0 !important;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2 !important;
}

.company-sales-summary-card
#companySummaryPreviousRatio.is-positive {
    color: #087a55;
}

.company-sales-summary-card
#companySummaryPreviousRatio.is-negative {
    color: #c43232;
}

/* 右側 今後の決済予定 */
.company-upcoming-payment-panel {
    display: grid;
    align-self: start !important;
    gap: 13px !important;

    height: auto !important;
    min-height: 0 !important;
    padding: 16px 18px !important;

    overflow: visible !important;
}

.company-upcoming-payment-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.company-upcoming-payment-heading p {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
}

.company-upcoming-payment-heading h2 {
    margin: 1px 0 0 !important;
    color: #172033;
    font-size: 16px !important;
}

.company-upcoming-payment-heading strong {
    color: #172033;
    font-size: 20px !important;
}

.company-upcoming-payment-breakdown {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    border: 1px solid #e4e9f1;
    border-radius: 10px;
    overflow: hidden;
}

.company-upcoming-payment-breakdown > div {
    display: grid;
    gap: 3px !important;
    padding: 11px 12px !important;
    border-right: 1px solid #e4e9f1;
}

.company-upcoming-payment-breakdown > div:last-child {
    border-right: 0;
}

.company-upcoming-payment-breakdown span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
}

.company-upcoming-payment-breakdown b {
    color: #344054;
    font-size: 13px !important;
}

.company-upcoming-payment-note {
    color: #7a8495;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.3 !important;
}

.company-dashboard-grid {
    margin-top: 10px !important;
}

/* スマホ */
@media (max-width: 720px) {
    .company-upcoming-payment-breakdown {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .company-upcoming-payment-breakdown
    > div:nth-child(2) {
        border-right: 0;
    }

    .company-upcoming-payment-breakdown
    > div:nth-child(-n+2) {
        border-bottom: 1px solid #e4e9f1;
    }
}

@media (max-width: 480px) {
    .company-upcoming-payment-heading {
        display: grid;
    }
}

/* ONE_RESERVE_COMPANY_SALES_SUMMARY_UI_END */


/* ONE_RESERVE_OPTION_CONTRACT_DATES_START */
.customer-option-contract-date {
    margin: 4px 0 2px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.4;
}

.customer-ended-option-contracts {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.customer-ended-option-contract-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.customer-ended-option-contract-card > div {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.customer-ended-option-contract-card strong {
    color: #111827;
    font-size: 15px;
}

.customer-ended-option-contract-card span,
.customer-ended-option-contract-card p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
}

@media (max-width: 700px) {
    .customer-ended-option-contract-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}
/* ONE_RESERVE_OPTION_CONTRACT_DATES_END */


/* ONE_RESERVE_COMPANY_ALL_AMOUNT_DETAILS_START */
.company-amount-detail-button {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: inherit;
    cursor: pointer;
}

.company-amount-detail-button:hover,
.company-amount-detail-button:focus-visible {
    color: #1557d8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.company-amount-detail-button.is-small {
    font-size: inherit;
}

.company-amount-detail-button.is-breakdown {
    display: block;
    width: 100%;
    font-weight: 850;
    text-align: left;
}

#companySalesChart {
    cursor: pointer;
}

.company-sales-table td a {
    display: block;
    width: 100%;
    color: inherit;
    text-align: right;
    text-decoration: none;
}

.company-sales-table td a:hover,
.company-sales-table td a:focus-visible {
    color: #1557d8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.company-amount-detail-page {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 1450px;
    padding: 26px 32px 50px;
}

.company-amount-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.company-amount-detail-header p {
    margin: 0 0 4px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.company-amount-detail-header h1 {
    margin: 0;
    color: #172033;
    font-size: 27px;
    line-height: 1.35;
}

.company-amount-detail-header span {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.company-amount-detail-header > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #cfd8e8;
    border-radius: 9px;
    background: #ffffff;
    color: #344054;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.company-amount-detail-header > a:hover {
    border-color: #1557d8;
    color: #1557d8;
}

.company-amount-detail-summary {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 220px));
    gap: 12px;
}

.company-amount-detail-summary article {
    padding: 16px 18px;
    border: 1px solid #dfe5ef;
    border-radius: 13px;
    background: #ffffff;
}

.company-amount-detail-summary span {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.company-amount-detail-summary strong {
    color: #172033;
    font-size: 22px;
    font-weight: 900;
}

.company-amount-detail-table-wrap {
    overflow: auto;
    border: 1px solid #dfe5ef;
    border-radius: 14px;
    background: #ffffff;
}

.company-amount-detail-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.company-amount-detail-table th,
.company-amount-detail-table td {
    padding: 13px 14px;
    border-right: 1px solid #edf0f5;
    border-bottom: 1px solid #e8ecf2;
    color: #344054;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
}

.company-amount-detail-table th:last-child,
.company-amount-detail-table td:last-child {
    border-right: 0;
}

.company-amount-detail-table thead th {
    background: #f7f9fc;
    color: #667085;
    font-weight: 850;
}

.company-amount-detail-table td.is-amount {
    color: #172033;
    font-weight: 900;
    text-align: right;
}

.company-amount-detail-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.company-amount-detail-status.is-paid {
    background: #eaf7ef;
    color: #167245;
}

.company-amount-detail-status.is-scheduled {
    background: #eef4ff;
    color: #1557d8;
}

.company-amount-detail-empty {
    padding: 42px 15px !important;
    color: #667085 !important;
    font-weight: 700;
    text-align: center !important;
}

@media (max-width: 700px) {
    .company-amount-detail-page {
        padding: 20px 14px 36px;
    }

    .company-amount-detail-header {
        display: grid;
    }

    .company-amount-detail-header h1 {
        font-size: 22px;
    }

    .company-amount-detail-header > a {
        width: fit-content;
    }

    .company-amount-detail-summary {
        grid-template-columns: 1fr 1fr;
    }
}
/* ONE_RESERVE_COMPANY_ALL_AMOUNT_DETAILS_END */


/* ONE_RESERVE_COMPANY_AMOUNT_TABLE_FIT_START */
.company-amount-detail-table-wrap {
    overflow-x: hidden;
}

.company-amount-detail-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.company-amount-detail-table th,
.company-amount-detail-table td {
    padding: 10px 7px;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.company-amount-detail-table th:nth-child(1),
.company-amount-detail-table td:nth-child(1) {
    width: 14%;
}

.company-amount-detail-table th:nth-child(2),
.company-amount-detail-table td:nth-child(2) {
    width: 14%;
}

.company-amount-detail-table th:nth-child(3),
.company-amount-detail-table td:nth-child(3) {
    width: 18%;
}

.company-amount-detail-table th:nth-child(4),
.company-amount-detail-table td:nth-child(4) {
    width: 18%;
}

.company-amount-detail-table th:nth-child(5),
.company-amount-detail-table td:nth-child(5) {
    width: 14%;
}

.company-amount-detail-table th:nth-child(6),
.company-amount-detail-table td:nth-child(6) {
    width: 10%;
}

.company-amount-detail-table th:nth-child(7),
.company-amount-detail-table td:nth-child(7) {
    width: 12%;
}

.company-amount-detail-table td.is-amount {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .company-amount-detail-table th,
    .company-amount-detail-table td {
        padding: 8px 5px;
        font-size: 11px;
    }
}
/* ONE_RESERVE_COMPANY_AMOUNT_TABLE_FIT_END */


/* ONE_RESERVE_COMPANY_PAYMENT_FAILURES_START */
.company-payment-failures-page {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 1500px;
    padding: 26px 32px 50px;
}

.company-payment-failures-header p {
    margin: 0 0 4px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.company-payment-failures-header h1 {
    margin: 0;
    color: #172033;
    font-size: 28px;
    line-height: 1.35;
}

.company-payment-failures-header span {
    display: block;
    margin-top: 7px;
    color: #667085;
    font-size: 13px;
    font-weight: 650;
}

.company-payment-failures-summary {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.company-payment-failures-summary article {
    display: grid;
    gap: 7px;
    min-height: 98px;
    padding: 16px 18px;
    border: 1px solid #dfe5ef;
    border-radius: 13px;
    background: #ffffff;
}

.company-payment-failures-summary article.is-error {
    border-color: #fecaca;
    background: #fffafa;
}

.company-payment-failures-summary span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.company-payment-failures-summary strong {
    align-self: end;
    color: #172033;
    font-size: 24px;
    font-weight: 900;
}

.company-payment-failures-summary
article.is-error strong {
    color: #c62828;
}

.company-payment-failures-panel {
    overflow: hidden;
    border: 1px solid #dfe5ef;
    border-radius: 14px;
    background: #ffffff;
}

.company-payment-failures-panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid #e8ecf2;
}

.company-payment-failures-panel-header h2 {
    margin: 0;
    color: #172033;
    font-size: 20px;
}

.company-payment-failures-panel-header p {
    margin: 6px 0 0;
    color: #667085;
    font-size: 12px;
    font-weight: 650;
}

.company-payment-failures-search {
    display: grid;
    gap: 5px;
    width: min(310px, 100%);
}

.company-payment-failures-search span {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.company-payment-failures-search input {
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #cfd8e8;
    border-radius: 9px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    font-size: 13px;
}

.company-payment-failures-table-wrap {
    width: 100%;
    overflow: hidden;
}

.company-payment-failures-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

.company-payment-failures-table th,
.company-payment-failures-table td {
    padding: 11px 8px;
    border-right: 1px solid #edf0f5;
    border-bottom: 1px solid #e8ecf2;
    color: #344054;
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.company-payment-failures-table th:last-child,
.company-payment-failures-table td:last-child {
    border-right: 0;
}

.company-payment-failures-table thead th {
    background: #f7f9fc;
    color: #667085;
    font-weight: 850;
}

.company-payment-failures-table tbody tr {
    background: #fffafa;
}

.company-payment-failures-table tbody tr:hover {
    background: #fff4f4;
}

.company-payment-failures-table th:nth-child(1),
.company-payment-failures-table td:nth-child(1) {
    width: 11%;
}

.company-payment-failures-table th:nth-child(2),
.company-payment-failures-table td:nth-child(2) {
    width: 11%;
}

.company-payment-failures-table th:nth-child(3),
.company-payment-failures-table td:nth-child(3) {
    width: 13%;
}

.company-payment-failures-table th:nth-child(4),
.company-payment-failures-table td:nth-child(4) {
    width: 11%;
}

.company-payment-failures-table th:nth-child(5),
.company-payment-failures-table td:nth-child(5) {
    width: 9%;
}

.company-payment-failures-table th:nth-child(6),
.company-payment-failures-table td:nth-child(6) {
    width: 8%;
}

.company-payment-failures-table th:nth-child(7),
.company-payment-failures-table td:nth-child(7) {
    width: 14%;
}

.company-payment-failures-table th:nth-child(8),
.company-payment-failures-table td:nth-child(8) {
    width: 18%;
}

.company-payment-failures-table th:nth-child(9),
.company-payment-failures-table td:nth-child(9) {
    width: 5%;
}

.company-payment-failures-table td strong,
.company-payment-failures-table td span {
    display: block;
}

.company-payment-failures-table td span {
    margin-top: 3px;
    color: #667085;
    font-size: 10px;
}

.company-payment-failures-table td.is-amount {
    color: #b42318;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.company-payment-failures-table td.is-reason {
    color: #b42318;
    font-weight: 700;
}

.company-payment-failures-table td.is-count {
    font-weight: 850;
    text-align: center;
    white-space: nowrap;
}

.company-payment-failures-table
td[colspan] {
    padding: 44px 15px;
    background: #ffffff;
    color: #667085;
    font-weight: 750;
    text-align: center;
}

.company-payment-failures-no-result {
    margin: 0;
    padding: 34px 15px;
    color: #667085;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}

@media (max-width: 900px) {
    .company-payment-failures-page {
        padding: 22px 18px 40px;
    }

    .company-payment-failures-summary {
        grid-template-columns: 1fr 1fr;
    }

    .company-payment-failures-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .company-payment-failures-search {
        width: 100%;
    }

    .company-payment-failures-table th,
    .company-payment-failures-table td {
        padding: 8px 4px;
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    .company-payment-failures-page {
        padding: 18px 12px 34px;
    }

    .company-payment-failures-header h1 {
        font-size: 23px;
    }

    .company-payment-failures-summary article {
        min-height: 86px;
        padding: 13px;
    }

    .company-payment-failures-summary strong {
        font-size: 20px;
    }
}
/* ONE_RESERVE_COMPANY_PAYMENT_FAILURES_END */


/* ONE_RESERVE_CUSTOMER_PAYMENT_CARD_DESIGN_START */
.customer-settings-edit-card {
    padding: 22px 20px !important;
}

.customer-settings-edit-card
.customer-settings-section-head {
    margin-bottom: 18px !important;
}

.customer-settings-edit-card
.customer-settings-section-head h2 {
    margin: 0 0 6px !important;
}

.customer-settings-edit-card
.customer-settings-section-head p {
    margin: 0 !important;
    color: #697386 !important;
    line-height: 1.6 !important;
}

.customer-settings-card-link-wrap {
    display: grid !important;
    gap: 12px !important;
}

.customer-settings-card-current {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    padding: 15px 16px !important;

    border: 1px solid #e1e7ef !important;
    border-radius: 14px !important;
    background: #f7f9fc !important;
}

.customer-settings-card-current span {
    color: #697386 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.customer-settings-card-current strong {
    color: #172033 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.customer-settings-card-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 46px !important;
    padding: 10px 16px !important;

    border: 1px solid #b9d2ff !important;
    border-radius: 13px !important;
    background: #eef5ff !important;

    color: #1f5fd2 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}
/* ONE_RESERVE_CUSTOMER_PAYMENT_CARD_DESIGN_END */


/* ONE_RESERVE_COMPANY_EXACT_25_40_START */

main:has(.one-reserve-store-list-page),
main:has(.company-payment-failures-page),
.container:has(> .one-reserve-store-list-page),
.container:has(> .company-payment-failures-page),
.page-container:has(.one-reserve-store-list-page),
.page-container:has(.company-payment-failures-page),
.content-container:has(.one-reserve-store-list-page),
.content-container:has(.company-payment-failures-page),
.main-content:has(.one-reserve-store-list-page),
.main-content:has(.company-payment-failures-page) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.one-reserve-store-list-page,
.company-payment-failures-page {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 25px 40px 40px !important;
}

.one-reserve-store-list-page > .dashboard {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.one-reserve-store-list-page .page-heading {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

.one-reserve-store-list-page .page-heading h1 {
    margin: 0 !important;
}

.one-reserve-store-list-page
.page-heading
> .button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
}

.one-reserve-store-list-page .store-list,
.one-reserve-store-list-page .empty-card,
.company-payment-failures-page
> :not(style):not(script) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

@media (max-width: 700px) {
    .one-reserve-store-list-page,
    .company-payment-failures-page {
        padding: 20px 16px 28px !important;
    }

    .one-reserve-store-list-page
    .page-heading
    > .button {
        min-width: max-content !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }
}

/* ONE_RESERVE_COMPANY_EXACT_25_40_END */

/* ONE_RESERVE_COMPANY_TITLE_FINAL_START */
html body h1.one-reserve-company-page-title,
html body .company-setting-page
h1.one-reserve-company-page-title,
html body .one-reserve-store-list-page
h1.one-reserve-company-page-title {
    font-size: 28px !important;
    line-height: 1.35 !important;
}
/* ONE_RESERVE_COMPANY_TITLE_FINAL_END */


/* ONE_RESERVE_COMPANY_HEADER_HORIZONTAL_START */
.header:has(.one-reserve-company-header-nav) {
    gap: 28px;
}

.header:has(.one-reserve-company-header-nav)
> .logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.one-reserve-company-header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 28px;
    margin-left: auto;
}

.one-reserve-company-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f2937;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
}

.one-reserve-company-header-link:hover,
.one-reserve-company-header-link:focus-visible,
.one-reserve-company-header-link.is-active {
    color: #1557d8;
    text-decoration: none;
}

.one-reserve-company-header-logout {
    display: flex;
    align-items: center;
    margin: 0;
}

.one-reserve-company-header-logout-button {
    appearance: none;
    -webkit-appearance: none;
}

@media (max-width: 900px) {
    .header:has(.one-reserve-company-header-nav) {
        min-height: 70px;
        gap: 18px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header:has(.one-reserve-company-header-nav)
    > .logo {
        max-width: 34vw;
    }

    .one-reserve-company-header-nav {
        flex: 1 1 auto;
        gap: 20px;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .one-reserve-company-header-nav::-webkit-scrollbar {
        display: none;
    }

    .one-reserve-company-header-link {
        flex: 0 0 auto;
        font-size: 14px;
    }
}
/* ONE_RESERVE_COMPANY_HEADER_HORIZONTAL_END */


/* ONE_RESERVE_CUSTOMER_FIXED_UNAVAILABLE_FULL_START */
/*
固定予約では、予約時間が固定枠へ少しでも重なった場合、
その固定枠全体を予約不可として表示する。
*/
.customer-reserve-calendar.is-fixed
.customer-reserve-event-fill.is-unavailable {
    top: 0 !important;
    height: 100% !important;
    border-radius: 0 !important;
}

.customer-reserve-calendar.is-fixed
.customer-reserve-open-button:disabled {
    cursor: default !important;
}
/* ONE_RESERVE_CUSTOMER_FIXED_UNAVAILABLE_FULL_END */


/* ONE_RESERVE_CUSTOMER_FIXED_LIMIT_FULL_START */
/*
固定予約では、予約期限が固定枠へ少しでも重なった場合、
固定枠全体を予約不可として表示する。
*/
.customer-reserve-calendar.is-fixed
.customer-reserve-booking-limit-fill {
    top: 0 !important;
    height: 100% !important;
}

.customer-reserve-calendar.is-fixed
.customer-reserve-cell.is-fixed-booking-limit-blocked {
    background: #f1f3f5 !important;
}

.customer-reserve-calendar.is-fixed
.customer-reserve-cell.is-fixed-booking-limit-blocked
.customer-reserve-open-button {
    cursor: default !important;
}
/* ONE_RESERVE_CUSTOMER_FIXED_LIMIT_FULL_END */


/* ONE_RESERVE_CUSTOMER_FIXED_BEFORE_OPEN_START */
/*
固定予約では、固定枠の開始時刻が営業開始前の場合、
その枠全体を予約不可として表示する。
*/
.customer-reserve-calendar.is-fixed
.customer-reserve-cell.is-fixed-before-opening {
    background: #f1f3f5 !important;
}

.customer-reserve-calendar.is-fixed
.customer-reserve-cell.is-fixed-before-opening::after {
    position: absolute;
    inset: 0;
    z-index: 18;
    display: block;
    content: "";
    background: #f1f3f5;
    pointer-events: none;
}

.customer-reserve-calendar.is-fixed
.customer-reserve-cell.is-fixed-before-opening
.customer-reserve-open-button {
    cursor: default !important;
}
/* ONE_RESERVE_CUSTOMER_FIXED_BEFORE_OPEN_END */

/* ONE_RESERVE_STORE_FIXED_PAST_FULL_START */
/*
  店舗トップ・固定形式：
  開始時刻を過ぎた固定枠は、70分枠全体をグレー表示し、
  新規登録操作を無効化する。
*/
.top-fixed-calendar:not(.is-free-calendar)
.top-slot-cell.is-past-fixed {
    position: relative !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    cursor: default !important;
}

.top-fixed-calendar:not(.is-free-calendar)
.top-slot-cell.is-past-fixed
.top-past-time-fill {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: #f5f5f5 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
}

.top-fixed-calendar:not(.is-free-calendar)
.top-slot-cell.is-past-fixed
.or-create-event-button {
    display: none !important;
    pointer-events: none !important;
}
/* ONE_RESERVE_STORE_FIXED_PAST_FULL_END */
