*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#111;background:#fff;font-family:"Yu Gothic","YuGothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif}a{color:inherit;text-decoration:none}.site-header{height:4.625rem;border-bottom:0.0625rem solid #6c91ae;background:#fff}.header-inner{width:min(70rem,calc(100% - 2.5rem));height:100%;margin:0 auto;display:flex;align-items:center;justify-content:space-between}.header-logo{display:block;width:5.125rem;height:4rem;flex:0 0 auto}.header-logo img{width:100%;height:100%;display:block;object-fit:contain}.header-nav{display:flex;align-items:center;gap:0.9375rem;font-size:0.625rem}.header-nav span{width:0.0625rem;height:0.875rem;background:#c7c7c7}.hero{padding:1.875rem 0 1.5rem;border-bottom:0.0625rem solid #7f9eb5}.hero-images{position:relative;width:min(68.75rem,calc(100% - 2.5rem));height:20rem;margin:0 auto;display:grid;grid-template-columns:repeat(7,1fr);gap:0.4375rem;overflow:hidden}.hero-cell{min-width:0;overflow:hidden}.hero-cell img{width:100%;height:100%;display:block;object-fit:cover}.hero h1{position:absolute;left:5.5%;top:34%;z-index:2;margin:0;color:#111;font-size:clamp(1.8125rem,3.25vw,3.25rem);line-height:1.2;font-weight:900;-webkit-text-stroke:0.3125rem #fff;paint-order:stroke fill;filter:drop-shadow(0 0.125rem 0.125rem rgba(0,0,0,.28))}.hero-copy{position:absolute;z-index:2;top:30%;right:4.2%;width:30.5%;padding:1.5rem 1.625rem;background:rgba(255,255,255,.8);font-size:0.75rem;line-height:2;font-weight:600}.selection-section{padding:1.6875rem 0 1.5625rem;background:#eefaff;border-bottom:0.0625rem solid #7f9eb5}.content-width{width:min(70rem,calc(100% - 2.5rem));margin:0 auto}.section-heading{display:flex;align-items:baseline;gap:1.125rem;margin:0 0 0.8125rem}.section-heading h2{margin:0;font-size:1.375rem;font-weight:800}.section-heading p{margin:0;font-size:0.5625rem}.selection-scroll{overflow-x:auto;padding-bottom:0.3125rem}.selection-grid{min-width:64.375rem;display:grid;grid-template-columns:repeat(8,minmax(6.875rem,1fr));gap:0.5rem;align-items:start}.selection-column{display:flex;flex-direction:column;gap:0.375rem}.selection-column-title{height:2.25rem;padding:0 0.4375rem;display:grid;place-items:center;color:#fff;background:#0b5ba8;font-size:0.625rem;font-weight:700;white-space:nowrap}.selection-options{display:flex;flex-direction:column;gap:0.375rem}.select-option{min-height:2.125rem;padding:0.4375rem 0.375rem;border:0.0625rem solid #edf0f2;background:#fff;color:#111;font:inherit;font-size:0.625rem;line-height:1.25;cursor:pointer;transition:.15s}.select-option:hover{border-color:#8bb7d8;background:#f8fcff}.select-option.is-selected{color:#fff;background:#5b91bf;border-color:#5b91bf}.selection-control-grid{min-width:64.375rem;display:grid;grid-template-columns:repeat(8,minmax(6.875rem,1fr));gap:0.5rem;align-items:end;margin-bottom:0.4375rem}.clear-filters{grid-column:2;width:100%;min-height:1.875rem;border:0.0625rem solid #8ca9bd;background:#fff;padding:0.375rem 0.5rem;font:inherit;font-size:0.625rem;cursor:pointer}.clear-filters:hover{background:#f8fcff}.selection-hit-count{grid-column:8;display:flex;justify-content:flex-end;align-items:center;font-size:0.625rem;color:#555;white-space:nowrap}.results-section{padding:2.8125rem 0 1.875rem}.result-title{display:flex;align-items:center;gap:0.6875rem;margin-bottom:0.75rem;padding-bottom:0.5625rem;border-bottom:0.0625rem solid #999}.result-title h2{margin:0;font-size:1.8125rem}.triangle{width:0;height:0;border-top:0.5625rem solid transparent;border-bottom:0.5625rem solid transparent;border-left:0.9375rem solid #111}.product-group{padding:0 0 2.125rem;margin-bottom:1.6875rem;border-bottom:0.0625rem solid #999}.product-group.is-hidden{display:none}.product-group-heading{display:flex;align-items:center;gap:0.75rem;margin:0 0 1rem 3.5rem}.product-group h3{margin:0;font-size:1.1875rem;font-weight:800}.group-count{font-size:0.625rem;color:#666}.product-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:0.875rem 1.125rem}.product-card{min-height:8.125rem;border:0.0625rem solid #d5d5d5;background:#fff;overflow:hidden;box-shadow:0 0.0625rem 0.125rem rgba(0,0,0,.05)}.product-card.is-hidden{display:none}.product-link{height:100%;display:grid;grid-template-columns:43% 57%}.product-link:hover{background:#f8fcff}.product-image-area{position:relative;min-width:0;display:grid;place-items:center;padding:1.875rem 0.25rem 0.375rem}.product-tag{position:absolute;top:0.5rem;left:0.5rem;padding:0.1875rem 0.4375rem;color:#fff;font-size:0.4375rem;font-weight:700;line-height:1}.product-image-area img{max-width:88%;max-height:5.5rem;object-fit:contain}.product-info{padding:0.625rem 0.5rem 0.5rem 0.125rem}.product-name{margin:0 0 0.125rem;font-size:0.5625rem;line-height:1.25;font-weight:700}.product-model{margin:0 0 0.25rem;font-size:0.625rem;line-height:1.2;font-weight:700}.product-pack{margin:0 0 0.4375rem;text-align:right;font-size:0.625rem;font-weight:700}.product-badges{display:flex;flex-wrap:wrap;gap:0.1875rem;margin-bottom:0.375rem}.product-badge{padding:0.125rem 0.25rem;color:#fff;font-size:0.375rem;line-height:1}.product-description{margin:0;font-size:0.4125rem;line-height:1.35}.group-empty{display:none;margin:1.125rem 0;text-align:center;color:#777;font-size:0.75rem}.product-group.no-results .product-grid{display:none}.product-group.no-results .group-empty{display:block}.to-top{position:fixed;right:2rem;bottom:1.9375rem;width:4.25rem;height:4.25rem;border:0.1875rem double #fff;outline:0.0625rem solid #1b62a8;background:#4c83bb;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;font-weight:700;font-size:0.75rem}.to-top span{font-size:1.75rem;line-height:.8}footer{padding:0.9375rem 1.25rem 1.75rem;text-align:center;font-size:0.5rem}@media(max-width:56.25rem){.hero-images{height:16.875rem}.hero-copy{width:38%;padding:1rem;font-size:0.625rem;line-height:1.7}.product-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:37.5rem){.site-header{height:3.875rem}.header-nav{display:none}.hero{padding:1rem 0}.hero-images{width:calc(100% - 1.25rem);height:14.375rem;gap:0.25rem}.hero h1{left:5%;top:43%;font-size:1.5625rem}.hero-copy{top:10%;right:3%;width:43%;padding:0.625rem;font-size:0.5rem;line-height:1.55}.content-width{width:calc(100% - 1.5rem)}.section-heading{display:block}.section-heading p{margin-top:0.3125rem}.product-grid{grid-template-columns:repeat(2,1fr);gap:0.625rem}.product-group-heading{margin-left:0}.product-link{grid-template-columns:46% 54%}.to-top{right:0.875rem;bottom:0.875rem;width:3.625rem;height:3.625rem}}
.model-search-section{
  padding:1.75rem 0;
  background:#fff;
  border-bottom:0.0625rem solid #2f6697;
}
.model-search-layout{
  display:grid;
  grid-template-columns:6rem 1fr;
  gap:0.5rem;
  align-items:stretch;
}
.model-search-label{
  min-height:7.375rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:#0b5ba8;
  font-size:1.5rem;
  line-height:1.05;
  font-weight:800;
  text-align:center;
}
.model-search-label span{
  margin-top:0.375rem;
  font-size:0.75rem;
  font-weight:700;
}
.model-search-buttons{
  display:grid;
  grid-template-columns:repeat(6,minmax(5.125rem,1fr));
  gap:0.4375rem;
  grid-auto-rows:1fr;
  align-content:stretch;
}
.model-search-button{
  min-height:1.75rem;
  padding:0.4375rem 0.3125rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0.0625rem solid #e4eef5;
  background:#eef8fd;
  color:#333;
  font-size:0.5625rem;
  line-height:1.15;
  text-align:center;
  transition:.15s ease;
}
.model-search-button:hover{
  border-color:#82b3d4;
  background:#d9edf9;
}
@media(max-width:56.25rem){
  .model-search-buttons{
    grid-template-columns:repeat(4,minmax(6.25rem,1fr));
  }
}
@media(max-width:37.5rem){
  .model-search-section{padding:1.25rem 0}
  .model-search-layout{grid-template-columns:4.5rem 1fr}
  .model-search-label{min-height:6.25rem;font-size:1.125rem}
  .model-search-label span{font-size:0.625rem}
  .model-search-buttons{
    grid-template-columns:repeat(2,minmax(5.625rem,1fr));
    gap:0.3125rem;
  }
}


/* --- selection heading / clear button position --- */
.selection-heading{
  display:flex;
  align-items:center;
  width:100%;
}
.selection-heading h2{
  flex:0 0 auto;
}
.selection-heading p{
  flex:0 0 auto;
}
.selection-heading #clearAll,
.selection-heading .clear-all{
  margin-left:auto;
  position:static !important;
}

/* --- result count: bottom-right under selection choices --- */
.selection-footer-row{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin-top:0.5rem;
  min-height:1.25rem;
}
.selection-footer-row #resultCount,
.selection-footer-row .result-count{
  position:static !important;
  margin:0;
  text-align:right;
}

@media(max-width:37.5rem){
  .selection-heading{
    flex-wrap:wrap;
    gap:0.5rem 0.75rem;
  }
  .selection-heading #clearAll,
  .selection-heading .clear-all{
    margin-left:auto;
  }
}


/* ===== 選択内容レイアウト修正版 v6 ===== */
.selection-section .content-width{
  position:static !important;
}

.selection-header{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  column-gap:1.5rem !important;
  width:100% !important;
  margin:0 0 0.75rem !important;
}

.selection-title-wrap{
  display:flex !important;
  align-items:baseline !important;
  gap:1.125rem !important;
  min-width:0 !important;
  width:auto !important;
}

.selection-title-wrap h2{
  margin:0 !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
  font-size:1.375rem !important;
  font-weight:800 !important;
}

.selection-title-wrap p{
  margin:0 !important;
  flex:0 1 auto !important;
  white-space:nowrap !important;
  font-size:0.5625rem !important;
}

#clearFilters.selection-clear-btn{
  position:static !important;
  width:auto !important;
  min-width:8.25rem !important;
  max-width:none !important;
  height:auto !important;
  margin:0 !important;
  padding:0.5rem 1.125rem !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  justify-self:end !important;
  flex:none !important;
}

.selection-scroll{
  padding-top:0 !important;
  margin-top:0 !important;
}

.selection-count-row{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
  margin:0.5rem 0 0 !important;
  min-height:1rem !important;
}

#hitCount{
  position:static !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  white-space:nowrap !important;
  text-align:center !important;
  font-size:1rem !important;
  font-weight:700 !important;
}

@media(max-width:37.5rem){
  .selection-header{
    grid-template-columns:1fr !important;
    row-gap:0.625rem !important;
    align-items:start !important;
  }

  .selection-title-wrap{
    flex-wrap:wrap !important;
    gap:0.25rem 0.75rem !important;
  }

  .selection-title-wrap p{
    white-space:normal !important;
  }

  #clearFilters.selection-clear-btn{
    justify-self:end !important;
  }
}

/* small text readability adjustment */
.header-nav{font-size:.6875rem}
.hero-copy{font-size:.8125rem}
.section-heading p,.selection-title-wrap p{font-size:.6875rem!important}
.selection-column-title,.select-option,#clearFilters{font-size:.75rem!important}
.model-search-label span{font-size:.8125rem}
.model-search-button{font-size:.6875rem}
.product-tag{font-size:.5625rem}
.product-name,.product-pack{font-size:.75rem}
.product-badge{font-size:.5rem}
.product-description{font-size:.5625rem}
footer{font-size:.625rem}


/* ===== latest adjustments ===== */
.select-option{
  font-weight:500;
}



/* ===== 選択結果の商品カード文字サイズ調整 ===== */

/* 左上の「自吸式」などの区分ラベル */
.product-tag{
  font-size:0.625rem;
}

/* 商品名・型番 */
.product-name{
  font-size:0.8125rem;
}


/* ===== 選択結果の商品カード調整 v13 ===== */

/* 左上の「自吸式」などの区分ラベルをさらに大きく */
.product-tag{
  font-size:0.75rem;
}

/* 商品名・型番をさらに大きく */
.product-name{
  font-size:0.9375rem;
}

/* PC表示の商品カードを最大4列に */
.product-grid{
  grid-template-columns:repeat(4, 1fr);
}

/* product model: one step smaller than product name */
.product-name{font-size:0.9375rem;}
.product-model{font-size:0.8125rem;font-weight:700;}


/* ===== 数量表示：数字のみ拡大、単位は従来サイズ ===== */
.product-pack .pack-number{
  font-size:1rem;
  font-weight:700;
}

.product-pack .pack-unit{
  font-size:0.75rem;
  font-weight:700;
}


/* ===== 商品バッジ・コメント文字サイズ調整 v18 ===== */
.product-badge{
  font-size:0.625rem;
}

.product-description{
  font-size:0.6875rem;
}

/* ===== 全体幅を80remに統一 ===== */
.header-inner,
.hero-images,
.content-width{
  width:min(80rem, calc(100% - 2.5rem));
}

/* ===== 選択項目の文字サイズ ===== */
.select-option{
  font-size:0.9rem !important;
}

.selection-column-title{
  font-size:0.9rem !important;
}

.model-search-button{
  font-size:0.9rem !important;
}

/* ===== 商品検索結果：画面幅に応じて2～6列で可変 ===== */
.product-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

@media (min-width:37.5rem){
  .product-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (min-width:56.25rem){
  .product-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

/* ===== 商品カード内の文字を一段階拡大 ===== */
.product-tag{
  font-size:0.8125rem;
}

.product-name{
  font-size:1rem;
  color:#555;
}

.product-model{
  font-size:0.975rem;
}

.product-pack,
.product-pack .pack-unit{
  font-size:0.8125rem;
}

.product-pack .pack-number{
  font-size:1.0625rem;
}

.product-badge{
  font-size:0.75rem;
}

.product-description{
  font-size:0.8125rem;
}

/* ===== 型番検索：白背景・1行・コンパクト表示 ===== */
.model-search-section{
  padding:0.625rem 0;
  background:#fff;
}

.model-search-layout{
  grid-template-columns:auto minmax(0, 1fr);
  align-items:center;
  gap:0.625rem;
}

.model-search-label{
  min-height:0;
  padding:0.375rem 0.625rem;
  flex-direction:row;
  background:#fff;
  color:#111;
  font-size:1rem;
  line-height:1;
  white-space:nowrap;
}

.model-search-buttons{
  grid-template-columns:repeat(11, minmax(6.25rem, 1fr));
  grid-auto-rows:auto;
  align-content:center;
  gap:0.375rem;
  overflow-x:auto;
  padding-bottom:0.125rem;
}

.model-search-button{
  min-height:2rem;
  padding:0.375rem 0.3125rem;
  white-space:nowrap;
}

/* ===== 型番リンクのみを白背景・枠なしで1行表示 ===== */
.model-search-section{
  padding:0.375rem 0;
  border-bottom:0;
}

.model-search-layout{
  display:block;
}

.model-search-buttons{
  grid-template-columns:repeat(auto-fit, minmax(7rem, 1fr));
  gap:0.25rem;
  overflow-x:visible;
  padding-bottom:0;
}

.model-search-button{
  min-width:0;
  min-height:1.625rem;
  padding:0.25rem 0.125rem;
  border:0;
  background:#fff;
  box-shadow:none;
  font-size:0.6875rem !important;
}

.model-search-button:hover{
  border:0;
  background:#fff;
  color:#0b5ba8;
}

/* ===== 該当件数ボタン ===== */
#hitCount.selection-results-button{
  min-width:11rem !important;
  padding:0.625rem 1.5rem !important;
  border:0.0625rem solid #0b5ba8;
  border-radius:0.25rem;
  background:#0b5ba8;
  color:#fff;
  font:inherit;
  font-size:1rem !important;
  font-weight:700 !important;
  line-height:1.2;
  text-align:center !important;
  cursor:pointer;
  transition:background-color .15s ease, border-color .15s ease;
}

#hitCount.selection-results-button:hover{
  border-color:#08477f;
  background:#08477f;
}

#hitCount.selection-results-button:focus-visible{
  outline:0.1875rem solid rgba(11,91,168,.3);
  outline-offset:0.125rem;
}

#selectionResults{
  scroll-margin-top:1rem;
}

/* ===== ヘッダーナビを下寄せ ===== */
.header-nav{
  align-self:flex-end;
  margin-bottom:0.75rem;
}

/* ===== 検索結果0件メッセージ ===== */
.group-empty{
  font-size:1rem;
  font-weight:700;
}

/* ===== 選択結果グループの件数 ===== */
.group-count{
  font-size:0.875rem;
  font-weight:700;
}

/* ===== スマートフォン表示の最終調整 ===== */
@media (max-width:37.5rem){
  body{
    overflow-x:hidden;
  }

  .header-inner,
  .hero-images,
  .content-width{
    width:calc(100% - 1rem);
  }

  .site-header{
    height:3.75rem;
  }

  .header-logo{
    width:4.5rem;
    height:3.25rem;
  }

  .header-nav{
    display:none;
  }

  .model-search-section{
    padding:0.25rem 0;
  }

  .model-search-buttons{
    grid-template-columns:repeat(auto-fit, minmax(6.5rem, 1fr));
    gap:0.125rem 0.25rem;
  }

  .model-search-button{
    min-height:1.5rem;
    padding:0.1875rem 0.0625rem;
    font-size:0.625rem !important;
  }

  .hero{
    padding:0.5rem 0;
  }

  .hero-images{
    height:16rem;
  }

  .hero h1{
    left:4%;
    top:30%;
    font-size:1.375rem;
    -webkit-text-stroke:0.1875rem #fff;
  }

  .hero-copy{
    top:auto;
    right:0.5rem;
    bottom:0.5rem;
    left:0.5rem;
    width:auto;
    padding:0.5rem 0.625rem;
    font-size:0.625rem;
    line-height:1.45;
  }

  .selection-section{
    padding:1rem 0;
  }

  .selection-header{
    row-gap:0.5rem !important;
    margin-bottom:0.5rem !important;
  }

  .selection-title-wrap{
    display:block !important;
  }

  .selection-title-wrap h2{
    font-size:1.25rem !important;
  }

  .selection-title-wrap p{
    margin-top:0.25rem !important;
    font-size:0.625rem !important;
  }

  #clearFilters.selection-clear-btn{
    width:100% !important;
    min-width:0 !important;
    padding:0.5rem !important;
    justify-self:stretch !important;
    font-size:0.75rem !important;
  }

  .selection-scroll{
    width:100%;
    overscroll-behavior-inline:contain;
  }

  .selection-grid{
    min-width:54rem;
    grid-template-columns:repeat(8, minmax(6.25rem, 1fr));
  }

  .selection-column-title,
  .select-option{
    font-size:0.75rem !important;
  }

  #hitCount.selection-results-button{
    width:100% !important;
    min-width:0 !important;
    max-width:18rem;
    padding:0.625rem 1rem !important;
    font-size:0.875rem !important;
  }

  .results-section{
    padding:1.5rem 0 1rem;
  }

  .result-title{
    margin-bottom:0.875rem;
  }

  .result-title h2{
    font-size:1.5rem;
  }

  .product-group{
    padding-bottom:1.25rem;
    margin-bottom:1.25rem;
  }

  .product-group-heading{
    margin:0 0 0.75rem;
    gap:0.5rem;
  }

  .product-group h3{
    font-size:1.0625rem;
  }

  .group-count{
    font-size:0.8125rem;
  }

  .product-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:0.625rem;
  }

  .product-card{
    min-height:0;
  }

  .product-link{
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
  }

  .product-image-area{
    min-height:7rem;
    padding:1.75rem 0.375rem 0.5rem;
  }

  .product-image-area img{
    max-height:5rem;
  }

  .product-tag{
    font-size:0.6875rem;
  }

  .product-info{
    padding:0.5rem 0.625rem 0.625rem;
  }

  .product-name{
    font-size:0.8125rem;
  }

  .product-model{
    font-size:0.8125rem;
    overflow-wrap:anywhere;
  }

  .product-pack,
  .product-pack .pack-unit{
    font-size:0.6875rem;
  }

  .product-pack .pack-number{
    font-size:0.875rem;
  }

  .product-badge{
    font-size:0.625rem;
  }

  .product-description{
    font-size:0.6875rem;
  }

  .group-empty{
    font-size:0.875rem;
  }

  .to-top{
    right:0.625rem;
    bottom:0.625rem;
    width:3.25rem;
    height:3.25rem;
    font-size:0.625rem;
  }

  footer{
    padding:0.75rem 0.75rem 4.5rem;
  }
}
