/* =========================
   NORIZON - 海苔マーケットプレイス
   緑メイン × 青アクセント / レスポンシブ対応
   ========================= */

:root {
  /* ブランドカラー：海苔の深緑 × 有明海の青 */
  --g-900: #0e3d22;      /* 海苔の最深緑 */
  --g-800: #165231;      /* 深緑 */
  --g-700: #1e6b42;      /* ヘッダー・メインブランド */
  --g-600: #2b8659;      /* CTA緑 */
  --g-500: #3da06f;      /* アクセント */
  --g-400: #67bf90;      /* ライトグリーン */
  --g-200: #c7e8d5;      /* 薄緑背景 */
  --g-100: #eaf5ee;      /* 極薄緑背景 */

  --b-800: #0f4266;      /* 深い海の青 */
  --b-600: #1d6ea3;      /* 青アクセント */
  --b-500: #2a8bc9;      /* ライトブルー */
  --b-200: #c9e3f2;      /* 薄青背景 */

  --text: #1a2820;
  --text-light: #5b6b61;
  --text-white: #ffffff;
  --border: #d8e3dc;
  --border-light: #ecf2ee;
  --bg: #ffffff;
  --bg-tint: #f5faf7;    /* 極薄緑ベース背景 */
  --bg-card: #ffffff;

  --star: #e8a829;
  --price: #1a5a3d;      /* 緑系プライス */
  --price-red: #b13030;  /* セール時の赤 */
  --success: #2b8659;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-s: 0 2px 6px rgba(14, 61, 34, 0.06);
  --shadow-m: 0 4px 16px rgba(14, 61, 34, 0.1);
  --shadow-l: 0 12px 40px rgba(14, 61, 34, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background-color: #f9f7f1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(30,107,66,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.6;
  font-size: 15px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--b-600); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--g-600); text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; }

/* ===== Header (産直EC風 - clean & minimal) ===== */
.header {
  background: #ffffff;
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}
.header-top {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 18px 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.header-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--g-900);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.header-logo:hover { color: var(--g-700); text-decoration: none; }
.header-logo .logo-main {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: inherit;
}
.header-logo .logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.2em;
}

.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  height: 42px;
  border-radius: 999px;
  background: #f5f5f3;
  transition: background 0.15s, box-shadow 0.15s;
  max-width: 520px;
}
.header-search:focus-within {
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--g-500);
}
.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 20px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}
.header-search input::placeholder { color: var(--text-light); }
.header-search button {
  width: 44px;
  height: 42px;
  background: transparent;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.header-search button:hover { color: var(--g-700); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-login {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.15s;
  white-space: nowrap;
}
.header-login:hover { color: var(--g-700); text-decoration: none; }

.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  padding: 8px;
  transition: color 0.15s;
}
.header-cart:hover { color: var(--g-700); text-decoration: none; }
.header-cart svg { display: block; }
.header-cart .cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--g-600);
  color: #ffffff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  line-height: 1;
}

/* ===== Category Navigation ===== */
.header-nav {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}
.header-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.header-nav-inner::-webkit-scrollbar { display: none; }
.header-nav-inner a {
  color: var(--text);
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.04em;
}
.header-nav-inner a:hover {
  color: var(--g-700);
  border-bottom-color: var(--g-600);
  text-decoration: none;
}
.header-nav-inner a.nav-primary {
  color: var(--g-700);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-nav-inner a.nav-primary::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--g-600);
  border-radius: 50%;
}

/* checkout画面の「安全なお買い物」表示 */
.checkout-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.checkout-secure svg { color: var(--g-600); }
@media (max-width: 480px) {
  .checkout-secure span { display: none; }
}

/* ===== Container ===== */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 24px;
}

/* ===== Hero Catch (TOP画像の上に配置 / 和モダン風) ===== */
.hero-catch {
  background: linear-gradient(180deg, var(--g-100) 0%, #fdfcf8 100%);
  padding: 44px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.hero-catch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--g-600), transparent);
}
.hero-catch h1 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(22px, 3vw, 36px);
  color: var(--g-900);
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.hero-catch h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  background: var(--g-500);
  margin: 14px auto 0;
}
.hero-catch p {
  color: var(--text-light);
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: 0.04em;
}

/* ===== Hero (TOP画像) ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero img {
  width: 100%;
  display: block;
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* ===== Section ===== */
.section {
  background: white;
  margin: 20px 0;
  padding: 28px 32px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--g-100);
  gap: 12px;
  flex-wrap: wrap;
}
.section-title {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 700;
  color: var(--g-900);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.06em;
}
.section-title::before {
  content: "";
  width: 5px;
  height: 26px;
  background: linear-gradient(180deg, var(--g-500) 0%, var(--g-800) 100%);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-link {
  font-size: 14px;
  color: var(--g-600);
  font-weight: 600;
  white-space: nowrap;
}
.section-link:hover { color: var(--g-700); }

/* ===== Product Card ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.product-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-m);
  padding: 14px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
}
.product-card:hover {
  border-color: var(--g-400);
  box-shadow: var(--shadow-m);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text);
}
.product-card-img {
  aspect-ratio: 1;
  background: var(--bg-tint);
  border-radius: var(--radius-s);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card:hover .product-card-title { color: var(--g-700); }
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}
.product-card-rating .stars { color: var(--star); font-size: 14px; letter-spacing: -1px; }
.product-card-rating .count { color: var(--text-light); font-size: 12px; }
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--price);
  font-weight: 700;
}
.product-card-price .sym { font-size: 13px; vertical-align: super; }
.product-card-price .whole { font-size: 20px; }
.product-card-badge {
  color: var(--b-600);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-card-badge::before {
  content: "⚓";
  font-size: 11px;
}
.product-card-delivery {
  font-size: 12px;
  color: var(--text-light);
}
.product-card-delivery strong { color: var(--text); }

/* ===== Producer Card ===== */
.producer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.producer-card {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-l);
  background: white;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text);
  display: block;
  position: relative;
  overflow: hidden;
}
.producer-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--g-100) 0%, transparent 100%);
  z-index: 0;
}
.producer-card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-4px);
  border-color: var(--g-400);
  text-decoration: none;
  color: var(--text);
}
.producer-card-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 4px solid white;
  background: var(--bg-tint);
  box-shadow: 0 4px 12px rgba(14, 61, 34, 0.12);
  position: relative;
  z-index: 1;
}
.producer-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.producer-card-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--g-900);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.producer-card-role {
  font-size: 12px;
  color: var(--g-600);
  margin-bottom: 10px;
  font-weight: 600;
}
.producer-card-catch {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  min-height: 3em;
  padding: 0 8px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-light);
  background: white;
  margin-bottom: 20px;
  border-radius: var(--radius-s);
  border-left: 4px solid var(--g-500);
}
.breadcrumb a { color: var(--g-600); font-weight: 600; }
.breadcrumb span.sep { margin: 0 8px; color: var(--border); }

/* ===== Producer Hero ===== */
.producer-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 36px;
  background: linear-gradient(135deg, white 0%, var(--g-100) 100%);
  border-radius: var(--radius-l);
  align-items: center;
  box-shadow: var(--shadow-s);
}
.producer-hero-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid white;
  box-shadow: var(--shadow-m);
  background: white;
}
.producer-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.producer-hero-info h1 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 6px;
  color: var(--g-900);
}
.producer-hero-info .role {
  color: var(--g-600);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}
.producer-hero-info .message {
  font-size: 15px;
  line-height: 1.8;
  background: white;
  padding: 20px 24px;
  border-left: 6px solid var(--g-500);
  border-radius: var(--radius-s);
  white-space: pre-line;
  box-shadow: var(--shadow-s);
}
.producer-hero-info .company-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--b-600);
  font-size: 14px;
  font-weight: 600;
}

/* ===== Product Detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr 340px;
  gap: 28px;
  padding: 28px;
  background: white;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}
.product-detail-main-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-tint);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
}
.product-detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-detail-thumbs img {
  width: 66px;
  height: 66px;
  border: 2px solid var(--border);
  cursor: pointer;
  object-fit: cover;
  border-radius: var(--radius-s);
  transition: border-color 0.15s;
}
.product-detail-thumbs img.active,
.product-detail-thumbs img:hover { border-color: var(--g-500); }

.product-detail-info h1 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--g-900);
}
.product-detail-info .brand {
  color: var(--b-600);
  font-size: 14px;
  margin-bottom: 12px;
  display: inline-block;
  font-weight: 600;
}
.product-detail-info .rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
  font-size: 14px;
  flex-wrap: wrap;
}
.product-detail-info .stars { color: var(--star); }
.product-detail-info .price-box {
  padding: 14px 18px;
  background: var(--g-100);
  border-radius: var(--radius-s);
  margin-bottom: 16px;
}
.product-detail-info .price-box .label {
  display: inline-block;
  background: var(--g-600);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 10px;
}
.product-detail-info .price-box .price {
  font-size: 34px;
  color: var(--price);
  font-weight: 800;
}
.product-detail-info .price-box .price .sym { font-size: 18px; vertical-align: super; margin-right: 2px; }
.product-detail-info .tax { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.product-detail-info .bullets {
  margin: 16px 0;
  padding-left: 22px;
}
.product-detail-info .bullets li {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.buy-box {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-l);
  padding: 22px;
  background: linear-gradient(180deg, white 0%, var(--g-100) 100%);
  position: sticky;
  top: 140px;
  align-self: start;
  box-shadow: var(--shadow-s);
}
.buy-box .price-big {
  font-size: 30px;
  color: var(--price);
  font-weight: 800;
  margin-bottom: 12px;
}
.buy-box .price-big .sym { font-size: 16px; vertical-align: super; }
.buy-box .delivery {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.buy-box .delivery strong { color: var(--g-700); }
.buy-box .stock {
  color: var(--success);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.buy-box .stock::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--g-500);
  color: white;
  border-radius: 50%;
  font-size: 12px;
}
.buy-box select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: white;
  font-size: 14px;
  font-family: inherit;
}

.btn-primary, .btn-secondary {
  width: 100%;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.15s;
  font-family: inherit;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--g-600);
  color: white;
  margin-bottom: 10px;
}
.btn-primary:hover {
  background: var(--g-700);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-m);
}
.btn-secondary {
  background: white;
  color: var(--b-600);
  border: 2px solid var(--b-600);
}
.btn-secondary:hover {
  background: var(--b-600);
  color: white;
  text-decoration: none;
}

/* 旧クラス互換 */
.btn-add { background: var(--g-600); color: white; width: 100%; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 700; margin-bottom: 10px; transition: all 0.15s; }
.btn-add:hover { background: var(--g-700); }
.btn-buy { background: var(--b-600); color: white; width: 100%; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 700; transition: all 0.15s; }
.btn-buy:hover { background: var(--b-800); }

.buy-box .small-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 14px;
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ===== Cart ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
.cart-main {
  background: white;
  padding: 28px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}
.cart-main h1 {
  font-size: clamp(22px, 2.5vw, 28px);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--g-100);
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--g-900);
}
.cart-main .header-row {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-light);
}
.cart-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 140px;
  height: 140px;
  background: var(--bg-tint);
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.cart-item-info h3 a { color: var(--text); }
.cart-item-info h3 a:hover { color: var(--g-700); }
.cart-item-info .stock {
  color: var(--success);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
}
.cart-item-info .seller { color: var(--text-light); font-size: 12px; margin-bottom: 8px; }
.cart-item-info .seller a { font-weight: 600; }
.cart-item-info .actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.qty-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 6px 10px;
  font-size: 13px;
  background: white;
  font-family: inherit;
}
.item-link {
  font-size: 13px;
  color: var(--g-600);
  padding: 4px 10px;
  border-left: 1px solid var(--border);
  font-weight: 600;
}
.item-link:hover { color: var(--g-700); }
.item-price {
  text-align: right;
  font-size: 22px;
  font-weight: 800;
  color: var(--price);
}
.cart-subtotal {
  text-align: right;
  padding: 16px 0;
  font-size: 17px;
}
.cart-subtotal strong { font-weight: 800; color: var(--g-900); }

.cart-side {
  background: white;
  padding: 24px;
  border-radius: var(--radius-l);
  position: sticky;
  top: 140px;
  align-self: start;
  box-shadow: var(--shadow-s);
}
.cart-side .free {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--g-100);
  border-radius: var(--radius-s);
  color: var(--g-800);
}
.cart-side .subtotal-big {
  font-size: 19px;
  margin-bottom: 16px;
}
.cart-side .subtotal-big strong { font-weight: 800; color: var(--price); }
.btn-checkout {
  display: block;
  width: 100%;
  background: var(--g-600);
  border-radius: 999px;
  padding: 14px;
  font-size: 15px;
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.15s;
}
.btn-checkout:hover {
  background: var(--g-700);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-m);
}

/* ===== Checkout ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
.checkout-main {
  background: white;
  padding: 32px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}
.checkout-main h1 {
  font-size: clamp(22px, 2.5vw, 28px);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--g-100);
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--g-900);
}
.step-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: start;
}
.step-num {
  width: 32px;
  height: 32px;
  background: var(--g-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(43, 134, 89, 0.3);
}
.step-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--g-900);
}
.step-body p { font-size: 14px; line-height: 1.7; color: var(--text); }
.step-body .edit-link { font-size: 13px; color: var(--b-600); display: inline-block; margin-top: 8px; font-weight: 600; }
.step-block select,
.step-block input[type="text"],
.step-block input[type="email"] {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font-size: 14px;
  width: 100%;
  max-width: 320px;
  margin-top: 8px;
  font-family: inherit;
}
.payment-option, .shipping-option {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.payment-option:hover, .shipping-option:hover { border-color: var(--g-400); }
.payment-option.active, .shipping-option.active {
  border-color: var(--g-500);
  background: var(--g-100);
  box-shadow: 0 0 0 2px rgba(61, 160, 111, 0.15);
}
.payment-option input, .shipping-option input { cursor: pointer; accent-color: var(--g-600); }

.checkout-side {
  background: white;
  padding: 24px;
  border-radius: var(--radius-l);
  position: sticky;
  top: 140px;
  align-self: start;
  box-shadow: var(--shadow-s);
}
.btn-place {
  display: block;
  width: 100%;
  background: var(--g-600);
  border-radius: 999px;
  padding: 14px;
  font-size: 16px;
  color: white;
  text-align: center;
  text-decoration: none;
  margin-bottom: 16px;
  font-weight: 700;
  transition: all 0.15s;
}
.btn-place:hover {
  background: var(--g-700);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-m);
}
.order-summary h3 {
  font-size: 17px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--g-100);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--g-900);
}
.order-summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 8px;
  font-size: 14px;
}
.order-summary dt { color: var(--text); }
.order-summary dd { text-align: right; }
.order-summary .total {
  padding-top: 12px;
  border-top: 2px solid var(--g-100);
  margin-top: 12px;
}
.order-summary .total dl { font-size: 19px; font-weight: 800; }
.order-summary .total dd { color: var(--price); }

/* ===== Footer ===== */
.footer-top {
  background: #fafaf7;
  border-top: 1px solid var(--border-light);
  padding: 22px 20px;
  text-align: center;
}
.footer-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-top-btn:hover {
  color: var(--g-700);
  border-color: var(--g-600);
  text-decoration: none;
  transform: translateY(-1px);
}
.footer-top-btn svg { color: var(--g-600); }

/* 波線ディバイダー（白→深緑への遷移） */
.footer-wave {
  display: block;
  width: 100%;
  height: 60px;
  background: #fafaf7;
  margin: 0;
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* メインフッター（深緑＝海苔の色） */
.footer-main {
  background: var(--g-900);
  color: white;
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}
.footer-main::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(103,191,144,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.footer-main::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(30,107,66,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.footer-main-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 3fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

/* フッターブランドエリア */
.footer-brand-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: white;
  margin-bottom: 18px;
  line-height: 1;
  text-decoration: none;
}
.footer-brand-logo:hover { text-decoration: none; }
.footer-brand-logo .logo-main {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: white;
}
.footer-brand-logo .logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--g-200);
  letter-spacing: 0.24em;
}
.footer-tagline {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 22px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  letter-spacing: 0.04em;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover {
  background: var(--g-600);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* フッターリンクグリッド */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.footer-grid h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--g-400);
  position: relative;
  padding-left: 14px;
  text-transform: uppercase;
}
.footer-grid h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--g-500);
  border-radius: 50%;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  transition: color 0.15s;
}
.footer-grid a:hover {
  color: white;
  text-decoration: none;
}

/* 最下部（黒緑・法的情報） */
.footer-bottom {
  background: #051a0d;
  color: rgba(255,255,255,0.55);
  padding: 22px 24px;
  font-size: 12px;
}
.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom .footer-logo-small {
  color: white;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-meta a {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}
.footer-meta a:hover { color: white; text-decoration: none; }
.footer-meta .sep { color: rgba(255,255,255,0.25); }
.footer-copy {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ===== 海苔感デコレーション ===== */

/* 波線ディバイダー（セクション境界用・配置はHTML側でSVG埋め込み） */
.nori-divider {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
}
.nori-divider svg {
  width: 100%;
  height: 28px;
  max-width: 560px;
  display: block;
  margin: 0 auto;
  color: var(--g-500);
  opacity: 0.55;
}

/* 海苔バッジ（「旬の海苔」「認定海苔師」などの表示） */
.nori-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--g-100);
  color: var(--g-700);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--g-200);
  white-space: nowrap;
}
.nori-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--g-600);
  border-radius: 50%;
}
.nori-badge-mincho {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  letter-spacing: 0.14em;
}

/* 朱印風スタンプデコレーション */
.nori-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--g-700);
  border-radius: 50%;
  color: var(--g-700);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.3;
  background: rgba(255,255,255,0.85);
  transform: rotate(-8deg);
  writing-mode: vertical-rl;
  padding: 10px 4px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .product-detail { grid-template-columns: 1fr 1fr; }
  .product-detail .buy-box { grid-column: 1 / -1; position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .buy-box, .cart-side, .checkout-side { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-main-inner { grid-template-columns: 1fr; gap: 40px; }
  .header-top { gap: 24px; padding: 16px 24px; }
}

@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 16px;
  }
  .header-search {
    order: 10;
    flex-basis: 100%;
    max-width: 100%;
    height: 40px;
  }
  .header-logo .logo-main { font-size: 22px; }
  .header-logo .logo-sub { display: none; }
  .header-actions { gap: 18px; }
  .header-nav-inner { padding: 0 16px; }
  .header-nav-inner a { padding: 12px 12px; font-size: 13px; }

  .container { padding: 14px; }
  .section { padding: 20px 16px; margin: 14px 0; border-radius: var(--radius-m); }
  .section-title::before { height: 20px; width: 5px; }

  .producer-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }
  .producer-hero-avatar {
    margin: 0 auto;
    width: 160px;
    height: 160px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 20px;
  }

  .hero img { aspect-ratio: 16/10; }
  .hero-overlay {
    padding: 14px 20px;
    bottom: 16px;
    border-radius: var(--radius-m);
  }

  .cart-item {
    grid-template-columns: 100px 1fr;
    gap: 14px;
  }
  .cart-item-img { width: 100px; height: 100px; }
  .cart-item-info h3 { font-size: 15px; }
  .item-price { font-size: 18px; }

  .step-block {
    grid-template-columns: 32px 1fr;
  }
  .step-block > .edit-link { grid-column: 2; justify-self: start; }
  .step-num { width: 28px; height: 28px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; text-align: left; }
  .footer-main { padding: 40px 20px 36px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-wave { height: 40px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .container { padding: 10px; }
  .section { padding: 16px 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 10px; }
  .product-card-title { font-size: 13px; }
  .producer-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .producer-card { padding: 16px 10px; }
  .producer-card-avatar { width: 80px; height: 80px; }
  .producer-card-name { font-size: 14px; }
  .producer-card-role { font-size: 11px; }
  .producer-card-catch { font-size: 12px; }
  .header-top { padding: 10px 12px; gap: 10px; }
  .header-logo .logo-main { font-size: 20px; }
  .header-actions { gap: 14px; }
  .header-login { font-size: 13px; }
}
