
.products .center { margin: -20px 0 10px 0; text-align: center; }
.tabs { margin: 0 auto 50px auto; display: flex; gap: 15px; margin-bottom: 0; justify-content: center; color: #0094d6; width: 1170px; }
.tab-button { padding: 12px 22px; border: 2px solid #0094d6; border-bottom: none; cursor: pointer; font-weight: bold; width: 33%; text-align: center; background-color: #fff; font-size: 1.4rem; border-top-left-radius: 10px; border-top-right-radius: 10px; }
.tab-button:hover { color: #fff; background: #0094d6; transition: all 0.3s ease; }
.tab-button.active { background: #0094d6; color: white; border-color: #0094d6; }
.tab-content { display: none; width: 1170px; margin: 0 auto; }
.tab-content.active { display: block; }
.tab-section { border: 2px solid #0094d6; padding: 20px; margin-bottom: 50px; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.tab-section p { margin-bottom: 15px; text-align: center; font-size: 1.4rem; }

@media (min-width: 767px) {
  .tab-section-inner { display: table; justify-content: space-between; width: 100%; }
  .tab-section-inner.last { margin-top: 25px; }
  .tab-section-inner ul { }
  .tab-section-inner ul li { }
  .tab-section-inner ul li:first-child { margin-left: 0; }
  .tab-section-inner ul li:last-child { margin-right: 0; }
  .tab-section-inner.last li { margin-bottom: 0; }
  .tab-section-inner ul li:nth-last-of-type(-n+4) { margin-bottom: 0; }
}
.filter-buttons,
.category-buttons,
.subcategory-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.subcategory-buttons { display: none; margin-top: 20px; }
.filter-buttons button,
.category-buttons button,
.subcategory-buttons button { padding: 12px 20px; background: #f0f0f0; cursor: pointer; border-radius: 20px; font-size: 1.4rem; line-height: 1.5; border: #f0f0f0; }
.filter-buttons button:hover, .category-buttons button:hover, .subcategory-buttons button:hover { color: #fff; background: #0094d6; transition: all 0.3s ease; }
.filter-buttons button.active, .category-buttons button.active, .subcategory-buttons button.active { background: #0094d6; color: white; }
.filter-buttons p button,
.subcategory-buttons button:first-child { padding: 12px 24px;  }

#needsFilterButtons { display: flex; flex-wrap: wrap; gap: 0 22px; }
#needsFilterButtons dl:nth-child(2) { width: 151px; }
#needsFilterButtons dl:nth-child(3) { width: 142px; }
#needsFilterButtons dl:nth-child(4) { width: 386px; }
#needsFilterButtons dl:nth-child(5) { width: 138px; }
#needsFilterButtons dl:last-child { width: 125px; }
#needsFilterButtons dl dd { display: flex; flex-wrap: wrap; gap: 15px; }
#needsFilterButtons dl dt { margin-bottom: 15px; padding: 12px 20px; font-size: 1.4rem; text-align: center; background: #b2dff3; }

#brandsOnlyBox { display: flex; flex-wrap: wrap; justify-content: space-between; }
#featuresBox   { display: flex; flex-wrap: wrap; gap: 0 24px; }
#featuresBox p:first-child .all_btn { padding: 12px 24px; }
#featuresBox dl:nth-child(2) { width: 265px; }
#featuresBox dl:nth-child(3) { width: 590px; }
#featuresBox dl:last-child { width: 125px; }
#featuresBox dl dt { margin-bottom: 15px; padding: 12px 20px; font-size: 1.4rem; text-align: center; background: #b2dff3; }
#featuresBox dl ul { display: flex; flex-wrap: wrap; gap: 15px; }

.checkbox_input { display: none; }
.feature_btn, .brand_btn, .all_btn { display: inline-block; padding: 12px 20px; background: #f0f0f0; cursor: pointer; border-radius: 20px; font-size: 1.4rem; line-height: 1.5; }
.brand_btn { padding: 12px 24px; }
.feature_btn:hover, .brand_btn:hover, .all_btn:hover { background: #e0e0e0; }
.checkbox_input:checked + .feature_btn, .checkbox_input:checked + .brand_btn, .checkbox_input:checked + .all_btn { background: #0094d6; color: white; }

.product-grid { display: flex; flex-wrap: wrap; gap: 45px; justify-content: flex-start; width: 1170px; margin: 0 0 50px 0; }
.product { width: 360px; margin-bottom: 20px; }
.product img { width: 100%; object-fit: contain; }
.product .name { margin-top: 10px; font-size: 3.2rem; font-weight: normal; padding-left: 30px; background: url(/lp/sg/international/assets/img/arrow.png) left center no-repeat; background-size: 22px auto; }
.product .text { font-size: 1.6rem; }
.product div:first-of-type { font-weight: bold; color: #333; margin-bottom: 5px; font-size: 1.1em; }
.product div:last-of-type { font-size: 0.85em; color: #666; height: 3em; overflow: hidden; text-overflow: ellipsis; }
.product-grid .none { width: 100%; text-align: center; font-size: 1.6em; padding: 30px 0; }
.category-buttons { display: flex; justify-content: space-between; }
.category-buttons button { position: relative; padding: 12px 16px; width: 18.8%; }
.category-buttons button.active::before { content: ""; position: absolute; width: 0; height: 0; bottom: -14px; left: calc(50% - 13px); border-top: 15px solid #0094d6; border-left: 12px solid transparent; border-right: 12px solid transparent; }

/* --- レスポンシブ対応 --- */

/* スマホ（～768px）：2カラム */
@media (max-width: 768px) {
  .contents { margin: 0 4.4vw; }
  .products .center { margin: 0; text-align: center; }
  .tabs { flex-direction: column; gap: 10px; width: 100%; }
  .tab-button { width: 100%; border-radius: 10px; }
  .feature_btn, .brand_btn, .all_btn, .filter-buttons button, .category-buttons button, .subcategory-buttons button { padding: 8px 15px; font-size: 2.8vw!important; }
  .tab-content { width: 100%; }
  .tab-section { padding: 15px; margin-bottom: 20px; }
  .tab-section p { margin-bottom: 15px; text-align: center; font-size:3.4vw; }

  .product-grid { width: 100%; gap: 20px; }
  .product { width: calc(50% - 10px); } /* 2カラム */
  .product .name { font-size: 6vw; padding-left: 25px; background-size: 18px auto; }
  .category-buttons { flex-wrap: wrap; gap: 8px; }
  .category-buttons button { width: 48%; font-size: 3.4vw; padding: 8px 12px; }
  .category-buttons button.active::before { content: none; }
  .subcategory-buttons  { position: relative; padding-top: 15px; border-top: 2px solid #0094d6; }
  .tab-section-inner.last { margin-top: 25px; }
  .tab-section-inner h6 { margin-bottom: 10px; padding: 5px; font-size: 3.0vw; font-weight: normal; background: #0094d6; color: #fff; text-align: center; }
  .product .name { font-size: 4.4vw; }
  .product .text { font-size: 3.6vw; }

  #needsFilterButtons { display: block; }
  #needsFilterButtons p:first-child { margin-top: -13.5vw; text-align: left; margin-bottom: 0;  }
  #needsFilterButtons dl:nth-child(2) { width: auto; }
  #needsFilterButtons dl:nth-child(3) { width: auto; }
  #needsFilterButtons dl:nth-child(4) { width: auto; }
  #needsFilterButtons dl:nth-child(5) { width: auto; }
  #needsFilterButtons dl:last-child { width: auto; }
  #needsFilterButtons dl dd { display: flex; flex-wrap: wrap; gap: 2vw; }
  #needsFilterButtons dl dt { margin: 3vw 0; padding: 2vw 0; font-size: 3vw; text-align: center; background: #b2dff3; }

  #featuresBox { display: block; }
  #featuresBox p:first-child { margin-top: -10vw; text-align: left; margin-bottom: 0; }
  #featuresBox dl:nth-child(2) {width: auto; }
  #featuresBox dl:nth-child(3) { width: auto; }
  #featuresBox dl:last-child { width: auto; }
  #featuresBox dl dt { margin: 3vw 0; padding: 2vw 0; font-size: 3vw; text-align: center; background: #b2dff3; }
  #featuresBox dl ul { display: flex; flex-wrap: wrap; gap: 2vw; }
  #featuresBox .feature_btn { display: inline-block; padding: 12px 2.6vw; }

  #brandsOnlyBox { display: flex; flex-wrap: wrap; justify-content: flex-start; }
  #brandsOnlyBox li { margin: 0 2.5vw 2.5vw 0; }
  #brandsOnlyBox li:nth-last-child(-n+3) { margin-bottom: 0; }
}

@media (max-width: 768px) {
  /* タブボタン非表示 */
  .tabs { display: none; }
  /* アコーディオン本体 */
  .tab-content {
    display: block; /* 常にblock */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-bottom: 10px;
  }
  .tab-content.active {
    max-height: 5000px; /* 大きめに（中身に合わせて調整可） */
  }
  /* 見出しエリア */
  .accordion-header {
    position: relative;
    background: #0094d6;
    color: #fff;
    padding: 15px 15px 15px 30px;
    font-size: 4vw;
    cursor: pointer;
  }
  .accordion-header::before { content: ""; position: absolute; top: 47%; left: 10px; width: 6px; height: 6px; border-top: 1px solid #fff; border-right: 1px solid #fff; -webkit-transform: rotate(45deg) translateY(-50%); transform: rotate(45deg) translateY(-50%); }
  .accordion-header.active { /*background: #007bb5;*/ }
}
