.mypage{
    background: var(--bg);
    min-height: calc(100vh - 64px);
}

/* タブ（上固定） */
.mp-tabs{
    display:flex;
    gap: 12px;
    padding: 14px 14px 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.mp-tab{
    flex: 1 1 0;
    text-align:center;
    padding: 12px 8px;
    text-decoration:none;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
    position: relative;
}

.mp-tab.is-active{
    color: var(--text);
}

.mp-tab.is-active::after{
    content:"";
    position:absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 4px;
    background: var(--main-color);
    border-radius: 999px;
}

/* コンテナ＝auth-card風 */
.mp-container{
    width: 100%;
    max-width: 560px;
    margin: 18px auto 40px;
    padding: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    overflow: hidden;
}

/* 見出し＝auth-header風 */
.mp-title{
    margin: 0;
    padding: 14px 18px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .2px;
    text-align: left;
    color: var(--text);
}

/* セクション */
.mp-section{
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.mp-row--withAction{
    display:flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mp-row__left{
    min-width: 0;
    flex: 1 1 auto;
}

.mp-row__label{
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.mp-row__value{
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.mp-row__action{
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 6px 0;
    cursor: pointer;
    font-weight: 700;
    color: var(--main-color);
    font-size: 14px;
}
.mp-row__action:hover{
    text-decoration: underline;
}
.mp-row__hint{
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}


/* メッセージ */
#account-msg.msg{
    display: block;
    margin: 12px 18px 36px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(217, 48, 37, .35);
    background: rgba(217, 48, 37, .08);
    color: #7a1d16;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;

    opacity: 0;                  /* 初期は見えない */
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    transition: .15s ease;
}

#account-msg.msg.is-show{
    opacity: 1;
    max-height: 200px;
    padding: 10px 12px;
    margin: 12px 18px 36px;
}

/* ログアウト */
.mp-footer{
    padding: 16px 18px 18px;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.mp-logout{
    width: 100%;
    height: 56px;
    border-radius: 999px;
    border: 2px solid var(--main-color);
    background: var(--main-color);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}
.mp-logout:active{
    transform: translateY(1px);
}

/* ===== モーダル ===== */
.mp-modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 60;
}
.mp-modal.is-open{ display:flex; }

.mp-modal__sheet{
    width: 100%;
    max-width: 560px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
    overflow: hidden;
}

.mp-modal__head{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.mp-modal__title{
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
}

.mp-modal__close{
    border:0;
    background:transparent;
    font-size: 22px;
    cursor:pointer;
    color: var(--muted);
    line-height: 1;
}

.mp-modal__body{
    padding: 14px 18px 8px;
}

.mp-input-label{
    display:block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.mp-input{
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background: #fff;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.mp-input:focus{
    border-color: rgba(216, 91, 115, .55);
    box-shadow: 0 0 0 4px rgba(216, 91, 115, .12);
}

.mp-modal__hint{
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.mp-modal__foot{
    display:flex;
    gap: 10px;
    padding: 12px 18px 18px;
}

/* モーダル表示中は背景スクロール禁止 */
body.is-modal-open {
    overflow: hidden;
    touch-action: none; /* iOS対策 */
}

.mp-btn{
    flex: 1;
    height: 48px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    user-select: none;
}

.mp-btn--ghost{
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}
.mp-btn--ghost:hover{
    background: #f8f9fa;
}

.mp-btn--primary{
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(var(--main-color-rgb), .35);
}
.mp-btn--primary:active{
    transform: translateY(1px);
}

/* ===== 予約履歴カード ===== */
.history-list{
    display: grid;
    gap: 12px;
}

.history-item{
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: 12px 12px;
}

.history-top{
    display:flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 6px;
}

.history-date{
    font-weight: 800;
    color: var(--text);
    font-size: 14px;
}

.history-store{
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.history-menu{
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.history-meta{
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.history-empty{
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

/**********************
  ペット情報
***********************/
.pets-list{
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.pet-card{
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    padding: 12px 12px;
}

.pet-card__top {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.pet-card__head {
    display: flex;
    align-items: center;
}

.pet-card__label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.pet-card__badge {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(var(--main-color-rgb), .10);
    color: var(--main-color);
    border: 1px solid rgba(var(--main-color-rgb), .22);
}

.pet-card__name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pet-card__grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pet-field{
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 10px;
    background: #fff;
}

.pet-field__label{
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 4px;
}

.pet-field__value{
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.pet-notes{
    margin-top: 10px;
    border-top: 1px dashed var(--border);
    padding-top: 10px;
}

.pet-notes__label{
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 4px;
}

.pet-notes__value{
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: pre-wrap;
}

.pet-card__right {
    display:flex;
    align-items:center;
    gap: 8px;
}

.pet-card__edit {
    border: 0;
    background: transparent;
    color: var(--main-color);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.pet-card__edit:hover {
    text-decoration: underline;
}

.pet-card__actions{
    display:flex;
    gap: 6px;
    margin-left:auto;
}

.pet-card__actions span{
    color: var(--muted);
}

.pet-card__delete{
    border: 0;
    background: transparent;
    color: #d93025;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.pet-card__delete:hover{
    text-decoration: underline;
}

/* -------------------------
  モーダルのエラー
------------------------- */
.mp-modal-error {
    display: none;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #e56;
    background: #fff5f7;
    color: #b00020;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-line;
}
.mp-modal-error.is-show{ display:block; }

/* iOS Chrome/Safari の date 表示崩れ最終対策（左寄せ + はみ出し抑止） */
.mp-input[type="date"]{
    text-align: left !important;
    text-align-last: left !important;     /* 一部環境で効く */
    direction: ltr;                       /* 右→左化などの影響を排除 */
    font-variant-numeric: tabular-nums;   /* 数字の幅でガタつくの抑える（任意） */
}

/* date の表示テキスト本体 */
.mp-input[type="date"]::-webkit-date-and-time-value{
    text-align: left !important;
    width: 100%;
}

/* 編集領域が変に広がってはみ出すのを抑える */
.mp-input[type="date"]::-webkit-datetime-edit{
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
}

/* iOS で勝手に中央に寄せられた見え方を消す */
.mp-input[type="date"]::-webkit-datetime-edit-fields-wrapper{
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

/* カレンダーアイコンは右寄せのまま */
.mp-input[type="date"]::-webkit-calendar-picker-indicator{
    margin-left: auto;
}
/* =========================
   共通: レイアウト/カード/ボタン
   ========================= */
.container--narrow {
    max-width: 720px;
    margin: 32px auto;
    padding: 0 16px;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px; /* 入力画面でも使うので残す */
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .05s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: #4e8dff;
    color: #fff;
    box-shadow: 0 4px 14px rgba(78,141,255,0.35);
}
.btn-primary:hover { background: #3e7af0; }

.btn-secondary {
    background: #fff;
    color: #333;
    border-color: #d0d7e2;
}
.btn-secondary:hover { background: #f6f8fb; }

.back-link {
    margin-top: 16px;
    text-align: center;
}

/* =========================
   お客様入力画面（/customers/new）
   ========================= */
.customer-form-wrap { /* 既存html互換のため残す */
    /* 共通の .container--narrow を併用可能 */
}

.customer-form {
    display: grid;
    gap: 16px;
}

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

.form-row label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-row .req {
    color: #d33;
    font-size: 0.85em;
    margin-left: 6px;
}

/* まずは全体に */
*, *::before, *::after {
    box-sizing: border-box;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fafafa;
    font-size: 1rem;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
    box-sizing: border-box; /* ←コレが重要 */
}

.input:focus {
    background: #fff;
    border-color: #6aa7ff;
    box-shadow: 0 0 0 3px rgba(78,141,255,0.15);
}

.hint {
    color: #666;
    font-size: 0.85rem;
}

/* 表示専用の行（予約時間・メニューの固定表示など） */
.form-row.readonly .value {
    background: #f6f7fb;
    border: 1px dashed #cfd6e6;
    border-radius: 10px;
    padding: 10px 12px;
    color: #333;
}

/* =========================
   確認画面（/customers/confirm）
   ========================= */
.customer-confirm-wrap { /* 既存html互換のため残す */ }

.summary {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.summary .row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: center;
}

.summary .label {
    color: #667085;
    font-weight: 600;
}

.summary .value {
    background: #f7f9fc;
    border: 1px dashed #d3dbea;
    border-radius: 10px;
    padding: 10px 12px;
}

.inline-form { display: inline-block; }

/* =========================
   レスポンシブ
   ========================= */
@media (max-width: 480px) {
    .page-title { font-size: 1.35rem; }
    .btn { width: 100%; text-align: center; }
    .actions { flex-direction: column-reverse; }

    .summary .row {
        grid-template-columns: 1fr;
    }
}
.entree-error {
    padding: 28px 16px 40px;
    display: flex;
    justify-content: center;
}

.entree-error__card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px 22px;
    box-shadow: 0 16px 40px rgba(11, 16, 32, 0.08);
    border: 1px solid rgba(20, 28, 48, 0.06);
}

.entree-error__icon {
    display: flex;
    justify-content: center;
    margin: 8px 0 18px;
}

.entree-error__title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.entree-error__message {
    margin: 0 0 18px;
    color: rgba(20, 28, 48, 0.72);
    font-size: 14.5px;
    line-height: 1.7;
}

.entree-error__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0 14px;
}

.entree-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    height: 48px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
    user-select: none;
}

.entree-btn:active {
    transform: scale(0.99);
}

.entree-btn--primary {
    background: var(--main-color);
    color: #fff;
    box-shadow: 0 10px 22px rgba(var(--main-color-rgb), 0.20);
}

.entree-btn--primary:hover {
    box-shadow: 0 14px 30px rgba(var(--main-color-rgb), 0.26);
}

.entree-btn--ghost {
    background: rgba(20, 28, 48, 0.04);
    color: rgba(20, 28, 48, 0.86);
}

.entree-btn--ghost:hover {
    background: rgba(20, 28, 48, 0.06);
}

.entree-error__note {
    margin: 0;
    font-size: 12.5px;
    color: rgba(20, 28, 48, 0.52);
    line-height: 1.6;
}
/* ポリシー見出し */
.policy-content h3 {
    display: flex;
    align-items: center;

    font-size: 20px;
    font-weight: 700;
    color: #2b2b2b;

    margin: 32px 0 12px;
    padding-left: 14px;

    position: relative;
}

/* 左の縦ライン */
.policy-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;

    width: 4px;
    height: 1.2em;

    background-color: #5f6b73; /* 落ち着いたグレー */
    border-radius: 2px;
}

.policy-content p{
    margin: 8px 0;
    line-height: 1.8;
}

.policy-content ul{
    margin: 8px 0 12px 18px;
    padding-left: 6px;
}

.policy-content li{
    margin: 6px 0;
}
/* =========================
   Layout
========================= */
.auth-wrap{
    min-height: calc(100vh - 64px);
    background: var(--bg);
    padding: 22px 14px 40px;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    color: var(--text);
}

.auth-card{
    width: 100%;
    max-width: 560px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    overflow: hidden;
}

.auth-header{
    padding: 0 18px;
    background: #fff;
}

.auth-title{
    margin: 0;
    border-radius: 16px;
    padding: 10px 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .2px;
    text-align: center;
}

.auth-sub{
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.auth-body{
    padding: 0 18px 18px;
}

/* =========================
   Form
========================= */
.field{
    margin-top: 14px;
    margin-bottom: 20px;
}

.label{
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.input{
    width: 100%;
    height: 48px;
    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 12px;

    font-size: 16px;
    outline: none;
    background: #fff;

    transition: box-shadow .15s ease, border-color .15s ease;
}

.input:focus{
    border-color: rgba(216, 91, 115, .55);
    box-shadow: 0 0 0 4px rgba(216, 91, 115, .12);
}

.hint{
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

/* =========================
   Buttons
========================= */
/* ボタンタップ時に、デフォルトの色にならないように色を指定 */
.auth-page .btn.btn-primary,
.auth-page .btn.btn-primary:hover,
.auth-page .btn.btn-primary:active,
.auth-page .btn.btn-primary:focus,
.auth-page .btn.btn-primary:focus-visible{
    background: var(--main-color) !important;
    border-color: var(--main-color) !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: 0 10px 20px rgba(var(--main-color-rgb), .22) !important;
}

.btn,
.btn-google{
    width: 100%;
    height: 56px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    user-select: none;
    cursor: pointer;
}


.auth-page .btn{
    border: 1px solid transparent;

    font-size: 16px;
    font-weight: 800;
    gap: 10px;
}

.auth-page .btn-primary{
    background: var(--main-color);
    border-color: var(--main-color);
    box-shadow: 0 8px 20px rgba(216, 91, 115, .35);
    color: #fff;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
}

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

.btn-google{
    gap: 12px;

    background: #fff;
    border: 2px solid #dcdfe4;
    border-radius: 16px;

    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.btn-google:hover{
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.google-icon{
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.google-text{
    white-space: nowrap;
}

/* =========================
   Divider
========================= */
.divider{
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 10px;
    color: var(--muted);
    font-size: 12px;
}

.divider::before,
.divider::after{
    content: "";
    height: 1px;
    background: var(--border);
    flex: 1;
}

/* =========================
   Messages
========================= */
.msg{
    display: none;
    margin-top: 12px;
    padding: 10px 12px;

    border-radius: 12px;
    border: 1px solid rgba(217, 48, 37, .35);
    background: rgba(217, 48, 37, .08);
    color: #7a1d16;

    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* =========================
   「新規登録はこちら」などのリンク
========================= */
.links {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.link {
    display: inline-block;
    width: fit-content;
    font-size: 13px;
    color: var(--main-color);
    text-decoration: none;
}

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

/* =========================
   Spinner
========================= */
.spinner{
    width: 16px;
    height: 16px;
    border-radius: 999px;

    border: 2px solid rgba(255,255,255,.45);
    border-top-color: rgba(255,255,255,1);

    animation: spin .8s linear infinite;
    display: none;
}

.spinner.gray{
    border-color: rgba(32,33,36,.18);
    border-top-color: rgba(32,33,36,.65);
}

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

/* Utility */
.fullwidth{
    width: 100%;
}

/* =========================
   (Optional) policy pills
   ※未使用なら消してOK
========================= */
.policy-links{
    display: flex;
    gap: 10px;
    margin: 10px 0 14px;
    flex-wrap: wrap;
}

.policy-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 40px;
    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: #fff;
    color: var(--text);

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.policy-btn:hover{
    background: #f8f9fa;
}

/* =========================
   Policy list
========================= */
.policy-box{
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.policy-title{
    font-size: 16px;
    font-weight: 800;
    color: #6b5b5b;
    margin-bottom: 10px;
}

.policy-list{
    padding-left: 16px;
    display: grid;
    gap: 10px;
}

.policy-list li::marker{
    color: #c7bcbc;
}

.policy-link{
    color: var(--main-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid;
    font-size: 13px;
    padding-bottom: 2px;
}

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

.policy-link .ext{
    font-size: 11px;
    border: 1px solid currentColor;
    border-radius: 6px;
    padding: 1px 4px;
    opacity: .7;
}
/* =========================
   パスワードの目
========================= */

.input-with-icon{
    position: relative;
}

.input-with-icon .input{
    padding-right: 44px; /* アイコン分 */
}

.pw-toggle{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;

    color: #9ca3af; /* OFF時の色 */
    -webkit-tap-highlight-color: transparent;
}

.pw-toggle.is-on{
    color: var(--main-color); /* ON時の色 */
}

.eye-icon{
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

/* =========================
   パスワードヒント
========================= */
.password-hint {
    margin-top: 6px;
    padding-left: 16px;
    font-size: 12px;
    color: #666;
}

.password-hint li {
    list-style: disc;
    line-height: 1.4;
}

.password-hint li.ok {
    color: var(--main-color);; /* 成功色 */
}

/* =========================
   登録ボタン 非活性
========================= */

.btn[disabled],
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

/* hover無効化 */
.btn[disabled]:hover,
.btn:disabled:hover {
    background: inherit;
}
/* ---- layout ---- */
.container--narrow {
    max-width: 920px;
    margin: 24px auto;
    padding: 0 16px;
}
.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 16px;
}
.card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08); border: 1px solid #eee;
}

/* ---- table ---- */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th, .table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eef0f4;
    text-align: left;
}
.table thead th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1;
}
.table tbody tr:hover {
    background: #fafcff;
}
.table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.table--menu .menu-name {
    font-weight: 600;
    color: #0f172a;
}
.table--menu .col-actions, .table--menu .cell-actions {
    text-align: center;
    width: 110px;
}

/* ---- buttons ---- */
.btn {
    display: inline-block;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    background: #fff;
    transition: box-shadow .15s, background .15s, transform .05s;
}
.btn:active {
    transform: translateY(1px);
}
.btn-sm {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
}
.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}
.btn-danger:hover {
    background: #fecaca;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
}
.btn-primary {
    background: #4e8dff;
    color: #fff;
    border-color: #4e8dff;
}
.btn-primary:hover {
    background: #3e7af0;
}

.cell-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
/* ---- responsive ---- */
@media (max-width: 600px) {
    .table th:nth-child(1),
    .table td:nth-child(1) {
        display: none;
    }
    .table th:nth-child(3),
    .table td:nth-child(3) {
        width: 90px;
    }
    .table th:nth-child(4),
    .table td:nth-child(4) {
        width: 100px;
    }
    .table--menu .col-actions, .table--menu .cell-actions {
        width: 80px;
    }
}
/* complete.css */

/* iOS Safari の電話番号自動リンクを無効化 */
a[href^="tel"] {
    color: inherit;
    text-decoration: none;
    pointer-events: none; /* タップ不可にしたい場合 */
}

.btn2-ghost {
    border: 1px solid var(--main-color);
    color: var(--main-color);
}
/* =========================
   Confirm Page (refactored)
========================= */
/* --- Layout --- */
.confirm-page {
    min-height: calc(100vh - 60px);
}

.confirm-container {
    max-width: 860px;
    margin: 18px auto 56px;
    padding: 0 16px;
}

.confirm-header {
    margin: 18px 0 14px;
}

.confirm-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--confirm-text);
}

.confirm-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--confirm-muted);
}

/* --- Card --- */
.confirm-card {
    background: var(--confirm-surface);
    border: 1px solid var(--confirm-border-strong);
    border-radius: var(--r-card);
    box-shadow: var(--confirm-shadow);
    overflow: hidden;
}

.confirm-card__body {
    padding: 14px 16px 18px;
}

/* --- Grid --- */
.confirm-grid {
    display: grid;
    gap: var(--gap);
}

/* --- Shared panel style (row/tile 共通の面) --- */
.summary-panel {
    background: var(--confirm-panel);
    border: 1px solid var(--confirm-border);
    border-radius: var(--r-panel);
}

/* --- Section Title --- */
.summary-sectionTitle {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 18px 4px 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--confirm-text);
}

.summary-sectionTitle::before {
    content: "";
    width: 6px;
    height: 28px;
    border-radius: 999px;
    background: var(--main-color);
}

/* --- Divider --- */
.summary-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 6px 2px;
}

/* --- Top summary tiles (予約内容) --- */
.summary-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.summary-tile {
    padding: 14px;
    border-radius: var(--r-panel);
    background: var(--confirm-panel);
    border: 1px solid var(--confirm-border);
}

.summary-tile__label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--main-color);
    display: inline-block;
    background: var(--chip-bg);
    padding: 6px 12px;
    border-radius: 10px;
}

.summary-tile__value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
    word-break: break-word;
}

/* --- Rows (予約者情報) --- */
.summary-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 14px;
    align-items: center;

    padding: 12px;
    border-radius: var(--r-row);
    background: var(--confirm-panel);
    border: 1px solid var(--confirm-border);
}

.summary-row--store {
    display: block;
}

.summary-row--store .summary-label {
    margin-bottom: 8px;
}

.summary-row--store .summary-value {
    display: block;
}

.summary-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--main-color);
    display: inline-block;
    background: var(--chip-bg);
    padding: 6px 12px;
    border-radius: 10px;
}

.summary-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    word-break: break-word;
}

/* --- Buttons --- */
.confirm-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.btn2 {
    appearance: none;
    border: 0;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 44px;
    padding: 0 16px;
    width: 100%;

    border-radius: var(--r-btn);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;

    transition: transform 0.05s ease, box-shadow 0.2s ease, background 0.2s ease;
    user-select: none;
    text-decoration: none;
}

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

.btn2-secondary {
    background: #fff;
    color: #344054;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.btn2-primary {
    background: var(--main-color);
    color: #fff;
    box-shadow: 0 10px 22px rgba(var(--main-color-rgb), 0.25);
}

.btn2-primary:hover {
    box-shadow: 0 14px 28px rgba(var(--main-color-rgb), 0.5);
}

/* --- Note --- */
.confirm-note {
    margin: 12px 2px 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--confirm-muted);
}

/* Prefilled（見た目は変えない） */
.confirm-page .prefilled {
    background: transparent;
    border: none;
    padding: 0;
}

/* ===============================
   ペット選択（confirm画面）
================================ */

/* リストは縦並び */
.pet-pick__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

/* 各行（カード風） */
.pet-pick__item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    background: #fff;

    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .05s ease;
}

/* hover */
.pet-pick__item:hover {
    border-color: var(--main-color);
    background: var(--chip-bg);
}

/* radio本体は消す */
.pet-pick__item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* 丸アイコンを自前で作る */
.pet-pick__item::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid var(--main-color);
    background: #fff;
    box-sizing: border-box;
    flex: 0 0 20px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* 選択時のカード */
.pet-pick__item:has(input[type="radio"]:checked) {
    border-color: var(--main-color);
    background: var(--chip-bg);
    box-shadow: 0 8px 20px rgba(var(--main-color-rgb), 0.14);
}

/* 選択時の丸 */
.pet-pick__item:has(input[type="radio"]:checked)::before {
    background:
            radial-gradient(circle at center, var(--main-color) 0 5px, transparent 6px);
    border-color: var(--main-color);
    box-shadow: 0 0 0 4px rgba(var(--main-color-rgb), 0.12);
}

.pet-pick__text {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

/* エラー */
.pet-pick__error {
    margin-top: 8px;
    font-size: 13px;
    color: #d94b63;
    display: none;
}

/* ボタンの非活性 */
.btn2.is-disabled,
.btn2:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.pet-pick__error.is-show {
    display: block;
}

/* --- Responsive --- */
@media (max-width: 520px) {
    .confirm-title { font-size: 22px; }

    .summary-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .summary-top {
        grid-template-columns: 1fr;
    }

    .confirm-actions {
        flex-direction: column;
    }
}
/* =========================
   メニューカード
========================= */
.menu-cards {
    display: grid;
    gap: 20px;
}

.menu-card {
    background: var(--card);
    border: 1px solid var(--border-main);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.menu-card:last-child {
    margin-bottom: 0;
}

.menu-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--chip-text);
    display: inline-block;
    background: var(--chip-bg);
    padding: 6px 12px;
    border-radius: 10px;
}

.menu-card__desc {
    margin: 12px 0 0;
    color: var(--text);
    line-height: 1.8;
    font-size: 18px;
    white-space: pre-wrap;
}

.menu-card__meta {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    color: var(--muted);
}

.menu-card__time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--muted);
    font-size: 24px;
}

.menu-card__icon {
    line-height: 1;
    color: var(--muted);
}

.menu-card__price {
    font-weight: 900;
    font-size: 28px;
    color: var(--main-color);
}

.menu-card__cta {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.menu-card__btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 14px;
    border-radius: 12px;
    background: var(--primary-btn-bg);
    color: var(--primary-btn-text);
    border: 1px solid var(--primary-btn-border);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(var(--main-color-rgb), 0.18);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .05s ease, box-shadow .2s ease;
}

.menu-card__btn:hover {
    background: var(--primary-btn-hover-bg);
    box-shadow: 0 10px 22px rgba(var(--main-color-rgb), 0.24);
}

.menu-card__btn:active {
    transform: translateY(1px);
}

/* =========================
   セクション見出し
========================= */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 16px;
}

.section-heading__bar {
    width: 6px;
    height: 28px;
    background: var(--main-color);
    border-radius: 3px;
}

.section-heading__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.02em;
}

@media (max-width: 480px) {
    .menu-card {
        padding: 14px;
    }

    .menu-card__title {
        font-size: 18px;
    }

    .menu-card__price {
        font-size: 24px;
    }

    .menu-card__btn {
        font-size: 16px;
        padding: 12px 12px;
    }

    .section-heading {
        margin: 22px 0 12px;
    }

    .section-heading__bar {
        height: 22px;
    }

    .section-heading__title {
        font-size: 20px;
    }
}
.reservation-page {
    padding-top: 20px;
    padding-bottom: 48px;
}

.page-hero {
    margin-bottom: 20px;
}

.page-hero__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #222;
}

.page-hero__desc {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}
/* =========================
   予約ステップ（横一列・スクロール無し）
========================= */

.reserve-steps {
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-top: 10px;
    padding-bottom: 10px;
}

/* 5等分（step / arrow / step / arrow / step） */
.reserve-steps__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    text-align: center;
}

/* =========================
   Step
========================= */

.reserve-steps__step {
    display: flex;
    align-items: center;
    justify-content: center; /* gridの各セル中央に寄せる */
    gap: 6px;

    min-width: 0;            /* grid + flex のはみ出し対策 */
    color: #b5b5b5;
    font-weight: 600;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* ラベル（2行は .reserve-steps__line で制御） */
.reserve-steps__label {
    font-size: 13px;
    line-height: 1.15;
    white-space: nowrap;     /* 自動折り返し禁止（勝手に改行しない） */
}

.reserve-steps__line {
    display: block;          /* ここでだけ改行 */
    white-space: nowrap;     /* 行内で折り返さない */
}

/* =========================
   Arrow
========================= */

.reserve-steps__chev {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: #c6cacf;
}

/* =========================
   Icon（SVG）
========================= */

.reserve-steps__icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
}

.reserve-steps__svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* =========================
   State
========================= */
/* activeの場合 */
.reserve-steps__step.is-active {
    color: var(--chip-text);
    transform: scale(1.3);
}

/* =========================
   Responsive
========================= */

@media (max-width: 420px) {
    .reserve-steps__label {
        font-size: 12px;
    }

    .reserve-steps__icon {
        width: 26px;
        height: 26px;
    }

    .reserve-steps__chev {
        font-size: 24px;
    }
}
/*
-------------------
  セル結合
-------------------
 */
td.status-merged {
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    line-height: 1.2;
}

td.status-merged.is-outside {
    background: var(--status-outside-bg);
    color: var(--status-outside-text);
}

td.status-merged.is-holiday {
    background: var(--status-holiday-bg);
    color: var(--status-holiday-text);
}

/*
-------------------
  予約戻るリンク
-------------------
 */
.reserve-back {
    margin: 16px 4px;
}

.reserve-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 14px;
    border-radius: 6px;

    border: 1px solid var(--secondary-btn-border);
    color: var(--secondary-btn-text);
    background: var(--secondary-btn-bg);

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
    transition: all 0.2s ease;
}

.reserve-back a:hover {
    background: var(--secondary-btn-hover-bg);
    border-color: var(--secondary-btn-border);
    color: var(--secondary-btn-text);
}

.theme-alt {
    margin: 20px 4px;
}
/*
-------------------
  クリニック用の予約表
-------------------
*/
.clinic-hours__table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--clinic-border);
    border-radius: 8px;
    overflow: hidden;
}

.clinic-hours__th{
    background: #fff;
    font-weight: 500;
    text-align: center;
    padding: 10px 8px;
    border-right: 1px solid var(--clinic-border);
}

.clinic-hours__th.is-time{
    width: 140px;
}

.clinic-hours__time{
    background: #fff;
    font-weight: 700;
    padding: 10px 12px;
    border-top: 1px solid var(--clinic-border);
    border-right: 1px solid var(--clinic-border);
    white-space: nowrap;
}

.clinic-hours__td{
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid var(--clinic-border);
    border-right: 1px solid var(--clinic-border);
}

.clinic-hours__table tr > *:last-child{
    border-right: none;
}

.clinic-hours__mark{
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    display: inline-block;
    text-decoration: none;
}

.clinic-hours__mark.is-ok{
    color: var(--main-color);
    font-size: large;
}

.clinic-hours__mark.is-ng{
    color: var(--clinic-ng);
}

.clinic-hours__notes{
    margin: 12px 0 0;
    padding-left: 18px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================
   土日・祝日ヘッダ
========================= */
th.saturday {
    background-color: var(--sat-bg);
    color: var(--sat-fg);
}

th.holiday {
    background-color: var(--sun-bg);
    color: var(--sun-fg);
}

/*
-------------------
  凡例
-------------------
*/
.reserve-legend {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.6;
}

/* デフォルト（PC）＝横並び */
.reserve-legend__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reserve-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reserve-legend__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8em;
    height: 1.8em;
    line-height: 1;
    flex: 0 0 auto;
}

.reserve-legend__mark.is-ok  {
    color: var(--main-color);
}

.reserve-legend__mark.is-few {
    color: var(--legend-few);
    text-shadow: 0 0 0.5px var(--legend-few);
}

.reserve-legend__mark.is-ng{
    color: var(--clinic-ng);
    font-weight: 700;
}

/*
-------------------
  凡例(スマホ対応)
-------------------
*/
@media (max-width: 767px) {
    .reserve-legend__list {
        flex-direction: column;
        gap: 8px;
    }

    .reserve-legend__item {
        justify-content: flex-start;
    }
}
/*





 */

/* =========================
   コンテナ＆カード
========================= */
.calendar-container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

.calendar-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

/* =========================
   週ナビ（左ボタン / 中央年月 / 右ボタン）
========================= */
.week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 12px 0 16px;
}

.week-nav__left,
.week-nav__right {
    flex: 0 0 auto;
}

.week-nav__center {
    flex: 1 1 auto;
    text-align: center;
}

.week-nav__month {
    font-weight: 700;
    font-size: 22px;
    color: #6b5b56;
}

/* 大きい枠ボタン（PCデフォルト） */
.week-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 260px;
    padding: 16px 22px;

    border: 2px solid #cfc7c3;
    border-radius: 10px;

    background: #f7f4f2;
    color: #6b5b56;

    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.week-nav__btn:hover {
    background: #f2eeeb;
}

.week-nav__btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* =========================
   テーブル
========================= */
table.reserve-table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
    font-size: 14px;
    margin: 0 auto;
    table-layout: fixed; /* 均等割り */
}

table.reserve-table th,
table.reserve-table td {
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* ---- 高さ固定（PCデフォルト） ---- */
table.reserve-table thead th {
    height: 48px;            /* 日付ヘッダの高さ */
    padding: 6px;
    vertical-align: middle;
    line-height: 1.15;
}

table.reserve-table tbody td,
table.reserve-table tbody th {
    height: 40px;            /* 30分枠の高さ */
    padding: 0;              /* 高さを乱さない */
    vertical-align: middle;
}

/* 先頭の「日時」列は固定幅（PC） */
table.reserve-table th:first-child,
table.reserve-table td:first-child {
    width: 80px;
    min-width: 80px;
}

/* セル内が原因で高さが伸びるのを防ぐ */
table.reserve-table td {
    overflow: hidden;
}

/* =========================
   （旧）table内ナビの名残（使わないなら消してOK）
========================= */
.week-nav-row th {
    background: transparent;
    border: none;
}

.week-nav-cell {
    width: 160px;
}

.month-label {
    font-weight: 700;
    font-size: 1rem;
}

.nav-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #d0d7e2;
    color: #333;
    text-decoration: none;
}
.nav-link:hover { background: #f6f8fb; }
.nav-link.disabled {
    pointer-events: none;
    color: #aaa;
    border-color: #eee;
    background: #fafafa;
}

/* =========================
   ステータス文字（◎ / × / -）
========================= */

.status-text {
    font-size: 18px;      /* ★ここで大きさ調整 */
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   状態別セル
========================= */

.reserve-table td.unavailable {
    border: 1px solid #ccc;
    text-align: center;
    background: #f2f2f2;
    color: #aaa;
}

.reserve-table td.closed {
    border: 1px solid #ccc;
    text-align: center;
    background: #f2f2f2;
    color: #aaa;
}

/* =========================
   予約ボタン（◎）
========================= */
.reserve-button {
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    line-height: 1;
    padding: 0;
    background: transparent;     /* ★背景消す */
    border: none;                /* ★枠消す */
    box-shadow: none;            /* ★影消す */
    border-radius: 0;
    color: var(--main-color);
    cursor: pointer;
    appearance: none;            /* ★iOS対策 */
    -webkit-appearance: none;
}
/* =========================
   予約ボタン（△）
========================= */
.reserve-button--few {
    color: var(--legend-few);
    text-shadow: 0 0 0.5px var(--legend-few);
}

.reserve-button:hover,
.reserve-button:active,
.reserve-button:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}

/* =========================
   担当者カード
========================= */
.card--staff {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin: 16px 0 24px;
}

.staff-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.staff-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.staff-count {
    font-size: .85rem;
    color: #555;
    background: #f6f8fb;
    border: 1px solid #d0d7e2;
    padding: 2px 8px;
    border-radius: 999px;
}

/* ラベル＋セレクト＋クリア */
.staff-control {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    align-items: center;
    margin-top: 6px;
}

.staff-label {
    grid-column: 1 / -1;
    font-size: .85rem;
    color: #666;
}

/* 見栄え良いネイティブセレクト */
.staff-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 40px 10px 12px;
    border: 1px solid #d0d7e2;
    border-radius: 10px;
    font-size: 14px;

    background:
            #fff
            url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>")
            no-repeat right 12px center / 16px 10px;

    transition: box-shadow .15s ease, border-color .15s ease;
}

.staff-select:focus {
    outline: none;
    border-color: #8ab4f8;
    box-shadow: 0 0 0 3px rgba(138,180,248,.35);
}

.staff-help {
    font-size: .85rem;
    color: #666;
    margin: 8px 0 0;
}

/* 空状態 */
.staff-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px dashed #d0d7e2;
    background: #fafbfe;
    border-radius: 12px;
    color: #666;
}
.staff-empty-icon { font-size: 18px; line-height: 1; }

.menu-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 1px dashed #d0d7e2;
    background: #fafbfe;
    border-radius: 12px;
    color: #666;
}

.menu-empty-icon {
    font-size: 18px;
    line-height: 1;
}

.menu-empty-text {
    margin: 0;
    font-size: .9rem;
}

/* =========================
   画面幅ごとの調整（PC→タブレット→スマホ）
========================= */

/* --- 700px以下（小さめ） --- */
@media (max-width: 700px) {
    /* 週ナビ */
    .week-nav__btn {
        min-width: 0;
        padding: 12px 14px;
        font-size: 16px;
    }
    .week-nav__month {
        font-size: 18px;
    }
    /* ◎ボタンも縮める */
    .reserve-button {
        height: 24px;
        line-height: 24px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* --- 480px以下（スマホ） --- */
@media (max-width: 480px) {

    /* ◎ボタン（スマホ） */
    .reserve-button {
        font-size: 18px;
        height: 26px;
    }

    /* 担当者カード */
    .staff-control {
        grid-template-columns: 1fr;
    }
}
/* サイトのヘッダー */
.site-header{
    background: #fff;
    border-bottom: 1px solid var(--border-main);
}

.site-header__inner{
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo{
    font-size: 30px;
    font-weight: 900;
    letter-spacing: .5px;
    color: var(--main-color);
    text-decoration: none;
}

.site-logo:active{
    transform: translateY(1px);
}

/* 右側アイコン */
.site-header__right{
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-header__icon{
    width: 38px;
    height: 38px;
    border-radius: 999px;

    background: rgba(var(--main-color-rgb), 0.10);
    border: 1px solid rgba(var(--main-color-rgb), 0.25);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--main-color);
    text-decoration: none;

    transition: box-shadow .15s ease, transform .05s ease;
}

.site-header__icon:hover{
    box-shadow: 0 8px 18px rgba(var(--main-color-rgb), .25);
}

.site-header__icon:active{
    transform: translateY(1px);
}

.site-header__icon svg{
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
auth-result-body {
    margin: 0;
    background: linear-gradient(180deg, #fff7fa 0%, #ffffff 220px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-result-page {
    display: flex;
    justify-content: center;
    padding: 32px 16px 40px;
}

.auth-result-card {
    width: 100%;
    max-width: 520px;
    margin-top: 12px;
    background: #ffffff;
    border: 1px solid #f1d9e1;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(210, 95, 130, 0.12);
    padding: 32px 24px 24px;
    text-align: center;
}

.auth-result-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 9999px;
    background: #fff0f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-result-icon svg {
    width: 40px;
    height: 40px;
}

.auth-result-icon circle {
    stroke: #e56b8a;
    stroke-width: 1.5;
    fill: #fff0f5;
}

.auth-result-icon path {
    stroke: #e56b8a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-result-badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: #fff3f7;
    color: #c94f73;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-result-title {
    margin: 0 0 12px;
    color: #222;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 800;
}

.auth-result-text {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.auth-result-actions {
    margin-top: 28px;
}

.auth-result-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ea6f90 0%, #d9587f 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(217, 88, 127, 0.25);
}

@media (max-width: 640px) {
    .auth-result-card {
        border-radius: 20px;
        padding: 28px 20px 20px;
    }

    .auth-result-title {
        font-size: 26px;
    }

    .auth-result-button {
        width: 100%;
    }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

:root{
    /* 全体の背景色 */
    --bg: #f6f7f9;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --danger: #d93025;
    --radius: 14px;

    --clinic-border: #d9d9d9;
    --clinic-ok: #d85b76;
    --clinic-ng: #9e9e9e;

    --sat-bg: #ddeeff;
    --sat-fg: #0033cc;
    --sun-bg: #ffdddd;
    --sun-fg: #cc0000;

    --legend-few: #ff9800;

    /* 戻るボタン用 */
    --btn-back-border: #e85b72;
    --btn-back-bg: #fff5f7;
    --btn-back-hover-bg: #ffe3e8;
    --btn-back-hover-color: #d94b63;

    /* 予約表ステータス用 === */
    --status-outside-bg: #f7f7f7;
    --status-outside-text: #777;

    --status-holiday-bg: #f2f2f2;
    --status-holiday-text: #666;

    --confirm-text: #222;
    --confirm-muted: #667085;

    --confirm-surface: #fff;
    --confirm-panel: #f7f8fb;

    --confirm-border: rgba(0,0,0,0.05);
    --confirm-border-strong: rgba(0,0,0,0.06);

    --confirm-shadow: 0 12px 34px rgba(0,0,0,0.08);

    --r-card: 18px;
    --r-panel: 16px;
    --r-row: 14px;
    --r-btn: 12px;

    --gap: 10px;
}

html, body {
    /* 全体もフォントを変更 */
    font-family:
            -apple-system,
            BlinkMacSystemFont,
            "SF Pro Text",
            "Hiragino Sans",
            "Hiragino Kaku Gothic ProN",
            "Noto Sans JP",
            "Yu Gothic",
            Meiryo,
            sans-serif;
}
