@charset "utf-8";
/* =========================
   Feature Section
========================= */
.box-list {
  display: flex;
  flex-wrap: wrap; /* 幅が足りない場合は折り返す */
  justify-content: center;
  gap: 24px;
}

.box {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 24px;
  min-height: 100px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  flex: 1 1 calc(25% - 24px); /* 最大4列 */
  max-width: calc(25% - 24px); /* 横幅調整 */
  box-sizing: border-box;
}

.box h3 {
  font-family: "Times New Roman", Times, "serif";
  font-size: 28px;
  font-weight: 900;
  color: #2b2b2b;
  line-height: 1.4;
  margin: 0;
}

/* 小さな説明文を追加する場合 */
.box p {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  line-height: 1.6;
}

.feature .box-list {
  display: flex;
  gap: 24px;
}

.feature .box {
  display: block;        /* aタグをブロックにする */
  text-decoration: none; /* 下線を消す */
  color: inherit;        /* 文字色を元のまま */
  background: linear-gradient(135deg, #f7f3e8, #e6d3b1);
  border: 1px solid rgba(200,170,100,0.6);
  padding: 24px;
  min-height: 100px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature .box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.feature .box h3 {
  font-family: "Times New Roman", Times, serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
/* ---------- 共通 ---------- */
.feature {
  margin: 32px 0;
}

/* ---------- PC / タブレット用 ---------- */
.feature-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

/* PC: 4列 */
@media (min-width: 1025px) {
  .feature-container .box {
    flex: 0 0 calc(25% - 18px);
    max-width: calc(25% - 18px);
  }
  .feature-box-scroll {
    display: none; /* スマホ用非表示 */
  }
}

/* タブレット: 2列 */
@media (min-width: 768px) and (max-width: 1024px) {
  .feature-container .box {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
  .feature-box-scroll {
    display: none; /* スマホ用非表示 */
  }
}

/* ---------- スマホ用（767px以下） ---------- */
@media (max-width: 767px) {
  .feature-container {
    display: none; /* PC用非表示 */
  }

  .feature-box-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .feature-box-scroll .box {
    flex: 0 0 80%;
    scroll-snap-align: start;
    min-width: 80%;
  }

  /* スクロールバー非表示（オプション） */
  .feature-box-scroll::-webkit-scrollbar {
    display: none;
  }
}
