/* =============================================================
   会員まわり（ログイン・会員登録・マイページ・予約の流れ）2026-11-08 刷新
   トーンは他の刷新ページ（css/club-detail.css / page-modern.css）と同じ。影は付けない。
   既存の HTML（.login-form / .general-form / .register-button など）を .mm-page の中だけ上書きする。
   ============================================================= */
.mm-page {
    --mm-green: #376439;
    --mm-green-dark: #24432a;
    --mm-green-pale: #eef5ee;
    --mm-ink: #1f2a20;
    --mm-muted: #5f6b60;
    --mm-line: #e3e8e3;
    --mm-bg: #f5f7f4;
    --mm-blue: #0071be;
    color: var(--mm-ink);
    background: var(--mm-bg) !important;
}
.mm-page * { box-sizing: border-box; }
#user-section.mm-page { padding: 140px 0 72px; } /* PC はヘッダーが上に重なるので、その分空ける */

/* ── ログイン・会員登録のカード ── */
.mm-auth .login-form {
    max-width: 480px; margin: 0 auto; padding: 36px 36px 30px; border-radius: 20px;
    background: #fff; border: 1px solid var(--mm-line); box-shadow: none; text-align: left;
}
.mm-auth .login-form h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: var(--mm-ink); text-align: center; }
.mm-auth .login-form h2 + figure { margin: 22px 0 16px; } /* 見出しとバナーの間は、バナーの下より広く */
.mm-auth .mm-auth-lead { margin: 0 0 22px; font-size: 13px; color: var(--mm-muted); text-align: center; }
.mm-auth .login-form label { display: inline-block; margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--mm-ink); }
.mm-auth .login-form br { display: none; }
.mm-auth .login-input, .mm-auth .login-form input[type="email"], .mm-auth .login-form input[type="text"], .mm-auth .login-form input[type="password"] {
    display: block; width: 100%; height: 48px; margin: 0 0 16px !important; padding: 0 44px 0 14px;
    border: 1px solid #d9e1d9; border-radius: 12px; background: #fff; font-size: 15px; box-shadow: none;
}
.mm-auth .login-input:focus, .mm-auth .login-form input:focus { outline: none; border-color: var(--mm-green); box-shadow: 0 0 0 3px rgba(55, 100, 57, .12); }
.mm-auth .password-container #togglePassword { top: 24px !important; right: 14px !important; color: var(--mm-muted); }
.mm-auth .remember { margin: 2px 0 18px; }
.mm-auth .remember .checknox-wrap { font-size: 13px; font-weight: 600; color: var(--mm-muted); }

/* ボタン */
.mm-page .btn-login-form, .mm-page .register-button, .mm-page .mm-btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 50px; margin: 0;
    border: 0; border-radius: 12px; background: var(--mm-blue); color: #fff !important; font-size: 16px; font-weight: 800;
    text-decoration: none; box-shadow: none; transition: background .15s;
}
.mm-page .btn-login-form:hover, .mm-page .register-button:hover, .mm-page .mm-btn-primary:hover { background: #005a98; color: #fff; text-decoration: none; }

/* 「または」の区切り */
.mm-auth .custom-hr { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px !important; }
.mm-auth .custom-hr hr { flex: 1; height: 0; margin: 0; border: 0; border-top: 1px solid var(--mm-line); background: none; }
.mm-auth .custom-hr span { font-size: 12px; font-weight: 700; color: #9aa59b; }

/* SNS ログイン */
.mm-auth .button-social-login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mm-auth .social-login-btn {
    display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100% !important; height: 48px; margin: 0 !important; padding: 0 10px;
    border: 1px solid #d9e1d9 !important; border-radius: 12px !important; background: #fff !important; color: var(--mm-ink) !important; box-shadow: none !important;
}
.mm-auth .social-login-btn:hover { border-color: var(--mm-green) !important; }
.mm-auth .social-login-logo { width: 20px !important; height: 20px !important; margin: 0 !important; }
.mm-auth .social-login-lable { font-size: 14px !important; font-weight: 800; color: var(--mm-ink); }

/* リンク */
.mm-auth .mm-auth-links { display: flex; justify-content: center; margin: 16px 0 0; font-size: 13px; }
.mm-auth .mm-auth-links a { color: var(--mm-green); font-weight: 700; }

/* はじめての方（アカウント作成の案内） */
.mm-auth .mm-signup {
    margin: 22px 0 0; padding: 20px; border-radius: 16px; background: var(--mm-green-pale); text-align: left;
}
.mm-auth .mm-signup h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--mm-green-dark); }
.mm-auth .mm-signup ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.mm-auth .mm-signup li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mm-ink); }
.mm-auth .mm-signup li .material-icons { font-size: 18px; color: var(--mm-green); }
.mm-auth .mm-signup .mm-btn-outline {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 14px; border-radius: 12px;
    border: 1px solid var(--mm-green); background: #fff; color: var(--mm-green); font-size: 15px; font-weight: 800; line-height: 1.4; text-align: center; text-decoration: none;
}
.mm-auth .mm-signup .mm-btn-outline:hover { background: var(--mm-green); color: #fff; text-decoration: none; }
.mm-auth .mm-signup .mm-sub-link { display: block; margin-top: 10px; text-align: center; font-size: 12px; color: #888; text-decoration: underline; }

/* 予約の途中のステップ表示（ログインに来た時） */
.mm-page .reservation-steps-container { max-width: 480px; margin: 0 auto 18px; }

@media screen and (max-width: 780px) {
    #user-section.mm-page { padding: 76px 0 48px; }
    /* スマホはカードの枠をなくし、白い背景にそのまま置く（2026-11-08 ユーザー指示） */
    .mm-page.mm-auth { background: #fff !important; }
    .mm-auth .login-form { max-width: none; padding: 8px 0 0; border: 0; border-radius: 0; background: transparent; }
    .mm-auth .login-form h2 { font-size: 22px; }
    .mm-auth .button-social-login { grid-template-columns: minmax(0, 1fr); }
}

/* アプリ（WebView）ではヘッダーをアプリが隠すので上余白を詰める */
html:has(#rn-hide-header-footer) #user-section.mm-page { padding-top: 20px !important; }

/* ── メッセージ・確認系のページ（.login-form が無く、中央の列だけのページ）：中央の列をカードにする ── */
.mm-msg .container > .row > .col-md-8 {
    float: none; width: auto; max-width: 560px; margin: 0 auto; padding: 32px 32px 28px;
    border-radius: 20px; background: #fff; border: 1px solid var(--mm-line); text-align: left;
}
.mm-msg.mm-form .container > .row > .col-md-8 { max-width: 760px; }
.mm-msg h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; color: var(--mm-ink); text-align: center; }
.mm-msg p { font-size: 14px; line-height: 1.9; color: var(--mm-ink); }
.mm-page .warning {
    display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 20px; padding: 12px 14px; border: 0; border-radius: 12px;
    background: #fff7e6; color: #8a5a00; font-size: 13px; line-height: 1.7; text-align: left;
}
.mm-page .warning i { flex: 0 0 auto; display: inline-flex; align-items: center; height: 22px; margin: 0; line-height: 1; } /* 1行目の文字の高さ（13px×1.7）の真ん中にそろえる */
.mm-msg .btn-primary, .mm-msg input[type="submit"], .mm-msg button[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; min-width: 220px; height: 50px; padding: 0 24px;
    border: 0; border-radius: 12px; background: var(--mm-blue); color: #fff; font-size: 16px; font-weight: 800; box-shadow: none;
}
.mm-msg .btn-primary:hover, .mm-msg input[type="submit"]:hover, .mm-msg button[type="submit"]:hover { background: #005a98; color: #fff; }
.mm-msg input[type="text"], .mm-msg input[type="email"], .mm-msg input[type="tel"], .mm-msg input[type="password"], .mm-msg input[type="date"], .mm-msg select, .mm-msg textarea {
    width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #d9e1d9; border-radius: 12px; background: #fff; font-size: 15px; box-shadow: none;
}
.mm-msg textarea { min-height: 110px; }
.mm-msg input:focus, .mm-msg select:focus, .mm-msg textarea:focus { outline: none; border-color: var(--mm-green); box-shadow: 0 0 0 3px rgba(55, 100, 57, .12); }

/* 会員登録などの表形式フォーム（.general-form）：カードの中では外枠・影を外して行の区切り線だけ */
.mm-page .general-form-cover { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.mm-page .general-form tr { border-bottom: 1px solid #edf2eb; }
.mm-page .general-form tr:last-child { border-bottom: 0; }
.mm-page .general-form td { padding: 14px 6px; vertical-align: middle; font-size: 14px; }
.mm-page .general-form td:first-child { width: 32%; color: var(--mm-ink); font-weight: 800; }

@media screen and (max-width: 780px) {
    .mm-msg .container > .row > .col-md-8 { max-width: none; padding: 8px 0 0; border: 0; border-radius: 0; background: transparent; }
    .mm-msg .btn-primary, .mm-msg input[type="submit"], .mm-msg button[type="submit"] { width: 100%; }
    .mm-page .general-form td { padding: 10px 0; }
    .mm-page .general-form td:first-child { width: 100%; padding: 14px 0 4px; }
    .mm-page .general-form td:last-child { padding: 0 0 14px; }
}

/* ── マイページ（member/member_form.php ほか）：作りはそのまま、影をやめて線と角丸にそろえる ── */
#user-section.mm-mypage { min-height: 0; }
.mm-mypage [style*="box-shadow"] { box-shadow: none !important; }
.mm-mypage .mypage-side .text-left.mb-5.flex, .mm-mypage .mypage-side table.table-menu { border-color: var(--mm-line) !important; }
.mm-mypage .mypage-side .text-left.mb-5.flex { border-radius: 16px 16px 0 0 !important; }
.mm-mypage .mypage-side table.table-menu { border-radius: 0 0 16px 16px !important; }
.mm-mypage .mypage-side table.table-menu .menu-ico { color: var(--mm-green) !important; }
/* お知らせ・キャンペーンのタブ（作りは変えない。色と角だけ） */
.mm-mypage section.typeA .tabLabel, .mm-mypage section.typeA .tabLabel2 {
    padding: 12px; border-radius: 14px 14px 0 0; background: #e8ede8; color: var(--mm-muted); font-size: 14px; text-align: center;
}
.mm-mypage section.typeA input:checked + .tabLabel, .mm-mypage section.typeA input:checked + .tabLabel2 { background: var(--mm-green); color: #fff; }
.mm-mypage section.typeA .content { border: 1px solid var(--mm-line) !important; border-top: 0 !important; border-radius: 0 0 16px 16px !important; }
/* 予約一覧・前回の予約などの箱 */
.mm-mypage div[style*="border-radius: 10px"] { border: 1px solid var(--mm-line); border-radius: 16px !important; overflow: hidden; }
.mm-mypage table.table-news { background: #fff; }
.mm-mypage table.table-news tr:nth-child(odd) { background: transparent; }
.mm-mypage table.table-news th { padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--mm-line); text-align: left; font-size: 16px; color: var(--mm-ink); }
.mm-mypage table.table-news th .bold::before { content: ""; display: inline-block; width: 4px; height: 16px; margin-right: 10px; border-radius: 2px; background: var(--mm-green); vertical-align: -2px; }
.mm-mypage table.table-news td { border-bottom-color: #f0f3f0; }
.mm-mypage .member-notification-frame { border-radius: 12px; background: #f7f8f6 !important; }
.mm-mypage .member-notification-button { border-radius: 999px !important; background: var(--mm-green) !important; border-color: var(--mm-green) !important; }
.mm-mypage .review-area textarea { border: 1px solid #d9e1d9; border-radius: 12px; }
.mm-mypage .review-area button, .mm-mypage .review-area input[type="submit"] { border-radius: 12px !important; }
/* ゴルフ場のタグ（練習場あり など）とエリアを他ページと同じ丸いラベルに */
.mm-mypage .label-golf-club { border: 0 !important; border-radius: 999px; background: #f1f4f1; color: var(--mm-muted); font-size: 11px; font-weight: 700; padding: 2px 10px; }
.mm-mypage .label-golf-club-region { border: 0 !important; border-radius: 999px; background: var(--mm-green-pale); color: var(--mm-green); font-size: 12px; font-weight: 800; padding: 3px 12px; }
/* 予約履歴など、箱の外側に枠の div が無い表にも枠を付ける（タブの中の表は除く） */
.mm-mypage table.table-news:not(.content .table-news):not(div[style*="border-radius: 10px"] .table-news) {
    border: 1px solid var(--mm-line); border-radius: 16px; border-collapse: separate; overflow: hidden;
}
@media screen and (max-width: 780px) {
    /* スマホは枠をなくして白い背景にそのまま置く（ログインと同じ。2026-11-08 ユーザー指示） */
    .mm-page.mm-mypage { background: #fff !important; }
    /* スマホは上のプロフィール（アイコン・名前・プロフィールを編集）を出さない。編集はヘッダーの会員メニューから（2026-11-08 ユーザー指示） */
    .mm-mypage .mypage-side .text-left.mb-5.flex { display: none !important; }
    .mm-mypage div[style*="border-radius: 10px"], .mm-mypage table.table-news:not(.content .table-news) { border: 0 !important; border-radius: 0 !important; }
    .mm-mypage table.table-news th { padding: 14px 0 10px; }
}

/* ── ログアウト画面: アイコン＋見出し＋案内文＋ボタン（中央そろえ）2026-11-09 ── */
.mm-auth .login-form.mm-done { max-width: 440px; margin-left: auto; margin-right: auto; padding-top: 40px; padding-bottom: 36px; text-align: center; }
.mm-done-ico {
    display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 16px;
    border-radius: 50%; background: var(--mm-green-pale, #eef5ee); color: var(--mm-green, #376439); font-size: 30px;
}
.mm-auth .login-form.mm-done h2 { margin-bottom: 10px; font-size: 24px; }
.mm-done-text { margin: 0 0 26px; font-size: 14px; line-height: 1.8; color: var(--mm-muted, #5f6b60); }
.mm-done-btns { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mm-done-btns .mm-btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; }
.mm-done-sub { font-size: 14px; font-weight: 700; color: var(--mm-green, #376439); text-decoration: underline; text-underline-offset: 3px; }
.mm-done-sub:hover { color: var(--mm-green, #376439); }
.mm-done-text span { display: block; }
/* メール送信後の画面（registration_mail_complete / passward_change_complete）もログアウト画面と同じ形に */
.mm-msg .mm-done { text-align: center; padding-top: 8px; }
.mm-msg .mm-done h2 { margin-bottom: 10px; }
.mm-msg .mm-done .mm-done-text { margin: 0 auto 4px; max-width: 420px; text-align: left; color: var(--mm-muted); }
.mm-msg .mm-done .mm-done-text a { color: var(--mm-green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mm-msg .mm-done + .warning { max-width: 420px; margin: 18px auto 4px; }

/* ── アカウント作成の入力・確認画面（registration_form / registration_check。col-md-10）も白いカードに入れる 2026-11-09 ── */
.mm-msg.mm-form .container > .row > .col-md-10 {
    float: none; width: auto; max-width: 760px; margin: 0 auto; padding: 36px 40px 32px;
    border-radius: 20px; background: #fff; border: 1px solid var(--mm-line);
}
/* 同意の行: 白い帯を消して、少しあける */
.mm-form td[colspan="2"] { background: transparent !important; border-bottom: 0 !important; padding-top: 22px !important; }
/* パスワードの目のアイコン: 入力欄の中の右端に */
.mm-form .password-container { position: relative; }
.mm-form .password-container input { padding-right: 44px !important; }
.mm-form .password-container #togglePassword,
.mm-form .password-container #togglePassword2 {
    position: absolute !important; top: 50% !important; right: 14px !important; transform: translateY(-50%) !important;
    display: inline-flex; align-items: center; color: var(--mm-muted); line-height: 1;
}
/* 確認画面のボタン: 戻る（白・枠線）と登録する（青）を同じ高さで並べる */
.mm-form .text-center.mt-4 { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px !important; }
.mm-form .back-btn {
    display: inline-flex; align-items: center; justify-content: center; min-width: 160px; height: 50px; padding: 0 24px; margin: 0;
    border: 1px solid var(--mm-line); border-radius: 12px; background: #fff; color: var(--mm-ink); font-size: 15px; font-weight: 800; box-shadow: none;
}
.mm-form .back-btn:hover { border-color: var(--mm-green); color: var(--mm-green); }
.mm-form .text-center.mt-4 .btn-primary { min-width: 220px; margin: 0; }
@media screen and (max-width: 780px) {
    .mm-msg.mm-form .container > .row > .col-md-10 { max-width: none; padding: 8px 0 0; border: 0; border-radius: 0; background: transparent; }
    .mm-form .text-center.mt-4 > * { flex: 1 1 0; min-width: 0; }
}

/* ── マイページのお知らせ: 緑のボタンと灰色の箱をやめ、日付＋タイトルの一覧に（トップのお知らせと同じ形）2026-11-09 ── */
.mm-mypage .mp-news { padding: 6px 4px 2px; }
.mm-mypage .mp-news-greet p { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--mm-muted); }
.mm-mypage .mp-news-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mm-line); }
.mm-mypage .mp-news-list li { border-bottom: 1px solid var(--mm-line); }
.mm-mypage .mp-news-list a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; color: var(--mm-ink); text-decoration: none; transition: background .15s; }
.mm-mypage .mp-news-list a:hover { background: #f7f8f6; }
.mm-mypage .mp-news-list time { flex: 0 0 auto; font-size: 13px; color: var(--mm-muted); font-variant-numeric: tabular-nums; }
.mm-mypage .mp-news-new { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; background: #fdecea; color: #c0392b; font-size: 11px; font-weight: 800; }
.mm-mypage .mp-news-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.mm-mypage .mp-news-list .material-icons { flex: 0 0 auto; font-size: 20px; color: #b5bdb5; }
.mm-mypage .mp-news-more { display: inline-flex; align-items: center; gap: 2px; margin-top: 12px; float: right; font-size: 13px; font-weight: 800; color: var(--mm-green); text-decoration: none; }
.mm-mypage .mp-news-more .material-icons { font-size: 18px; }
.mm-mypage .mp-news::after { content: ""; display: block; clear: both; }
@media screen and (max-width: 780px) {
    .mm-mypage .mp-news-list a { flex-wrap: wrap; gap: 4px 10px; padding: 12px 2px; }
    .mm-mypage .mp-news-title { flex: 1 1 100%; order: 3; white-space: normal; }
    .mm-mypage .mp-news-list .material-icons { display: none; }
}

/* ── 同伴者登録リスト（member/accompany_list.php）: 白いカードに、1人ずつ枠で区切った行 2026-11-09 ── */
.mm-accompany .mm-acc-card { max-width: 860px; margin: 0 auto; padding: 32px 36px 32px; border-radius: 20px; background: #fff; border: 1px solid var(--mm-line); }
.mm-accompany .update-complete-label { margin: 0 0 20px; padding: 12px 16px; border: 0; border-left: 4px solid var(--mm-green); border-radius: 10px; background: var(--mm-green-pale); box-shadow: none; font-size: 14px; font-weight: 700; color: var(--mm-ink); }
.mm-acc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mm-acc-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--mm-ink); }
.mm-acc-lead { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--mm-muted); }
.mm-acc-add {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px;
    border: 1px solid var(--mm-green); border-radius: 999px; background: #fff; color: var(--mm-green); font-size: 14px; font-weight: 800; cursor: pointer; transition: background .15s;
}
.mm-acc-add:hover { background: var(--mm-green-pale); }
.mm-acc-add .material-icons { font-size: 20px; }
.mm-acc-list #inputContainer { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.mm-acc-item { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 14px 18px; border: 1px solid var(--mm-line); border-radius: 14px; background: #fff; }
.mm-acc-item .accompany-form { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.mm-acc-fields { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 12px; }
.mm-acc-f { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; }
.mm-acc-f > span { font-size: 12px; font-weight: 800; color: var(--mm-muted); }
.mm-acc-f em { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--mm-blue); color: #fff; font-size: 10px; font-style: normal; vertical-align: 1px; }
.mm-accompany .mm-acc-f input {
    width: 100%; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--mm-line); border-radius: 10px; background: #fff;
    font-size: 15px; color: var(--mm-ink); box-shadow: none;
}
.mm-accompany .mm-acc-f input:focus { outline: none; border-color: var(--mm-green); box-shadow: 0 0 0 3px rgba(55, 100, 57, .12); }
.mm-accompany .mm-acc-trc { margin: 12px 0 0; font-size: 13px; font-weight: 700; }
.mm-acc-del {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-top: 22px;
    border: 0; border-radius: 10px; background: transparent; color: #9aa59b; cursor: pointer; transition: background .15s, color .15s;
}
.mm-acc-del:hover { background: #fdecea; color: #c0392b; }
.mm-acc-del .material-icons { font-size: 22px; }
.mm-acc-empty { margin: 0; padding: 28px 16px; border: 1px dashed var(--mm-line); border-radius: 14px; text-align: center; font-size: 14px; color: var(--mm-muted); }
.mm-acc-list:has(.mm-acc-item) .mm-acc-empty { display: none; }
.mm-acc-note { margin: 14px 0 0; font-size: 12px; color: var(--mm-muted); }
.mm-accompany .mm-acc-submit { margin-top: 20px; }
@media screen and (max-width: 780px) {
    .mm-accompany .mm-acc-card { padding: 8px 0 0; border: 0; border-radius: 0; background: transparent; }
    .mm-acc-head { flex-direction: column; align-items: stretch; }
    .mm-acc-add { justify-content: center; }
    .mm-acc-fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .mm-acc-item { padding: 14px 12px 12px 14px; }
    .mm-acc-del { position: absolute; top: 8px; right: 8px; margin: 0; }
    .mm-acc-item .accompany-form { padding-right: 34px; }
}
.mm-msg .mm-done .mm-done-text--center { text-align: center; margin-bottom: 24px; }
.mm-msg .mm-done .mm-done-btns { max-width: 360px; margin: 0 auto; }
.mm-msg .mm-done .mm-done-btns .mm-btn-primary { min-width: 0; }
/* スマホ: カードをやめた画面（メッセージ系・登録の入力/確認）は、文字が画面の端に付かないよう左右に余白を取る 2026-11-09 */
@media screen and (max-width: 780px) {
    .mm-msg .container > .row > .col-md-8,
    .mm-msg.mm-form .container > .row > .col-md-10 { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ── エラー画面（common/error_page.php）: 完了画面と同じ形で、アイコンと内容の箱を赤系に 2026-11-09 ── */
.mm-msg .mm-error .mm-done-ico { background: #fdecea; color: #c0392b; }
.mm-msg .mm-error-box { max-width: 420px; margin: 4px auto 24px; padding: 14px 16px; border-radius: 12px; background: #fdf2f1; text-align: left; }
.mm-msg .mm-error-box p { margin: 0; font-size: 14px; line-height: 1.8; color: #a1301f; }
.mm-msg .mm-error-box p + p { margin-top: 6px; }
.mm-msg .mm-error-box a { color: #a1301f; font-weight: 700; text-decoration: underline; }

/* ── マイページ・予約履歴の予約1件の行: 余白は外側（行）で決める。中の ml-4 / mb-3 はやめた 2026-11-09 ── */
.mm-mypage table.table-news td:has(> .mp-rsv-row) { padding: 18px 20px; }
.mp-rsv-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.mp-rsv-left { flex: 1 1 auto; min-width: 0; width: auto !important; margin: 0; }
.mp-rsv-right { flex: 0 0 auto; width: 220px !important; margin: 0; }
.mp-rsv-right .golf-club-picture-mypage { width: 100%; }
@media screen and (max-width: 780px) {
    .mm-mypage table.table-news td:has(> .mp-rsv-row) { padding: 16px 0; }
    .mp-rsv-row { flex-direction: column; gap: 12px; }
    .mp-rsv-left, .mp-rsv-right { width: 100% !important; }
}
.mp-rsv-right .golf-club-picture-mypage { margin: 0; }
@media screen and (max-width: 780px) { .mp-rsv-right .golf-club-picture-mypage { height: 160px; } }
.mp-rsv-left .search-box-name { word-break: normal; overflow-wrap: anywhere; }
.mm-mypage .review-area { margin: 16px 0 0; border-radius: 14px; background: #f5f7f4; } /* 予約の行と左右の端をそろえる（中の margin:5px をやめる） */
/* 右の列: チャット・お支払いボタンは写真と同じ幅で左右の端をそろえ、「確認・変更する」「キャンセルする」などは横並びに 2026-11-09 */
.mp-rsv-right { width: 240px !important; }
.mp-rsv-right > .flex.mt-2 { margin-top: 0 !important; }
.mp-rsv-right > .flex.mt-2 > a { display: block; width: 100%; }
.mp-rsv-right > .flex.mt-2 > a > div { margin: 10px 0 0 !important; }
.mp-rsv-right .jitsi-call { border-radius: 10px; }
.mp-rsv-right > .text-right { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 14px; margin-top: 10px; }
.mp-rsv-right > .text-right form { margin: 0; }
.mp-rsv-right > .text-right button { padding: 0 !important; font-size: 13px !important; }
.mp-rsv-right > .text-right a { font-size: 13px; }
@media screen and (max-width: 780px) {
    .mp-rsv-right { width: 100% !important; }
}
.mp-rsv-right > form { display: inline-block !important; margin: 10px 0 0 10px; } .mp-rsv-right > form button { font-size: 13px; padding: 0; }
