/* ========================================
   伊藤農園 自社サイト 共通スタイル
   futureshopの「追加CSS」欄に貼り付けて使用
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* --- CSS変数（カラー・サイズ定義） --- */
:root {
  --color-brand: #E2962D;
  /* ブランドカラー：落ち着いたオレンジ */
  --it-color-primary: var(--color-brand);
  --color-brand-dark: #C27E1D;
  --color-text: #4A4636;
  /* 深みのあるオリーブグレー */
  --color-text-light: #8C846F;
  /* 柔らかなサブテキスト */
  --color-bg-white: #FAF9F6;
  /* 暖かみのあるオフホワイト */
  --color-bg-gray: #F2F1EC;
  /* サンドベージュ */
  --color-bg-darkgray: #E5E2D9;
  /* 濃いベージュ */
  --color-border: #DDD9CE;
  /* ナチュラルな境界線 */
  --color-accent-green: #7A8D6E;
  /* セージグリーン（自然派アクセント） */

  --font-family: 'Noto Sans JP', sans-serif;
  --max-width: 1200px;
  --section-padding: 80px 20px;
  --section-padding-sm: 50px 20px;
}

/* --- リセット・ベース --- */
.it-section *,
.it-section *::before,
.it-section *::after {
  box-sizing: border-box;
}

.it-section {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.it-section a {
  text-decoration: none;
  color: inherit;
}

.it-section img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- コンテナ --- */
.it-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- セクション共通タイトル --- */
.it-section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 40px;
  letter-spacing: 0.05em;
}

.it-section-title span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* --- もっとみるボタン --- */
.it-btn {
  display: inline-block;
  padding: 12px 48px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.it-btn:hover {
  background: var(--color-bg-gray);
  border-color: var(--color-text-light);
}

.it-btn--primary {
  background: var(--color-accent-green);
  border-color: var(--color-accent-green);
  color: #fff;
}

.it-btn--primary:hover {
  background: #6a7c60;
  border-color: #6a7c60;
}

.it-btn--center {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
}

/* --- 商品カード --- */
.it-product-card {
  position: relative;
}

.it-product-card__img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-gray);
  margin-bottom: 8px;
}

.it-product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.it-product-card:hover .it-product-card__img-wrap img {
  transform: scale(1.03);
}

.it-product-card__name {
  font-size: 12px;
  color: var(--color-text);
  margin: 0 0 4px;
  line-height: 1.5;
}

.it-product-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}

/* 送料無料バッジ */
.it-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: #fee538;
  color: #ff0000;
  font-size: 9px;
  padding: 2px 5px;
  letter-spacing: 0.03em;
}

/* --- 5列グリッド --- */
.it-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* --- 4列グリッド --- */
.it-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --- 3列グリッド --- */
.it-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* --- 2列グリッド --- */
.it-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ========================================
   レスポンシブ（スマホ：768px以下）
   ======================================== */
@media (max-width: 768px) {
  .it-section-title {
    font-size: 18px;
  }

  .it-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .it-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .it-grid-3 {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }

  .it-grid-2 {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
}