/*
	Custom CSS
	Please make sure your CSS rules are 
	more particular / have higher priority
	then other page styles
*/
 #events h3   {
	/* add your css rule here */
}


 #events p.duration, #events div.duration   {
	/* add your css rule here */
}


 #events p.description, #events div.description   {
	/* add your css rule here */
}


 #events .selectedEvent   {
	/* add your css rule here */
}


 #events input.reserve_time_btn   {
	/* add your css rule here */
}


 #events input.select_another_btn   {
	/* add your css rule here */
}


 #eventForm #start_date-block-container h3, #eventForm #timeline-container h3   {
	/* add your css rule here */
}


 #eventForm #save_button   {
	/* add your css rule here */
}


 div.ui-widget-content   {
	/* add your css rule here */
}


 div.ui-widget-header   {
	/* add your css rule here */
}


 #timeline-container table.timeline   {
	/* add your css rule here */
}


 .timeline td.not_worked_time   {
	/* add your css rule here */
}


 .timeline td.free_time   {
	/* add your css rule here */
}


 .timeline td.selected_time   {
	/* add your css rule here */
}


 .timeline td.reserved_time   {
	/* add your css rule here */
}


 div#loading   {
	/* add your css rule here */
}

/* プロモーション用チェックボックスを非表示にする */
.promotions-letter-flag, 
#client-marketing-consent, 
.marketing-consent-wrapper,
div[class*="marketing-consent"] {
    display: none !important;
}


 #start_date-block-container .zend_form dt, start_date-block-container .zend_form dt b, start_date-block-container .zend_form dd label   {
	/* add your css rule here */
}

/* フッターの「SimplyBook.me」クレジットを強力に非表示にする */
footer,
.footer,
#footer,
.copyright,
.sb-footer,
.bottom-footer,
div:has(> a[href*="simplybook.me"]) {
    display: none !important;
}


/* 予約サイト内のすべてのボタンの角を少し丸める */
.btn, .btn-primary, button, input[type="button"], input[type="submit"] {
    border-radius: 6px !important;
}

/* プルダウンメニュー（選択式）を視覚的に分かりやすくする */
.custom-form select,
.sb-custom-field select,
select {
    border: 1px solid #cccccc !important; /* 四角い枠線をつける */
    border-radius: 6px !important; /* 角を丸くする */
    background-color: #fdfdfd !important; /* ほんの少し色をつけて入力欄を強調 */
    padding: 12px 35px 12px 15px !important; /* 矢印と文字が被らないように余白調整 */
    margin-bottom: 15px !important;
    width: 100% !important;
    cursor: pointer !important;
    color: #333333 !important;
    
    /* 🔽 右端に下向き矢印を強制表示させる */
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23555555" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
}

/* 選択した時に枠線の色を少し濃くする */
.custom-form select:focus {
    border-color: #777777 !important;
    outline: none !important;
}

/* --------------------------------------------------- */
/* 1. カテゴリーページ：LINE案内を「一番下」に強制表示 */
/* --------------------------------------------------- */
.category-step.step-content.content-mode-list {
    display: flex;
    flex-direction: column;
}
.category-step.step-content.content-mode-list::after {
    content: "📸 出張撮影・メイク＆ヘアセットのご相談\A LINEのDMにて受付しております\A 公式LINE@qnne";
    white-space: pre;
    display: block;
    text-align: center;
    padding: 16px 20px;
    margin: 20px 10px 0px 10px;
    background: #FFF5F3;
    border-radius: 12px;
    color: #8B5E52;
    font-size: 13px;
    line-height: 2.0;
    border: 1px solid #f0d5cc;
    order: 99; /* 要素の順番を強制的に一番最後（下）にする魔法のコードです */
}

/* --------------------------------------------------- */
/* 2. オプションページのみ：案内テキストを表示 */
/* --------------------------------------------------- */
/* ステップナビゲーションの3番目（オプション）がアクティブな時だけ、コンテンツの上部に表示します */
body:has(#steps-nav li.step_info_item:nth-child(3).active) #sb_booking_content::before {
    content: "オプションでプロorセルフ追加、レタッチ、時間延長、人数追加(セルフ)、ペット撮影が選べます！";
    display: block;
    text-align: left; /* ここを center から left に変更しました */
    padding: 12px 16px; /* 左寄せにした時のバランスを取るために少し余白を調整 */
    margin-bottom: 20px;
    background: #FFF5F3;
    border-radius: 8px;
    color: #8B5E52;
    font-size: 13px;
    line-height: 1.5; /* 行間を少し開けて読みやすくしました */
    border: 1px solid #f0d5cc;
}

/* --------------------------------------------------- */
/* スマホ画面での横揺れ（横スクロール）を強制的に防止する */
/* --------------------------------------------------- */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* サブスクリプション通知ブロックを完全に非表示にする */
#push-subscribe-region {
    display: none !important;
}

/* QnNe tracking fields: hide Google Ads click ID intake fields */
#sb_additional_fields .form-group[data-field="7c78ec32a9f4fd0d105e3cda18ed71ad"],
#sb_additional_fields .form-group[data-field="d97addc73520a84d8644ac915ae4ed26"],
#sb_additional_fields .form-group[data-field="35bc796c9ac097204de7b8a020fc9624"] {
  display: none !important;
  visibility: hidden !important;
}

/* Fallback: hide the inputs directly if the wrapper structure changes */
input[name="7c78ec32a9f4fd0d105e3cda18ed71ad"],
input[id="7c78ec32a9f4fd0d105e3cda18ed71ad"],
input[name="d97addc73520a84d8644ac915ae4ed26"],
input[id="d97addc73520a84d8644ac915ae4ed26"],
input[name="35bc796c9ac097204de7b8a020fc9624"],
input[id="35bc796c9ac097204de7b8a020fc9624"] {
  display: none !important;
  visibility: hidden !important;
}

/* QnNe reserve.qnne.jp: customer form select text clipping fix */
#sb_booking_content #details .custom-form select.form-control,
#sb_booking_content #details .sb-custom-field select,
#sb_booking_content #details select {
  min-height: 44px !important;
  height: auto !important;
  line-height: 1.4 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  white-space: normal !important;
  overflow: visible !important;
}


#sb_dialog:has(#booking-result-popup){display:none !important;}
body:has(#sb_dialog #booking-result-popup) .modal-backdrop{display:none !important;}
body.modal-open:has(#sb_dialog #booking-result-popup){overflow:auto !important;}


#main:has(.invoice-return) #main-buttons{display:none !important;}

/* ===== 確認画面・完了画面の整理（T-445 2026-11-10 v2） ===== */
/* 共通：上の写真・請求書の事務的な行・数量と料金/税金の列を隠し、予約内容を読みやすく */
#main:has(.invoice-pay) #main-buttons,
#main:has(.invoice-return) #main-buttons{display:none !important;}
.invoice-pay .to-invoices-list,.invoice-return .to-invoices-list,
.invoice-pay .invoice-info,.invoice-return .invoice-info,
.invoice-pay .invoice-table thead,.invoice-return .invoice-table thead,
.invoice-pay .invoice-table .inv-cell-price,.invoice-return .invoice-table .inv-cell-price,
.invoice-pay .invoice-table .inv-cell-tax,.invoice-return .invoice-table .inv-cell-tax,
.invoice-pay .inv-cell-info-content .p--qty,.invoice-return .inv-cell-info-content .p--qty{display:none !important;}
.invoice-pay .table-responsive,.invoice-return .table-responsive{overflow:visible !important;border:0 !important;margin:0 !important;}
.invoice-pay .invoice-table,.invoice-return .invoice-table{display:block !important;width:100% !important;border:0 !important;margin:0 !important;}
.invoice-pay .invoice-table tbody,.invoice-return .invoice-table tbody,
.invoice-pay .invoice-table tr,.invoice-return .invoice-table tr{display:block !important;width:100% !important;border:0 !important;}
.invoice-pay .invoice-table tr + tr,.invoice-return .invoice-table tr + tr{border-top:1px solid #e6dcd7 !important;margin-top:8px !important;padding-top:8px !important;}
.invoice-pay .invoice-table td,.invoice-return .invoice-table td{display:block !important;width:auto !important;border:0 !important;padding:0 !important;white-space:normal !important;font-size:16px !important;font-weight:700 !important;line-height:1.7 !important;color:#403733 !important;text-align:left !important;}
.invoice-pay .invoice-table td.inv-cell-total,.invoice-return .invoice-table td.inv-cell-total{text-align:right !important;font-size:15px !important;}
.invoice-pay .inv-cell-info-content,.invoice-return .inv-cell-info-content{display:block !important;}
.invoice-pay .inv-cell-info-content .p,.invoice-return .inv-cell-info-content .p{margin:0 !important;}
.invoice-pay .inv-cell-info-content::after,.invoice-return .inv-cell-info-content::after{content:"（ ）内は撮影日時と予約番号です";display:block;margin-top:4px;font-size:13px;font-weight:400;color:#6b5f59;line-height:1.6;}
/* 確認画面：見出しを折り返し、次にすることを1行足す */
.invoice-pay h4.title{white-space:normal !important;overflow:visible !important;text-overflow:clip !important;font-size:19px !important;font-weight:800 !important;line-height:1.5 !important;color:#403733 !important;text-align:center !important;margin:0 0 14px !important;padding:14px 10px !important;border:2px solid #cb8d75;border-radius:12px;background:#fdf4f0;}
.invoice-pay h4.title::after{content:"下のボタンを押すと予約が確定します";display:block;margin-top:4px;font-size:14px;font-weight:700;}
/* 完了画面：見出しと保存の案内（2行） */
.invoice-return #sb_invoice_container::before{content:"ご予約内容";display:block;font-size:14px;font-weight:700;color:#403733;letter-spacing:.1em;margin:0 0 8px;padding-bottom:6px;border-bottom:1px solid #e6dcd7;}
.invoice-return .invoice-pay-page-grid::before{content:"📸 この画面を保存してください\Aスクリーンショットがご予約の控えになります" !important;white-space:pre-line;display:block;width:100%;box-sizing:border-box;margin:0 0 16px;padding:12px 10px;border:2px solid #cb8d75;border-radius:12px;background:#fdf4f0;color:#403733;font-size:14px !important;font-weight:700;line-height:1.7;text-align:center;}
.invoice-return .invoice-pay-page-grid::first-line{font-size:17px;}

/* ===== 完了画面を見やすく（T-445 2026-11-10 v3・完了画面だけ） ===== */
/* 見出し：「ご予約は確定しました。」「お支払いは当日スタジオでお願いします。」を句点で2行に */
.invoice-return .notifications-pending{padding:8px 0 4px !important;margin-bottom:10px !important;}
.invoice-return .notifications-pending .message{font-size:18px !important;font-weight:800 !important;line-height:1.6 !important;color:#403733 !important;text-align:center !important;word-break:keep-all !important;overflow-wrap:anywhere !important;}
/* 予約内容のカード */
.invoice-return .right-block--section-pd{border:1px solid #e0d5cf !important;border-radius:14px !important;padding:18px 16px !important;background:#fff !important;box-shadow:0 2px 10px rgba(64,55,51,.08) !important;}
.invoice-return #sb_invoice_container::before{content:"ご予約内容" !important;display:block;font-size:16px !important;font-weight:800 !important;color:#403733;letter-spacing:.08em;margin:0 0 12px !important;padding:0 0 0 10px !important;border-bottom:0 !important;border-left:4px solid #cb8d75;line-height:1.3;}
.invoice-return .inv-cell-info-content::after{content:none !important;}
.invoice-return .invoice-table td{font-size:17px !important;line-height:1.65 !important;}
.invoice-return .invoice-table tbody tr:only-child td.inv-cell-total{display:none !important;}
.invoice-return .right-block--footer{margin-top:14px !important;padding-top:12px !important;border-top:1px solid #e6dcd7 !important;}
.invoice-return .invoice-amounts--total{display:flex !important;justify-content:space-between !important;align-items:baseline !important;margin:0 !important;font-size:15px !important;font-weight:700 !important;color:#403733 !important;}
.invoice-return .invoice-amounts--total .invoice-amount--value{font-size:22px !important;font-weight:800 !important;}
.invoice-return #sb_invoice_totals_container::after{content:"お支払いは当日スタジオで";display:block;text-align:right;font-size:12px;font-weight:400;color:#8a7d76;margin-top:2px;}
/* 保存の案内 */
.invoice-return .invoice-pay-page-grid::before{margin:0 0 14px !important;}
.invoice-return .invoice-buttons-container{margin-top:16px !important;}
/* 確認メールの案内（2026-11-10 Tate指示） */
.invoice-return .invoice-pay-page-grid_item.right-block::after{content:"✉️ 確認メールをお送りしました\A届かないときは迷惑メールフォルダもご確認ください";white-space:pre-line;display:block;box-sizing:border-box;margin:14px 0 0;padding:10px 8px;border-radius:10px;background:#f6f1ee;color:#403733;font-size:13px;font-weight:700;line-height:1.7;text-align:center;}

/* ===== 完了画面：折り返し・PCの幅・小さい文字の色（T-445 2026-11-10 v4・Codexレビュー反映） ===== */
.invoice-return .invoice-pay-page-grid,.invoice-return #sb_invoice_notification{max-width:48rem !important;margin-left:auto !important;margin-right:auto !important;}
.invoice-return .inv-cell-info-content p{overflow-wrap:anywhere !important;word-break:normal !important;}
.invoice-return .invoice-amounts--total{flex-wrap:wrap !important;gap:.2em .65em;}
.invoice-return .invoice-amounts--total .invoice-amount--value{margin-left:auto;white-space:nowrap;}
.invoice-return #sb_invoice_totals_container::after{color:#6b5f59 !important;}
/* 2026-11-10 T-445: スマホ幅の完了画面でメニューボタンが絵と重なるのを直す（ボタンを左上へ） */
@media (max-width:767px){body:has(.invoice-return) #header .nav-trigger{left:12px !important;top:12px !important;transform:none !important;}}
/* 2026-11-11 T-445: Tateの iPhone実機テストを受けた文言の直し3点 */
/* ① 確認画面：オプションの行には「（ ）内は撮影日時と予約番号です」を出さない（1行目のメニューにだけ出す） */
.invoice-pay .invoice-table tbody tr:not(:first-child) .inv-cell-info-content::after{content:none !important;}
/* ② 確認画面：押した後、完了画面まで数秒かかることを伝える */
.invoice-pay h4.title::after{content:"下のボタンを押すと予約が確定します\A完了画面に切り替わるまで数秒かかります\Aそのままお待ちください" !important;white-space:pre-line;}
/* ③ 完了画面：保存のお願い（2026-11-11 Tate指定の文。方法は書かない・PCは2行、スマホは3行で釣り合いよく） */
.invoice-return .invoice-pay-page-grid::before{content:"📸 この画面をスクリーンショットで保存してください。\Aご予約の控えになります。" !important;font-size:16px !important;line-height:1.8 !important;padding:16px 14px !important;}
.invoice-return .invoice-pay-page-grid::first-line{font-size:16px !important;}
@media (max-width:767px){.invoice-return .invoice-pay-page-grid::before{content:"📸 この画面をスクリーンショットで\A保存してください。\Aご予約の控えになります。" !important;}}
/* 2026-11-11 T-445 メニューボタンを消す: 確認画面・完了画面では左上のメニュー（ホーム・レビュー等へ移るボタン）を出さない（Tate指示） */
body:has(.invoice-pay) #header .nav-trigger,body:has(.invoice-return) #header .nav-trigger{display:none !important;}
