/* =========================================================
   認証ページ
   ========================================================= */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 10px 28px rgba(2, 6, 23, .04);
}

/* =========================================================
   ベースのCSS
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: #0f172a;
    line-height: 1.5;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   ユーティリティクラス
   ========================================================= */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 6px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 18px;
}

.mt-4 {
    margin-top: 24px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 6px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 16px;
}

.p-1 {
    padding: 6px;
}

.p-2 {
    padding: 10px;
}

.p-3 {
    padding: 14px;
}

.p-4 {
    padding: 18px;
}

.w-64 {
    width: 16rem;
}

.text-center {
    text-align: center;
}

.text-muted,
.muted {
    color: #64748b;
}

.text-danger {
    color: #dc2626;
}

.text-muted.small,
.muted.small {
    font-size: 12px;
}

.space-y-3>*+* {
    /*margin-top: 14px;*/
}

.right {
    margin-left: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =========================================================
   レイアウト
   ========================================================= */

.row {
    display: flex;
}

.wrap {
    flex-wrap: wrap;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    background: #fff;
    color: #333;
}

.sidebar {
    width: 240px;
    flex: 0 0 240px;
    background: #f8e8ec;
    border-right: 1px solid #f0c8c8;
    padding: 16px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}

.brand {
    font-weight: 800;
    margin: 2px 2px 16px;
}

.brand-link {
    color: #9a2f4e;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #8a3050;
    border: 1px solid transparent;
    background: transparent;
}

.nav-link:hover {
    background: #fff6f9;
    border-color: #f3c5d3;
}

.nav-link.active {
    background: #ffe6ef;
    border-color: #e9b;
    color: #6a1f39;
}

.nav-link--button {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-sep {
    height: 1px;
    background: #efc9d4;
    margin: 10px 4px;
}

/* =========================================================
   アコーディオン
   ========================================================= */

.nav-accordion {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 10px 12px;
    margin: 8px 0 0;
    border: 0;
    background: rgba(255, 255, 255, .6);
    color: #8a2d3c;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    position: relative;
}

.nav-accordion::after {
    content: '›';
    font-size: 1.1rem;
    margin-left: auto;
    transform: rotate(0deg);
    transition: transform .15s ease;
    opacity: .8;
}

.nav-accordion[aria-expanded="true"] {
    background: #ffe6ef;
    color: #6a1f39;
    box-shadow: 0 0 0 1px #e9b inset;
}

.nav-accordion[aria-expanded="true"]::after {
    transform: rotate(90deg);
}

.nav-sublist {
    list-style: none;
    padding: 4px 0 8px;
    margin: 4px 0 0;
}

.nav-sublist[hidden] {
    display: none;
}

.nav-sublink {
    display: block;
    padding: 8px 12px 8px 28px;
    color: #8a2d3c;
    border-radius: 10px;
    position: relative;
}

.nav-sublink::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    transform: translateY(-50%);
    opacity: .6;
}

.nav-sublink.no-dot::before {
    display: none;
}

.nav-sublink:hover {
    background: rgba(255, 255, 255, .6);
}

.nav-sublink.active {
    background: #fff;
    color: #8a2d3c;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .04) inset;
}

.main {
    flex: 1;
    min-width: 0;
    padding: 22px;
}

.page-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.page-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.page-body {
    min-height: 200px;
}

/* =========================================================
   ボタン関連
   ========================================================= */
.btn {
    --btn-bg: #eef2ff;
    --btn-fg: #1e3a8a;
    --btn-bd: #c7d2fe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.3;
    border: 1px solid var(--btn-bd);
    background: var(--btn-bg);
    color: var(--btn-fg);
    cursor: pointer;
    transition: transform .02s ease, box-shadow .2s ease, background .2s ease;
    height: 40px;
    min-width: 120px;
}

.btn:hover {
    box-shadow: 0 6px 18px rgba(2, 6, 23, .06);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.btn.primary {
    --btn-bg: #0ea5e9;
    --btn-fg: #ffffff;
    --btn-bd: #0ea5e9;
}

.btn.primary:hover {
    --btn-bg: #0284c7;
    --btn-bd: #0284c7;
}

.btn.outline {
    --btn-bg: #ffffff;
    --btn-fg: #0ea5e9;
    --btn-bd: #0ea5e9;
}

.btn.outline:hover {
    --btn-bg: rgba(14, 165, 233, .08);
}

.btn.small {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 8px;
}

.btn.ghost {
    --btn-bg: transparent;
    --btn-fg: #0f172a;
    --btn-bd: transparent;
}

.btn.link-like {
    --btn-bg: transparent;
    --btn-fg: #0ea5e9;
    --btn-bd: transparent;
    padding-left: 0;
}

.btn-group {
    display: inline-flex;
    gap: 6px;
}

/* =========================================================
   フォーム
   ========================================================= */
.form-root {
    width: 100%;
}

.form {
    max-width: 880px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    overflow-wrap: anywhere;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-actions {
    justify-content: flex-end;
}

.field>span,
.field>label:not(.row) {
    font-weight: 600;
}

.field-row {
    display: flex;
    gap: 12px;
}

.input,
select.input,
textarea.input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7dee9;
    background: #fff;
    color: #0f172a;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea.input {
    min-height: 120px;
}

.input:focus,
.input:focus-visible {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.input[readonly],
.readonly-display {

    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7dee9;
    background: #fff;
    color: #0f172a;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;

    background: #f8fafc;
    color: #0f172a;
}

.input-group {
    position: relative;
}

.input-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
}

.input-clear--lg {
    width: 32px;
    height: 32px;
    right: 8px;
    font-size: 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.suggest-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    max-height: 260px;
    overflow: auto;
    box-shadow: 0 10px 28px rgba(2, 6, 23, .08);
}

.suggest-item {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 8px 12px;
    cursor: pointer;
}

.suggest-item:hover {
    background: #f1f5f9;
}

.checkbox,
.radio {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.form-actions,
.actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.form-errors {
    border: 1px solid #f2b3b3;
    background: #fff1f1;
    color: #a33;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

/* =========================================================
   テーブル関係
   ========================================================= */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #f0c8c8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.table thead tr {
    background: #fff6f9;
}

.table th,
.table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

.table tbody tr+tr td {
    border-top: 1px solid #f6dede;
}

.table tbody tr:hover {
    background: #fffafa;
}

.table .btn {
    min-width: auto;
    height: 32px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.nowrap {
    white-space: nowrap;
}

.pagination {
    margin-top: 12px;
}

.pagination nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination nav a,
.pagination nav span {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #f0c8c8;
    border-radius: 8px;
    text-decoration: none;
    color: #7a2a46;
}

.pagination nav .active span {
    background: #ffe6ef;
    border-color: #e9b;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 1px solid #e9b;
    background: #ffe6ef;
    color: #b35;
    border-radius: 999px;
    font-size: 12px;
}

.chip.gray {
    border-color: #ddd;
    background: #f5f5f5;
    color: #666;
}

.chip.green {
    border-color: #b9e2c2;
    background: #e7f7eb;
    color: #2d7a40;
}

.cell-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* =========================================================
   予約一覧ツールバー
   ========================================================= */
.toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.toolbar form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.toolbar input[type="date"],
.toolbar select {
    border: 1px solid #e0c8ca;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 13px;
    background: #fff;
    color: #333;
    height: 30px;
}

/* =========================================================
   予約一覧レイアウト
   ========================================================= */

.reserve-schedule-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.reserve-schedule-main {
    flex: 1 1 auto;
    overflow: auto;
}

.reserve-schedule-side {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reserve-schedule-main .schedule-table {
    min-width: 640px;
}

.reserve-schedule-main .time-head,
.reserve-schedule-main .time-col {
    position: sticky;
    left: 0;
    z-index: 3;
}

.reserve-schedule-main .time-head {
    z-index: 4;
}

.lane-error-alert {
    background: #ffe8e8;
    border: 1px solid #f5b5b5;
    color: #c0392b;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin: 8px 0 12px;
    line-height: 1.5;
    overflow: hidden;
    animation: lane-error-fade 5s ease-in-out forwards;
}

/* =========================================================
   予約ブロック＋ 白帯＋ボタン
   ========================================================= */

/* 予約セル本体 */
.slot-cell.has-event {
    position: relative;
    padding: 0;
    background-color: #ffe5ea;
}

.event-with-actions {
    display: flex;
    width: 100%;
    height: 100%;
}

/* 予約詳細ボタン */
.event-btn {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    padding: 4px 8px;
    text-align: left;
    width: 100%;
}

/* ＋が出る白い帯エリア */
.event-add-area {
    width: 26px;
    position: relative;
    background-image: repeating-linear-gradient(to bottom,
            #ffffff 0,
            #ffffff calc(100% / var(--row-span, 1) - 1px),
            #f3dde2 calc(100% / var(--row-span, 1) - 1px),
            #f3dde2 calc(100% / var(--row-span, 1)));
}

/* ＋ボタン */
.add-overlap-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}

.add-overlap-btn .add-icon {
    width: 14px;
    height: 14px;
}

.slot-cell.has-event:hover .add-overlap-btn {
    opacity: 0.6;
}

.add-overlap-btn:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* =========================================================
   縦罫線（スタッフごとの境目を太く）
   ========================================================= */

.schedule-table th.staff-group-border-right,
.schedule-table td.staff-group-border-right {
    border-right: 2px solid #f3b8c8;
}

/* =========================================================
   横罫線：00分の行を太く
   ========================================================= */

.time-row-major {
    --major-line-color: #e3b5c1;
}

.schedule-table tr.time-row-major>td {
    border-top: 2px solid var(--major-line-color);
}

/* =========================================================
   休憩時間の行
   ========================================================= */

.schedule-table .break-row td {
    background: #f5f5f5;
    color: #666;
    text-align: center;
    font-weight: 500;
    border-top: 2px solid #d1d5db;
    border-bottom: 2px solid #d1d5db;
}

/* =========================================================
   見出し（スタッフ名＋レーン＋ボタン）
   ========================================================= */

.schedule-table .staff-head {
    position: relative;
    padding: 0;
}

.staff-head-inner {
    position: relative;
}

.staff-head-name {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    white-space: nowrap;
}

.staff-head-actions {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}

.staff-lane-btn {
    min-width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 9999px;
    font-size: 12px;
    line-height: 1;
    background-color: #ffeef2;
    border: 1px solid #ffd6df;
    color: #d47a92;
}

.staff-lane-btn:hover {
    background-color: #ffdfe7;
    border-color: #f3b8c8;
}

/* =========================================================
   共通アニメーション
   ========================================================= */

@keyframes lane-error-fade {
    0% {
        opacity: 1;
        max-height: 80px;
    }

    80% {
        opacity: 1;
        max-height: 80px;
    }

    100% {
        opacity: 0;
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}



/* =========================================================
   営業時間
   ========================================================= */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border: 1px solid #f0c8c8;
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed;
}

.schedule-table thead th {
    background: #fff3f5;
    border-bottom: 2px solid #f4b9c2;
    color: #aa4444;
    padding: 8px 6px;
    text-align: center;
    font-weight: 700;
}

.time-head,
.time-col {
    width: 80px;
    white-space: nowrap;
}

.schedule-table tbody td:first-child {
    background: #fffafc;
    border-right: 1px solid #f3d6d6;
    text-align: center;
    color: #774;
    font-size: 13px;
}

.schedule-table td {
    border: 1px solid #f5d7dc;
    height: 36px;
    vertical-align: middle;
    text-align: center;
}

.schedule-table td:hover {
    background: #fef6f7;
}

.slot-cell {
    position: relative;
    height: 36px;
}

.slot-actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.slot-cell:hover .slot-actions {
    opacity: 1;
    pointer-events: auto;
}

.slot-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    border: 1px solid #f7a1b8;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.add-slot-btn {
    color: #f27694;
}

.block-slot-btn {
    color: #999;
}

.slot-cell.has-event {
    background: #ffe9ef;
    border: 1px solid #f2bfc7;
    box-shadow: inset 0 0 0 1px #f6d3db;
}

.event-btn {
    display: block;
    width: 100%;
    height: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 10px 12px;
    cursor: pointer;
}

.event-title {
    font-weight: 700;
    color: #a22;
}

.break-row td {
    background: #f9f9f9 !important;
    color: #666;
    text-align: center;
    font-size: 13px;
    padding: 6px 0;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
}

/* =========================================================
   カード表示
   ========================================================= */
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
}

.box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

/* =========================================================
   フラッシュメッセージ
   ========================================================= */
.toast,
.flash {
    background: #f8fafc;
    border: 1px solid #d0e2ff;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.flash[hidden] {
    display: none;
}

/* =========================================================
   モーダル
   ========================================================= */
.app-modal[hidden] {
    display: none !important;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.app-modal__dialog {
    position: relative;
    width: auto;
    max-width: calc(100% - 32px);
    max-height: calc(100% - 32px);
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    display: inline-block;
}

.app-modal__header,
.app-modal__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px 0;
}

.app-modal__title,
.modal-title {
    font-size: 16px;
    font-weight: 700;
}

.app-modal__content {
    padding: 40px 20px 20px;
}

.app-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-section+.modal-section {
    margin-top: 12px;
}

/* メニュー選択ブロック（予約モーダル用） */
.menu-section {
    border: 1px solid #e7eaf0;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-section+.menu-section {
    margin-top: 12px;
}

.menu-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #94a3b8;
}

/* オプションメニュー用 */
.menu-section--option .menu-title::before {
    background: #60a5fa;
}

.menu-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #94a3b8;
}

.menu-section .row,
.menu-section .flex,
.menu-section .flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-modal.is-confirm .app-modal__backdrop {
    z-index: 0;
}

.app-modal.is-confirm .app-modal__panel {
    position: relative;
    z-index: 1;
}

/* =========================================================
   問診票内の設問追加ボタン
   ========================================================= */

.questionnaire-preview__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.questionnaire-preview__toolbar .btn {
    min-width: auto;
    padding: 6px 12px;
    font-size: 13px;
}

/* =========================================================
   詳細ページのレイアウト
   ========================================================= */
.detail-wrap {
    display: block;
}

.detail-dl,
.detail-list {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 6px 12px;
    margin-top: 12px;
}

.detail-dl dt,
.detail-list dt {
    font-weight: 600;
}

.detail-dl dd,
.detail-list dd {
    margin: 0;
}

.qdetail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qdetail-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.comma-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

/* =========================================================
   問診票のプレビュー
   ========================================================= */
.questionnaire-right {
    flex: 0 0 50%;
    min-width: 50%;
    display: flex;
    flex-direction: column;
}

.questionnaire-modal {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
}

.questionnaire-form {
    flex: 0 0 840px;
    min-width: 720px;
    max-width: 900px;
}

.questionnaire-preview {
    width: 100%;
    background: #f7f9fc;
    border: 1px solid #dce5f0;
    border-radius: 16px;
    padding: 12px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    font-size: 16px;
}

.questionnaire-preview__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: #334155;
}

.questionnaire-preview__body {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    overflow-y: auto;
    flex: 1 1 auto;
    height: auto;
    max-height: 60vh;
}

.qp-field-top label {
    font-size: 16px;
    font-weight: 800;
}

.qp-section {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.qp-field {
    margin-bottom: 12px;
}

.qp-field-top {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
}

.qp-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: #e2e8f0;
}

.qp-badge--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.qp-badge--mode {
    background: #eff6ff;
    color: #1d4ed8;
}

.qp-input,
.qp-textarea {
    background: #f1f5f9;
    border-radius: 6px;
    height: 34px;
}

.qp-textarea {
    height: 62px;
}

.qp-options {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    gap: 4px;
}

.qp-option {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
}

.qp-option-check {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid #ff7e9f;
}

/* =========================================================
   問診票 詳細モーダル専用
   ========================================================= */

.questionnaire-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 960px;
}

.questionnaire-detail-preview {
    width: 100%;
}

.questionnaire-preview--detail {
    width: 100%;
    background: #f7f9fc;
    border: 1px solid #dce5f0;
    border-radius: 16px;
    padding: 12px;
}

.questionnaire-preview--detail .questionnaire-preview__body {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.questionnaire-detail .actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.app-modal__content>.questionnaire-detail {
    width: 900px;
    max-width: calc(100vw - 64px);
}

.questionnaire-detail-preview {
    width: 100%;
}

/* =========================================================
   営業時間カレンダー
   ========================================================= */
.cal-wrap {
    width: 100%;
}

.cal-wrap--fluid {
    max-width: none;
}

.cal-head,
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.cal-cell {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    background: #fff;
    border: 1px solid #f0c8c8;
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 96px;
    cursor: pointer;
    transition: background .12s ease, box-shadow .2s ease;
}

.cal-cell:hover {
    background: #fffafa;
    box-shadow: 0 6px 18px rgba(2, 6, 23, .06);
}

.cal-cell--blank {
    background: #fafafa;
    border: 1px dashed #eee;
    cursor: default;
}

.cal-day {
    font-weight: 700;
    color: #6a1f39;
}

.cal-slots {
    font-size: 13px;
    line-height: 1.5;
    align-self: flex-end;
}

.cal-slots--right {
    align-self: flex-end;
}

/* =========================================================
   区切り線
   ========================================================= */
.divider {
    border-top: 1px solid #e5e7eb;
    margin: 10px 0;
}

/* headings */
.h5 {
    font-size: 1rem;
    font-weight: 600;
}

.h6 {
    font-size: .9rem;
    font-weight: 600;
}




/*-----------------------------
root
------------------------------*/
:root {
    --brown: #735856;
    --pink: #f77c90;
    --palepink: #fad9df;
    --beige: #f7edef;
}

.brand-link {
    color: #fff;
}

.small {
    font-size: 80%;
    color: #999999;
    font-weight: normal;
}


/*-----------------------------
.sidebar
------------------------------*/
.sidebar {
    background: var(--brown);
    color: #fff;
    border: none;
}

.sidebar nav.nav a {
    font-weight: normal;
    color: #fff;
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
}

.sidebar .nav-link {
    margin-right: -14px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    /*transition: 0.2s;*/
}


.sidebar .nav-link:hover,
.sidebar .nav-link.active:hover {
    color: var(--pink);
    background: none;
}

.sidebar .nav-link.active,
.sidebar .nav-link.active:hover {
    background: #fff;
    color: var(--pink);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    cursor: default;
}



.sidebar nav.nav a.active:before {
    background: var(--brown);
    border-radius: 0 0 10px 0;
    content: "";
    display: block;
    position: absolute;
    top: -5px;
    right: -10px;
    width: 20px;
    height: 10px;
    box-shadow: 10px 0px 0 0 #ffffff;
    transform: translate(-50%, -50%);
}



.sidebar nav.nav a.active:after {
    background: var(--brown);
    border-radius: 0 10px 0 0;
    content: "";
    display: block;
    position: absolute;
    bottom: -15px;
    right: -10px;
    width: 20px;
    height: 10px;
    box-shadow: 10px 0px 0 0 #ffffff;
    transform: translate(-50%, -50%);
}





/*-----------------------------
nav-group
----------------------------*/
.nav-group .nav-accordion {
    background: none;
    color: #fff;
    border: #a99290 solid 1px;
}


.nav-group .nav-accordion[aria-expanded="true"] {
    background: #a99290;
    box-shadow: none;
    color: #fff;
}


.nav-group #nav-store-setting {
    background: #ffffff1c;
    border-radius: 0 0 12px 12px;
    width: calc(100% - 20px);
    margin: 0 auto;
}


.nav-group #nav-store-setting a {
    background: none;
    box-shadow: none;
    color: #fff;
}

.nav-group #nav-store-setting a:before,
.nav-group #nav-store-setting a:after {
    display: none;
}

.nav-group #nav-store-setting a:hover {
    color: var(--pink);
}



/*---------------------
ログアウト
-----------------------*/
button.nav-link--button {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    background: #594543;
    padding: 20px;
    border-radius: 0 !important;
}

button.nav-link--button:hover {
    color: var(--pink);
    background: #594543 !important;
}


/*-----------------------
.card
------------------------*/
.card {
    border: none;
    box-shadow: #ccc 0 0 10px;
}


/*-----------------------
input
-----------------------*/

.input,
select.input,
textarea.input {
    border: var(--palepink) solid 1px;
    background: #fff !important;
    border-radius: 99999px;
    padding: 10px 20px;
    /*margin-bottom: 0.5em;*/
}

textarea.input {
    border-radius: 10px;
}

select.input {
    cursor: pointer;
}

.readonly-display {
    border: none !important;
    background: #fff5f7 !important;
}




input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--pink);
    border-radius: 50%;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    margin: 0;
}

input[type="radio"]:checked {
    border-color: var(--pink);
}

input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--pink);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.field>span,
.field>label:not(.row) {
    margin-top: 1em;
}




/*---------------------
flex
----------------------*/

.flex-1 {
    flex: 1;
}

/*----------------------
radio
----------------------*/
label.radio {

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
}

/*----------------------
checkbox
----------------------*/
label.checkbox-item,
label.checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

label.checkbox span {
    margin: 0;
}

input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
}

input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid #ccc;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 1;
}

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

input[type="checkbox"]:checked::after {
    border-color: white;
}




.checkbox,
.radio {
    display: block;
    margin: 6px 0;
}

/*----------------------
.table
--------------------------*/

.table {
    border: none;
    border-radius: 0;
}

.table th,
.table td {
    padding: 20px;
}

.table thead tr {
    background: var(--beige);
}

.table thead tr th {
    position: relative;
}

.table thead tr th:after {
    content: "";
    display: block;
    height: calc(100% - 0.8em - 0.8em);
    width: 1px;
    background: var(--palepink);
    position: absolute;
    left: 0;
    top: 0.8em;
}

.table thead tr th:first-child:after {
    display: none;
}


/*-----------------------
hr
--------------------------*/

hr.basic-hr {
    height: 1px;
    border: none;
    background: var(--palepink);
    margin: 10px auto;
}

/*-----------------------
dl
--------------------------*/

.detail-dl,
.detail-list {
    /*gap:20px;*/
    gap: 0;
}

.detail-dl dt,
.detail-dl dd {
    border-bottom: var(--palepink) solid 1px;
    margin-top: 30px;
    font-weight: normal;

}

/*-----------------------
btn-text
-----------------------*/
.btn-text {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--pink);
    padding: 0;
    font-size: 14px;
}

.btn-text:hover {
    opacity: 1;
}

.btn.link-like {
    padding: 8px 16px;
}




/*-----------------------
small
-----------------------*/
.btn.small {
    padding: 8px;
    border: solid var(--pink) 1px;
    height: auto;
    margin: 4px 0;
}

.btn.small.btn-check {
    text-align: left;
    min-width: auto;
}

.btn.small.btn-check:before {
    content: "✓";
    opacity: 0.3;
}

.btn.small.btn-check:hover {
    opacity: 1;
    box-shadow: none;
}

.btn.small.btn-check.primary:before {
    opacity: 1;
}

/*-----------------------
.btn
-----------------------*/
.btn {
    background: #fff;
    border: solid var(--pink) 2px;
    border-radius: 9999px;
    transition: 0.2s;
    color: var(--pink);
}

.btn:hover {
    opacity: 0.5;
}

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

.btn.danger {
    background: #e5455f;
    color: #fff;
}

.js-back-btn {
    display: none;
}

.js-back-btn.is-visible {
    display: inline-flex;
}



/*-----------------------
window
-----------------------*/
.app-modal__content {
    padding: 40px;
    min-width: 600px;
}

.app-modal__content h2 {
    margin: 0;
}

.app-modal__backdrop {
    background: rgba(115, 88, 86, .80)
}

.app-modal__dialog {
    min-width: 340px;
    overflow-y: hidden;
    max-height: 82%;
    overflow-y: auto;
}

.app-modal__head {
    border-bottom: var(--palepink) solid 1px;
    width: calc(100% + 80px);
    margin-left: -40px;
    margin-bottom: 1em;
    padding: 0 40px 10px;
}

.app-modal__head,
.app-modal__head div {
    flex-flow: wrap;
    align-items: center;
}

.app-modal__head .field-title {
    font-size: 120%;
    font-weight: bold;
}

.menu-section {
    border: var(--palepink) solid 1px;
    padding: 20px;
}



.app-modal__close {
    background: var(--pink);
    border-radius: 50%;
    color: #fff;
    aspect-ratio: 1 / 1;
    width: 32px;
    height: 32px;
}

.justify-end,
.actions {
    border-top: var(--palepink) solid 1px;
    width: calc(100% + 80px);
    margin-left: -40px;
    padding: 20px 40px;
    margin-bottom: -40px;
    margin-top: 40px;
}

.actions {
    justify-content: center;
}

.cell-actions {
    display: block;
}


.scroll-box {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 70vh;
}

.scroll-box .card {
    margin: 20px 10px;
}


/*------------------------
calendar
------------------------*/
.schedule-table {
    border-radius: 1px;
    border-right: 1px solid #f3b8c8;
}

.schedule-table th.staff-group-border-right,
.schedule-table td.staff-group-border-right {
    border-right: 1px solid #f5d7dc;
}

.schedule-table thead th {
    background: var(--beige);
    padding: 20px 0;
    border-bottom: none;
}

.schedule-table thead th.time-head {
    border-right: 1px solid #f3b8c8;
}

.schedule-table tbody td {
    padding: 16px;
    border: 1px dotted #f5d7dc;
}

.schedule-table tr.time-row-major>td {
    border-top: 1px solid var(--major-line-color);
}

.staff-head-inner {
    padding: 5px;
}

.staff-head-inner span {
    position: static;
}

.staff-head-actions {
    position: static;
    transform: none;
    display: block;
}


/*------------------------
questionnaire
-------------------------*/

.questionnaire-preview--detail,
.questionnaire-preview {
    border: var(--palepink) solid 1px;
    background: #fff9fb;
}


.questionnaire-modal .questionnaire-form {
    min-width: auto;
    flex: auto;
}


/* =========================================================
   保存中
   ========================================================= */

/* モーダル送信中のオーバーレイ */
#ajaxModal.is-loading .app-modal__dialog {
    position: relative;
}

#ajaxModal.is-loading .app-modal__dialog::after {
    content: "保存中…";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #0f172a;
    z-index: 50;
    backdrop-filter: blur(2px);
}

/* メディア */
.js-media-uploader .media-upload-inner {
    position: relative;
}

.js-media-uploader .media-upload-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    z-index: 5;
}

.js-media-uploader.is-uploading .media-upload-overlay {
    display: flex;
}

.js-media-uploader.is-uploading .media-upload-inner {
    pointer-events: none;
    opacity: 0.85;
}

.js-media-uploader .media-upload-overlay__box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    font-size: 14px;
}

.js-media-uploader .media-upload-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    animation: mediaSpin 0.8s linear infinite;
}

@keyframes mediaSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   汎用確認モーダル（ConfirmModal）
   ========================================================= */
.confirm-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
}

.confirm-modal[hidden] {
    display: none;
}

.confirm-modal__box {
    background: #fff;
    border-radius: 12px;
    /*padding: 24px 28px;*/
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.confirm-modal__box .app-modal__head h3 {
    margin-top: 0;

}

.confirm-modal__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.confirm-modal__message {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}

/* =========================================================
   ヘッダーベル、通知画面
   ========================================================= */

.head-spacer {
    flex: 1 1 auto;
}

.notification-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 16px rgba(0, 0, 0, .12);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
}

.notification-drawer.is-open {
    transform: translateX(0);
}

.notification-drawer__header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    overflow-y: auto;
}

.notification-item a {
    display: block;
    padding: 10px 16px;
    border-bottom: 1px solid #f4f4f4;
    text-decoration: none;
    color: inherit;
}

.notification-item a.is-unread {
    background: #fff6ef;
    font-weight: 600;
}

.notification-item .time {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.notification-drawer__footer {
    padding: 12px 16px 16px;
    border-top: 1px solid #eee;
}

#notification-button {
    position: relative;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

/* 赤ポチ */

#notification-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 9999px;
    display: block;
}

#notification-badge[hidden] {
    display: none;
}

/* =========================================================
   メディア画面
   ========================================================= */

.media-upload-inner {
    border: 2px dashed #f3b6c8;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: background-color .2s, border-color .2s;
}

.media-upload-inner.is-dragover {
    background: #fff7fb;
    border-color: #ff7da5;
}

.media-upload-inner.is-uploading {
    opacity: .6;
    pointer-events: none;
}

.media-upload-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.media-upload-text {
    font-weight: 600;
    margin-bottom: 4px;
}

.media-upload-subtext {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

/* =========================================================
   メディア一覧サムネイル
   ========================================================= */
.media-thumb-sm {
    width: 200px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff5f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.media-thumb-sm img,
.media-thumb-sm__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-thumb-sm__icon {
    font-size: 28px;
    line-height: 1;
}

/* =========================================================
   メディアプレビュー
   ========================================================= */
.media-preview-dialog {
    display: flex;
    flex-direction: column;
}

.media-preview-head {
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px 0;
}

.media-preview-content {
    padding: 10px 20px 20px;
}

.media-preview-dialog .app-modal__close {
    position: static;
    margin-left: auto;
}

/* =========================================================
   テンプレートプレビュー（スマホ風）
   ========================================================= */

.preview-phone {
    width: 320px;
    max-width: 100%;
    height: 640px;
    border-radius: 40px;
    padding: 16px 10px 20px;
    background: #f9fafb;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .15);
    position: relative;
    margin: 0 auto;
}


.preview-phone {
    box-shadow: 0 0px 10px rgba(15, 23, 42, .15);
    margin-top: 20px;
}

.preview-phone__screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: #b2e5ff;
    padding: 20px 12px 30px;
    display: flex;
    flex-direction: column;
}

.preview-phone__scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
}

.preview-phone__scroll::-webkit-scrollbar {
    width: 2px;
}

.preview-phone__scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .7);
    border-radius: 999px;
}

.preview-phone__home {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 999px;
    background: #111827;
    opacity: .9;
}

.preview-message {
    display: flex;
    justify-content: flex-start;
}

.preview-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 8px 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(15, 23, 42, .12);
    font-size: 13px;
    line-height: 1.5;
}

.preview-bubble--media {
    padding: 4px;
}

.preview-media-image,
.preview-media-video {
    display: block;
    width: 100%;
    max-height: 260px;
    border-radius: 12px;
    object-fit: cover;
}

.preview-phone__scroll .preview-message+.preview-message {
    margin-top: 12px;
}

.app-modal__content>.questionnaire-modal.template-editor {
    width: 900px;
    max-width: calc(100vw - 64px);
}

.questionnaire-modal.template-editor .questionnaire-right {
    flex: 0 0 420px;
    min-width: 420px;
}

/* カルーセルプレビュー */
.preview-bubble--carousel {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.carousel-preview {
    overflow-x: auto;
    padding: 4px 0;
}

.carousel-preview__track {
    display: flex;
    gap: 8px;
}

.carousel-preview__card {
    flex: 0 0 55%;
    max-width: 55%;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
    display: flex;
    flex-direction: column;
}

.carousel-preview__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.carousel-preview__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-preview__body {
    padding: 6px 8px 10px;
}

.carousel-preview__title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.carousel-preview__text {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.carousel-preview__actions {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.carousel-preview__action {
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, .7);
    background: #fff;
}

/* =========================================================
   リッチメニューデフォルトバッジ
   ========================================================= */

.richmenu-default-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #f05a6e;
    border-radius: 9999px;
    line-height: 1.4;
    vertical-align: middle;
}

/* =========================================================
   リッチメニュープレビュー（スマホ風）
   ========================================================= */

.richmenu-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.richmenu-preview__chat-area {
    flex: 1 1 auto;
}

.richmenu-preview__menu-area {
    flex: 0 0 auto;
    margin-top: auto;
    overflow: hidden;
}

.richmenu-preview__image {
    display: block;
    width: 100%;
    height: auto;
}

.richmenu-preview__menu-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.richmenu-preview__buttons {
    position: absolute;
    inset: 0;
}

.richmenu-preview__button {
    position: absolute;
    background: rgba(0, 200, 0, 0.2);
    border: 1px dashed rgba(0, 200, 0, 0.6);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-phone__scroll.richmenu-preview {
    flex: 1 1 auto;
    padding: 0;
}

.richmenu-editor .richmenu-preview__chat-area {
    flex: 1 1 auto;
    padding: 8px 10px 12px;
    box-sizing: border-box;
}

.richmenu-editor .preview-phone__scroll-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =========================================================
   レイアウト別のボタン配置
   ========================================================= */

/*6分割*/
.richmenu-preview__buttons--6split .richmenu-preview__button--button1 {
    top: 0;
    left: 0;
    width: 33.33%;
    height: 50%;
}

.richmenu-preview__buttons--6split .richmenu-preview__button--button2 {
    top: 0;
    left: 33.33%;
    width: 33.33%;
    height: 50%;
}

.richmenu-preview__buttons--6split .richmenu-preview__button--button3 {
    top: 0;
    left: 66.66%;
    width: 33.33%;
    height: 50%;
}

.richmenu-preview__buttons--6split .richmenu-preview__button--button4 {
    top: 50%;
    left: 0;
    width: 33.33%;
    height: 50%;
}

.richmenu-preview__buttons--6split .richmenu-preview__button--button5 {
    top: 50%;
    left: 33.33%;
    width: 33.33%;
    height: 50%;
}

.richmenu-preview__buttons--6split .richmenu-preview__button--button6 {
    top: 50%;
    left: 66.66%;
    width: 33.33%;
    height: 50%;
}

/*4分割*/
.richmenu-preview__buttons--4splitA .richmenu-preview__button--button1 {
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
}

.richmenu-preview__buttons--4splitA .richmenu-preview__button--button2 {
    top: 50%;
    left: 0;
    width: 33.33%;
    height: 50%;
}

.richmenu-preview__buttons--4splitA .richmenu-preview__button--button3 {
    top: 50%;
    left: 33.33%;
    width: 33.33%;
    height: 50%;
}

.richmenu-preview__buttons--4splitA .richmenu-preview__button--button4 {
    top: 50%;
    left: 66.66%;
    width: 33.33%;
    height: 50%;
}

/*2*2*/
.richmenu-preview__buttons--4splitB .richmenu-preview__button--button1 {
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
}

.richmenu-preview__buttons--4splitB .richmenu-preview__button--button2 {
    top: 0;
    left: 50%;
    width: 50%;
    height: 50%;
}

.richmenu-preview__buttons--4splitB .richmenu-preview__button--button3 {
    top: 50%;
    left: 0;
    width: 50%;
    height: 50%;
}

.richmenu-preview__buttons--4splitB .richmenu-preview__button--button4 {
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
}

.richmenu-preview__chatbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 12px;
}

.richmenu-preview__chatbar-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: #f8f8f8;
}

.richmenu-preview__chatbar-text {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

/* ============================
   リッチメニュー用のサイズ調整
   ============================ */

.richmenu-editor .preview-phone__screen {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

.richmenu-editor .preview-phone__scroll.richmenu-preview {
    padding: 0;
}

.richmenu-editor .richmenu-preview__menu-area {
    margin-top: auto;
    width: 100%;
}

.richmenu-editor .richmenu-preview__menu-inner {
    width: 100%;
}

.richmenu-editor .richmenu-preview__image {
    display: block;
    width: 100%;
    height: auto;
}

.richmenu-editor .richmenu-preview__chatbar {
    margin: 0;
    padding-left: 8px;
    padding-right: 8px;
}