@charset "UTF-8";
/* 商品ラインナップ／購入フロー
   ベースカラー: #003705（緑）/ アクセント #E73828 */

.item-archive,
.item-detail,
.item-order { padding: 0 0 80px; }

/* ===== 一覧: 絞り込み ===== */
.item-filter {
  border: 1px solid #cdd8c4;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  margin-bottom: 40px;
}
.item-filter__label { font-weight: 700; margin-bottom: 16px; }
.item-filter__tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.item-tag {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #003705;
  border-radius: 999px;
  color: #003705;
  font-size: 1.4rem;
  text-decoration: none;
  transition: .2s;
}
.item-tag:hover,
.item-tag.is-current { background: #003705; color: #fff; }

/* ===== 一覧: グリッド ===== */
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
}
.item-card { text-align: center; }
.item-card__link { display: block; text-decoration: none; color: #222; }
.item-card__thumb {
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 12px;
  box-sizing: border-box;
}
.item-card__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.item-card__shop { font-size: 1.2rem; color: #555; margin-bottom: 6px; }
.item-card__name { font-size: 1.4rem; line-height: 1.6; font-weight: 500; margin-bottom: 8px; }
.item-card__price { font-size: 2rem; font-weight: 700; color: #003705; }
.item-card__link:hover .item-card__name { text-decoration: underline; }
.item-empty { text-align: center; padding: 40px 0; }

/* ===== 詳細 ===== */
.item-detail {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.item-detail__gallery { width: 45%; flex-shrink: 0; }
.item-detail__main {
  border: 1px solid #e5e5e5;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; min-height: 320px;
}
.item-detail__main img { max-width: 100%; max-height: 420px; object-fit: contain; }
.item-detail__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; list-style: none; padding: 0; }
.item-thumb {
  width: 64px; height: 64px; padding: 4px;
  border: 1px solid #ddd; background: #fff; cursor: pointer;
}
.item-thumb.is-current { border-color: #003705; }
.item-thumb img { width: 100%; height: 100%; object-fit: contain; }

.item-detail__info { flex: 1; }
.item-detail__shop { color: #555; font-size: 1.3rem; margin-bottom: 8px; }
.item-detail__name { font-size: 2.4rem; font-weight: 700; line-height: 1.5; margin-bottom: 16px; }
.item-detail__price { font-size: 2.8rem; font-weight: 700; color: #003705; margin-bottom: 24px; }

.item-buy-btn {
  display: block; width: 100%; max-width: 360px;
  padding: 16px; text-align: center;
  background: #003705; color: #fff; font-size: 1.7rem; font-weight: 700;
  text-decoration: none; border-radius: 4px; transition: .2s;
  margin-bottom: 30px;
}
.item-buy-btn:hover { opacity: .85; }

/* 一覧へ戻るボタン */
.item-detail__back { text-align: center; margin-top: 50px; padding-bottom: 100px; }
.item-back-btn {
  display: inline-block;
  min-width: 280px;
  padding: 15px 30px;
  border: 1px solid #003705;
  color: #003705;
  background: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: .2s;
}
.item-back-btn:hover { background: #003705; color: #fff; }

/* アコーディオン */
.item-acc { border-top: 1px solid #ddd; }
.item-acc:last-child { border-bottom: 1px solid #ddd; }
.item-acc__head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 4px; font-size: 1.5rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.item-acc__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.item-acc__icon::before,
.item-acc__icon::after { content: ""; position: absolute; background: #003705; transition: .2s; }
.item-acc__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.item-acc__icon::after  { top: 0; left: 7px; width: 2px; height: 16px; }
.item-acc.is-open .item-acc__icon::after { transform: scaleY(0); }
.item-acc__body { display: none; padding: 0 4px 20px; line-height: 1.9; font-size: 1.4rem; }
.item-acc.is-open .item-acc__body { display: block; }

/* ===== 購入フロー 共通 ===== */
.order-steps {
  display: flex; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0 0 30px;
}
.order-steps li {
  flex: 1; max-width: 160px; text-align: center; padding: 10px;
  background: #eee; color: #999; font-weight: 600; font-size: 1.3rem; border-radius: 4px;
}
.order-steps li.is-active { background: #003705; color: #fff; }

.order-product {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid #e5e5e5; border-radius: 6px; padding: 16px; margin-bottom: 30px;
}
.order-product__thumb { width: 70px; flex-shrink: 0; }
.order-product__thumb img { width: 100%; height: auto; }
.order-product__name { font-weight: 600; margin-bottom: 4px; }
.order-product__price { font-size: 1.8rem; font-weight: 700; color: #003705; }
.order-product__price span { font-size: 1.2rem; font-weight: 400; color: #555; }

.order-form__title { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.order-form__lead { margin-bottom: 24px; line-height: 1.7; }

.order-row { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
.order-label { width: 180px; flex-shrink: 0; font-weight: 600; padding-top: 8px; }
.order-label .req { display: inline-block; background: #E73828; color: #fff; font-size: 1.1rem; padding: 1px 8px; border-radius: 3px; margin-left: 6px; }
.order-field { flex: 1; }
.order-field input[type=text],
.order-field input[type=email],
.order-field input[type=tel],
.order-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 1.5rem;
}
.order-field--split { display: flex; gap: 12px; }
.order-field--split span { flex: 1; }
.order-note { display: block; font-size: 1.2rem; color: #777; margin-top: 6px; }
.order-err { display: block; color: #E73828; font-size: 1.3rem; margin-top: 4px; }

.order-actions { text-align: center; margin-top: 36px; }
.order-btn {
  display: inline-block; min-width: 240px; padding: 16px 30px; border: none; cursor: pointer;
  font-size: 1.6rem; font-weight: 700; text-decoration: none; border-radius: 4px; transition: .2s;
}
.order-btn--primary { background: #003705; color: #fff; }
.order-btn--primary:hover { opacity: .85; }
.order-btn--back { background: #888; color: #fff; min-width: 160px; }
.order-btn--back:hover { opacity: .85; }

/* 確認 */
.order-confirm-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.order-confirm-table th,
.order-confirm-table td { text-align: left; padding: 14px; border-bottom: 1px solid #eee; font-size: 1.5rem; }
.order-confirm-table th { width: 200px; background: #f5f7f3; font-weight: 600; }
.order-confirm-total td { font-size: 1.9rem; font-weight: 700; color: #003705; }
.order-agree { text-align: center; font-size: 1.3rem; line-height: 1.8; margin-bottom: 10px; }
.order-agree a { color: #003705; }
.order-actions--confirm { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.order-secure { text-align: center; font-size: 1.2rem; color: #777; margin-top: 16px; }
.order-alert {
  background: #fdecea; border: 1px solid #E73828; color: #b02a1d;
  padding: 14px 18px; border-radius: 4px; margin-bottom: 24px; font-weight: 600;
}

/* 完了 */
.order-thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.order-thanks__title { font-size: 2.2rem; font-weight: 700; color: #003705; margin-bottom: 16px; }
.order-thanks__lead { line-height: 1.8; margin-bottom: 30px; }
.order-thanks .order-confirm-table th { width: 160px; }

/* ===== ページネーション ===== */
.item-archive .pagenation {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 50px 0 0;
  padding: 0;
}
.item-archive .pagenation li { list-style: none; margin: 0; }
.item-archive .pagenation li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #003705;
  color: #003705;
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
  background: #fff;
  transition: .2s;
}
.item-archive .pagenation li a:hover { background: #003705; color: #fff; }
.item-archive .pagenation li.current a {
  background: #003705;
  color: #fff;
  cursor: default;
}
/* 前後の矢印も番号ボタンと同じ枠スタイルに揃える（アイコンはCSSシェブロン） */
.item-archive .pagenation li a img { display: none; }
.item-archive .pagenation li.prev a::before,
.item-archive .pagenation li.next a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #003705;
  border-right: 2px solid #003705;
}
.item-archive .pagenation li.prev a::before { transform: rotate(-135deg); margin-left: 3px; }
.item-archive .pagenation li.next a::before { transform: rotate(45deg);  margin-right: 3px; }
.item-archive .pagenation li.prev a:hover::before,
.item-archive .pagenation li.next a:hover::before { border-color: #fff; }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .item-grid { grid-template-columns: 1fr; gap: 30px; }
  .item-detail { flex-direction: column; gap: 30px; padding-top: 0; }
  .item-detail__gallery { width: 100%; }
  .item-detail__main { min-height: auto; padding: 12px; }
  .order-row { flex-direction: column; gap: 8px; }
  .order-label { width: 100%; padding-top: 0; }
  .order-confirm-table th { width: 120px; }
  .order-actions--confirm { flex-direction: column-reverse; }
  .order-steps li { font-size: 1.1rem; padding: 8px 4px; }
}
