@charset "UTF-8";

/* ===============================
	変数定義
=============================== */
:root {
  --bg-color: #f4f2f0;
  --color-red: #C83C2D;
  --margin-large: 6rem;
  --margin-medium: 4rem;
  --margin-small: 2rem;

  /* フォント */

  --accent-font: "copperplate", serif;
  --gothic: "Zen Kaku Gothic New", sans-serif;
}

/* ===============================
	共通スタイル
=============================== */

.global-section {
  padding-block: 10rem;
}

/* アイコン */
.chevron-right {
  inline-size: 1.5rem;
  block-size: 1.5rem;
}



/* 製品紹介 */
.product {
  position: relative;
  background-color: #fff;
  font-family: var(--gothic);
}

.product-intro-title {
  position: relative;
  inline-size: fit-content;
  margin-inline: auto;
  padding-bottom: 1rem;
  text-align: center;
  font-size: 2.6rem;
  font-weight: bold;
}

.product-intro-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  inline-size: 100%;
  block-size: 3px;
  background-image: repeating-linear-gradient(90deg, #ff7979, #ff7979 6px, transparent 6px, transparent 10px);
  background-position: left bottom;
  background-repeat: repeat-x;
  background-size: 100% 2px;
}

.product-list {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5rem 3rem;
}

.product-item {
  inline-size: 22%;
  text-align: center;
  min-inline-size: 25rem;
}

.product-series {
  font-size: 1.8rem;
  font-weight: 500;
}

.product-title {
  font-size: 2.4rem;
  font-weight: bold;
}

/* ボタン */

.product-btn {
  display: inline-block;
  inline-size: fit-content;
  margin-top: 1em;

}

.product-btn a {
  display: grid;
  grid-template-columns: auto 1fr;
  place-content: center;
  align-items: center;
  grid-column-gap: .8em;
  inline-size: 100%;
  padding: 1.5rem 2rem;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 500;
  border: 2px solid #C83C2D;
  border-radius: 10px;
  background-color: #C83C2D;
  transition: .3s;
}





/* ====================================
	スマートフォン専用スタイル（～768px）
===================================== */
@media screen and (width <768px) {

  .global-section {
    padding-block: 5rem;
  }


  .product-intro-title {
    font-size: 1.6rem;
    text-underline-offset: 7px;
    line-height: 2;

  }

  .product-list {
    margin-top: 3rem;
    gap: 3rem 1rem;
  }


  .product-item {
    inline-size: 48%;
    min-inline-size: 0;
  }

  .product-series {
    font-size: 1.4rem;
  }

  .product-title {
    font-size: 1.6rem;
  }


  .product-btn a {
    padding: 1rem;
    font-size: 1.2rem;
    line-height: 1.6;
  }


}


/* ====================================
	タブレット専用スタイル（768px～1079px）
===================================== */
@media screen and (768px <=width < 1080px) {

  .product-series {
    font-size: 1.5rem;
  }


}

/* ====================================
	ホバーが有効な環境のみ
===================================== */
@media (hover:hover) and (pointer: fine) {

  .product-btn a:hover {
    color: var(--color-red);
    background-color: #fff;
    text-decoration: none;
  }

}