/* ============================================================
   modal.css
   両モード（一般・店内）で共通して使用するフォント・モーダルスタイル
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Roboto:wght@400;700&display=swap');

/* ===== セーフサーチモーダル ===== */
.safesearch-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.4);
}
.safesearch-modal.is-open { display: flex; }

#safesearch-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
#safesearch-modal .safesearch-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  width: 600px;
  width: min(600px, calc(100vw - 32px));
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  z-index: 2;
}
.safesearch-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1c2430;
  text-align: center;
  margin-bottom: 16px;
}
.safesearch-modal-body {
  font-size: 14px;
  font-weight: 400;
  color: #536173;
  text-align: center;
  line-height: 1.6;
}
.safesearch-modal-close {
  background-color: #dce2ea;
  color: #2d548a;
  border: none;
  border-radius: 9999px;
  width: 100%;
  text-align: center;
  height: 56px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}
.safesearch-modal-close:hover { opacity: 0.8; }
/* ===== 検索絞り込みボタン（PC） ===== */
.search-filter-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #5198fa;
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.search-filter-btn:hover { opacity: 0.8; }
.filter-plus {
  display: inline-block;
  width: 10px;
  height: 10px;
  position: relative;
  flex-shrink: 0;
}
.filter-plus::before {
  content: '';
  position: absolute;
  top: 4.5px;
  left: 0;
  width: 10px;
  height: 1px;
  background-color: #ffffff;
  border-radius: 2px;
}
.filter-plus::after {
  content: '';
  position: absolute;
  top: 0;
  left: 4.5px;
  width: 1px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 2px;
}

/* ===== 条件を絞り込むモーダル ===== */
.nm-filter-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.56);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nm-filter-modal.is-open { display: flex; }
.nm-filter-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  max-height: calc(100vh - 80px);
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.28);
  overflow: hidden;
}
.nm-filter-header {
  height: 80px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #dde1e6;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 40px;
  box-sizing: border-box;
}
.nm-filter-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 700;
  color: #203D64;
  white-space: nowrap;
}
.nm-filter-back {
  position: absolute;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nm-filter-back:hover { opacity: 0.8; }
.nm-back-arrow {
  width: 10px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}
.nm-back-arrow::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 1px;
  width: 8px;
  height: 8px;
  border-left: 2px solid #5198fa;
  border-bottom: 2px solid #5198fa;
  transform: rotate(45deg);
}
.nm-back-text {
  font-size: 16px;
  font-weight: 500;
  color: #5198fa;
  letter-spacing: 0.48px;
  white-space: nowrap;
}
.nm-filter-header-search {
  position: absolute;
  right: 40px;
  background-color: #d97706;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 12px 32px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
}
.nm-filter-header-search:hover { opacity: 0.8; }
.nm-filter-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
  margin-right: 54px;
}
.page-search .nm-filter-body *::-webkit-scrollbar,
.page-search .nm-filter-body::-webkit-scrollbar {
  display: none;
}

.nm-filter-body-inner {
  width: 100%;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}
.nm-form-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}
.nm-form-row {
  display: flex;
  gap: 32px;
  align-items: center;
  min-width: 0;
}
.nm-form-label {
  width: 130px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 400;
  color: #1c2430;
  line-height: 1.4;
}
.nm-form-input {
  flex: 1;
  height: 64px;
  background-color: #f2f4f8;
  border: none;
  border-radius: 4px;
  padding: 0 16px;
  font-size: 18px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1c2430;
  box-sizing: border-box;
  min-width: 0;
}
.nm-form-input::placeholder { color: #878d96; font-weight: 400; }
.nm-form-input:focus { outline: none; }
.nm-form-input:hover { cursor: default; }
.nm-form-input--freeword {
  background-color: #ffffff;
  border: 1px solid #343a3f;
  font-weight: 700;
}
.nm-form-select-btn {
  flex: 1;
  height: 64px;
  background-color: #ffffff;
  border: 1px solid #A2A9B0;
  border-radius: 4px;
  padding: 0 16px;
  font-size: 18px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1c2430;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}
.nm-form-select-btn::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-right: 1px solid #203D64;
  border-top: 1px solid #203D64;
  transform: rotate(135deg);
  flex-shrink: 0;
}
.nm-form-select-btn:hover { opacity: 0.8; }
.nm-select-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 発行年月 */
.nm-date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-direction: row;
}
.nm-date-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nm-date-input {
  width: 160px;
  flex-shrink: 0;
  height: 64px;
  background-color: #f2f4f8;
  border: none;
  border-radius: 4px;
  padding: 0 16px;
  font-size: 18px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1c2430;
  box-sizing: border-box;
}
.nm-date-input:focus { outline: none; }
.nm-date-input:hover { cursor: default; }
.nm-date-unit {
  font-size: 18px;
  color: #1c2430;
  white-space: nowrap;
  flex-shrink: 0;
}
.nm-date-input--month {
  width: 120px;
}
.nm-date-sep {
  font-size: 18px;
  color: #1c2430;
  white-space: nowrap;
  flex-shrink: 0;
}
.nm-date-sep--hidden {
  display: none;
}
/* 価格帯 */
.nm-price-range {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.nm-price-field {
  display: flex;
  align-items: center;
  background-color: #f2f4f8;
  border-radius: 4px;
  height: 64px;
  padding: 0 16px;
  flex: 1;
  min-width: 0;
}
.nm-price-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: none;
  font-size: 18px;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: right;
  color: #1c2430;
  box-sizing: border-box;
}
.nm-price-input:focus { outline: none; }
.nm-price-input:hover { cursor: default; }
.nm-price-unit {
  font-size: 18px;
  color: #878d96;
  white-space: nowrap;
  flex-shrink: 0;
}
.nm-price-sep {
  font-size: 18px;
  color: #536173;
  white-space: nowrap;
  flex-shrink: 0;
}
/* チェックボックス行 */
.nm-check-row {
  display: flex;
  gap: 16px 32px;
  align-items: center;
  flex-wrap: wrap;
}
.nm-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
}
.nm-check-input { display: none; }
.nm-check-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid #c5cdd6;
  background-color: #ffffff;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}
.nm-check-input:checked + .nm-check-box {
  background-color: #2d548a;
  border-color: #2d548a;
}
.nm-check-input:checked + .nm-check-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 7px;
  height: 12px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}
.nm-check-label {
  font-size: 16px;
  color: #1c2430;
  white-space: nowrap;
}
/* フッター */
.nm-filter-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 40px 0 40px;
}
.nm-filter-footer-btn {
  width: 326px;
  height: 72px;
  background-color: #d97706;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
}
.nm-filter-footer-btn:hover { opacity: 0.8; }

/* ===== サブモーダル共通 ===== */
.nm-sub-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background-color: rgba(16, 24, 40, 0.66);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nm-sub-modal.is-open { display: flex; }
.nm-sub-panel {
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 80px);
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.28);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.nm-sub-header {
  height: 80px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #dde1e6;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 16px;
}
.nm-sub-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 700;
  color: #203D64;
  white-space: nowrap;
}
.nm-sub-cancel {
  position: absolute;
  left: 45px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nm-sub-cancel:hover { opacity: 0.8; }
.nm-sub-cancel-arrow {
  width: 10px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}
.nm-sub-cancel-arrow::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 1px;
  width: 8px;
  height: 8px;
  border-left: 2px solid #5198fa;
  border-bottom: 2px solid #5198fa;
  transform: rotate(45deg);
}
.nm-sub-cancel-text {
  font-size: 16px;
  font-weight: 500;
  color: #5198fa;
  letter-spacing: 0.48px;
  white-space: nowrap;
}
.nm-sub-decide {
  position: absolute;
  right: 40px;
  background-color: #d97706;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 12px 32px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
}
.nm-sub-decide:hover { opacity: 0.8; }
.nm-sub-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  padding: 60px 96px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}
.nm-radio-columns {
  display: flex;
  gap: 0;
}
.nm-radio-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 334px;
}
.nm-radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
}
.nm-radio-item:hover { opacity: 0.8; }
.nm-radio-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #A2A9B0;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}
.nm-radio-item.is-selected .nm-radio-circle {
  border-color: #2d548a;
  background-color: #2d548a;
}
.nm-radio-item.is-selected .nm-radio-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ffffff;
}
.nm-radio-label {
  font-size: 16px;
  color: #1c2430;
  line-height: 24px;
}

/* フィルターボディ切替 */
.nm-filter-body { display: none; }
.nm-filter-body.is-active { display: flex; }

/* SP-only要素はデフォルトで非表示 */
.sp-filter-wrap { display: none; }
.nm-sp-cancel { display: none; }
.nm-sub-sp-footer { display: none; }

/* ===== SP レスポンシブ (max-width: 1023px) ===== */
@media (max-width: 1023px) {
  /* PC絞り込みボタン非表示 */
  .search-filter-btn { display: none; }
  /* SP絞り込みボタン表示 */
  .sp-filter-wrap {
    display: flex;
    justify-content: center;
    padding: 0 16px;
    margin-top: 40px;
  }
  .sp-filter-btn {
    width: 100%;
    max-width: 326px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
    border: 1px solid #2d548a;
    border-radius: 9999px;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #2d548a;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
  }
  .sp-filter-btn:hover { opacity: 0.8; }
  .sp-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background-color: #5198fa;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    flex-shrink: 0;
    line-height: 1;
  }
  .sp-filter-btn::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 11px;
    height: 11px;
    border-right: 1px solid #2d548a;
    border-top: 1px solid #2d548a;
    transform: translateY(-50%) rotate(45deg);
  }
  .sp-filter-icon {
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
  }
  .sp-filter-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 1px;
    transform: translateY(-50%);
    width: 14px;
    height: 2px;
    background-color: #2d548a;
    border-radius: 2px;
    box-shadow: 0 -5px 0 #2d548a, 0 5px 0 #2d548a;
  }
  .sp-filter-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #2d548a;
    border-radius: 9999px;
    box-shadow: 4px -5px 0 #2d548a, -4px 5px 0 #2d548a;
  }
  /* ===== モーダル SP (ボトムシート) ===== */
  .nm-filter-modal {
    align-items: center;
    justify-content: center;
    padding: 40px 22px 72px;
    box-sizing: border-box;
    background-color: rgba(16, 24, 40, 0.66);
  }
  .nm-filter-panel {
    width: 100%;
    max-height: 100%;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 20px 48px rgba(17, 24, 39, 0.28);
    overflow: hidden;
    height: auto;
  }
  .nm-sub-modal {
    align-items: center;
    justify-content: center;
    padding: 40px 22px 72px;
    box-sizing: border-box;
    background-color: rgba(16, 24, 40, 0.66);
  }
  /* フィルターモーダル ヘッダー */
  .nm-filter-header {
    justify-content: center;
    padding: 0 16px;
  }
  .nm-filter-title { font-size: 14px; }
  .nm-filter-back,
  .nm-filter-header-search { display: none; }
  /* フィルターモーダル フッター SP */
  .nm-filter-footer {
    flex-direction: row;
    gap: 4px;
    padding: 16px 40px;
    border-top: 1px solid #dde1e6;
  }
  .nm-filter-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: auto;
    height: 43px;
    line-height: 43px;
    padding: 0 20px;
    background-color: #2d548a;
    font-size: 16px;
    font-weight: 400;
    border-radius: 9999px;
  }
  .nm-form-rows {
    margin-bottom: 8px;
  }
  .nm-sp-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 20px;
    background-color: #dce2ea;
    color: #2d548a;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Noto Sans JP', sans-serif;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    height: 43px;
    line-height: 43px;
  }
  .nm-sp-cancel:hover { opacity: 0.8; }
  /* フォーム SP */
  .nm-filter-body {
    margin: 24px 16px;
    align-items: stretch;
  }
  .nm-filter-body::-webkit-scrollbar-track {
    margin: 0;
  }
  .nm-filter-body-inner {
    width: 100%;
    margin: 0 0;
    padding: 0 16px 0 0;
    gap: 0;
  }
  .nm-form-row {
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
  }
  .nm-form-row--date {
    align-items: flex-start;
  }
  .nm-form-row--date .nm-form-label {
    height: 44px;
    display: flex;
    align-items: center;
  }
  .nm-form-label {
    width: 72px;
    font-size: 12px;
    font-weight: 700;
  }
  .nm-form-input { height: 44px; font-size: 15px; }
  .nm-form-select-btn { height: 44px; font-size: 15px; }
  .nm-form-select-btn::after { transform: rotate(45deg); }
  .nm-date-range {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .nm-date-sep--hidden {
    display: inline;
    visibility: hidden;
  }
  .nm-date-line {
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .nm-date-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    font-size: 15px;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .nm-date-input--month {
    flex: 1;
    min-width: 0;
  }
  .nm-date-unit { font-size: 15px; }
  .nm-date-sep { font-size: 15px; }
  .nm-price-range {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .nm-price-field {
    height: 44px;
    padding: 8px 16px;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
  }
  .nm-price-input {
    width: 100%;
    min-width: 0;
    font-size: 15px;
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
  }
  .nm-price-input::-webkit-outer-spin-button,
  .nm-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  .nm-price-unit { font-size: 15px; }
  .nm-price-sep { font-size: 15px; }
  .nm-check-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .nm-check-item {
    padding: 6px 0;
  }
  .nm-check-label { font-size: 14px; }
  /* サブモーダル パネル SP */
  .nm-sub-panel {
    width: 100%;
    max-width: 390px;
    max-height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 20px 48px rgba(17, 24, 39, 0.28);
    display: flex;
    flex-direction: column;
  }
  /* サブモーダル ヘッダー SP */
  .nm-sub-header {
    height: 72px;
    width: 100%;
    border-radius: 0;
    justify-content: center;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .nm-sub-title { font-size: 14px; font-weight: 700; }
  .nm-sub-decide { display: none; }
  /* 戻るボタン SP */
  .nm-sub-cancel {
    left: 16px;
    top: 16px;
    bottom: 15px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    gap: 0;
    padding: 0;
  }
  .nm-sub-cancel-arrow {
    flex: 1;
    position: relative;
    width: 44px;
    height: auto;
  }
  .nm-sub-cancel-arrow::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .nm-sub-cancel-text { font-size: 10px; font-weight: 700; color: #5198fa; }
  /* サブモーダル フッター SP */
  .nm-sub-sp-footer {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    width: 100%;
    justify-content: center;
    padding: 16px;
    border-top: 1px solid #dde1e6;
    background-color: #ffffff;
    border-radius: 0;
    box-sizing: border-box;
  }
  .nm-sub-sp-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 42px;
    padding: 0 20px;
    background-color: #dce2ea;
    color: #2d548a;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    font-family: 'Noto Sans JP', sans-serif;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
  }
  .nm-sub-sp-decide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 162px;
    height: 42px;
    padding: 0 20px;
    background-color: #2d548a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    font-family: 'Noto Sans JP', sans-serif;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
  }
  .nm-sub-sp-cancel:hover,
  .nm-sub-sp-decide:hover { opacity: 0.8; }
  /* ラジオ 1列 */
  .nm-radio-columns { flex-direction: column; }
  .nm-radio-col { width: 100%; }
  .nm-sub-body {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    background-color: #ffffff;
    justify-content: flex-start;
    flex: 1;
    overflow-y: auto;
  }
}

input.nm-form-input,
input.nm-form-input:hover {
  padding: 0 16px;
  border: none;
  background-color: #f2f4f8;
}

input.nm-date-input,
input.nm-date-input:hover {
  padding: 0 16px;
  border: none;
  background-color: #f2f4f8;
}

input.nm-price-input,
input.nm-price-input:hover {
  padding: 0;
  border: none;
  background: transparent;
}

/* ===== 内容情報モーダル幅オーバーライド ===== */
#goods-detail-info-modal .modal-dialog {
  width: min(600px, calc(100vw - 32px));
}

/* ===== 内容情報モーダル: 本文が長い場合はテキスト部分のみ内部スクロール（全モード共通・全幅） =====
   一般モード: .modal-dialog > .modal-card(flex) > 本文
   店内モード: .safesearch-modal-dialog(flex) > 本文  ← 構造が異なるため両方を対象にする */
#goods-detail-info-modal .modal-dialog,
#goods-detail-info-modal .safesearch-modal-dialog,
#goods-detail-info-modal .modal-card {
  max-height: calc(100vh - 10vh);
  max-height: calc(100svh - 10vh);
  overflow: hidden;
}
#goods-detail-info-modal .safesearch-modal-dialog {
  display: flex;
  flex-direction: column;
}
#goods-detail-info-modal .goods-detail-info-body {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
}
#goods-detail-info-modal .modal-card-title,
#goods-detail-info-modal .goods-detail-info-title,
#goods-detail-info-modal .modal-card-actions,
#goods-detail-info-modal .safesearch-modal-close,
#goods-detail-info-modal .modal-card {
  flex-shrink: 0;
}

/* ===== 内容情報モーダル PC専用スタイル ===== */

@media (min-width: 1024px) {
  #goods-detail-info-modal .modal-card {
    padding: 32px 24px;
  }

  #goods-detail-info-modal .modal-card-title {
    font-size: 24px;
  }

  #goods-detail-info-modal .modal-card-actions {
    padding: 16px 0 0;
    justify-content: center;
  }

  #goods-detail-info-modal .modal-card-button.is-cancel {
    width: 326px;
    min-width: 326px;
    height: 56px;
    font-size: 16px;
    line-height: 20px;
    padding: 18px 32px;
  }
  #goods-detail-info-modal .safesearch-modal-dialog {
    max-width: 600px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    border-radius: 16px;
    background: #ffffff;
    box-sizing: border-box;
}
  .safesearch-modal-title.goods-detail-info-title {
    font-size: 24px;
    color: #203d64;
    border: none;
    margin: 0;
    padding: 0;
}
}

/* ===== 内容情報モーダル（safesearch-modal流用 + 差分のみ） ===== */
.goods-detail-info-title {
  font-size: 24px;
  color: #203d64;
}

.goods-detail-info-body {
  width: 100%;
  overflow-y: auto;
  flex-shrink: 0;
}

/* ===== 内容情報モーダル SP専用スタイル ===== */
@media (max-width: 1023px) {
  #goods-detail-info-modal .modal-card {
    padding: 32px;
    gap: 16px;
  }

  #goods-detail-info-modal .modal-card-title {
    font-size: 18px;
    text-align: left;
  }


  #goods-detail-info-modal .goods-detail-info-content {
    padding: 0;
    font-size: 14px;
    line-height: 24px;
  }

  #goods-detail-info-modal .modal-card-actions {
    padding: 0;
    justify-content: center;
  }

  #goods-detail-info-modal .modal-card-button.is-cancel {
    width: 326px;
    min-width: 326px;
    height: 56px;
    font-size: 16px;
    line-height: 20px;
    padding: 18px 32px;
  }
}

.goods-detail-info-content {
  padding: 24px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 28px;
  text-align: left;
  word-break: break-word;
}

.goods-detail-info-content p {
  margin: 0;
}

/* ===== 在庫確認モーダル ===== */
#stock-confirm-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stock-confirm-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  width: 400px;
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.stock-confirm-modal-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.stock-confirm-modal-status-circle {
  font-size: 24px;
  font-weight: 700;
  color: #4581d5;
  line-height: normal;
}

.stock-confirm-modal-status-text {
  font-size: 24px;
  font-weight: 700;
  color: #203d64;
  line-height: normal;
}

.stock-confirm-modal-store {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.stock-confirm-modal-store-label {
  font-size: 12px;
  font-weight: 400;
  color: #1c2430;
  line-height: 24px;
  margin: 0;
}

.stock-confirm-modal-store-name {
  font-size: 16px;
  font-weight: 700;
  color: #1c2430;
  line-height: 24px;
  margin: 0;
}

.stock-confirm-modal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.stock-confirm-modal-address {
  font-size: 14px;
  font-weight: 400;
  color: #1c2430;
  line-height: 24px;
  margin: 0;
}

.stock-confirm-modal-note {
  font-size: 13px;
  font-weight: 400;
  color: #1c2430;
  line-height: 24px;
  width: 100%;
  margin: 0;
}

.stock-confirm-modal-order-btn {
  background-color: #d97706;
  color: #fff;
  border: none;
  border-radius: 9999px;
  width: 326px;
  height: 56px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  flex-shrink: 0;
}

.stock-confirm-modal-order-btn:hover { opacity: 0.8; }

/* ===== 確認モーダル共通 (.modal / .modal-card) ===== */
.modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: #1C2430E6;
  opacity: 1;
  transition: opacity 0.28s ease;
  z-index: 0;
}

.modal.is-open .modal-overlay {
  opacity: 0.7;
}

.modal-dialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: min(398px, calc(100vw - 32px));
  transition: transform 0.28s ease;
}

.modal-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  border-radius: 16px;
  padding: 32px;
  background: #ffffff;
  box-sizing: border-box;
}

.modal-card-title {
  margin: 0;
  padding: 0;
  border: 0;
  color: #203d64;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
}

.modal-card-description {
  margin: 0;
  max-width: 100%;
  color: #000000;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}

.modal-card-description span {
  font-weight: 700;
}

.modal-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 0 0;
}

.modal-card-button {
  width: 100%;
  height: 37px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 37px;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
}

.modal-card-button.is-cancel {
  background: #dce2ea;
  color: #2d548a;
}

.modal-card-button.is-confirm {
  background: #2d548a;
  color: #ffffff;
}
.modal-card-button.is-confirm a {
    color: #fff;
}


/* フルスクリーン系モーダルの中央寄せ */
#other-stock-modal.is-open,
#store-detail-modal.is-open,
#store-map-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* store-detail-modal は other-stock-modal より上に重ねる */
#store-detail-modal {
  z-index: 2100;
}

/* ===== 他店舗の在庫情報モーダル ===== */
.other-stock-modal-dialog {
  width: calc(100% - 32px);
  max-width: 390px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  z-index: 2;
}
.other-stock-modal-dialog > * {
    flex-shrink: 0;
  }
.other-stock-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #203d64;
  text-align: center;
  margin: 0;
  padding: 0;
  border: none;
  line-height: normal;
}

.other-stock-modal-notes {
  width: 100%;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  line-height: 16px;
}

.other-stock-modal-notes p { margin: 0 0 6px; }
.other-stock-modal-notes p:last-child { margin-bottom: 0; }

.other-stock-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.other-stock-item {
  background: #fff;
  border: 1px solid #dde1e6;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.other-stock-item:hover { opacity: 0.85; }

.other-stock-item-name {
  font-size: 16px;
  font-weight: 700;
  color: #5198fa;
  line-height: 24px;
  margin: 0;
  width: 100%;
}

.other-stock-item-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: #000;
  line-height: 24px;
}

.other-stock-item-info p { margin: 0; }

.other-stock-item-status {
  font-size: 13px;
  font-weight: 400;
  color: #000;
  line-height: 24px;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.other-stock-item-maru {
  font-weight: 700;
  color: #2f7d57;
}
.other-stock-modal-list .other-stock-item-status img {
    width: 18px;
    height: auto;
}

/* ===== 店舗詳細モーダル ===== */
.store-detail-modal-dialog {
  width: calc(100% - 32px);
  max-width: 390px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  z-index: 2;
}
.store-detail-modal-dialog > * {
  flex-shrink: 0;
}

.store-detail-modal-header {
  position: relative;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
}

.store-detail-back {
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
}

.store-detail-modal-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.store-detail-status-circle {
  font-size: 28px;
  font-weight: 700;
  color: #4581d5;
  line-height: normal;
}

.store-detail-status-text {
  font-size: 20px;
  font-weight: 700;
  color: #203d64;
  line-height: normal;
}

.store-detail-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.store-detail-modal-store {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.store-detail-store-label {
  font-size: 12px;
  font-weight: 400;
  color: #1c2430;
  line-height: 24px;
  margin: 0;
}

.store-detail-store-name {
  font-size: 18px;
  font-weight: 700;
  color: #5198fa;
  line-height: 24px;
  margin: 0;
}

.store-detail-modal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.store-detail-modal-info p { margin: 0; color: #000; }
.store-detail-modal-info p + p { color: #1c2430; }

.store-detail-modal-note {
  font-size: 13px;
  font-weight: 400;
  color: #1c2430;
  line-height: 24px;
  margin: 0;
  width: 100%;
  word-break: break-word;
}

.store-detail-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  align-items: center;
}

.store-detail-action-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 326px;
}

.store-detail-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  background-color: #d97706;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 16px 32px;
  box-sizing: border-box;
}

.store-detail-action-btn:hover { opacity: 0.8; }

.store-detail-action-icon {
  display: inline-block;
  width: 19px;
  height: 19px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.store-detail-action-icon--phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19' fill='none'%3E%3Cpath d='M3.8 2h3.2l1.4 3.2-1.9 1.9a9.5 9.5 0 0 0 5.4 5.4l1.9-1.9 3.2 1.4V15a1.8 1.8 0 0 1-1.8 1.8C7.3 16.8 2.2 11.7 2.2 5.8A1.8 1.8 0 0 1 3.8 2z' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.store-detail-action-icon--order {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19' fill='none'%3E%3Cpath d='M1.5 1.5h2.2l2.1 9h8.4l1.8-6H5.8' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='7' cy='16' r='1.5' fill='white'/%3E%3Ccircle cx='13.5' cy='16' r='1.5' fill='white'/%3E%3C/svg%3E");
}

/* ===== 店内地図モーダル ===== */
.store-map-dialog {
  width: calc(100% - 32px);
  max-width: 430px;
  max-height: calc(100svh - 77px);
  border-radius: 16px;
  background: #fff;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 2;
}

.store-map-title-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0;
  flex-shrink: 0;
}

.store-map-title {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 20px;
  font-weight: 700;
  color: #203d64;
  text-align: center;
  line-height: 29px;
}

.store-map-title-note {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  text-align: center;
  line-height: 16px;
}

.store-map-map-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.store-map-tabs-wrapper {
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.store-map-tabs-wrapper::-webkit-scrollbar { display: none; }

.store-map-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 24px;
  min-width: max-content;
  height: 64px;
}

.store-map-tab {
  height: 48px;
  min-width: 60px;
  padding: 0 16px;
  background: #dde1e6;
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #536173;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-end;
  transition: background 0.15s, color 0.15s;
}

.store-map-tab.is-active {
  height: 56px;
  min-width: 80px;
  background: #fff;
  color: #1c2430;
  font-size: 18px;
  border: 1px solid #dde1e6;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  position: relative;
  z-index: 1;
}

.store-map-map-block::before,
.store-map-map-block::after {
  content: '';
  position: absolute;
  top: var(--tab-row-h, 64px);
  height: 1px;
  pointer-events: none;
}
.store-map-map-block::before {
  left: 0;
  right: 0;
  background: #dde1e6;
  z-index: 1;
}
.store-map-map-block::after {
  left: var(--active-tab-x, 0px);
  width: var(--active-tab-w, 0px);
  background: #fff;
  z-index: 2;
}

.store-map-content {
  flex: 1;
  min-height: 0;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.store-map-panel {
  display: none;
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.store-map-panel.is-active { display: block; }

.store-map-img-area {
  width: 100%;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-map-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.store-map-info {
  flex-shrink: 0;
  margin: 0 24px;
  background: #eef3f8;
  border: 1px solid #c1c7cd;
  border-radius: 8px;
  padding: 20px 24px;
  box-sizing: border-box;
}

.store-map-location-text {
  font-size: 18px;
  font-weight: 400;
  color: #1c2430;
  line-height: 24px;
  margin: 0;
}

.store-map-location-name {
  font-weight: 700;
  color: #2d548a;
}

.store-map-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.store-map-close-btn {
  width: 100%;
  max-width: 100%;
  height: 56px;
  background: #dce2ea;
  color: #2d548a;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  padding: 18px 32px;
  box-sizing: border-box;
  text-align: center;
}

@media (max-width: 380px) {
  .modal-card {
    padding: 24px;
  }

  .modal-card-actions {
    gap: 10px;
    padding: 0 24px;
  }

  .modal-card-button {
    flex: 1;
    padding: 0 16px;
  }
}
.nm-filter-body-inner .select-modal__dialog {
  min-height: calc(100vh - 320px);
}
@media (max-width: 1023px) {
  div.nm-filter-body-inner .select-modal__dialog {
    min-height: calc(100% - 80px);
  }
}
.nm-filter-body-inner .select-modal__dialog ul {
  height: max-content;
  max-height: max-content;
}
.select-modal__footer{
  position: absolute;
  bottom: 0;
}

#goods-detail-info-modal .modal-card-button.is-cancel {
  width: 326px;
  min-width: 326px;
  height: 56px;
  font-size: 16px;
  line-height: 20px;
  padding: 18px 32px;
}
#goods-detail-info-modal .modal-card-button.is-cancel {
  width: 100%;
  height: 56px;
  font-size: 16px;
  line-height: 20px;
  padding: 18px 32px;
}


/* ===== SPスタイル調整 ===== */
@media (max-width: 768px) {
.other-stock-modal-dialog {
    max-height: calc(100vh - 20vh);
}
.safesearch-modal .safesearch-modal-close {
    min-height: 56px;
}
#goods-detail-info-modal .modal-card-button.is-cancel {
    min-width: 100%;
}
.modal-dialog {
    overflow: hidden;
    max-height: calc(100vh - 10vh);
}
/* iOS Safari は高さ未確定の親内で flex:1 の子を高さ0にするため、ダイアログの高さを確定させる */
.store-map-dialog {
    height: calc(100vh - 77px);
    height: calc(100svh - 77px);
}
.store-map-panel {
    overflow: scroll;
}
.store-map-img-area {
    height: auto;
}
.store-map-img {
    flex-shrink: 0;
}
.store-map-info {
    margin: 10px 24px;
    padding: 10px 20px;
    height: 80px;
}
.store-map-location-text {
    font-size: 14px;
}
}
