/* Custom UI for Search Page Refactor */


/* Panel Layout */
.searchCondPanel {
  background: #F7F6F4;
  /* Light background for the panel area */
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  border: none !important;
  width: 835px !important;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Noto Sans', sans-serif;
}

/* PC用のスタイル上書き */
@media print,
screen and (min-width: 768px) {
  #mainArea.shopSearch .searchCondPanel {
    background: #F7F6F4 !important;
    border: none !important;
  }
}

/* Row 1: Selectors */
.searchSelectorRow {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.searchSelectorItem {
  width: 32%;
  /* 3 columns */
  display: flex;
  flex-direction: column;
}

.selectorLabel {
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 19px !important;
  margin-bottom: 5px !important;
  color: #666666 !important;
}

.selectorBtn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  text-align: center;
  /* アイコン中央寄せ */
  cursor: pointer;
  display: flex !important;
  justify-content: center;
  /* アイコン中央寄せ */
  align-items: center;
  gap: 0;
  /* アイコンのみなのでgap不要 */

  /* 絶対配置で右端固定(27px), 13px四方 */
  position: absolute;
  right: 27px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px !important;
  height: 13px !important;
  min-height: auto;
}

.selectorBtn:hover {
  background: #f9f9f9;
}

.selectorBtn:disabled {
  background: #e6e6e6;
  color: #999;
  cursor: not-allowed;
  border-color: #ddd;
}

.selectorBtn .plusIcon {
  color: #EF6D00;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
}

.annotation {
  font-size: 14px !important;
  line-height: 19px !important;
  display: flex !important;
  align-items: center !important;
  color: #666666 !important;
  margin-top: 5px !important;
}

.selectorLabel .annotation,
.modalTitle .annotation {
  display: inline !important;
  font-weight: 500 !important;
}

.annotation-spaced {
  margin-left: 8px;
}

.modalTitle .annotation-spaced {
  font-size: inherit !important;
}

.selectorTagsContainer {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px 46px 12px 27px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  position: relative;
}

.selectedTag {
  display: inline-block;
  background: #EBE9E5;
  border-radius: 10px;
  /* 角丸を強化 */
  padding: 2px 8px;
  /* パディング縮小 */
  font-size: 14px;
  color: #333;
  cursor: default;
}

.selectedTags {
  display: contents;
  /* Flexコンテナ直下のアイテムとして扱うため */
}

/* placeholderText PC */
.placeholderText {
  width: 180px;
}

/* Row 2: Keyword & Map */
.searchKeywordRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  gap: 32px;
}

.keywordInputArea {
  flex-grow: 1;
}

.keywordInput {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 20px;
  width: 546px;
  height: 43px;
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.1));
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.mapBtnArea {
  width: 300px;
  /* Fixed width for Map Button */
}

.mapLinkBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background: #fff;
  border: 2px solid #EF6D00;
  color: #EF6D00;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.mapLinkBtn:hover {
  background: #EF6D00;
  color: #fff;
}

.mapLinkBtn .mapIcon {
  margin-right: 8px;
  height: 20px;
  width: auto;
}

/* Row 3: Actions */
.searchActionRow {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.searchActionRow button {
  min-width: 200px;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  font-size: 16px;
  height: 50px;
}

.searchActionRow .resetBtn {
  background: #666;
  color: #fff;
  order: 1;
  /* Ensure order if needed */
}

.searchActionRow .submitBtn {
  background: #EF6D00;
  color: #fff;
  order: 2;
}

.searchActionRow .resetBtn:hover {
  background: #555;
  opacity: 0.9;
}

.searchActionRow .submitBtn:hover {
  background: #d96200;
  opacity: 0.9;
}

/* Modal Styles */
.modalArea {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;
  max-width: 95%;
  bottom: auto !important;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  height: auto;
  overflow-y: auto;
  overflow-x: auto;
}

body.modal-open-lock {
  overflow: hidden;
}



#serviceModal,
#serviceModal .modalHeader,
#serviceModal .searchContent.inmodal,
#serviceModal .modalFooter,
#prefModal,
#prefModal .modalHeader,
#prefModal .searchContent.inmodal,
#prefModal .modalFooter {
  background: #FFFFFF !important;
}

#prefModal .prefScrollArea,
#cityModal .cityScrollArea,
#cityModal .prefArea,
#cityModal .pref {
  background: #FFFFFF !important;
  border: none !important;
}

/* PC用：都道府県・市区町村モーダルの区切り線 */
#prefModal .prefContent,
#cityModal .prefContent {
  background: #FFFFFF !important;
  border: none !important;
  border-bottom: 1px solid #D4CEC4 !important;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

#prefModal .prefContent:not(:first-child),
#cityModal .prefContent:not(:first-child) {
  padding-top: 20px;
}

#prefModal .prefContent:last-child,
#cityModal .prefContent:last-child {
  border-bottom: none !important;
  margin-bottom: 0;
  padding-bottom: 0;
}

#serviceModal .modalHeader,
#prefModal .modalHeader {
  border-bottom: none !important;
}

#serviceModal .modalFooter,
#prefModal .modalFooter {
  border-top: none !important;
}

.modalArea .searchContent.inmodal {
  padding: 0;
  height: auto;
  display: flex;
  flex-direction: column;
}

.modalHeader {
  padding: 15px 20px;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modalTitle {
  font-size: 18px !important;
  font-weight: bold !important;
  margin: 0 !important;
  line-height: 1 !important;
  color: #666666 !important;
}

.modalClose {
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modalClose img {
  width: 100%;
  height: auto;
}

.prefScrollArea,
.serviceScrollArea,
.cityScrollArea {
  padding: 15px 20px;
  overflow-y: auto;
  overflow-x: hidden !important;
  flex-grow: 1;
}

.modalFooter {
  padding: 10px 15px 80px;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modalFooter button {
  border-radius: 5px;
  cursor: pointer;
}

.modalFooter .submitBtn {
  background: #EF6D00;
  color: #fff;
  border: none;
}

.modalFooter .resetBtn {
  background: #fff;
  color: #666;
  border: 1px solid #ccc;
  min-width: auto;
  /* Override panel reset button width if shared class */
  height: auto;
}

/* PC用モーダルフッター内のsearchModalBtnスタイル上書き */
.modalFooter .searchModalBtn {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.modalFooter .searchModalBtn .resetBtn {
  width: 150px;
  height: 48px;
  background: #666;
  border: 1px solid #666;
  border-radius: 6px;
  font-size: 14px;
  color: #FFFFFF;
  cursor: pointer;
}

.modalFooter .searchModalBtn .submitBtn {
  width: 150px;
  height: 48px;
  background: #EF6D00;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.modalFooter .searchModalBtn .submitBtn img {
  width: auto;
  height: auto;
}

/* Inline Checkbox Styles inside Modal */
.checkPlace {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 10px;
}

/* PC用：ヘルプリンクエリア */
.helpLinks {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* caseList内のPC用ヘルプリンク */
.caseList .helpLinks {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  margin-top: 0;
  margin-bottom: 40px;
}

.helpLinks .filterQuestionIcon {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

a.filterQuestionIcon:hover {
  opacity: 0.8;
}

.helpLinks .filterQuestionIcon span {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;
  text-decoration-line: underline;
  color: #666666;
}

.helpLinks .filterHelpIcon {
  width: 16px;
  height: 16px;
}

/* PC/SP表示切り替え */
.spOnly {
  display: none !important;
}

.pcOnly {
  display: block;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
  .spOnly {
    display: block !important;
  }

  .serviceScrollArea {
    padding-left: 0;
    padding-right: 0;
  }

  /* SP用固定ボタンエリアはデフォルト非表示、モーダル表示時のみ表示 */
  .searchModalBtnArea.spOnly {
    display: none !important;
  }

  .searchModalBtnArea.spOnly.active {
    display: block !important;
  }

  .pcOnly {
    display: none !important;
  }


  /* SP用：モーダル内フッターを非表示（固定ボタンエリアを使用） */
  .modalArea .modalFooter {
    display: none !important;
  }

  /* SP用：都道府県・市区町村モーダルの区切り線 */
  #prefModal .prefContent,
  #cityModal .prefContent {
    border-bottom: 1px solid #D4CEC4 !important;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  #prefModal .prefContent:not(:first-child) .area,
  #cityModal .prefContent:not(:first-child) .area {
    padding-top: 20px !important;
  }

  #prefModal .prefContent:last-child,
  #cityModal .prefContent:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* SP用：ヘルプリンクエリア（caseList内） */
  .caseList .helpLinks {
    display: flex !important;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 0;
    margin-right: 16px;
    margin-bottom: 40px;
  }

  .helpLinks .filterQuestionIcon {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
  }

  .helpLinks .filterQuestionIcon span {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    display: flex;
    align-items: center;
    text-decoration-line: underline;
    color: #666666;
  }

  .helpLinks .filterHelpIcon {
    width: 16px;
    height: 16px;
  }

  /* SP用：検索条件パネル */
  .searchCondPanel {
    width: auto !important;
    background: #F7F6F4 !important;
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  /* SP用：タグコンテナ */
  .selectorTagsContainer {
    padding: 12px 54px 12px 27px !important;
  }

  /* SP用：placeholderText */
  .placeholderText {
    width: auto !important;
  }

  /* SP用：ボタンリセット */
  .selectorBtn {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    width: 13px !important;
    height: 13px !important;
    flex: none !important;
    /* Flex解除 */
    justify-content: center !important;
    text-align: center !important;
    position: absolute !important;
    right: 27px !important;
    top: 50% !important;
    transform: translateY(-50%);
  }

  .searchSelectorRow {
    flex-direction: column;
    gap: 28px;
  }

  .searchSelectorItem {
    width: 100%;
  }

  .selectorLabel {
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 22px !important;
    color: #666666 !important;
    margin-bottom: 8px !important;
  }



  .annotation-spaced {
    margin-left: 4px;
  }

  .selectorBtn {
    width: 100%;
    background: #fff;
    border: 1px solid #D4CEC4;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    height: auto;
    color: #666;
  }

  .selectorBtn:disabled {
    background: #EBE9E5;
    color: #999;
    border-color: #D4CEC4;
  }

  .annotation {
    font-size: 11px !important;
    color: #666 !important;
    margin-top: 8px !important;
  }

  /* SP: 都道府県モーダル 2列レイアウト（モーダル内のみ） */
  .prefContent.inmodal .prefArea {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 5px;
  }

  .prefContent.inmodal .pref {
    width: calc(50% - 5px) !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  .prefContent.inmodal .pref .checkbox2 {
    width: 100%;
    display: block;
    padding: 0 5px;
  }

  .prefContent.inmodal .pref .checkbox2 {
    width: 100%;
    display: block;
    text-align: center;
    box-sizing: border-box;
  }

  #mainArea.shopSearch .prefContent.inmodal .prefArea .pref label {
    width: 35vw !important;
    height: 13vw !important;
    line-height: 13vw !important;
    touch-action: manipulation;
  }

  /* SP: モーダル幅・位置調整（ユーザー指定） */
  .modalArea {
    width: 90% !important;
    max-width: 90% !important;
    top: 42% !important;
    left: 46% !important;
    max-height: 73vh !important;
    overflow-x: hidden !important;
    /* 横スクロール防止 */
  }

  .searchKeywordRow {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 0;
    margin-top: 28px;
    order: 1;
    /* キーワード入力を最初に */
  }

  .keywordInputArea {
    width: 100%;
    order: 1;
  }

  .keywordInput {
    width: 100%;
  }

  .mapBtnArea {
    width: 100%;
    margin-top: 40px;
  }

  .mapLinkBtn {
    width: 100%;
    height: 48px;
    border: 2px solid #EF6D00;
    border-radius: 6px;
    background: #fff;
    color: #EF6D00;
    font-weight: bold;
    font-size: 14px;
  }

  .searchActionRow {
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    margin-top: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #D4CEC4;
  }

  .searchActionRow button {
    width: 43.26vw;
    /* 170px / 393px */
    min-width: auto;
    height: 48px;
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .searchActionRow .resetBtn {
    background: #666;
    color: #FFFFFF;
    font-family: 'Arial', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .searchActionRow .submitBtn {
    background: #EF6D00;
    color: #FFFFFF;
    font-family: 'Arial', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* SP用：店舗カードヘッダー */
  .shopCardHeader {
    width: auto;
    padding: 10px 15px;
  }

  /* SP: 選択タグのスタイルをPCに合わせる */
  .selectedTag {
    background: #EBE9E5 !important;
    border: none !important;
    border-radius: 10px !important;
    color: #333 !important;
  }

  /* SP: モーダル内searchContentのpadding-bottomを解除 */
  #mainArea.shopSearch .searchContent.inmodal {
    padding-bottom: 0 !important;
  }

  /* SP: サービスモーダル内の見切れ防止 */
  #serviceModal .serviceScrollArea {
    padding-top: 0 !important;
    /* modalHeader追加後は不要 */
  }

  /* SP: モーダルヘッダーのタイトルと閉じるボタンを同じ高さに（shop_search.cssの絶対配置をリセット） */
  .modalHeader {
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px !important;
    width: auto !important;
    background: #fff !important;
  }

  .modalTitle {
    position: static !important;
    width: auto !important;
    background: transparent !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 24px !important;
  }

  .modalClose {
    position: static !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modalClose img {
    width: 100% !important;
    height: auto !important;
  }

  /* SP: prefContentのpadding-topを0に（モーダル内のみ） */
  #mainArea.shopSearch .prefContent.inmodal {
    padding-top: 0 !important;
  }

  /* SP: 検索結果画面のみ prefContent の padding-top を 0 に */
  .searchCondPanel .prefContent {
    padding-top: 0 !important;
  }

  /* SP: shopHeadContentに上マージン */
  .shopHeadContent {
    margin-top: 13px !important;
  }
}

/* Overlay */
#modal-bg {
  display: none;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

/* 検索結果リストのスタイル */
.caseList._sub {
  border-top: 1px solid rgb(212, 206, 196) !important;
  padding-top: 30px;
}

/* オレンジのボーダーを削除 */
#mainArea.shopSearch>article {
  border-top: none !important;
}

/* shopHeadContentに上マージン（PC/SP共通） */
.shopHeadContent {
  margin-top: 13px !important;
}

/* 親ボタンが非活性時（.disable-color）は電卓アイコンのオレンジ色を無効化 */
.disable-color .calculator-icon {
  background: transparent;
  border-color: transparent;
}

/* 店舗カードヘッダー */
.shopCardHeader {
  background: #FFFFFF;
  border-bottom: 1px solid #D4CEC4;
  padding-top: 10px;
  padding-bottom: 14px;
}

.shopCardHeaderLink {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.shopCardHeader .shopName {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  margin: 0;
  font-weight: 600;
  /* 2行を超える場合は省略記号で省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shopCardArrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #EF6D00;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 10px;
}

.shopCardArrow img {
  width: 8px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* ----------------------------------------------------
   Consolidated Styles from index.blade.php
---------------------------------------------------- */

/* タグのスタイル微調整 */
.selectedTag {
  white-space: nowrap;
}

/* プレースホルダーテキスト */
.placeholderText {
  color: #999;
  font-size: 14px;
  user-select: none;
  flex: 1;
  /* 余白を埋める（クリッカブルでない領域として） */
  cursor: default;
}

/* プラスアイコン（詳細スタイル） */
/* プラスアイコン（詳細スタイル） */
.selectorBtn .plusIcon {
  display: inline-block;
  position: relative;
  width: 13px;
  height: 13px;
}

.selectorBtn .plusIcon::before,
.selectorBtn .plusIcon::after {
  content: '';
  position: absolute;
  background: #f58220;
  border-radius: 1.5px;
}

/* 横線 */
.selectorBtn .plusIcon::before {
  width: 100%;
  height: 3px;
  top: 5px;
  /* (13-3)/2 = 5px */
  left: 0;
  transform: none;
}

/* 縦線 */
.selectorBtn .plusIcon::after {
  width: 3px;
  height: 100%;
  left: 5px;
  /* (13-3)/2 = 5px */
  top: 0;
  transform: none;
}

/* 非活性時のスタイル */
.selectorTagsContainer.disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.selectorTagsContainer.disabled .selectorBtn {
  cursor: not-allowed;
  background: transparent !important;
  border: none !important;
}



/* 汎用クラス */
.disable-color {
  background-color: #EBE9E5 !important;
}

.pointer-none {
  pointer-events: none !important;
}

/* 店舗一覧のcalculator-iconのスタイルを上書き */
.shopLinks .calculator-icon {
  background: transparent !important;
  border: none !important;
}

/* モーダル背景色・ボーダー修正 */
#cityModal .searchContent.inmodal,
#serviceModal .searchContent.inmodal,
#prefModal .searchContent.inmodal,
#cityModal .modalHeader,
#serviceModal .modalHeader,
#prefModal .modalHeader,
#cityModal .modalFooter,
#serviceModal .modalFooter,
#prefModal .modalFooter,
#cityModal .cityScrollArea,
#serviceModal .serviceScrollArea {
  background-color: #FFFFFF !important;
}

#cityModal .modalHeader,
#serviceModal .modalHeader,
#prefModal .modalHeader,
#cityModal .modalFooter,
#serviceModal .modalFooter,
#prefModal .modalFooter {
  border: none !important;
}

/* 最後の都道府県グループの区切り線を削除 */
.prefCityGroup:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* PCのみ: mapAreaの上部に余白を追加 */
@media screen and (min-width: 768px) {
  .caseWrap.mapArea {
    padding-top: 70px;
  }
}

/* PCのみ: modalTitleのpaddingをリセット */
@media print,
screen and (min-width: 768px) {
  .modalTitle {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #mainArea.shopSearch .searchContent.inmodal {
    padding-bottom: 0 !important;
  }
}

/* 市区町村モーダルの長い名前対応 */
#mainArea #cityModal .prefArea {
  display: flex !important;
  flex-wrap: wrap !important;
}

#mainArea #cityModal .pref {
  width: auto !important;
  margin-right: 10px !important;
  margin-bottom: 10px !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
}

#mainArea #cityModal .pref label {
  white-space: nowrap !important;
  width: auto !important;
  display: inline-block !important;
  padding: 0 10px !important;
  min-width: 103px !important;
}

@media screen and (max-width: 768px) {
  #mainArea #cityModal .pref label {
    min-width: 27vw !important;
  }
}

.clickable-card {
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.clickable-card:hover,
.clickable-card:active {
  background-color: rgba(247, 246, 244, 0.5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.clickable-card a,
.clickable-card button,
.clickable-card input {
  cursor: pointer;
}

@media print,
screen and (min-width: 768px) {


  .searchModalBtn .resetBtn,
  .searchModalBtn .submitBtn {
    margin-top: 0 !important;
  }

  #serviceModal.serviceFilterModal {
    width: 900px;
    max-width: 900px;
    padding: 0;
  }

  #serviceModal .serviceFilterTitle {
    color: #333 !important;
  }

  #serviceModal .serviceFilterClose {
    position: static;
    top: auto;
  }

  #serviceModal .serviceScrollArea {
    padding: 0;
  }

  #serviceModal .topFilterTitle {
    margin-top: 15px !important;
  }

  #serviceModal .serviceScrollArea>div:last-child .meisterFlex {
    margin-bottom: 0;
  }
}

#serviceModal.serviceFilterModal {
  background-color: #FFFFFF;
}

#serviceModal .serviceFilterInmodal {
  background-color: #FFFFFF !important;
  padding: 0 !important;
}

#serviceModal .serviceFilterNames {
  width: 80%;
  margin: auto;
}

#serviceModal .serviceFilterTitle {
  font-size: 1.125rem;
  margin: 0 0 28px 0;
  font-weight: bold !important;
  color: #333;
}

#serviceModal .serviceName {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

#serviceModal .serviceName label {
  font-size: 1rem;
  display: flex;
  width: 30%;
  margin-bottom: 30px;
  color: #333;
  cursor: pointer;
}

#serviceModal input[type="checkbox"].serviceFilterName {
  display: inline-block !important;
  accent-color: #EF6D00;
  height: 20px;
  width: 20px;
  margin: 0 10px 0 0;
}

#serviceModal .meisterFlex {
  justify-content: flex-start;
}

#serviceModal .meisterFlex label {
  margin-right: 40px;
  align-items: center;
}


#serviceModal .estimateSimulation {
  width: 80%;
}

#serviceModal .filterQuestionIcon {
  display: flex;
  align-items: center;
  gap: 10px;
}

#serviceModal .filterHelpIcon {
  margin-top: 4px;
  vertical-align: top;
  margin-bottom: 28px;
}

/* SP用サービスモーダル（検索結果画面のみ） */
@media screen and (max-width: 767px) {
  #serviceModal .serviceFilterNames {
    width: 90%;
  }

  #serviceModal .serviceName label {
    width: 48%;
    font-size: 1rem;
  }

  #serviceModal .serviceFilterTitle {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #333 !important;
  }

  /* SP用: 自動見積・マイスター・CSプロの画像ボタンレイアウト */
  #serviceModal .meisterWrapper {
    width: 100% !important;
  }

  #serviceModal .serviceName.simulateFlex {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px;
    width: 100% !important;
  }

  #serviceModal .serviceName.meisterFlex {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0;
    width: 100% !important;
  }

  #serviceModal .serviceName.simulateFlex label,
  #serviceModal .serviceName.meisterFlex label {
    width: auto !important;
    margin-bottom: 0;
    margin-right: 10px;
  }

  #serviceModal .meisterWrapper .filterMeisterImg {
    width: 83%;
    height: auto;
  }

  #serviceModal .estimateSimulation {
    width: 40%;
  }
}
