
.nf-catalog-page{background:#f7f8f6;padding:0 0 64px}
.nf-catalog-container{width:min(1280px,calc(100% - 32px));margin:0 auto}
.nf-catalog-hero{padding:28px 0 18px;text-align:center}
.nf-catalog-eyebrow,.nf-catalog-small-label{margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#628064}
.nf-catalog-hero h1{margin:0;font-size:clamp(28px,4vw,46px);line-height:1.25;letter-spacing:.02em}
.nf-catalog-lead{max-width:720px;margin:9px auto 0;line-height:1.65;color:#555;font-size:14px}
.nf-catalog-search-panel{background:#fff;border:1px solid #e3e5e0;border-radius:13px;padding:14px;box-shadow:0 5px 18px rgba(0,0,0,.03)}
.nf-catalog-search-main>label{display:block;margin-bottom:8px;font-weight:700}
.nf-catalog-search-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.nf-catalog-search-box input{width:100%;min-height:48px;border:1px solid #cfd4cc;border-radius:10px;padding:0 14px;font-size:16px}
.nf-catalog-search-box button{min-width:100px;border:0;border-radius:10px;background:#257b39;color:#fff;font-weight:700;padding:0 20px;cursor:pointer}
.nf-catalog-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.nf-catalog-filters label span{display:block;margin-bottom:6px;font-size:13px;font-weight:700}
.nf-catalog-filters select{width:100%;min-height:42px;border:1px solid #cfd4cc;border-radius:8px;background:#fff;padding:0 10px}
.nf-catalog-filter-actions{margin-top:14px;text-align:right}
.nf-catalog-reset{border:0;background:transparent;color:#555;text-decoration:underline;cursor:pointer}
.nf-catalog-taxonomy-sections{display:grid;gap:18px;margin-top:24px}
.nf-tax-section{background:#fff;border:1px solid #e3e5e0;border-radius:14px;padding:22px}
.nf-tax-section-head h2{margin:0 0 14px;font-size:20px}
.nf-tax-chips{display:flex;flex-wrap:wrap;gap:8px}
.nf-tax-chip{border:1px solid #d7dbd3;background:#fff;border-radius:999px;padding:8px 12px;cursor:pointer;transition:.15s ease}
.nf-tax-chip:hover{border-color:#257b39;color:#257b39}
.nf-tax-chip span{display:inline-block;margin-left:5px;color:#888;font-size:12px}
.nf-catalog-products-section{margin-top:34px}
.nf-catalog-products-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.nf-catalog-products-head h2{margin:0;font-size:28px}
.nf-catalog-count{margin:0;color:#666}
.nf-catalog-count strong{font-size:28px;color:#222}
.nf-catalog-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.nf-catalog-card{overflow:hidden;background:#fff;border:1px solid #e3e5e0;border-radius:14px;transition:transform .16s ease,box-shadow .16s ease}
.nf-catalog-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.07)}
.nf-catalog-card-image{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:#f0f1ef}
.nf-catalog-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.nf-catalog-card:hover .nf-catalog-card-image img{transform:scale(1.02)}
.nf-catalog-noimage{display:grid;place-items:center;height:100%;color:#8a8f88;font-weight:700}
.nf-catalog-status{position:absolute;top:10px;left:10px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.nf-catalog-status.is-open{color:#257b39}.nf-catalog-status.is-reserve{color:#9a6816}.nf-catalog-status.is-closed{color:#777}
.nf-catalog-card-body{padding:13px}
.nf-catalog-municipality{margin-bottom:7px;color:#628064;font-size:12px;font-weight:700}
.nf-catalog-card h3{margin:0;font-size:13.5px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;min-height:5.9em}
.nf-catalog-card h3 a{color:#222;text-decoration:none}
.nf-catalog-fruits{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.nf-catalog-fruits span{padding:2px 6px;background:#f1f4ef;border-radius:999px;color:#536253;font-size:11px}
.nf-catalog-price{margin-top:11px;font-size:15px;font-weight:700}
.nf-catalog-detail-button{display:block;margin-top:11px;padding:8px 10px;border:1px solid #257b39;border-radius:8px;color:#257b39!important;text-align:center;text-decoration:none!important;font-weight:700}
.nf-catalog-detail-button:hover{background:#257b39;color:#fff!important}
.nf-catalog-loading{padding:14px;margin-bottom:14px;border-radius:8px;background:#eef3ed;color:#536253;text-align:center}
#nf_catalog_results.is-loading{opacity:.45}
.nf-catalog-empty{padding:48px 20px;background:#fff;border:1px solid #e3e5e0;border-radius:14px;text-align:center}
.nf-catalog-pagination-inner{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:28px}
.nf-catalog-page-button{min-width:40px;min-height:40px;border:1px solid #d1d5cf;border-radius:8px;background:#fff;cursor:pointer}
.nf-catalog-page-button.is-current{background:#257b39;border-color:#257b39;color:#fff}
.nf-catalog-page-dots{display:inline-flex;align-items:center;padding:0 4px;color:#777}
.nf-catalog-notice{margin-top:36px;padding:18px 20px;border-top:1px solid #ddd;color:#666;font-size:12px;line-height:1.75}
@media(max-width:1100px){.nf-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.nf-catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.nf-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){
.nf-catalog-container{width:min(100% - 20px,1180px)}.nf-catalog-hero{padding:36px 6px 24px}
.nf-catalog-search-panel{padding:16px}.nf-catalog-search-box{grid-template-columns:1fr}.nf-catalog-search-box button{min-height:44px}
.nf-catalog-filters{grid-template-columns:1fr}.nf-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.nf-catalog-card-body{padding:10px}.nf-catalog-card h3{min-height:5.6em;font-size:12.5px;-webkit-line-clamp:4}.nf-catalog-price{font-size:13px}
.nf-catalog-products-head h2{font-size:23px}.nf-tax-section{padding:16px}
}

.nf-catalog-card-image img{
  image-rendering:auto;
  backface-visibility:hidden;
}
.nf-catalog-card-image{
  border-bottom:1px solid #eef0ec;
}


/* v0.5.2 compact catalog header */
.nf-catalog-compact-search{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.nf-catalog-compact-search .nf-catalog-search-box{
  min-width:0;
}
.nf-catalog-filter-toggle,
.nf-catalog-browse-toggle{
  border:1px solid #cfd4cc;
  background:#fff;
  border-radius:9px;
  min-height:44px;
  padding:0 14px;
  cursor:pointer;
  font-weight:700;
  color:#394139;
  white-space:nowrap;
}
.nf-catalog-filter-toggle span,
.nf-catalog-browse-toggle span{
  display:inline-block;
  margin-left:8px;
}
.nf-catalog-filter-drawer{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #eceeea;
}
.nf-catalog-browse-compact{
  margin-top:10px;
}
.nf-catalog-browse-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:left;
  background:#fafbf9;
}
.nf-catalog-browse-drawer{
  margin-top:8px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.nf-catalog-browse-drawer[hidden],
.nf-catalog-filter-drawer[hidden]{
  display:none !important;
}
.nf-catalog-browse-drawer .nf-tax-section{
  padding:14px;
  border-radius:10px;
}
.nf-catalog-browse-drawer .nf-tax-section-head h2{
  margin-bottom:10px;
  font-size:16px;
}
.nf-catalog-browse-drawer .nf-tax-chip{
  padding:6px 9px;
  font-size:12px;
}
.nf-catalog-products-section{
  margin-top:18px;
}
.nf-catalog-products-head{
  margin-bottom:12px;
}
.nf-catalog-products-head h2{
  font-size:24px;
}
.nf-catalog-count strong{
  font-size:24px;
}

@media(max-width:720px){
  .nf-catalog-hero{
    padding:22px 4px 14px;
  }
  .nf-catalog-hero h1{
    font-size:26px;
  }
  .nf-catalog-lead{
    font-size:13px;
    margin-top:7px;
  }
  .nf-catalog-compact-search{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .nf-catalog-filter-toggle{
    padding:0 10px;
    font-size:12px;
  }
  .nf-catalog-browse-drawer{
    grid-template-columns:1fr;
  }
  .nf-catalog-products-section{
    margin-top:14px;
  }
}


/* v0.5.4 season + recommendations */
.nf-feature-section{
  margin-top:18px;
}
.nf-feature-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
}
.nf-feature-head h2{
  margin:0;
  font-size:21px;
}
.nf-feature-caption{
  color:#777;
  font-size:11px;
}
.nf-feature-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.nf-feature-card{
  overflow:hidden;
  background:#fff;
  border:1px solid #e1e5df;
  border-radius:11px;
}
.nf-feature-image{
  position:relative;
  display:block;
  aspect-ratio:1.18 / 1;
  overflow:hidden;
  background:#f2f3f0;
}
.nf-feature-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.nf-feature-badge{
  position:absolute;
  top:8px;
  left:8px;
  padding:4px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  box-shadow:0 2px 7px rgba(0,0,0,.08);
}
.nf-feature-badge.is-season{
  background:#e9f5e9;
  color:#247037;
}
.nf-feature-badge.is-pick{
  background:#fff1df;
  color:#9a5a06;
}
.nf-feature-body{
  padding:9px 10px 11px;
}
.nf-feature-municipality{
  margin-bottom:4px;
  color:#628064;
  font-size:10px;
  font-weight:700;
}
.nf-feature-body h3{
  margin:0 0 8px;
  font-size:12px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:3em;
}
.nf-feature-body h3 a{
  color:#222!important;
  text-decoration:none!important;
}
.nf-feature-body strong{
  font-size:13px;
}
.nf-card-badges{
  position:absolute;
  top:8px;
  right:8px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  z-index:2;
}
.nf-card-special-badge{
  padding:4px 7px;
  border-radius:999px;
  font-size:9px;
  font-weight:700;
  background:#fff;
  box-shadow:0 2px 7px rgba(0,0,0,.08);
}
.nf-card-special-badge.is-season{
  color:#247037;
  background:#e9f5e9;
}
.nf-card-special-badge.is-pick{
  color:#9a5a06;
  background:#fff1df;
}
.nf-catalog-shipping-hint{
  margin-top:8px;
  color:#617262;
  font-size:11px;
  font-weight:700;
}
@media(max-width:1000px){
  .nf-feature-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .nf-feature-section{
    margin-top:14px;
  }
  .nf-feature-head h2{
    font-size:18px;
  }
  .nf-feature-caption{
    display:none;
  }
  .nf-feature-grid{
    display:flex;
    overflow-x:auto;
    gap:9px;
    padding-bottom:4px;
    scroll-snap-type:x proximity;
  }
  .nf-feature-card{
    flex:0 0 42%;
    scroll-snap-align:start;
  }
}


/* v0.5.8 mobile first-view compaction */
.nf-catalog-mobile-about{
  display:none;
}

@media(max-width:720px){

  /*
   * このCSSは /furusato/ でのみ読み込まれるため、
   * Cocoonの上部グローバルナビをこのページのスマホ表示だけ隠す。
   * 画面下のCocoonモバイルメニューはそのまま残す。
   */
  #navi,
  .navi,
  .navi-in,
  .global-menu,
  .global-navi,
  nav#navi{
    display:none !important;
  }

  /* ロゴ周辺も必要以上に高くしない */
  .header-container,
  .header-container-in,
  .logo-header,
  .logo{
    min-height:0 !important;
  }

  .header-container-in{
    padding-top:6px !important;
    padding-bottom:6px !important;
  }

  .logo-header img,
  .logo img{
    max-height:54px !important;
    width:auto !important;
  }

  .nf-catalog-page{
    padding-top:0;
  }

  .nf-catalog-container{
    width:calc(100% - 12px);
  }

  .nf-catalog-hero{
    padding:12px 4px 8px;
  }

  .nf-catalog-eyebrow{
    display:none;
  }

  .nf-catalog-hero h1{
    font-size:21px;
    line-height:1.35;
    letter-spacing:0;
    margin:0;
  }

  .nf-catalog-lead{
    display:none;
  }

  .nf-catalog-mobile-about{
    display:block;
    margin-top:5px;
    font-size:11px;
    color:#6b716b;
  }

  .nf-catalog-mobile-about summary{
    cursor:pointer;
    list-style:none;
    text-decoration:underline;
  }

  .nf-catalog-mobile-about summary::-webkit-details-marker{
    display:none;
  }

  .nf-catalog-mobile-about p{
    margin:7px 0 0;
    line-height:1.65;
  }

  .nf-catalog-search-panel{
    padding:8px;
    border-radius:10px;
  }

  .nf-catalog-compact-search{
    grid-template-columns:minmax(0,1fr) auto;
    gap:5px;
  }

  .nf-catalog-compact-search .nf-catalog-search-box{
    display:grid;
    grid-template-columns:minmax(0,1fr) 56px;
    gap:5px;
  }

  .nf-catalog-search-box input{
    min-height:38px;
    padding:0 9px;
    font-size:13px;
    border-radius:7px;
  }

  .nf-catalog-search-box button{
    min-width:0;
    min-height:38px;
    padding:0 7px;
    font-size:12px;
    border-radius:7px;
  }

  .nf-catalog-filter-toggle{
    min-height:38px;
    padding:0 8px;
    font-size:0;
    border-radius:7px;
  }

  .nf-catalog-filter-toggle::before{
    content:"条件";
    font-size:11px;
  }

  .nf-catalog-filter-toggle span{
    margin-left:5px;
    font-size:13px;
  }

  .nf-catalog-browse-compact{
    margin-top:6px;
  }

  .nf-catalog-browse-toggle{
    min-height:36px;
    padding:0 10px;
    font-size:11px;
    border-radius:8px;
  }

  .nf-feature-section{
    margin-top:9px;
  }

  .nf-feature-head{
    margin-bottom:6px;
  }

  .nf-catalog-small-label{
    font-size:9px;
    margin-bottom:2px;
  }

  .nf-feature-head h2{
    font-size:16px;
    line-height:1.25;
  }

  .nf-feature-grid{
    gap:7px;
  }

  .nf-feature-card{
    flex-basis:37%;
    border-radius:9px;
  }

  .nf-feature-body{
    padding:7px 8px 8px;
  }

  .nf-feature-body h3{
    font-size:11px;
    line-height:1.45;
    min-height:2.9em;
  }

  .nf-feature-body strong{
    font-size:11px;
  }

  .nf-feature-badge{
    top:5px;
    left:5px;
    padding:3px 5px;
    font-size:8px;
  }

  .nf-catalog-products-section{
    margin-top:10px;
  }

  .nf-catalog-products-head{
    margin-bottom:7px;
  }

  .nf-catalog-products-head h2{
    font-size:19px;
  }

  .nf-catalog-count strong{
    font-size:19px;
  }
}


/* v0.6.2 feature/list context */
.nf-feature-season[hidden]{
  display:none !important;
}

.nf-catalog-count{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}

.nf-catalog-count-note{
  display:block;
  min-height:1.4em;
  margin-top:2px;
  color:#888;
  font-size:10px;
  font-weight:400;
  line-height:1.4;
}

@media(max-width:720px){
  .nf-catalog-count-note{
    font-size:8px;
  }
}


/* v0.7.0 掲載ポータル */
.nf-catalog-portal-badges{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:7px;
}

.nf-catalog-portal-badges span{
  display:inline-block;
  padding:2px 6px;
  border-radius:999px;
  font-size:9px;
  font-weight:700;
  line-height:1.35;
}

.nf-catalog-portal-badges .is-rakuten{
  background:#fff0f0;
  color:#a00000;
}

.nf-catalog-portal-badges .is-yahoo{
  background:#fff0f4;
  color:#c0002b;
}

.nf-catalog-portal-badges .is-out{
  opacity:.5;
}


.nf-catalog-portal-badges .is-yahoo-only{
  background:#f1f1f1;
  color:#555;
}


/* v0.8.7 返礼品件数「535件」の改行防止 */
.nf-catalog-count-main{
  display:inline-flex;
  align-items:baseline;
  gap:3px;
  white-space:nowrap;
  line-height:1.15;
}

.nf-catalog-count-main strong{
  display:inline-block;
  white-space:nowrap;
}


/* ========================================
   v0.8.8 カタログ上部ヒーローをコンパクト化
======================================== */

.nf-catalog-hero{
  padding:14px 0 10px!important;
  text-align:center;
}

.nf-catalog-hero h1{
  margin:0!important;
  font-size:clamp(24px,2.7vw,34px)!important;
  line-height:1.28!important;
  letter-spacing:.01em!important;
}

.nf-catalog-lead{
  max-width:none!important;
  margin:5px auto 0!important;
  color:#697069!important;
  font-size:12px!important;
  line-height:1.45!important;
}

.nf-catalog-search-panel{
  margin-top:0!important;
}

@media(max-width:720px){
  .nf-catalog-hero{
    padding:10px 2px 8px!important;
  }

  .nf-catalog-hero h1{
    font-size:22px!important;
    line-height:1.3!important;
  }

  .nf-catalog-lead{
    margin-top:4px!important;
    font-size:11px!important;
  }
}

@media(max-width:420px){
  .nf-catalog-hero h1{
    font-size:20px!important;
  }
}


/* ========================================
   v0.9.2 詳細検索
======================================== */

.nf-catalog-filter-drawer{
  padding:18px;
  border-top:0;
  border:1px solid #e2e5e0;
  border-radius:11px;
  background:#f8f9f7;
}

.nf-catalog-filter-drawer::before{
  content:"検索条件を追加";
  display:block;
  margin-bottom:14px;
  color:#252b26;
  font-size:15px;
  font-weight:700;
}

.nf-catalog-filters{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px 16px;
  margin-top:0;
}

.nf-catalog-filters label{
  display:block;
  min-width:0;
}

.nf-catalog-filters label>span{
  margin-bottom:7px;
  color:#303630;
  font-size:12px;
}

.nf-catalog-filters select{
  min-height:46px;
  background:#fff;
  font-size:13px;
}

.nf-filter-help{
  display:block;
  margin-top:5px;
  color:#8a8f89;
  font-size:9px;
  line-height:1.4;
}

.nf-catalog-filters label.is-disabled{
  opacity:.5;
}

.nf-catalog-filters select:disabled{
  cursor:not-allowed;
  background:#f0f1ef;
}

.nf-catalog-filter-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:15px;
  padding-top:13px;
  border-top:1px solid #e5e7e3;
}

@media(max-width:980px){
  .nf-catalog-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:720px){
  .nf-catalog-filter-drawer{
    padding:12px;
  }

  .nf-catalog-filter-drawer::before{
    margin-bottom:10px;
    font-size:13px;
  }

  .nf-catalog-filters{
    grid-template-columns:1fr;
    gap:10px;
  }

  .nf-catalog-filters select{
    min-height:42px;
  }
}


/* v0.9.3 status visual reset: final color is defined in settings-public.css */
.nf-catalog-status{
  border:1px solid transparent;
}
.nf-feature-badge,
.nf-card-special-badge{
  border:1px solid transparent;
}


/* ========================================
   v0.9.4 検索条件パネル
======================================== */

.nf-catalog-filter-drawer{
  padding:18px 20px 16px;
  border:1px solid #e0e4df;
  border-radius:14px;
  background:#fbfcfa;
  box-shadow:0 8px 24px rgba(33,48,36,.045);
}

.nf-catalog-filter-drawer::before{
  display:none!important;
  content:none!important;
}

.nf-filter-drawer-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
  padding-bottom:13px;
  border-bottom:1px solid #e6e9e4;
}

.nf-filter-drawer-head>div{
  min-width:0;
}

.nf-filter-drawer-head span{
  display:block;
  margin-bottom:3px;
  color:#7b887d;
  font-size:9px;
  font-weight:700;
  letter-spacing:.14em;
}

.nf-filter-drawer-head strong{
  display:block;
  color:#202521;
  font-size:18px;
  line-height:1.35;
}

.nf-filter-drawer-head p{
  margin:0;
  color:#7b817c;
  font-size:11px;
  line-height:1.5;
  text-align:right;
}

.nf-catalog-filters{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:0;
}

.nf-catalog-filters>label{
  min-width:0;
  padding:11px 12px 12px;
  border:1px solid #e4e7e2;
  border-radius:10px;
  background:#fff;
  transition:border-color .15s ease,box-shadow .15s ease,opacity .15s ease;
}

.nf-catalog-filters>label:focus-within{
  border-color:#b9c5ba;
  box-shadow:0 0 0 3px rgba(58,83,62,.055);
}

.nf-catalog-filters label>span{
  display:block;
  margin:0 0 7px;
  color:#424943;
  font-size:11px;
  font-weight:700;
}

.nf-catalog-filters select{
  width:100%;
  min-height:43px;
  padding:0 36px 0 11px;
  border:1px solid #d9ddd7;
  border-radius:8px;
  background-color:#fff;
  color:#222;
  font-size:13px;
  font-weight:600;
}

.nf-catalog-filters select:hover{
  border-color:#bdc4bc;
}

.nf-filter-help{
  display:block;
  margin-top:6px;
  color:#8a918b;
  font-size:9px;
  font-weight:400;
  line-height:1.45;
}

.nf-catalog-filters>label.is-disabled{
  background:#f5f6f4;
  opacity:.58;
}

.nf-catalog-filter-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid #e6e9e4;
}

.nf-catalog-reset{
  padding:7px 10px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#69716a;
  font-size:11px;
  font-weight:700;
  text-decoration:none;
}

.nf-catalog-reset:hover{
  background:#f0f2ef;
  color:#303630;
  text-decoration:none;
}

@media(max-width:980px){
  .nf-catalog-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:720px){
  .nf-catalog-filter-drawer{
    padding:12px;
    border-radius:11px;
  }

  .nf-filter-drawer-head{
    align-items:flex-start;
    margin-bottom:11px;
    padding-bottom:10px;
  }

  .nf-filter-drawer-head strong{
    font-size:15px;
  }

  .nf-filter-drawer-head p{
    display:none;
  }

  .nf-catalog-filters{
    grid-template-columns:1fr;
    gap:8px;
  }

  .nf-catalog-filters>label{
    padding:9px 10px 10px;
  }

  .nf-catalog-filters select{
    min-height:40px;
    font-size:12px;
  }
}


/* ========================================
   v0.9.5 検索確定型フィルター / 回遊最適化
======================================== */

/* 初期説明は初回だけ。検索後はJSからhiddenにする */
.nf-catalog-hero[hidden]{
  display:none!important;
}

/* フィルターパネル全体を少し大きく、押しやすく */
.nf-catalog-filter-drawer{
  padding:24px 26px 22px!important;
  border-radius:16px!important;
}

.nf-filter-drawer-head{
  margin-bottom:20px!important;
  padding-bottom:17px!important;
}

.nf-filter-drawer-head strong{
  font-size:21px!important;
}

.nf-filter-drawer-head p{
  max-width:460px;
  font-size:12px!important;
}

.nf-catalog-filters{
  gap:16px 18px!important;
}

.nf-catalog-filters>label{
  min-height:132px;
  padding:17px 18px!important;
  border-radius:13px!important;
  display:flex!important;
  flex-direction:column;
  justify-content:flex-start;
}

.nf-catalog-filters label>span{
  margin-bottom:10px!important;
  font-size:13px!important;
}

.nf-catalog-filters select{
  min-height:50px!important;
  padding-left:14px!important;
  padding-right:40px!important;
  border-radius:9px!important;
  font-size:15px!important;
  font-weight:650!important;
}

.nf-filter-help{
  margin-top:8px!important;
  font-size:10px!important;
}

/* 確定操作を主役にする */
.nf-catalog-filter-actions{
  justify-content:space-between!important;
  gap:12px;
  margin-top:20px!important;
  padding-top:17px!important;
}

.nf-catalog-apply{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:260px;
  min-height:50px;
  padding:0 22px;
  border:0;
  border-radius:10px;
  background:#257b39;
  color:#fff;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  line-height:1;
  box-shadow:0 5px 14px rgba(34,83,43,.13);
  transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease;
}

.nf-catalog-apply:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 18px rgba(34,83,43,.18);
}

.nf-catalog-apply span{
  font-size:17px;
}

.nf-catalog-reset{
  min-height:42px;
  padding:0 13px!important;
}

/* 検索後の商品一覧直前にだけ表示する条件サマリー */
.nf-catalog-active-filters{
  margin:18px 0 8px;
  padding:14px 16px;
  border:1px solid #e0e4df;
  border-radius:12px;
  background:#fafbf9;
}

.nf-catalog-active-filters[hidden]{
  display:none!important;
}

.nf-catalog-active-filters__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.nf-catalog-active-filters__top>div{
  display:flex;
  align-items:baseline;
  gap:9px;
  min-width:0;
}

.nf-catalog-active-filters__top>div>span{
  color:#6c746d;
  font-size:10px;
  font-weight:700;
}

.nf-catalog-active-filters__top>div>strong{
  color:#242a25;
  font-size:15px;
}

.nf-catalog-change-filters{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:0 10px;
  border:1px solid #d7dcd6;
  border-radius:8px;
  background:#fff;
  color:#475047;
  cursor:pointer;
  font-size:10px;
  font-weight:700;
}

.nf-catalog-change-filters:hover{
  border-color:#afb8b0;
  background:#f5f7f4;
}

.nf-catalog-active-filter-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}

.nf-active-filter-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:30px;
  padding:4px 8px;
  border:1px solid #dde2dc;
  border-radius:999px;
  background:#fff;
  color:#3e463f;
  cursor:pointer;
}

.nf-active-filter-chip small{
  color:#818882;
  font-size:8px;
  font-weight:700;
}

.nf-active-filter-chip strong{
  color:#343b35;
  font-size:10px;
  font-weight:700;
}

.nf-active-filter-chip>span{
  display:inline-grid;
  place-items:center;
  width:16px;
  height:16px;
  margin-left:2px;
  border-radius:50%;
  background:#f0f2ef;
  color:#717872;
  font-size:11px;
  line-height:1;
}

.nf-active-filter-chip:hover{
  border-color:#c3cac2;
  background:#f7f9f6;
}

/* 商品一覧へスクロールした時に専用ヘッダーの下に収める */
#nf_catalog_products_section{
  scroll-margin-top:92px;
}

/* テーマカラーを確定ボタンにも適用 */
body.nf-furusato-shell .nf-catalog-apply{
  background:var(--nf-accent,#257b39)!important;
}

/* 「条件を指定する」ボタンは少し強めに */
.nf-catalog-filter-toggle{
  padding-left:16px!important;
  padding-right:16px!important;
}

@media(max-width:980px){
  .nf-catalog-filters>label{
    min-height:120px;
  }
}

@media(max-width:720px){
  .nf-catalog-filter-drawer{
    padding:14px!important;
  }

  .nf-filter-drawer-head{
    margin-bottom:12px!important;
    padding-bottom:11px!important;
  }

  .nf-filter-drawer-head strong{
    font-size:16px!important;
  }

  .nf-catalog-filters{
    gap:9px!important;
  }

  .nf-catalog-filters>label{
    min-height:0;
    padding:12px!important;
  }

  .nf-catalog-filters label>span{
    margin-bottom:7px!important;
    font-size:12px!important;
  }

  .nf-catalog-filters select{
    min-height:45px!important;
    font-size:13px!important;
  }

  .nf-catalog-filter-actions{
    position:sticky;
    bottom:0;
    z-index:3;
    align-items:center;
    margin-right:-14px!important;
    margin-bottom:-14px;
    margin-left:-14px;
    padding:11px 14px calc(11px + env(safe-area-inset-bottom))!important;
    border-top:1px solid #e1e5df!important;
    border-radius:0 0 11px 11px;
    background:rgba(255,255,255,.97);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }

  .nf-catalog-apply{
    flex:1 1 auto;
    min-width:0;
    min-height:46px;
    padding:0 12px;
    font-size:12px;
  }

  .nf-catalog-reset{
    flex:0 0 auto;
    min-height:40px;
    font-size:10px;
  }

  .nf-catalog-active-filters{
    margin-top:12px;
    padding:11px 12px;
  }

  .nf-catalog-active-filters__top{
    gap:8px;
  }

  .nf-catalog-active-filters__top>div{
    gap:6px;
  }

  .nf-catalog-active-filters__top>div>span{
    font-size:9px;
  }

  .nf-catalog-active-filters__top>div>strong{
    font-size:13px;
  }

  .nf-catalog-change-filters{
    min-height:32px;
    padding:0 8px;
    font-size:9px;
  }

  #nf_catalog_products_section{
    scroll-margin-top:78px;
  }
}


/* v0.9.5 初回ヒーローもさらに圧縮 */
.nf-catalog-hero{
  padding:7px 0 7px!important;
}

.nf-catalog-hero h1{
  font-size:clamp(20px,2vw,27px)!important;
  line-height:1.25!important;
}

.nf-catalog-lead{
  margin-top:3px!important;
  font-size:10px!important;
  line-height:1.35!important;
}

.nf-catalog-products-section>.nf-catalog-active-filters{
  margin-top:0;
  margin-bottom:14px;
}

@media(max-width:720px){
  .nf-catalog-hero{
    padding:5px 0 5px!important;
  }

  .nf-catalog-hero h1{
    font-size:18px!important;
  }

  .nf-catalog-lead{
    font-size:9px!important;
  }
}


/* ========================================
   v0.9.6 検索条件パネルの余白圧縮
======================================== */

/* パネル全体 */
.nf-catalog-filter-drawer{
  padding:18px 20px 16px!important;
}

.nf-filter-drawer-head{
  margin-bottom:14px!important;
  padding-bottom:12px!important;
}

.nf-filter-drawer-head strong{
  font-size:18px!important;
}

.nf-filter-drawer-head p{
  font-size:11px!important;
}

/* 3列レイアウトは維持しつつ、カード自体を内容量に合わせる */
.nf-catalog-filters{
  gap:10px 12px!important;
}

.nf-catalog-filters>label{
  min-height:0!important;
  padding:12px 13px!important;
  border-radius:10px!important;
}

.nf-catalog-filters label>span{
  margin-bottom:7px!important;
  font-size:12px!important;
}

/* セレクトは操作性を残しつつ少し圧縮 */
.nf-catalog-filters select{
  min-height:44px!important;
  padding-left:11px!important;
  padding-right:36px!important;
  font-size:13px!important;
}

.nf-filter-help{
  margin-top:5px!important;
  font-size:9px!important;
  line-height:1.35!important;
}

/* 最終行の大きな空白を抑える */
.nf-catalog-filter-actions{
  margin-top:12px!important;
  padding-top:12px!important;
}

/* 確定ボタンも少しコンパクト化 */
.nf-catalog-apply{
  min-width:240px;
  min-height:46px;
  padding:0 18px;
  font-size:13px;
}

/* 並び順カードが1個だけ孤立しても大きく見えない */
.nf-catalog-filters>label:last-child{
  align-self:start;
}

/* PCのフィルター高さをより詰める */
@media(min-width:981px){
  .nf-catalog-filter-drawer{
    padding-top:16px!important;
    padding-bottom:14px!important;
  }

  .nf-catalog-filters{
    grid-auto-rows:auto;
    align-items:start;
  }
}

/* タブレット */
@media(max-width:980px){
  .nf-catalog-filter-drawer{
    padding:15px!important;
  }

  .nf-catalog-filters{
    gap:9px!important;
  }

  .nf-catalog-filters>label{
    padding:11px 12px!important;
  }
}

/* スマホはタップ性を優先して削りすぎない */
@media(max-width:720px){
  .nf-catalog-filter-drawer{
    padding:12px!important;
  }

  .nf-filter-drawer-head{
    margin-bottom:10px!important;
    padding-bottom:9px!important;
  }

  .nf-catalog-filters{
    gap:8px!important;
  }

  .nf-catalog-filters>label{
    padding:10px!important;
  }

  .nf-catalog-filters select{
    min-height:43px!important;
    font-size:13px!important;
  }

  .nf-catalog-filter-actions{
    margin-top:10px!important;
  }

  .nf-catalog-apply{
    min-height:45px;
  }
}

/* v0.9.15 hierarchical public category navigation */
.nf-category-entry-chips[hidden],
.nf-category-drill[hidden]{display:none!important}
.nf-category-drill{margin-top:12px;padding:12px;border:1px solid #e4e7e1;border-radius:12px;background:#fafbf9}
.nf-category-drill__head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.nf-category-drill__head strong{font-size:14px;color:#333}
.nf-category-drill__back{appearance:none;border:0;background:transparent;color:#257b39;font-weight:700;cursor:pointer;padding:4px 0}
.nf-category-drill__back:hover{text-decoration:underline}
.nf-tax-chip-category,.nf-tax-chip-category-drill{display:inline-flex;align-items:center;gap:4px}
.nf-tax-chip-category span,.nf-tax-chip-category-drill span{margin-left:2px;color:#8a8f88;font-size:11px}
@media(max-width:600px){
  .nf-category-drill{padding:10px;margin-top:10px}
  .nf-category-drill__head{gap:8px}
}

/* v0.9.18 three-level category selector in one card */
.nf-catalog-category-filter-card{
  grid-column:1/-1;
  min-width:0;
  margin:0;
  padding:12px 13px 13px!important;
  border:1px solid #e4e7e2;
  border-radius:10px;
  background:#fff;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.nf-catalog-category-filter-card:focus-within{
  border-color:#b9c5ba;
  box-shadow:0 0 0 3px rgba(58,83,62,.055);
}
.nf-catalog-category-filter-card>legend{
  padding:0 5px;
  color:#303630;
  font-size:12px;
  font-weight:700;
}
.nf-catalog-category-filter-controls{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.nf-catalog-category-filter-controls>label{
  min-width:0;
  margin:0;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.nf-catalog-category-filter-controls>label>span{
  margin-bottom:7px!important;
}
@media(max-width:720px){
  .nf-catalog-category-filter-card{
    padding:10px!important;
  }
  .nf-catalog-category-filter-controls{
    grid-template-columns:1fr;
    gap:9px;
  }
}

/* v0.9.19 expandable category list */
.nf-category-select-fallback[hidden]{display:none!important}
.nf-category-tree-help{
  margin:2px 0 10px;
  color:#717972;
  font-size:11px;
  line-height:1.5;
}
.nf-catalog-category-tree{
  max-height:460px;
  overflow-y:auto;
  border:1px solid #e1e5df;
  border-radius:9px;
  background:#fff;
  overscroll-behavior:contain;
}
.nf-category-tree-item{
  min-width:0;
}
.nf-category-tree-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  min-height:48px;
  padding:7px 9px 7px 12px;
  border-bottom:1px solid #edf0eb;
  transition:background-color .15s ease;
}
.nf-category-tree-row.is-selected{
  background:#eef6ef;
}
.nf-category-tree-choice{
  display:flex!important;
  align-items:flex-start;
  gap:8px;
  min-width:0;
  margin:0;
  cursor:pointer;
}
.nf-category-tree-check{
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin:2px 0 0;
  accent-color:#257b39;
  cursor:pointer;
}
.nf-category-tree-name{
  display:inline!important;
  min-width:0;
  margin:0!important;
  color:#2e342f!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.5;
  text-decoration:underline;
  text-underline-offset:3px;
}
.nf-category-tree-count{
  flex:0 0 auto;
  margin-top:1px;
  color:#697069;
  font-size:12px;
  line-height:1.5;
}
.nf-category-tree-toggle{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  margin-left:8px;
  padding:0;
  border:1px solid #257b39;
  border-radius:3px;
  background:#257b39;
  color:#fff;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.nf-category-tree-toggle.is-open{
  background:#fff;
  color:#257b39;
}
.nf-category-tree-toggle:focus-visible,
.nf-category-tree-check:focus-visible{
  outline:3px solid rgba(37,123,57,.22);
  outline-offset:2px;
}
.nf-category-tree-children[hidden]{display:none!important}
.nf-category-tree-children{
  background:#fbfcfa;
}
.nf-category-tree-item.is-level-2>.nf-category-tree-row{
  padding-left:38px;
}
.nf-category-tree-item.is-level-3>.nf-category-tree-row{
  padding-left:64px;
}
.nf-category-tree-children>.nf-category-tree-item:last-child>.nf-category-tree-row{
  border-bottom:1px solid #e5e9e3;
}
.nf-category-tree-summary{
  margin:9px 1px 0;
  color:#257b39;
  font-size:11px;
  font-weight:700;
}
.nf-category-tree-empty{
  margin:0;
  padding:18px;
  color:#747a75;
  font-size:12px;
  text-align:center;
}
@media(max-width:720px){
  .nf-catalog-category-tree{max-height:390px}
  .nf-category-tree-row{min-height:46px;padding-left:9px}
  .nf-category-tree-item.is-level-2>.nf-category-tree-row{padding-left:27px}
  .nf-category-tree-item.is-level-3>.nf-category-tree-row{padding-left:45px}
  .nf-category-tree-name{font-size:12px!important}
  .nf-category-tree-count{font-size:11px}
  .nf-category-tree-toggle{width:32px;height:32px}
}

/* v0.9.20 left category sidebar */
.nf-catalog-main-layout{
  display:grid;
  grid-template-columns:minmax(250px,300px) minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.nf-catalog-category-sidebar{
  position:static;
  top:auto;
  align-self:start;
  min-width:0;
  z-index:3;
}
.nf-catalog-category-sidebar .nf-catalog-category-filter-card{
  grid-column:auto;
  width:100%;
  box-sizing:border-box;
  padding:15px!important;
  box-shadow:0 5px 18px rgba(28,45,31,.045);
}
.nf-catalog-category-sidebar .nf-catalog-category-filter-card>legend{
  font-size:16px;
}
.nf-catalog-category-sidebar .nf-catalog-category-tree{
  max-height:620px;
}

/* v0.9.21 flexible sidebar, custom price and mobile accordion */
.nf-category-sidebar-custom{
  width:100%;
  box-sizing:border-box;
  margin-top:16px;
  padding:12px;
  border:1px solid #d9ded8;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.nf-category-sidebar-custom img,
.nf-category-sidebar-custom video,
.nf-category-sidebar-custom iframe{
  display:block;
  max-width:100%;
  height:auto;
}
.nf-custom-price-label{
  margin:10px 0 6px!important;
  color:#687068;
  font-size:12px!important;
  font-weight:600!important;
}
.nf-custom-price-range{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:7px;
  margin:0!important;
}
.nf-custom-price-range input{
  width:100%;
  min-width:0;
  min-height:42px;
  box-sizing:border-box;
  border:1px solid #cfd4cc;
  border-radius:8px;
  background:#fff;
  padding:0 9px;
}
.nf-custom-price-range b{
  color:#596259;
  font-weight:600;
}
.nf-mobile-filter-section-toggle{
  display:none;
}

@media(max-width:820px){
  .nf-catalog-category-sidebar{
    margin-bottom:14px;
  }
  .nf-mobile-filter-section-toggle{
    display:flex;
    width:100%;
    min-height:58px;
    box-sizing:border-box;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:1px solid #d6dad4;
    border-radius:0;
    background:#fff;
    color:#242824;
    padding:13px 16px;
    font-size:16px;
    font-weight:800;
    text-align:left;
  }
  .nf-mobile-filter-section-toggle span:last-child{
    display:grid;
    width:34px;
    height:34px;
    place-items:center;
    flex:0 0 34px;
    background:var(--nf-accent,#23833c);
    color:#fff;
    font-size:13px;
  }
  .nf-catalog-category-filter-card,
  .nf-catalog-filters>.nf-mobile-filter-body{
    display:none!important;
  }
  .nf-catalog-category-filter-card.is-mobile-open,
  .nf-catalog-filters>.nf-mobile-filter-body.is-mobile-open{
    display:block!important;
  }
  .nf-catalog-category-sidebar .nf-catalog-category-filter-card{
    margin:0;
    border-top:0;
    border-radius:0;
  }
  .nf-catalog-category-sidebar .nf-catalog-category-filter-card>legend{
    display:none;
  }
  .nf-catalog-filter-drawer--always-visible{
    border:1px solid #d6dad4;
    border-radius:0;
    padding:0!important;
    overflow:visible;
  }
  .nf-filter-drawer-head{
    padding:17px 16px;
    background:#f5f3e9;
  }
  .nf-filter-drawer-head strong{
    font-size:20px;
  }
  .nf-filter-drawer-head p{
    display:none;
  }
  .nf-catalog-filters{
    display:block!important;
    margin:0!important;
  }
  .nf-catalog-filters>.nf-mobile-filter-body{
    margin:0!important;
    padding:15px!important;
    border:0!important;
    border-bottom:1px solid #d6dad4!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .nf-catalog-filters>.nf-mobile-filter-body>span:first-child{
    display:none!important;
  }
  .nf-mobile-generated-toggle{
    border-width:0 0 1px;
  }
  .nf-catalog-filter-actions{
    position:sticky;
    bottom:74px;
    z-index:20;
    margin:0!important;
    padding:14px!important;
    border-top:1px solid #d6dad4;
    background:rgba(50,54,51,.9)!important;
  }
  .nf-catalog-filter-actions button[type="button"]{
    min-height:54px;
  }
  .nf-category-sidebar-custom{
    margin:14px 0 0;
  }
}
.nf-catalog-main-column{
  min-width:0;
}
.nf-catalog-main-column .nf-catalog-search-panel{
  margin:0;
}
.nf-catalog-main-column .nf-catalog-compact-search{
  grid-template-columns:minmax(0,1fr);
}
.nf-catalog-filter-drawer--always-visible{
  display:block!important;
  margin-top:12px;
}
@media(max-width:1100px){
  .nf-catalog-main-layout{
    grid-template-columns:240px minmax(0,1fr);
    gap:14px;
  }
  .nf-catalog-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:820px){
  .nf-catalog-main-layout{
    display:block;
  }
  .nf-catalog-category-sidebar{
    position:static;
    margin-bottom:12px;
  }
  .nf-catalog-category-sidebar .nf-catalog-category-tree{
    max-height:390px;
  }
  .nf-catalog-category-sidebar .nf-catalog-category-filter-card{
    padding:11px!important;
  }
}
