/* =========================================
   タイトル
========================================= */

.products-page{
  max-width:1200px;
  margin:auto;
  padding:10px 18px 35px;
}

.products-title{
  text-align:center;
  margin-bottom:26px;
}

.products-title h1{
  position:relative;

  display:inline-block;

  font-size:20px;
  line-height:1.4;
  letter-spacing:0.06em;

  margin:0 0 10px;
  padding:0 0 10px;

  color:#333;
}

.products-title h1::after{
  content:"";

  position:absolute;
  left:50%;
  bottom:0;

  width:70px;
  height:4px;

  transform:translateX(-50%);

  border-radius:999px;

  background:linear-gradient(
    90deg,
    #FE9900 0%,
    #FE9900 50%,
    #0066FF 50%,
    #0066FF 100%
  );
}

/* タイトル内リンク */
.products-title-link{
  display:inline-flex;
  align-items:center;
  gap:7px;

  color:#333;
  text-decoration:none;
}

.products-title-link:visited{
  color:#333;
}

.products-title-link:hover{
  color:#000;
  text-decoration:none;
}

.products-title-link i{
  font-size:0.9em;
  color:#333;
}

.products-title p{
  color:#666;
  font-size:12px;
  line-height:1.5;

  margin:0;
}

/* =========================================
   商品一覧ページ
========================================= */

.products-page{
  max-width:1200px;
  margin:auto;
  padding:35px 18px;
}



/* =========================================
   商品区分タブ
========================================= */

.products-tabs{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;

  margin:0 0 35px;
}

.products-tab{
  display:inline-block;

  padding:12px 28px;

  border-radius:999px;

  text-decoration:none;
  font-weight:bold;
  font-size:15px;

  transition:0.2s;
}

/* ホビー向けタブ */

.products-tab-hobby{
  background:#F0EFDF;
  color:#FE9900;
  border:2px solid #FE9900;
}

.products-tab-hobby:hover{
  background:#FE9900;
  color:#fff;
}

/* 業務用タブ */

.products-tab-business{
  background:#EEEEFF;
  color:#0066FF;
  border:2px solid #0066FF;
}

.products-tab-business:hover{
  background:#0066FF;
  color:#fff;
}

/* =========================================
   商品区分見出し
========================================= */

.product-section{
  margin-bottom:55px;
  width:100%;
}

/* 業務用商品の上に余白 */
#business{
  margin-top:60px;
}

/* 万が一 products-grid の中に section が入っても横並び崩れを防ぐ */
.products-grid > .product-section{
  grid-column:1 / -1;
}

/* 見出し本体 */
.product-section-title{
  display:flex;
  align-items:center;
  gap:12px;

  width:100%;
  box-sizing:border-box;

  margin:0 0 22px;
  padding:8px 18px 8px 8px;

  border-radius:999px;

  font-size:20px;
  line-height:1.4;
  font-weight:bold;

  color:#222;
}

/* 左の丸アイコン */
.section-title-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:50%;

  color:#fff;
  font-size:18px;
  line-height:1;
}

/* Font Awesomeアイコン */
.section-title-icon i{
  display:block;
  line-height:1;
}

/* 見出しテキスト */
.section-title-text{
  display:block;
}

/* ホビー向け見出し */
.product-section-title-hobby{
  background:#F0EFDF;
}

.product-section-title-hobby .section-title-icon{
  background:#FE9900;
}

/* 業務用見出し */
.product-section-title-business{
  background:#EEEEFF;
}

.product-section-title-business .section-title-icon{
  background:#0066FF;
}

/* =========================================
   商品一覧グリッド
========================================= */

.products-grid{
  display:grid;

  /* PCでは4列 */
  grid-template-columns:repeat(4,1fr);

  gap:20px;

  align-items:stretch;
}

/* =========================================
   商品カード
========================================= */

.product-card{
  background:#fff;
  border-radius:12px;
  overflow:hidden;

  border:1px solid #e5e5e5;

  transition:0.3s;

  box-shadow:
    0 2px 8px rgba(0,0,0,0.05);

  display:flex;
  flex-direction:column;

  width:100%;
  min-width:0;
}

.product-card:hover{
  transform:translateY(-4px);

  box-shadow:
    0 8px 18px rgba(0,0,0,0.12);
}

/* =========================================
   商品画像
========================================= */

.product-image{
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:#f7f7f7;
}

.product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* =========================================
   商品内容
========================================= */

.product-content{
  padding:15px;

  display:flex;
  flex-direction:column;
  flex:1;
}

/* カテゴリ */

.product-category{
  display:inline-block;

  background:#eef6ff;
  color:#0078d7;

  font-size:11px;

  padding:4px 9px;

  border-radius:30px;

  margin-bottom:8px;
  width:fit-content;
}

/* ホビー向けカテゴリラベル */

.product-category-hobby{
  background:#F0EFDF;
  color:#FE9900;
}

/* 業務用カテゴリラベル */

.product-category-business{
  background:#EEEEFF;
  color:#0066FF;
}

/* 商品名 */

.product-name{
  font-size:19px;
  line-height:1.4;

  margin:0 0 8px;
}

/* 説明 */

.product-text{
  font-size:13px;
  line-height:1.6;

  color:#555;

  margin-bottom:15px;
}

/* =========================================
   ボタン
========================================= */

.product-buttons{
  display:flex;
  gap:8px;
  flex-wrap:wrap;

  margin-top:auto;
}

.btn{
  display:inline-block;

  padding:9px 12px;

  border-radius:6px;

  text-decoration:none;

  font-size:13px;
  font-weight:bold;

  transition:0.2s;
}

/* 詳細ボタン */

.btn-detail{
  background:#0078d7;
  color:#fff;
}

.btn-detail:hover{
  opacity:0.85;
}

/* 購入ボタン */

.btn-buy{
  background:#f39800;
  color:#fff;
}

.btn-buy:hover{
  opacity:0.85;
}

/* =========================================
   タブレット対応
========================================= */

@media screen and (max-width:1100px){

  .products-grid{

    /* タブレットは3列 */
    grid-template-columns:repeat(3,1fr);

  }

}

/* =========================================
   スマホ対応
========================================= */

@media screen and (max-width:768px){

  .products-page{
    padding:25px 12px;
  }

  .products-title{
    margin-bottom:25px;
  }

  .products-title h1{
    font-size:28px;
  }

  .products-title p{
    font-size:14px;
  }

  .products-tabs{
    gap:10px;
    margin-bottom:25px;
  }

  .products-tab{
    padding:10px 18px;
    font-size:14px;
  }

  .product-section{
    margin-bottom:40px;
  }

  #business{
    margin-top:45px;
  }

  .product-section-title{
    font-size:18px;
    padding:7px 14px 7px 7px;
    gap:10px;
    margin-bottom:16px;
  }

  .section-title-icon{
    width:34px;
    height:34px;
    flex:0 0 34px;
    font-size:15px;
  }

  .products-grid{

    /* スマホは2列 */
    grid-template-columns:repeat(2,1fr);

    gap:15px;
  }

  .product-content{
    padding:13px;
  }

  .product-name{
    font-size:17px;
  }

  .product-text{
    font-size:12.5px;
    line-height:1.55;
  }

  .btn{
    width:100%;
    text-align:center;
    box-sizing:border-box;
    padding:9px 10px;
  }

}

/* =========================================
   小さいスマホ対応
========================================= */

@media screen and (max-width:480px){

  .products-title h1{
    font-size:24px;
  }

  .products-grid{

    /* 小さいスマホは1列 */
    grid-template-columns:1fr;

  }

  .product-name{
    font-size:18px;
  }

  .product-content{
    padding:15px;
  }

}


/* =========================================
   検索窓
========================================= */

.search-area input{
  width:100%;
  max-width:700px;

  padding:20px 25px;

  border:1px solid #ddd;
  border-radius:50px;

  font-size:18px;

  background:#fff;

  box-shadow:
    0 4px 12px rgba(0,0,0,0.08);

  box-sizing:border-box;
  outline:none;

  transition:0.2s;
}

.search-area input:focus{
  border-color:#0078d7;

  box-shadow:
    0 6px 18px rgba(0,120,215,0.2);
}

/* =========================================
   ページ上部へ戻るボタン
========================================= */

.page-top-btn{
  position:fixed;
  right:18px;
  bottom:18px;

  width:52px;
  height:52px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#FE9900;
  color:#fff;

  border-radius:50%;

  text-decoration:none;

  font-size:24px;

  box-shadow:
    0 4px 12px rgba(0,0,0,0.2);

  z-index:9999;

  transition:0.2s;
}

.page-top-btn:hover{
  background:#FED000;
  transform:translateY(-3px);
}

.page-top-btn i{
  line-height:1;
}


/* =========================================
   商品区分メニュー
========================================= */

.products-tabs{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;

  margin:0 0 28px;
}

.products-tab{
  position:relative;

  display:inline-flex;
  align-items:center;
  gap:8px;

  min-height:36px;
  padding:6px 16px;

  border-radius:999px;

  text-decoration:none;

  font-size:14px;
  font-weight:bold;
  line-height:1.3;

  box-shadow:
    0 2px 8px rgba(0,0,0,0.06);

  transition:0.2s;
}

/* メインテキスト */
.tab-main{
  display:inline-flex;
  align-items:center;
  gap:7px;
}

/* 矢印 */
.tab-arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  font-size:12px;
}

/* ホビー向け */
.products-tab-hobby{
  background:#F0EFDF;
  color:#FE9900;
  border:1px solid #FE9900;
}

/* 現在表示中っぽくする */
.products-tab-current{
  cursor:default;
  opacity:0.9;
}

/* 業務用 */
.products-tab-business{
  background:#EEEEFF;
  color:#0066FF;
  border:1px solid #0066FF;
}

/* 業務用だけホバー */
.products-tab-business:hover{
  background:#0066FF;
  color:#fff;
  transform:translateY(-2px);
  box-shadow:
    0 5px 12px rgba(0,0,0,0.12);
}

/* =========================================
   スマホ対応
========================================= */

@media screen and (max-width:768px){

  .products-tabs{
    gap:8px;
    margin:0 0 22px;
  }

  .products-tab{
    min-height:34px;
    padding:6px 13px;
    font-size:13px;
  }

  .tab-main{
    gap:6px;
  }

}
