@charset "UTF-8";
/* CSS Document */
.main {
  background-color: #f6f8f9;
  margin-left: 280px; /* ← header の幅 */
}
.section-main__image {
  position: relative;
  width: 100%;
  height: 40vh;
  background-image: url("../images/services/services_main__image.webp");
  background-size: cover;   /* 画像を全体にフィット */
  background-position: center;
  background-repeat: no-repeat;
}
.section-main__image-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.10);
}
.section-main__image-message {
  font-family: "cherry-blossoms-regular", sans-serif;
  font-style: normal;
  color: #fff;
  font-weight: 60;
  width: 100%;
}
.section-main__image-message h2 {
  padding-bottom: 20px;
  border-bottom: #fff solid 2px;
  width: 15%;
  margin: 0 auto;
  line-height: 40px;
  font-size: 4rem;
}
@media (max-width: 768px) {
  .section-main__image-message h2 {
  width: 50%;
  font-size: 3rem;
  }
}
#sec1 {
  padding: 60px 50px;
  background-color: #f6f8f9;
}
#sec1 h2{
  margin-bottom: 30px;
}
.pc-only {
  display: inline;
}
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}
#sec2 {
  padding: 30px 50px 60px;
  background-color: #f6f8f9;
}
#sec2 h2{
  margin-bottom: 30px;
}
.product__image-grid {
  display: grid;
  grid-template-columns: repeat(2, 450px); /* 2列、幅固定 */
  gap: 30px; /* 行・列の間隔 */
  justify-content: center; /* グリッド全体を中央寄せ */
  margin: 40px 0;
}

.product__image-grid img {
  width: 450px;
  height: 250px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.product__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product__caption {
  width: 100%;
  background-color: #7E7D63; /* 背景色（例：落ち着いたグレー系） */
  color: #fff;
  text-align: center;
  padding: 12px 0;
  font-size: 1.4rem;
  font-family: "游ゴシック", sans-serif;
}
.product__description {
  width: 90%;
  margin-top: 15px;
  font-size: 1.4rem;
  color: #333;
  line-height: 1.6;
  font-family: "游ゴシック", "Yu Gothic", sans-serif;
  text-align: left;
}
/* 📱 スマホ時（中央寄せ） */
@media (max-width: 768px) {
  .product__caption,
  .product__description {
    width: 100%;
    margin: 0 auto;
  }
  .product__image-grid {
    grid-template-columns: 1fr; /* 縦1列 */
    gap: 20px;
  }
  .product__image-grid img {
    width: 100%;
    height: 250px;
    margin: 0 auto; /* 中央寄せ */
  }
   .product__description {
    margin-top: 12px;
    text-align: center;
  }
}
/* スマホで中央寄せ */
@media (max-width: 768px) {
  .badge {
    display: block;       /* ブロックにすることで中央寄せ可能 */
    text-align: center;   /* 文字を中央に */
    margin-left: auto;    /* 左右マージンで中央寄せ */
    margin-right: auto;
  }
  /* 全体で横スクロールが起きないように */
 .main {
    margin-left: 0;
  }

  /* トップビジュアル（余白なし） */
  .main-wrapper {
    width: 100vw;
    margin: 0;
    padding: 0;
  }
}