@charset "utf-8";

.title {
  height: calc(100vh - 200px);
  background-image: url(../images/02/equipment_top.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-shadow: 0px 6px 12px #241c1c;
}

.title h1 {
  font-size: 32px;
  font-weight: bold;
}

.title p {
  font-size: 18px;
  margin-top: 15px;
}

.section-1 {
  position: relative;
  /* 子要素の基準となるように設定 */
  width: 100%;
  /* 必要に応じて調整 */
  height: auto;
  /* 必要に応じて調整 */
  margin-top: 200px;
  margin-bottom: 200px;
}

.section-1 img {
  display: block;
  /* 画像がインライン要素として表示されるのを防ぐ */
  width: 100%;
  height: 500px;
  object-fit: cover;
  /* 画像がコンテナに合わせてどのように表示されるかを設定 */
}

.section-2 {
  position: relative;
  /* 子要素の基準となるように設定 */
  width: 100%;
  /* 必要に応じて調整 */
  height: auto;
  /* 必要に応じて調整 */
  margin-top: 200px;
  margin-bottom: 200px;
}

.section-2 img {
  display: block;
  /* 画像がインライン要素として表示されるのを防ぐ */
  width: 100%;
  height: 500px;
  object-fit: cover;
  /* 画像がコンテナに合わせてどのように表示されるかを設定 */
}

.text-overlay {
  position: absolute;
  top: 50%;
  /* 上下の余白を作るために調整 */
  left: 20px;
  /* 左寄せにするために調整 */
  transform: translateY(-50%);
  /* 縦方向の中央揃えを維持 */
  color: white;
  padding: 20px;
  text-align: left;
  /* テキストを左寄せに変更 */
  border-radius: 5px;
  width: auto;
  /* テキストの幅に合わせて調整 */
  max-width: 80%;
  /* 必要に応じて最大幅を設定 */
  line-height: 1.8;
  /* 行間の値を調整（例：1.5, 2.0など） */
}

.text-overlay h2 {
  font-size: 35px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 30px;
  line-height: 1.2;
  /* 必要に応じてh1の行間も調整 */
}

.text-overlay p {
  font-size: 15px;
  font-weight: bold;
  margin-top: 0;
  line-height: 1.2;
  /* 必要に応じてh1の行間も調整 */
}

.item-container {
  width: 930px;
  max-width: 90%;
   margin-top: 75px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, 240px);
  column-gap: 95px;
  row-gap: 70px;
  justify-content: space-around;
}

.item {
  width: 320px;
  /* 説明文の幅 + 左右のパディングなどを考慮した固定幅 */
  margin: 10px 20px 30px 20px;
  padding: 15px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  text-align: center;
}

.item img {
  width: 300px;
  height: auto;
  margin-bottom: 15px;
}

.item h3 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.item .kana {
  font-size: 10px;
  color: #777;
  text-align: center
}

.item p {
  font-size: 15px;
  line-height: 20px;
  margin-top: 10px;
}

.item .price {
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

.link-button-area {
  margin: 100px 10px 100px 1200px;
  width: 500px;
  height: auto;
}

.link-button-shop {
  font-size: 30px;
  color: #56595f;
  width: 500px;
  text-align: left;
}

/* スマートフォン */
@media (max-width: 768px) {
  .item-container {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .item {
    width: 270px;
    margin: 15px 0;
    text-align: center;
  }

  .item .price {
    text-align: center;
  }

  
}