@charset "UTF-8";
body.is-filter-modal-open {
  overflow: hidden;
}

/* ========================================
   絞り込み検索：固定ボタン
======================================== */
.filter-floating-btn {
  position: fixed;
  right: 40px;
  bottom: 30px;
  width: 120px;
  height: 120px;
  border: none;
  border-radius: 50%;
  background: #274a78;
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.filter-floating-btn:hover {
  transform: translateY(-2px);
}

.filter-floating-btn__icon img {
  width: 22.59px;
  height: 18.29px;
  display: block;
}

.filter-floating-btn__text {
  font-size: 17px;
  line-height: 1.3;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ========================================
   モーダル全体
======================================== */
.filter-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.filter-modal.is-open {
  display: block;
}

.filter-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.filter-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 640px);
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  box-sizing: border-box;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.filter-modal__inner {
  padding: 52px 40px 36px;
}

.filter-modal__title {
  display: none;
}

.filter-modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.filter-modal__close::before, .filter-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 4px;
  background: #333;
  border-radius: 999px;
  transform-origin: center;
}
.filter-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.filter-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ========================================
   フォーム全体
======================================== */
.filter-form {
  width: 100%;
}

/* ========================================
   タブ
======================================== */
.filter-tabs {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 24px;
}

.filter-tabs__tab {
  width: 50%;
  border: none;
  border-bottom: 3px solid #d9d9d9;
  background: none;
  color: #999;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  padding: 10px 16px 12px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.filter-tabs__tab:hover {
  opacity: 0.85;
}

.filter-tabs__tab.is-active {
  color: #274a78;
  font-weight: bold;
  border-bottom-color: #274a78;
}

.filter-tab-panel {
  display: none;
}

.filter-tab-panel.is-active {
  display: block;
}

/* ========================================
   行レイアウト
======================================== */
.filter-form__row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0;
}

.filter-form__row + .filter-form__row {
  border-top: 1px solid #bfbfbf;
}

.filter-form__label {
  width: 95px;
  min-width: 95px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: bold;
  color: #222;
}

.filter-form__field {
  flex: 1 1 auto;
  min-width: 0;
}

/* ========================================
   テキスト入力
======================================== */
.filter-form__text {
  width: 100%;
  max-width: 380px;
  height: 40px;
  border: 1px solid #8c8c8c;
  border-radius: 999px !important;
  box-sizing: border-box;
  padding: 0 16px !important;
  font-size: 15px;
  color: #333;
  background: #fff;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.filter-form__text:focus {
  outline: none;
  border-color: #274a78;
}

/* ========================================
   セレクト
======================================== */
.filter-select-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.filter-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 10px;
  height: 9px;
  transform: translateY(-50%);
  pointer-events: none;
  background: url(https://shop-ninnananna.jp/img/icon_triangle.png) no-repeat center/contain;
}

.filter-form__select {
  width: 100%;
  height: 40px;
  border: none;
  background: transparent;
  box-sizing: border-box;
  padding: 0 42px 0 0;
  font-size: 15px;
  color: #444;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.filter-form__select:focus {
  outline: none;
}

/* ========================================
   カテゴリーセレクト
======================================== */
.filter-category-block {
  width: 100%;
}

.filter-category-selects {
  display: flex;
  align-items: center;
  gap: 20px;
}

.filter-select-wrap.filter-select-wrap--category1,
.filter-select-wrap.filter-select-wrap--category2 {
  flex: 1 1 0;
  min-width: 0;
}

.filter-category-arrow {
  flex: 0 0 auto;
  width: 6.8px;
  height: 10.05px;
  margin-top: -2px;
  background: url(https://shop-ninnananna.jp/img/icon_arrow_g2.png) no-repeat center/contain;
}

/* ========================================
   こだわり
======================================== */
.filter-form__row.filter-form__row--detail {
  align-items: flex-start;
}

.filter-detail-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.filter-detail-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-detail-group__title {
  width: auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: bold;
  color: #333;
}

.filter-detail-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
}

#js-filter-detail-row[hidden] {
  display: none !important;
}

#js-filter-brand-category-sub-row[hidden] {
  display: none !important;
}

/* ========================================
   こだわりチップ
======================================== */
.filter-detail-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.filter-detail-chip input[type=checkbox] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-detail-chip__text {
  display: inline-block;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid #8f8f8f;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.2;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-detail-chip:hover .filter-detail-chip__text {
  border-color: #666;
}

.filter-detail-chip input[type=checkbox]:checked + .filter-detail-chip__text {
  background: #274a78;
  border-color: #274a78;
  color: #fff;
}

/* ========================================
   ボタン
======================================== */
.filter-form__actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 32px;
}

.filter-form__clear,
.filter-form__submit {
  width: 240px;
  min-height: 58px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.filter-form__clear:hover,
.filter-form__submit:hover {
  opacity: 0.9;
}

.filter-form__clear {
  border: 1px solid #a9a9a9;
  background: #fff;
  color: #333;
}

.filter-form__submit {
  border: 1px solid #274a78;
  background: #274a78;
  color: #fff;
}

/* ========================================
   検索結果表示
======================================== */
.search-summary-box {
  margin: 14px 0 28px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #F8F8F8;
}

.search-summary-box__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-items: center;
  gap: 24px;
  padding: 15px 18px 16px;
}

.search-summary-box__main {
  flex: 1 1 auto;
  min-width: 0;
}

.search-summary-box__label {
  display: inline-block;
  margin-right: 14px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  vertical-align: middle;
}

.search-summary-box__path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  vertical-align: middle;
}

.search-summary-box__text {
  color: #274A78;
  font-size: 14px;
  font-weight: 700;
}

.search-summary-box__sep {
  margin: 0 10px;
  color: #666;
  font-size: 12px;
}

.search-summary-box__chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 14px;
  vertical-align: middle;
}

.search-summary-box__chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0px 11px;
  border: 1px solid #274A78;
  border-radius: 999px;
  color: #274A78;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
}

.search-summary-box__keyword {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.search-summary-box__keyword-label {
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.search-summary-box__keyword-text {
  color: #274A78;
  font-size: 14px;
  font-weight: 700;
}

.search-summary-box__side {
  flex: 0 0 auto;
}

.search-summary-box__clear {
  color: #666;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .search-summary-box {
    margin: 12px 0 20px;
  }
  .search-summary-box__inner {
    display: block;
    padding: 14px 14px 12px;
  }
  .search-summary-box__keyword {
    gap: 8px;
  }
  .search-summary-box__side {
    text-align: right;
  }
}
@media screen and (max-width: 580px) {
  .filter-modal__dialog {
    max-height: 75vh;
  }
  .filter-floating-btn {
    bottom: 80px;
  }
  .filter-category-selects {
    flex-direction: column;
  }
  .filter-category-arrow {
    transform: rotate(90deg) scale(1.3);
  }
  .search-summary-box__label {
    font-size: 13px;
    display: block;
  }
  .search-summary-box__keyword {
    margin-top: 7px;
  }
  .search-summary-box__chips {
    margin-left: 8px;
  }
}
/* ========================================
   768以下
======================================== */
@media screen and (max-width: 768px) {
  .filter-floating-btn {
    right: 16px;
    bottom: 100px;
    width: 82px;
    height: 82px;
    z-index: 99;
  }
  .filter-floating-btn__text {
    font-size: 13px;
  }
  .filter-modal__dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
  .filter-modal__inner {
    padding: 48px 20px 24px;
  }
  .filter-modal__close {
    top: 14px;
    right: 14px;
    font-size: 34px;
  }
  .filter-tabs {
    margin-bottom: 18px;
  }
  .filter-tabs__tab {
    font-size: 15px;
    padding: 10px 8px 12px;
  }
  .filter-form__row {
    display: block;
    padding: 14px 0;
  }
  .filter-form__label {
    width: auto;
    min-width: 0;
    margin-bottom: 10px;
    font-size: 15px;
  }
  .filter-form__text {
    max-width: 100%;
  }
  .filter-category-selects {
    gap: 8px;
  }
  .filter-category-arrow {
    font-size: 18px;
  }
  .filter-detail-group {
    display: block;
  }
  .filter-detail-group__title {
    width: auto;
    min-width: 0;
    margin-bottom: 8px;
    padding-top: 0;
  }
  .filter-form__actions {
    flex-direction: column;
    gap: 12px;
    padding-top: 28px;
  }
  .filter-form__clear,
.filter-form__submit {
    width: 100%;
    min-height: 52px;
  }
}
@media screen and (max-width: 580px) {
  .filter-modal__dialog {
    max-height: 75vh;
  }
  .filter-floating-btn {
    bottom: 80px;
  }
}