/* スマホ：「Coming soon」の下の文章は、ほかのページのリード文と同じ文字サイズ */
  @media (max-width:760px) {
    #p-find .cases-hero .fd-soon-tx {
      font-size: 13px !important;
      line-height: 1.85 !important;
    }
  }
  
  #p-find .cases-hero .fd-soon {
    font-family: var(--f-en) !important;
    font-size: clamp(28px,3.4vw,44px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: .06em;
    margin-top: 18px;
  }
  
  /* 「Coming soon」と本文の間をあける */
  #p-find .cases-hero .fd-soon-tx {
    margin-top: 22px;
  }
  
  /* スマホ・タブレット：PCで左右に並べている写真を、本文の下に並べる */
  @media (max-width:1000px) {
    #p-find .fd-top {
      display: flex;
      flex-direction: column;
    }
    #p-find .fd-top .side {
      order: 1;
      display: grid;
      position: static;
      transform: none;
      grid-template-columns: repeat(4,minmax(0,1fr)) !important;
      gap: 10px;
      width: 100%;
      max-width: 560px;
      margin: 36px auto 0;
    }
    #p-find .fd-top .side.r {
      margin-top: 10px;
    }
    #p-find .fd-top .side .ph {
      border-radius: 16px;
    }
  }

  /* スマホ：ブエンフィンの期間中は写真を出さず、最初の画面でブエンフィンのバナーが見えるようにする
     （期間が終わると find/buen-fin.js が data-bf-active を外し、写真がまた表示される。PC・タブレットはそのまま） */
  @media (max-width:760px) {
    #p-find .fd-top[data-bf-active] .side {
      display: none;
    }
  }
  
  #p-find .fd-soon-acts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
  }
  
  /* Styles of this page: rules scoped by the page/component root (also apply to markup rendered by its scripts) */
  @media (max-width:760px) {
    #p-find .fd {
      padding-top: 76px !important;
    }
  }
  
  @media (max-width:760px) {
    #p-find .fd {
      padding-top: 40px !important;
    }
  }
  
  #p-find .ml {
    padding-top: var(--sp-first) !important;
  }
  
  #p-find>section.ml+section.fd:not(#z1):not(#z2):not(#z3) {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  #p-find>section.ml.sites-on:not(#z1):not(#z2) {
    padding-bottom: 0 !important;
  }
  
  #p-find .ml.sites-on+.fd .fd-filter {
    margin-top: 8px;
  }
  
  @media (min-width:700px) {
    #mlDetail {
      display: grid;
      grid-template-columns: minmax(0,1fr) minmax(0,1fr);
      gap: 24px;
    }
  }
  
  @media (min-width:1024px) {
    #p-find .ml-cats {
      position: sticky;
      top: 0;
      z-index: 25;
      margin: 22px -12px 0;
      padding: 10px 12px;
      background: rgba(251,238,225,.94);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      border-radius: 0 0 18px 18px;
    }
    #p-find .ml-cats.stuck {
      padding: 8px 12px;
      flex-wrap: nowrap;
      justify-content: center;
      gap: 6px;
    }
    #p-find .ml-cats.stuck button {
      flex-direction: row;
      width: auto;
      gap: 6px;
      border: 1.5px solid #EAD9C9;
      background: #fff;
      border-radius: 999px;
      padding: 4px 12px 4px 4px;
      font-size: 12px;
      white-space: nowrap;
    }
    #p-find .ml-cats.stuck .ci {
      width: 28px;
      height: 28px;
      border-width: 0;
      box-shadow: none;
    }
    #p-find .ml-cats.stuck button[aria-pressed="true"] {
      border-color: #FA5822;
      background: #FFF4EC;
    }
    #p-find .ml-side {
      top: 72px;
    }
  }
  
  @media (min-width:1024px) {
    #p-find .ml-cats,
    #p-find .ml-cats.stuck {
      position: static !important;
      background: none !important;
      -webkit-backdrop-filter: none !important;
      backdrop-filter: none !important;
      margin: 22px 0 0 !important;
      padding: 2px 0 4px !important;
      flex-wrap: wrap !important;
      gap: 8px !important;
      justify-content: center;
    }
    #p-find .ml-cats.stuck button {
      flex-direction: column !important;
      width: 84px !important;
      gap: 6px !important;
      border: 0 !important;
      background: none !important;
      padding: 0 !important;
      font-size: 11.5px !important;
      white-space: normal !important;
    }
    #p-find .ml-cats.stuck .ci {
      width: 64px !important;
      height: 64px !important;
      border-width: 2px !important;
    }
    #p-find .ml-cats.stuck button[aria-pressed="true"] .ci {
      box-shadow: 0 0 0 3px #FFE3CF !important;
    }
    #p-find .ml-side {
      top: 24px !important;
    }
    html:not(.ml-hdr-off) #p-find .ml-side {
      top: 96px !important;
    }
    #p-find .ml-side {
      transition: top .35s cubic-bezier(.33,1,.68,1);
    }
  }/* ショップ一覧：カテゴリのボタンは折り返す（スマホは横スクロール） */
  #p-find .fd-filter {
    flex-wrap: wrap;
  }
  @media (max-width:760px) {
    #p-find .fd-filter {
      flex-wrap: nowrap;
      overflow-x: auto;
      margin-left: calc(var(--gutter) * -1);
      margin-right: calc(var(--gutter) * -1);
      padding: 0 var(--gutter) 6px;
      scrollbar-width: none;
    }
    #p-find .fd-filter::-webkit-scrollbar {
      display: none;
    }
    #p-find .fd-filter button {
      flex: none;
    }
    /* スマホ：ショップが多いので、色のカードを低くする */
    #p-find .fd-og {
      aspect-ratio: 2.8/1;
    }
    /* 画像のあるカードは、OGP画像（1200×630）が切れないように元の比率のまま */
    #p-find .fd-og.has-img {
      aspect-ratio: 1.91/1;
    }
  }
  /* PC：ショップが多いので3列 */
  @media (min-width:1000px) {
    #p-find .fd-grid {
      grid-template-columns: repeat(3,minmax(0,1fr));
    }
  }
  #p-find .fd-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: auto;
    padding-top: 4px;
  }
  #p-find .fd-links .tlink {
    margin-top: 0;
  }
  /* カードの画像（Keystaticの「カードの画像」）：公式のOGP画像を加工せずに使うので、切り取らずに全体を枠の中に表示する
     （object-fit: contain）。枠の地は白（背景が透明な画像はKeystaticの「画像の背景色」）、ショップ名の文字は隠す。
     薄い枠で、白地の画像でもカードとの境目がわかるようにする */
  #p-find .fd-og.has-img {
    background: var(--bgi,#fff);
  }
  #p-find .fd-og.has-img > b,
  #p-find .fd-og.has-img > span {
    visibility: hidden;
  }
  #p-find .fd-og.has-img img {
    object-fit: contain;
  }
  /* ロゴの画像（Keystaticの「ロゴの画像」）：枠いっぱいにならないよう、内側に余白を付けて表示し、ロゴの大きさをそろえる
     （余白の色は「画像の背景色」。画像ファイルは加工しない） */
  #p-find .fd-og.is-logo img {
    box-sizing: border-box;
    padding: 8% 16%;
  }
  #p-find .fd-og.has-img::after {
    inset: 0;
    width: auto;
    height: auto;
    z-index: 1;
    border-radius: inherit;
    background: none;
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  }
  /* ブエンフィンのお知らせ（期間が終わると find/buen-fin.js が隠す） */
  #p-find .fd-bf-banner {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    transition: transform .2s, box-shadow .2s;
  }
  #p-find .fd-bf-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.24);
  }
  #p-find .fd-bf-banner[hidden] {
    display: none;
  }
  #p-find .fd-bf-banner img {
    display: block;
    width: 100%;
    height: auto;
  }
  /* ブエンフィンのセールを実施中のショップ（Keystaticの「ブエンフィンのセールを実施中」）：色のカードの左上のバッジ */
  #p-find .fd-card {
    position: relative;
  }
  #p-find .fd-bfb {
    position: absolute;
    top: -8px;
    left: -8px;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    border: 2px solid #F2208C;
    box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(0,0,0,.35);
    transform: rotate(-10deg);
    text-align: center;
  }
  #p-find .fd-bfb b {
    font: italic 700 14px/.95 var(--f-en);
    letter-spacing: .02em;
  }
  @media (max-width:760px) {
    #p-find .fd-bfb {
      width: 46px;
      height: 46px;
      top: -6px;
      left: -5px;
    }
    #p-find .fd-bfb b { font-size: 12.5px; }
  }
  /* スマホ：カテゴリはボタンの代わりにプルダウンで選ぶ（find/sites-filter.js） */
  #p-find .fd-sel {
    display: none;
  }
  #p-find .fd-filter,
  #p-find .fd-sel {
    scroll-margin-top: 110px;
  }
  @media (max-width:760px) {
    #p-find .fd-filter {
      display: none;
    }
    #p-find .fd-sel {
      display: block;
      margin: 28px 0 8px;
    }
    #p-find .fd-sel-h {
      display: block;
      font: 900 16px var(--f-jp-h);
      margin-bottom: 10px;
    }
    #p-find .fd-sel select {
      width: 100%;
      appearance: none;
      -webkit-appearance: none;
      border: 1.5px solid #EAD9C9;
      border-radius: 999px;
      padding: 12px 44px 12px 18px;
      font: 700 15px var(--f-jp-h);
      color: var(--ink);
      background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23E8692E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
    }
  }
  #p-find .fd-bfb[hidden] {
    display: none;
  }