/*
 * 共通
 * フェードアニメーション
 * 大枠
 * ヘッダー
 * 下部のボタン
 * フォーム共通
 * フリーワード
 * LMKタブ
 * ○○から探す共通
 * ○○から探す共通 - 第2階層
 * アコーディオン
 * こだわり条件から探す
 * ブランドから探す
 * カラーから探す
 * 価格・割引率から探す
 * 販売状況（通常販売、セールなど）
 * アイコン、入荷状況、在庫状況
 * ページに設置するボタン
 * トーストメッセージ
 * ZETAサジェスト
 * PC用css
 */

:root {
  --pink-800: #f88069;
  --pink-300: #ffcdbe;
  --pink-50: #fff2ee;
  --sale-red: #d10000;
}

body.is-fixed {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

/* =========================================================
共通
========================================================= */
.search-module *,
.search-module *::before,
.search-module *::after {
  box-sizing: border-box;
}

.search-module a {
  text-decoration: none;
}

/* カスタムモード(カスタムボタンでオープン時) */
.search-module.mode-custom {
  .z-contents,
  .sm-group-kodawari,
  .sm-group-color,
  .sm-group-price,
  .sm-group-stock,
  .sm-block {
    display: none;
  }
}

/* =========================================================
フェードアニメーション
========================================================= */
.fade-out-active {
  opacity: 0;
  transition: 250ms;
  position: relative;
}
.fade-in {
  opacity: 0;
}
.fade-in-active {
  transition: 250ms;
  opacity: 1;
}

/* =========================================================
大枠
========================================================= */
.sm-app {
  width: 100vw;
  height: 100dvh;
  display: grid;
  place-items: center;
  z-index: 100;
  position: relative;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
}

.search-module {
  --gray-100: #eee;
  --gray-200: #ddd;
  --gray-300: #9e9e9e;
  --gray-400: #424242;

  width: 100vw;
  height: 100dvh;
  color: var(--gray-400);
  background-color: white;
  position: relative;
  opacity: 0;
  overscroll-behavior: none;
  pointer-events: none;
  transition: 0.3s;
  position: fixed;
  top: 0;
  left: 100%;
}
.search-module.is-active {
  translate: -100%;
  pointer-events: auto;
  opacity: 1;
}

.sm-overlay {
  width: 100vw;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.sm-overlay.is-active {
  pointer-events: auto;
  opacity: 1;
}

.sm-contents {
  width: 100%;
  height: 100dvh;
  background: white;
  position: relative;
  padding: 50px 0 90px;
  -ms-overflow-style: none;
  overflow-y: auto;
  overflow-x: hidden !important;
  transition: 0.3s;
}
.sm-contents::-webkit-scrollbar {
  display: none;
}

/* =========================================================
ヘッダー
========================================================= */
.sm-header {
  z-index: 7;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  user-select: none;
}
.sm-back {
  width: max-content;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 0 11px;
  line-height: 1;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}
.sm-back::before {
  content: "";
  display: block;
  width: 7px;
  height: 14px;
  background: url(/res/p/img/search/2024/chevron_right.svg) no-repeat;
  background-size: contain;
  cursor: pointer;
  rotate: 180deg;
  margin-bottom: 2px;
  margin-right: 6px;
}

.sm-heading {
  position: relative;
  font-size: 14px;
  font-weight: bold;
}

/* .sm-close {
  width: 64px;
  height: 50px;
  display: block;
  background: url(/res/s/img/search/icn_modeal_close.svg)
    no-repeat center;
  background-size: 20px;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
} */

/* =========================================================
下部のボタン
========================================================= */
.sm-fix-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0 10px;
  z-index: 3;
  padding: 15px;
  background-color: white;
  transition: 0.4s;
  transition-delay: 0.4s;
  translate: 0 calc(20px + 100%);
  opacity: 0;
  pointer-events: none;
}
.sm-card + .sm-fix-buttons {
  z-index: 5;
}

.sm-fix-buttons.is-active {
  translate: 0;
  opacity: 1;
  pointer-events: auto;
}
.sm-fix-buttons button {
  font-size: 13px;
  font-weight: bold;
  height: 48px;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  color: inherit;
}
.sm-button-normal {
  width: calc(120 * (100% / 375));
  width: calc(110 * (100% / 375));
  background-color: white;
}
.sm-button-primary {
  width: calc(200 * (100% / 375));
  width: calc(160 * (100% / 375));
  background-color: var(--gray-400);
  color: white !important;
}

.sm-count {
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 5px;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}
.sm-count span {
  font-size: 16px;
}

/* =========================================================
フォーム共通
========================================================= */
/* text input */
.sm-form-control {
  width: 100%;
  border-radius: 50px;
  padding: 10px 15px;
  line-height: 1.4 !important;
  height: 48px !important;
  border: 1px solid var(--gray-300) !important;
  text-indent: 0 !important;
}

/* radio, checkbox */
.sm-form-label-group {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -1px;
}

.sm-form-label-thick,
.sm-form-label-thick-half {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
}

.sm-form-label-thick {
  flex-basis: 100%;
  border-right: none;
  padding: 13px 0 13px 10px;
}
.sm-brand-list .sm-form-label-thick {
  padding: 13px 0;
  gap: 0 8px;
}

.sm-form-label-thick-half {
  flex-basis: 50%;
  padding: 20px 15px;
}

.sm-form-label-thick-half:nth-child(even) {
  border-right: none;
}

.sm-form-label {
  width: max-content;
  height: 16px;
  line-height: 16px;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 5px 0;
  cursor: pointer;
}

.sm-form-checkbox,
.sm-form-radio {
  width: 16px !important;
  height: 16px !important;
  background: transparent !important;
  appearance: none;
  display: grid;
  place-items: center;
  position: relative;
}

.sm-form-checkbox::before,
.sm-form-checkbox::after,
.sm-form-radio::before,
.sm-form-radio::after {
  content: "";
  display: block;
  position: absolute;
  margin-top: 1px;
}
.sm-form-radio::before,
.sm-form-radio::after {
  border-radius: 50%;
}

.sm-form-checkbox::before,
.sm-form-radio::before {
  width: 16px;
  height: 16px;
  border: 1px solid var(--gray-300);
  top: 0;
  left: 0;
}
.sm-form-checkbox:checked::after,
.sm-form-radio:checked::after {
  width: 10px;
  height: 10px;
  background-color: #f8a796;
  top: 3px;
  left: 3px;
}

/* select（SP の価格・割引率） */
.sm-form-select {
  width: 100%;
  height: auto !important;
  padding: 10px;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 3px;
  color: var(--gray-400);
}
.sm-form-select:disabled {
  opacity: 0.3;
  background: lightgray;
}

/* 数値の手入力（PC の価格・割引率）。単位（円・%）は欄の右端に重ねる */
.sm-range-field {
  position: relative;
  min-width: 0;
}
.sm-range-field input {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 10px 28px 10px 10px;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 0;
  color: var(--gray-400);
  font: inherit;
  font-size: 16px;
  text-align: right;
}
.sm-range-unit {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 12px;
  pointer-events: none;
}

/* =========================================================
フリーワード
========================================================= */
.sm-fr {
  width: calc(100% - 30px);
  height: 48px;
  margin: 0 15px;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  padding-right: 45px;
  background: url(/res/p/img/search/2024/search.svg) no-repeat right 20px center;
  background-size: 16px;
}
.sm-fr input {
  width: 100%;
  height: 100%;
  font-size: 16px;
  padding: 0 15px;
  border: none;
  appearance: none;
  border-radius: 50px;
  outline: none;
}

/* =========================================================
LMKタブ
========================================================= */
.sm-lm {
  width: 100%;
  overflow-x: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 10px;
}
.sm-lm-inr {
  width: max-content;
  display: flex;
  gap: 24px;
  padding: 0 15px;
}
.sm-lm::-webkit-scrollbar {
  display: none;
}

.lm-label {
  padding: 16px 0;
  position: relative;
  cursor: pointer;
}
.lm-label input {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
}
.lm-label:has(input:checked)::before {
  content: "";
  width: 100%;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: black;
}
.lm-label span {
  user-select: none;
}

/* =========================================================
○○から探す共通
========================================================= */
.sm-group {
  padding: 0 14px;
}
.sm-card-button {
  display: flex;
  justify-content: space-between;
  padding: 23px 20px 23px 0;
  background: white;
  border-bottom: 1px solid var(--gray-100);
  background: url(/res/p/img/search/2024/chevron_right.svg) no-repeat center
    right 5px;
  background-size: 6px;
  cursor: pointer;
}
.sm-selected.no-selection {
  opacity: 0.3;
}

.sm-group-stock .sm-card-button-text::after {
  content: '（通常販売、セールなど）';
}
@media screen and (min-width: 750px) {
  .sm-group-stock .sm-card-button-text::after {
    content: '';
  }
}

/* =========================================================
○○から探す共通 - 第2階層
========================================================= */
.sm-card {
  width: 100%;
  height: 100dvh;
  background-color: white;
  position: fixed;
  top: 0;
  left: 100%;
  z-index: 4;
  transition: 0.3s;
}
.sm-card.is-active {
  translate: -100%;
}

.sm-card-contents {
  width: 100%;
  min-height: 100%;
  height: 100dvh;
  position: relative;
  padding: 50px 0 90px;
  -ms-overflow-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sm-card-contents::-webkit-scrollbar {
  display: none;
}

/* =========================================================
アコーディオン
========================================================= */
.sm-accordion {
  margin: 0 15px;
  display: flex;
  flex-direction: column;
}
.sm-accordion-button {
  padding: 21px 0 21px 40px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  position: relative;
  background-image: none;
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 20px;
}
.sm-accordion-button::after {
  content: "";
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(/res/p/img/search/2024/plus.svg);
  background-size: contain;
  position: absolute;
  right: 8px;
  top: 24px;
}
/* 開閉 */
.sm-accordion-button.is-active::after {
  background-image: url(/res/p/img/search/2024/minus.svg);
}

.sm-accordion-child {
  flex-direction: column;
  margin-left: 15px;
  display: none;
}
.sm-accordion-child label {
  padding: 21px 0;
  border-bottom: 1px solid var(--gray-100);
  background: url(/res/p/img/search/2024/chevron_right.svg) no-repeat center
    right 10px;
  background-size: 6px;
  cursor: pointer;
}
.sm-accordion-child label.is-selected {
  background-color: rgb(248 167 150 / 10%);
}
.sm-accordion-child input {
  display: none;
}
/* 開閉 */
.sm-accordion-child.is-open {
  display: flex;
}

/* アウター */
.sm-accordion-icon-CA,
.sm-accordion-icon-EA,
.sm-accordion-icon-AA {
  background-image: url(/res/s/2025/img/category/icon_AA.svg) !important;
}
/* トップス */
.sm-accordion-icon-CB,
.sm-accordion-icon-EB,
.sm-accordion-icon-AB {
  background-image: url(/res/s/2025/img/category/icon_AB.svg) !important;
}
/* ワンピース/ドレス */
.sm-accordion-icon-CC,
.sm-accordion-icon-EC,
.sm-accordion-icon-AC {
  background-image: url(/res/s/2025/img/category/icon_AC.svg) !important;
}
/* スカート */
.sm-accordion-icon-CD,
.sm-accordion-icon-AD {
  background-image: url(/res/s/2025/img/category/icon_AD.svg) !important;
}
/* パンツ */
.sm-accordion-icon-CE,
.sm-accordion-icon-EC,
.sm-accordion-icon-AE {
  background-image: url(/res/s/2025/img/category/icon_AE.svg) !important;
}
/* 部屋着/ルームウェア */
.sm-accordion-icon-CF,
.sm-accordion-icon-ED,
.sm-accordion-icon-AF {
  background-image: url(/res/s/2025/img/category/icon_AF.svg) !important;
}
/* スポーツ */
.sm-accordion-icon-AG {
  background-image: url(/res/s/2025/img/category/icon_AG.svg) !important;
}
/* シューズ */
.sm-accordion-icon-CG,
.sm-accordion-icon-EH,
.sm-accordion-icon-AH {
  background-image: url(/res/s/2025/img/category/icon_AH.svg) !important;
}
/* バッグ */
.sm-accordion-icon-EI,
.sm-accordion-icon-AI {
  background-image: url(/res/s/2025/img/category/icon_AI.svg) !important;
}
/* 帽子 */
.sm-accordion-icon-CH,
.sm-accordion-icon-EJ,
.sm-accordion-icon-AJ {
  background-image: url(/res/s/2025/img/category/icon_AJ.svg) !important;
}
/* アクセサリー */
.sm-accordion-icon-AK {
  background-image: url(/res/s/2025/img/category/icon_AK.svg) !important;
}
/* ファッション雑貨 */
.sm-accordion-icon-CI,
.sm-accordion-icon-EK,
.sm-accordion-icon-AL {
  background-image: url(/res/s/2025/img/category/icon_AL.svg) !important;
}
/* インナー/ランジェリー */
.sm-accordion-icon-AM {
  background-image: url(/res/s/2025/img/category/icon_AM.svg) !important;
}
/* レッグウェア */
.sm-accordion-icon-AN {
  background-image: url(/res/s/2025/img/category/icon_AN.svg) !important;
}
/* 水着/浴衣 */
.sm-accordion-icon-AO {
  background-image: url(/res/s/2025/img/category/icon_AO.svg) !important;
}
/* スーツ */
.sm-accordion-icon-EG {
  background-image: url(/res/s/2025/img/category/icon_EG.svg) !important;
}
/* ベビー/マタニティ */
.sm-accordion-icon-DA {
  background-image: url(/res/s/2025/img/category/icon_DA.svg) !important;
}
/* スキンケア */
.sm-accordion-icon-BA {
  background-image: url(/res/s/2025/img/category/icon_BA.svg) !important;
}
/* ボディケア */
.sm-accordion-icon-BB {
  background-image: url(/res/s/2025/img/category/icon_BB.svg) !important;
}
/* ヘアケア */
.sm-accordion-icon-BC {
  background-image: url(/res/s/2025/img/category/icon_BC.svg) !important;
}
/* エチケット */
.sm-accordion-icon-BH {
  background-image: url(/res/s/2025/img/category/icon_BH.svg) !important;
}
/* バス */
.sm-accordion-icon-BE {
  background-image: url(/res/s/2025/img/category/icon_BE.svg) !important;
}
/* メイク */
.sm-accordion-icon-BF {
  background-image: url(/res/s/2025/img/category/icon_BF.svg) !important;
}
/* キット */
.sm-accordion-icon-BG {
  background-image: url(/res/s/2025/img/category/icon_BG.svg) !important;
}

/* 福袋 */
.sm-accordion-icon-FK {
  background-image: url(/res/s/2025/img/category/icon_FK.svg) !important;
}
/* インテリア */
.sm-accordion-icon-FB {
  background-image: url(/res/s/2025/img/category/icon_FB.svg) !important;
}
/* 雑貨 */
.sm-accordion-icon-FC {
  background-image: url(/res/s/2025/img/category/icon_FC.svg) !important;
}
/* 食器/キッチン */
.sm-accordion-icon-FD {
  background-image: url(/res/s/2025/img/category/icon_FD.svg) !important;
}
/* 本/ギャラリー */
.sm-accordion-icon-FE {
  background-image: url(/res/s/2025/img/category/icon_FE.svg) !important;
}
/* 文房具/ステーショナリー */
.sm-accordion-icon-FF {
  background-image: url(/res/s/2025/img/category/icon_FF.svg) !important;
}
/* 食品 */
.sm-accordion-icon-FH {
  background-image: url(/res/s/2025/img/category/icon_FH.svg) !important;
}
/* ペット */
.sm-accordion-icon-HA {
  background-image: url(/res/s/2025/img/category/icon_HA.svg) !important;
}
/* ギフトラッピング */
.sm-accordion-icon-GF {
  background-image: url(/res/s/2025/img/category/icon_GF.svg) !important;
}

/* =========================================================
こだわり条件から探す
========================================================= */
.sm-kodawari-list-heading {
  background-color: #f6f6f6;
  padding: 8px 15px;
  position: relative;
}

/* =========================================================
ブランドから探す
========================================================= */
/* テキストボックス */
.sm-brand-input {
  width: 290px !important;
  border: 1px solid #ccc !important;
  padding: 0 10px !important;
  height: 40px !important;
  line-height: 40px !important;
  outline: none;
  display: block;
  margin: 0 auto 15px;
}

/* アルファベット ボタン */
.sm-alpha-grid {
  width: max-content;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin: 0 auto 15px;
}

.sm-cell {
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ccc;
  font-size: 16px;
  cursor: pointer;

  &:not(:is(.span2)) {
    font-family: "Poppins", sans-serif;
  }

  &.span2 {
    width: 80px;
    grid-column: span 2;
    font-size: 12px;
    font-weight: 500;
  }

  &.active {
    background-color: var(--pink-300);
  }

  &.disabled {
    opacity: 0.2;
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
  }
}

.sm-brand-index-header {
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 33px;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 0 10px;
  background-color: #f5f5f5;
}

.sm-brand-list {
  margin: 0 15px;
}

.sm-brand-logo {
  width: 78px;
  img {
    width: 100%;
    height: auto;
    vertical-align: top;
  }
}
.sm-brand-name {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sm-brand-kana {
  font-size: 11px;
  color: #747474;
}

/* =========================================================
カラーから探す
========================================================= */
.sm-colors {
  width: max-content;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0 auto;
}

[class*="sm-color-"] {
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  font-size: 12px;
  cursor: pointer;
}
[class*="sm-color-"] span {
  width: 55px;
  height: 55px;
  background-size: cover;
  position: relative;
  display: grid;
  place-items: center;
}
[class*="sm-color-"] input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}
[class*="sm-color-"] input:checked + span::after {
  content: "";
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  width: 12px;
  height: 24px;
  margin-bottom: 10px;
}

/* SP */
@media screen and (max-width: 750px) {
  .sm-colorlist {
    gap: calc(20 * (100vw / 375));
  }
  [class*="sm-color-"] {
    gap: calc(4 * (100vw / 375));
    font-size: calc(12 * (100vw / 375));
  }
  [class*="sm-color-"] span {
    width: calc(55 * (100vw / 375));
    height: calc(55 * (100vw / 375));
  }
  [class*="sm-color-"] input:checked + span::after {
    border-right: calc(3 * (100vw / 375)) solid white;
    border-bottom: calc(3 * (100vw / 375)) solid white;
    width: calc(12 * (100vw / 375));
    height: calc(24 * (100vw / 375));
    margin-bottom: calc(10 * (100vw / 375));
  }
}
.sm-color-0 span::after,
.sm-color-3 span::after,
.sm-color-Z span::after {
  border-color: #bfbfbf !important;
}

/* ホワイト */
.sm-color-0 span {
  background-color: white;
  border: 1px solid #ddd;
}
/* グレー */
.sm-color-1 span {
  background-color: #bfbfbf;
}
/* グリーン */
.sm-color-2 span {
  background-color: #5fa05c;
}
/* イエロー */
.sm-color-3 span {
  background-color: #fff083;
}
/* ブラウン */
.sm-color-4 span {
  background-color: #755f4b;
}
/* ベージュ */
.sm-color-5 span {
  background-color: #e8d9bc;
}
/* レッド */
.sm-color-6 span {
  background-color: #ea5757;
}
/* ピンク */
.sm-color-7 span {
  background-color: #f4c1c7;
}
/* パープル */
.sm-color-8 span {
  background-color: #bd90e0;
}
/* ブルー */
.sm-color-9 span {
  background-color: #4f7be8;
}
/* ネイビー */
.sm-color-I span {
  background-color: #0c2374;
}
/* メタル */
.sm-color-A span {
  background-image: url(/res/p/img/brand/2024/bg-metal.png);
}
/* ブラック */
.sm-color-B span {
  background-color: #4a4a4a;
}
/* カーキ */
.sm-color-C span {
  background-color: #b5bca2;
}
/* オレンジ */
.sm-color-D span {
  background-color: #ffab50;
}
/* シルバー */
.sm-color-F span {
  background-image: url(/res/p/img/brand/2024/bg-silver.png);
}
/* ゴールド */
.sm-color-G span {
  background-image: url(/res/p/img/brand/2024/bg-gold.png);
}
/* カラーなし */
.sm-color-Z span {
  background-color: white;
  border: 1px dashed #ddd;
}
/* Etc(Mix) */
.sm-color-E span {
  background-image: url(/res/p/img/brand/2018/bg-multi-color.png);
}
/* レオパード */
.sm-color-H span {
  background-image: url(/res/p/img/brand/2018/bg-leopard.png);
}

/* =========================================================
価格・割引率から探す
========================================================= */
.sm-price-group {
  margin: 0 15px;
}
.sm-price-group + .sm-price-group {
  margin-top: 20px;
}
.sm-price-heading {
  font-size: 13px;
  margin-bottom: 7px;
}

.sm-form-select-group,
.sm-range-fields {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 3em 1fr;
}
.sm-form-select-group span,
.sm-range-sep {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================================
販売状況（通常販売、セールなど）
========================================================= */
.sm-stock-list {
  margin: 0 15px;
}

/* =========================================================
アイコン、入荷状況、在庫状況
========================================================= */
.sm-block {
  padding: 20px 0;
  margin: 0 15px;
}
.sm-block + .sm-block {
  border-top: 1px solid var(--gray-100);
}

.sm-block-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sm-clear-button {
  font-size: 10px;
  font-weight: bold;
  appearance: none;
  border: none;
  background-color: transparent;
  padding: 1px 5px;
  color: #f8a796;
}

.sm-block-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 0;
  padding: 0 15px;
}

/* =========================================================
ページに設置するボタン
========================================================= */
.search-module-button {
  position: fixed;
  bottom: 20px;
  right: 150px;
  z-index: 9;
  box-sizing: border-box;
  height: 36px;
  line-height: 36px;
  display: inline-block;
  border-radius: 18px;
  margin: 0 3px;
  padding: 0 13px;
  background-color: #4a4a4a;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  width: 110px;
  text-align: right;
  cursor: pointer;
}

.search-module-button:before {
  content: "";
  width: 16px;
  height: 16px;
  background: url(/res/s/img/search/icn_footer_search.svg) no-repeat;
  background-size: contain;
  display: inline-block;
  position: absolute;
  margin: -8px 0 0 0;
  top: 50%;
  left: 10%;
}

/* =========================================================
トーストメッセージ
========================================================= */
.sm-toast {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0 0 0 / 0.1);
  z-index: 10;
}
.sm-toast-contents {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
}

/* =========================================================
ZETAサジェスト
========================================================= */
.z-contents {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  padding-top: 61px;
  /* border: 4px solid red; */
}

.z-suggest {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: auto;
  z-index: 4;
  background-color: white;
}

.z-suggest-scroll {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
  -ms-overflow-style: none;
  overflow-x: hidden;
  /* scroll だと中身が収まっていても矢印だけ出る（PCは親の scrollbar-color で ::-webkit-scrollbar が効かない） */
  overflow-y: auto;
  display: none;
}
.z-suggest-scroll::-webkit-scrollbar {
  display: none;
}

.z-freeword {
  width: 100%;
  height: 48px;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  padding-right: 64px;
  position: relative;
}
/* 検索ボタン（ZETAのJSは .z-freeword 自体のクリックで送信する＝疑似要素のクリックも送信になる） */
.z-freeword::after {
  content: "検索";
  display: grid;
  place-items: center;
  width: 64px;
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  font-size: 13px;
  color: white;
  background-color: var(--gray-400);
  border-radius: 0 50px 50px 0;
  cursor: pointer;
}
.z-freeword .z-freeword-input {
  width: 100%;
  height: 46px;
  font-size: 16px;
  padding: 0 15px;
  border: none;
  appearance: none;
  border-radius: 50px;
  outline: none;
}
.z-suggest-close {
  appearance: none;
  border: none;
  background: white url(/res/s/img/search/icn_modeal_close.svg) no-repeat center;
  background-size: 16px;
  border-radius: 0 50px 50px 0;
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 46px;
  display: none;
}

/* active */
.z-suggest.is-active {
  height: calc(100dvh - 50px);
}
.z-suggest.is-active .z-suggest-scroll {
  display: flex;
}
/* サジェスト表示中は「×」を検索ボタンの左隣に出す */
.z-suggest.is-active .z-freeword {
  padding-right: 109px;
}
.z-suggest.is-active .z-suggest-close {
  display: block;
  right: 64px;
  border-radius: 0;
}
.sm-contents:has(.z-suggest.is-active) {
  overflow: hidden !important;
}

.z-item-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 15px;
  padding-bottom: 50px;
}
.z-item-brand-name {
  font-size: 10px;
  margin-top: 10px;
}
.z-item-price {
  font-size: 13px;
}
.z-item img {
  width: 100%;
  height: auto;
  vertical-align: top;
}

.z-blocks {
  background-color: #f5f5f5;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  display: none;
}
.z-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.z-heading {
  display: flex;
  justify-content: space-between;
}
.z-delete-button {
  text-decoration: underline !important;
}

.z-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
}
.z-tag {
  text-decoration: none;
  padding: 7px 10px;
  background-color: #e0e0e0;
  border-radius: 40px;
}
.z-popular-keyword .z-tag {
  background-color: #ffe6de;
}

/* =========================================================
Awoo版人気検索キーワード
========================================================= */
.sm-popular-keyword {
  .popular-keyword-links-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #f5f5f5;
    padding: 25px 15px;
  }

  .popular-keyword-links-title {
    font-size: 12px;
    font-weight: normal;
  }

  .popular-keyword-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 4px;
    a {
      text-decoration: none;
      padding: 7px 10px;
      background-color: #ffe6de;
      border-radius: 40px;
    }
  }
}

/* =========================================================
PC用css
========================================================= */
@media screen and (min-width: 750px) {
  /* 文字の色と太さ（デザインは游ゴシック Medium・#424242）。header-footer.css の .l-header * が全要素を細字・#333 に戻すので、中の全要素に当て直す。
     ここより後ろの指定（同じ詳細度）が勝つように、PC用の先頭に置く */
  .search-module * {
    color: var(--gray-400);
    font-weight: 500;
  }

  /* 閉じる（デザイン：14px・右上から約14px） */
  .sm-close {
    width: 44px;
    height: 44px;
    display: block;
    background: url(/res/s/img/search/icn_modeal_close.svg)
      no-repeat center;
    background-size: 14px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
  }

  .sm-overlay {
    background-color: rgba(255, 255, 255, 0.7);
  }

  .search-module {
    /* 左右の余白：最初の画面は50px、第2階層（カテゴリー・こだわり・ブランド）は40px（デザイン pc1105_ol の実測） */
    --sm-gutter: 50px;
    --sm-gutter-sub: 40px;
    /* 高さ：画面の上下に40pxずつ残す（デザイン・指示書「高さは余白を残して可変」） */
    --sm-height: calc(100vh - 80px);
    box-sizing: border-box;
    /* 幅：デザインは560pxだが、ブランド名（いちばん長い「ジェラート ピケ キッズ&ベビー」）が
       3列で折り返さないように620pxへ広げた（担当者・2026-11-17） */
    width: 620px;
    border: 1px solid #b3b3b3;
    overflow: hidden;
    position: relative;
    left: 0;
  }
  .search-module.is-active {
    translate: 0;
  }

  .search-module,
  .sm-contents,
  .sm-card,
  .sm-card-contents {
    height: var(--sm-height);
  }

  .sm-header,
  .sm-card,
  .sm-fix-buttons {
    position: absolute;
  }

  /* 上部の帯：最初の画面は「×」だけなので低く、第2階層は題と「ひとつ戻る」を上から約53pxの位置に置く */
  .sm-header {
    height: 30px;
  }
  .sm-header:has(.sm-back) {
    height: 76px;
    padding-top: 30px;
  }
  .sm-back {
    top: 30px;
    left: var(--sm-gutter);
    height: 46px;
    padding: 0;
    font-size: 10px;
  }
  .sm-back::before {
    width: 3px;
    height: 6px;
    margin-bottom: 0;
    margin-right: 9px;
  }

  .sm-contents {
    overscroll-behavior: none;
    padding-top: 31px;
  }
  /* 下のボタン帯（高さ110px）に隠れないようにする */
  .sm-contents,
  .sm-card-contents {
    padding-bottom: 110px;
  }

  .search-module-button {
    right: 20px;
  }

  /* チェックボックス・ラジオ：12px・中の印6px（上下左右3pxずつ）。
     デザインは10px・印7pxだが、1.5pxの端数で印が真ん中に来ないので、割り切れる大きさにした（担当者・2026-11-17） */
  .sm-form-checkbox,
  .sm-form-radio {
    width: 12px !important;
    height: 12px !important;
    flex: none;
    &::before {
      width: 12px;
      height: 12px;
      margin-top: 0;
    }
    &:checked::after {
      width: 6px;
      height: 6px;
      top: 3px;
      left: 3px;
      margin-top: 0;
    }
  }

  /* 性別カテゴリ（デザイン：Arial 12px・幅いっぱいに均等割り・下の線 #9e9e9e） */
  .sm-lm {
    width: auto;
    margin: 0 var(--sm-gutter) 20px;
    border-bottom-color: var(--gray-300);
    .sm-lm-inr {
      width: 100%;
      justify-content: space-between;
      gap: 0;
      padding: 0;
    }
    .lm-label {
      /* 文字を上下の真ん中に置く（デザインは上12px・下8px。担当者の指示・2026-11-17） */
      padding: 11px 0 9px;
      span {
        font-family: Arial, sans-serif;
      }
    }
    .lm-label:has(input:checked)::before {
      background-color: var(--gray-400);
    }
  }

  /* ZETAモジュール */
  .z-contents {
    padding-top: 45px;
  }
  .z-suggest {
    padding: 0 var(--sm-gutter);
    gap: 20px;
  }
  .z-suggest.is-active {
    height: calc(var(--sm-height) - 33px);
  }

  .z-freeword {
    height: 30px;
    padding-right: 60px;
    &::after {
      width: 60px;
      font-size: 12px;
    }
    .z-freeword-input {
      height: 28px;
      font-size: 12px;
      padding: 0 16px;
    }
  }
  /* 「×」を入力欄の高さに合わせる（SP用の46pxのままだと枠の下にはみ出す） */
  .z-suggest-close {
    width: 36px;
    height: 28px;
    background-size: 12px;
  }
  /* タグ（デザイン：高さ19.5px・11px・#64625d・行の間10px） */
  .z-tags {
    gap: 10px 4px;
  }
  .z-tag {
    padding: 2px 7px;
    font-size: 11px;
    line-height: 15.5px;
    color: #64625d;
  }
  .z-heading,
  .z-heading * {
    font-size: 10px;
  }
  /* サジェスト（デザイン：タグと商品の間20px・商品は4列で左右に約6pxはみ出す・文字は中央揃え） */
  .z-suggest-scroll {
    gap: 20px;
    margin: 0 -6px;
    padding: 0 6px;
  }
  .z-item-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 10px;
    margin: 0 -6px;
  }
  .z-item-brand-name {
    margin-top: 11px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    text-align: center;
    /* 長いブランド名は1行で「...」にする。幅は「UNDERSON UNDERSON」（Arial 9pxで105.5px・2026-11-18 実測）が切れずに入る大きさ */
    max-width: 107px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .z-item-price {
    font-family: "Poppins", sans-serif;
    font-size: 8px;
    text-align: center;
  }
  .z-suggest.is-active {
    .z-freeword {
      padding-right: 96px;
    }
    .z-suggest-close {
      right: 60px;
    }
  }

  .sm-popular-keyword {
    .popular-keyword-links-wrap {
      width: 100%;
      gap: 9px;
      background-color: white;
      padding: 0 var(--sm-gutter) 20px;
      margin: 0;
      .popular-keyword-links-title {
        font-size: 10px;
      }
      .popular-keyword-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 4px;
        a {
          padding: 2px 7px;
          font-size: 11px;
          line-height: 15.5px;
          color: #64625d;
          height: auto;
        }
      }
    }
  }

  /* 共通 */
  .sm-group {
    padding: 0 var(--sm-gutter);
  }
  /* 「〜から探す」の行（デザイン：太字12px・行の高さ約52px・線 #d6d6d6・右の値10px・矢印は小さく右から12px） */
  .sm-card-button {
    align-items: center;
    /* 文字を線と線の真ん中に置く（デザインは上15px・下19pxだが担当者の指示・2026-11-17）。
       游ゴシックは行の中で1pxほど上に寄って描かれるので、上を1px多くしている */
    padding: 18px 32px 16px 0;
    border-bottom-color: #d6d6d6;
    background-position: center right 12px;
    background-size: auto 7px;
  }
  .sm-card-button-text {
    font-weight: bold;
  }
  .sm-selected {
    font-size: 10px;
  }
  .sm-selected.no-selection {
    opacity: 1;
    color: var(--gray-300);
  }
  /* 上部の見出し（ひとつ戻るの横）。.sm-heading は太字だが、header-footer.css の .l-header * が中の div を細字に戻すので、div にも指定する */
  .sm-heading > div {
    font-weight: bold;
  }

  /* カテゴリーから探す（デザイン：左右40px・行の送り52.5px・10px・子は3列で10px内側・行の送り30.5px） */
  .sm-group-category {
    .sm-card-contents {
      padding-top: 112px;
      padding-bottom: 60px;
    }
    .sm-accordion-button {
      background-image: none !important;
      /* 文字と＋を線と線の真ん中に置く（担当者の指示・2026-11-17）。文字が上に寄って描かれるぶん、上を1px多くしている */
      padding: 19.5px 0 18.5px;
      font-size: 10px;
      line-height: 14px;
      border-bottom-color: #d6d6d6;
      &::after {
        width: 10px;
        height: 10px;
        top: calc(50% - 5px);
        right: 0;
      }
    }
    .sm-accordion {
      margin: 0 var(--sm-gutter-sub);
      &:first-child {
        border-top: 1px solid #d6d6d6;
      }
      /* 開いた中身の下にも区切り線を引く（デザイン：中身の下に線があり、次の親の行はその下） */
      &:has(.sm-accordion-child.is-open) {
        border-bottom: 1px solid #d6d6d6;
      }
      .sm-accordion-child {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        /* 上の線から最初の文字まで約20px、最後の文字から下の線まで約29px（デザイン pc1105_ol の実測） */
        margin: 18px 0 26px 10px;
        gap: 16.5px 10px;
        &.is-open {
          display: grid;
        }
        label {
          border: none;
          background: none;
          padding: 0;
          font-size: 10px;
          line-height: 14px;
          &:hover {
            text-decoration: underline;
          }
          &.is-selected {
            background-color: transparent;
            text-decoration: underline;
          }
        }
      }
    }
    /* 下40pxは白い帯で固定（指示書「カテゴリは下から40px」） */
    .sm-card-category::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 40px;
      background-color: white;
    }
  }

  /* こだわり条件から探す（デザイン：左右40px・見出し太字12px・項目10pxで10px内側・3列） */
  .sm-card-kodawari .sm-card-contents {
    padding-top: 88px;
  }
  .sm-kodawari-list {
    margin: 0 var(--sm-gutter-sub);
    .sm-kodawari-list-heading {
      background-color: white;
      padding: 0;
      margin: 19px 0 11px;
      font-weight: bold;
    }
    .sm-form-label-group {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0;
      padding-left: 10px;
      .sm-form-label-thick-half {
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        border: none;
        padding: 5px 0;
        font-size: 10px;
        line-height: 14.3px;
      }
    }
  }

  /* ブランドから探す（デザイン：入力欄231×32px・升29.5px・見出しの帯30px・一覧は3列で英字 Arial 9px／カナ10px） */
  .sm-card-brand .sm-card-contents {
    padding-top: 82px;
  }
  .sm-brand-input {
    width: 231px !important;
    height: 32px !important;
    line-height: 30px !important;
    margin-bottom: 12px;
    font-size: 10px;
  }
  .sm-alpha-grid {
    gap: 4px;
    margin-bottom: 20px;
  }
  .sm-cell {
    width: 29.5px;
    height: 29.5px;
    font-size: 13px;
    /* 最後の升はPCだけ「その他」と表示する（inc はSPと共用で「OTHER」のまま。担当者・2026-11-17） */
    &.span2 {
      width: 63px;
      font-size: 0;
      /* 元の文字（OTHER）が grid の1行ぶんを取って「その他」が下へ押されるので、
         flex にして元の文字の大きさを0にし、「その他」だけを升の真ん中に置く */
      display: flex;
      justify-content: center;
      align-items: center;
      line-height: 0;
      &::after {
        content: "その他";
        padding-top: 1px;
        font-size: 10px;
        line-height: 1;
      }
    }
    &.disabled {
      opacity: 1;
      border-color: #f5f5f5;
      background-color: #f5f5f5;
      color: #d6d6d6;
    }
  }
  .sm-brand-list {
    margin: 0 var(--sm-gutter-sub);
    .sm-brand-name {
      font-family: Arial, sans-serif;
      font-size: 9px;
      line-height: 11px;
    }
    .sm-brand-kana {
      font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", sans-serif;
      font-size: 10px;
      line-height: 10px;
      color: #747474;
    }
    .sm-brand-index-header {
      height: 30px;
      border: none;
      margin: 20px 0 19px;
      font-family: "Poppins", sans-serif;
      &:first-child {
        margin-top: 0;
      }
    }
    .sm-form-label-group {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 17px 0;
      padding-left: 10px;
    }
    .sm-form-label-thick {
      padding: 0 6px 0 0;
      gap: 0 10px;
      flex-direction: row-reverse;
      border-bottom: none;
      align-items: flex-start;
    }
    /* チェックボックスは1行目の英字にそろえる（カナとの2行の真ん中にしない・2026-11-18 依頼） */
    .sm-form-checkbox {
      margin-top: 0;
    }
    .sm-brand-logo {
      display: none;
    }
  }

  /* カラーから探す（デザイン：見出しから色見本まで約9px・色見本の横の間14px） */
  .sm-group-color {
    margin-top: 35px;
    .sm-card-button {
      padding: 0;
      margin-bottom: 9px;
      border-bottom: none;
      background: none;
      pointer-events: none;
      .sm-selected {
        display: none;
      }
    }
    .sm-card-color {
      position: relative;
      height: auto;
      left: 0;
      z-index: 3;
      &.is-active {
        left: 0;
      }
      .sm-card-contents {
        height: auto;
        padding: 0;
        .sm-colors {
          grid-template-columns: repeat(9, minmax(0, 1fr));
          gap: 10px 14px;
          margin: 0;
          [class*="sm-color-"] {
            width: 26px;
            height: 26px;
            font-size: 0;
            position: relative;
          }
          [class*="sm-color-"] span {
            width: 26px;
            height: 26px;
            position: absolute;
            top: 0;
            left: 0;
          }
          [class*="sm-color-"] input:checked + span::after {
            width: 8px;
            height: 16px;
            margin-bottom: 5px;
          }
        }
      }
    }
  }

  /* 価格・割引率から探す */
  /* デザイン：見出し太字12px（幅77px）・欄100×30px・欄の間32px・「～」14px #9e9e9e・単位10px・行の間22px */
  .sm-group-price {
    margin-top: 31px;
    .sm-card-button {
      display: none;
    }
    .sm-card-price {
      width: max-content;
      position: relative;
      height: auto;
      left: 0;
      z-index: 3;
      &.is-active {
        left: 0;
      }
      .sm-card-contents {
        display: flex;
        flex-direction: column;
        gap: 22px;
        height: auto;
        padding: 0;
        .sm-price-group {
          display: flex;
          align-items: center;
          margin: 0;
          .sm-price-heading {
            width: 77px;
            margin-bottom: 0;
            font-size: 12px;
            font-weight: bold;
          }
          .sm-range-fields {
            width: auto;
            grid-template-columns: 100px 32px 100px;
            .sm-range-field input {
              height: 30px;
              padding: 5px 24px 5px 5px;
              font-size: 13px;
            }
            .sm-range-unit {
              right: 10px;
              font-size: 10px;
            }
            .sm-range-sep {
              font-size: 14px;
              color: var(--gray-300);
              /* 「～」は上に寄って描かれるので、欄の真ん中まで下げる */
              padding-top: 3px;
            }
          }
        }
      }
    }
  }

  /* 販売状況（通常販売、セールなど） */
  .sm-group-stock {
    display: flex;
    margin-top: 26px;
    .sm-card-button {
      width: 77px;
      padding: 0;
      border-bottom: none;
      background: none;
      pointer-events: none;
      .sm-selected {
        display: none;
      }
    }
    .sm-card-stock {
      width: max-content;
      position: relative;
      height: auto;
      left: 0;
      z-index: 3;
      &.is-active {
        left: 0;
      }
      .sm-card-contents {
        height: auto;
        padding: 0;
        .sm-stock-list {
          margin: 0;
          .sm-form-label-group {
            display: flex;
            gap: 30px;
            margin-bottom: 1px;
            .sm-form-label-thick {
              flex-basis: max-content;
              border-bottom: none;
              padding: 0;
              flex-direction: row-reverse;
              justify-content: flex-start;
              gap: 10px;
            }
          }
        }
      }
    }
    .sm-fix-buttons {
      display: none;
    }
  }

  /* その他（デザイン：見出し太字12px・幅77px・升と文字の間10px・選択肢の間30px・行の送り約21px） */
  .sm-block {
    display: flex;
    margin: 35px var(--sm-gutter) 0;
    padding: 0;
    & + .sm-block {
      border-top: none;
    }
  }
  .sm-block-heading {
    width: 77px;
    align-items: flex-start;
    margin-bottom: 0;
    font-weight: bold;
    .sm-clear-button {
      display: none;
    }
  }
  .sm-block-list {
    width: calc(100% - 77px);
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    gap: 5px 30px;
    .sm-form-label {
      gap: 10px;
    }
  }

  /* 下のボタン帯（デザイン・指示書：上下40pxの白・左右50px。件数24px 中太・「件」13.5px・リセット79px・検索する108px） */
  .sm-fix-buttons {
    padding: 40px var(--sm-gutter);
    button {
      height: 30px;
      border-color: var(--gray-400);
    }
    .sm-count {
      margin: 0 4px 0 0;
      font-weight: 500;
      line-height: 30px;
      span {
        font-size: 13.5px;
      }
    }
    .sm-button-normal {
      width: 79px;
      font-size: 11.5px;
      font-weight: 500;
    }
    .sm-button-primary {
      width: 108px;
      font-size: 12px;
      font-weight: bold;
    }
  }

  /* =========================================================
  スクロールバー（SPは隠したまま、PCだけ表示する）
  ========================================================= */
  .sm-contents,
  .sm-card-contents {
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) transparent;
  }
  /* scrollbar-width 未対応のブラウザ向け */
  .sm-contents::-webkit-scrollbar,
  .sm-card-contents::-webkit-scrollbar {
    display: block;
    width: 8px;
  }
  .sm-contents::-webkit-scrollbar-track,
  .sm-card-contents::-webkit-scrollbar-track {
    background-color: transparent;
  }
  .sm-contents::-webkit-scrollbar-thumb,
  .sm-card-contents::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);
    border-radius: 4px;
  }
}
