/* =======================================================================
   main visual
   ======================================================================= */
#mainVisualArea {
  width: 100%;
  height: 150px;
  margin: 0px;
  padding: 0;
  background: #fff url("/img/products/productsBg.png") repeat;
  background-clip: padding-box;
  border: 1px rgba(100, 180, 230, 0.5) solid;
  box-sizing: border-box;
}
#mainVisualText {
  width: 100%;
  padding: 36px 0 0 0;
  color: #fff;
  font-family: "Kosugi";
  font-size: 30px;
  font-weight: 100;
  line-height: 30px;
  text-align: center;
  text-shadow: #48c 1px 1px 4px;
  box-sizing: border-box;
}

/* =======================================================================
   contents
   ======================================================================= */
#contentsArea {
  max-width: 1100px;
  margin: 50px auto 0 auto;
  padding-bottom: 80px;
  color: #333;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

/* =======================================================================
   製品カードグリッド（.buttonWrap）
   ======================================================================= */
.products-ttl {
  text-align: center;
  margin: 0;
  color: #333;
  border-bottom: 1px solid #12519b;
}

.sub_ttl {
  text-align: center;
  margin-bottom: 30px;
  font-size: 12px;
  color: #12519b;
  line-height: 0;
}

.buttonWrap {
  --card-w: 240px; /* 変数で幅管理すると後から楽 */
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--card-w));
  justify-content: space-evenly; /* Grid でも同じ値が使える */
  gap: 26px 0; /* 行ギャップのみ 26px、列は 0 で均等 */
  list-style: none;
  padding: 0;
}

.buttonWrap li {
  background: #fff;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  transition: filter 0.3s;
  text-align: center;
}

.buttonWrap li:hover {
  filter: brightness(0.8);
}

.buttonWrap li a {
  display: block;
  width: 100%;
  height: 100%;
  color: #333;
  text-decoration: none;
}
.buttonWrap li a img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid #ccc;
}
.buttonWrap li a p {
  margin: 10px 0;
  font-weight: 600;
  text-align: center;
}

/* =======================================================================
   レスポンシブ調整
   ======================================================================= */
/* ---------- Laptop & 下位デスクトップ（～1024px） -------------------- */
@media (max-width: 1024px) {
  #mainArea {
    width: 96%; /* サイド余白確保 */
    max-width: 96%;
  }
}

/* ---------- Tablet（～768px） --------------------------------------- */
@media (max-width: 768px) {
  #mainVisualArea h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 22px;
  }
}

/* ---------- Mobile 標準（～600px） ----------------------------------- */
@media (max-width: 600px) {
  #mainVisualArea {
    height: 120px;
  }
  .buttonWrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 26px; /* 行・列どちらも 26 px の間隔 */
    list-style: none;
    padding: 0;
  }
}

/* ---------- Mobile Small（～450px） ---------------------------------- */
@media (max-width: 450px) {
  #mainArea {
    padding: 20px 10px;
    box-sizing: border-box;
  }
  #contentsArea {
    margin: 20px auto 0;
    padding-bottom: 80px;
    font-size: 12px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 20px;
  }

  /* ページ内ナビ：縦一列 */
  .page-nav-link {
    font-size: 12px;
  }

  /* インナーセクション：画像 */
  .section-inner div figure {
    max-width: 450px;
  }

  .buttonWrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 26px; /* 行・列どちらも 26 px の間隔 */
    list-style: none;
    padding: 0;
  }
  .buttonWrap li a p {
    font-size: 14px;
  }
}
