@charset "UTF-8";
/* CSS Document */
.main {
  background-color: #f6f8f9;
  margin-left: 280px; /* ← header の幅 */
}
.section-top__image {
  position: relative;
  width: 100%;
  height: 85vh;
  background-image: url("../images/top/top_image.webp");
  background-size: cover;   /* 画像を全体にフィット */
  background-position: center;
  background-repeat: no-repeat;
}
.section-top__image-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.10);
}
.section-top__image-message {
  font-family: "cherry-blossoms-regular", sans-serif;
  font-style: normal;
  color: #fff;
  font-weight: 100;
  width: 100%;
}
.section-top__image-message h2 {
  padding-bottom: 20px;
  border-bottom: #fff solid 2px;
  width: 90%;
  margin: 0 auto;
  line-height: 80px;
  font-size: 7rem;
}
#sec1 {
  padding: 60px 25px;
  background-color: #f6f8f9;
  width: calc(100% - 280px);
  max-width: 1200px;
  margin-inline: auto;
}
#sec1 h2{
  margin-bottom: 30px;
}
.pc-only {
  display: inline;
}
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}
#sec2 {
  position: relative;
  background-color: #f6f8f9;
  box-sizing: border-box;
  width: calc(100% - 280px); 
  max-width: 1200px; /* 任意の中央寄せ幅 */
  margin-inline: auto; /* 左右中央寄せ */
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0;
}
.sec2-1__img {
  position: relative; /* ← 基準にする */
  background-image: url("../images/top/yamakawa.webp");
  background-size: cover;
  background-position: center;
  grid-column: 1;
  grid-row: 1;
  height: 50vh;
}
.sec2-1__txt {
  display: flex;
  flex: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
  grid-column: 2;
  grid-row: 1;
  height: 50vh; /* 高さの目安。調整可能 */
  background-color: #E0DECA;
  border: 1px solid #ddd;
  justify-content: center; /* 縦中央 */
  align-items: center;     /* 横中央 */
  text-align: center;
}
.btn__bg-mosgreen {
  width: 200px;
  height: 50px;
  display: flex; /* Flexで整列 */
  align-items: center; /* 縦中央 */
  justify-content: center; /* 横中央 */
  text-align: center;
  background-color: #968C28;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  margin: 0 auto; /* 必要に応じて中央寄せ */
}


.btn__bg-mosgreen a {
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
  display: block;
  width: 100% ;
}

.btn__bg-mosgreen:hover {
  background-color: #556b47; /* ホバー時に濃くなる */
}
.sec2-2__img {
  position: relative; /* ← 基準にする */
  background-image: url("../images/top/top_jigyouannai.webp");
  background-size: cover;
  background-position: center;
  grid-column: 2;
  grid-row: 2;
  height: 50vh;
}
.sec2-2__txt {
  display: flex;
  flex: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 2;
  height: 50vh; /* 高さの目安。調整可能 */
  background-color: #FCF9C6;
  border: 1px solid #ddd;
  justify-content: center; /* 縦中央 */
  align-items: center;     /* 横中央 */
  text-align: center;
}
.btn__bg-yellow {
  width: 200px;
  height: 50px;
  display: flex;
  background-color: #F8F061;
  align-items: center; /* ← 上下中央 */
  justify-content: center; /* 横中央 */
  text-align: center;
  transition: background-color 0.3s ease;
  margin: 0 auto; /* 必要に応じて中央寄せ */
}

.btn__bg-yellow a {
  color: #6F6F6F;
  text-decoration: none;
  font-size: 1.6rem;
  display: block;
  width: 100% ;
}

.btn__bg-yellow:hover {
  background-color: #F7EB1B; /* ホバー時に濃くなる */
}

.sec2-1__txt p,
.sec2-2__txt p {
  margin-bottom: 20px;
}
.sec2-1__square,
.sec2-2__square {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 8px; /* お好みで角丸 */
  box-sizing: border-box;
  padding: 10px;
  top: 50%; /* 2段目中央 */
  left: 50%;
  transform: translate(-50%,-50%);
  width: 140px;
  height: 140px;
  color: #fff;
  font-size: 1rem;
  z-index: 2;
}
/* 1段目中央に配置 */
  .sec2-1__square {
  background-color: rgba(150, 140, 40, 0.6);
}

.sec2-1__square img {
  width: 50%; /* 半分サイズ */
  height: auto;
  margin-bottom: 8px;
}

.sec2-1__square span {
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.2;
}
.sec2-2__square {
  background-color: rgba(248, 240, 97, 0.6);
}

.sec2-2__square img {
  width: 50%;
  height: auto;
  margin-bottom: 8px;
}

.sec2-2__square span {
  font-size: 1.6rem;
  color: #333;
  line-height: 1.2;
}
#sec3 {
  padding: 60px 50px;
  background-color: #f6f8f9;
  width: calc(100% - 280px);
  max-width: 1200px;
  margin-inline: auto;
}
#sec3 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);
}
/* 📱 スマホ用（768px以下） */
@media (max-width: 768px) {
  .product__image-grid {
    grid-template-columns: 1fr; /* 縦1列 */
    gap: 20px;
  }
  .product__image-grid img {
    width: 321px;   /* ← スマホ時だけ変更 */
    height: 250px;
    margin: 0 auto; /* 中央寄せ */
  }
}
.btn__bg-gray {
  display: flex;
  justify-content: center; /* ボタンを中央揃え */
  margin-top: 30px;
}

.btn__bg-gray .btn {
  position: relative;
  display: block;
  width: 270px;
  padding: 20px;
  border: 2px solid #E0DECA;
  border-radius: 2px;
  background-color: transparent;
  color: #E0DECA;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-right: 20px; /* ← アイコンがはみ出る分だけ調整 */
}

.btn__bg-gray .btn .btn-txt {
  display: inline-block;
}

.btn__bg-gray .btn .icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  transition: right 0.3s ease;
}

.btn__bg-gray .btn:hover .icon {
  right: -20px;
}

.btn__bg-gray .btn:hover {
  background: #E0DECA;
  color: #fff;
}

/* モバイル対応 */
@media (max-width: 768px) {
  /* 全体で横スクロールが起きないように */
  body {
    overflow-x: hidden;
  }
 .main {
    margin-left: 0;
  }
  /* コンテンツ部分にだけ余白を付ける */
  #sec1,
  #sec2,
  #sec3 {
    margin: 0 auto;
    width: 100%;
  }

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

  /* sec2 の各要素を上下に表示し、サイズ固定 */
  .grid {
    display: flex;
    flex-direction: column;
  }
  .sec2-1__img,
  .sec2-1__txt,
  .sec2-2__img,
  .sec2-2__txt {
    width: 100%;
	max-width: 321px;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .sec2-1__txt,
  .sec2-2__txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
  }

  /* 背景画像などがある場合の調整 */
  .sec2-1__img,
  .sec2-2__img {
    background-size: cover;
    background-position: center;
  }
}