/* =========================================================
   woocommerce.css
   Nyutsサイト用 WooCommerce商品ページスタイル
   ========================================================= */

/* ---------------------------------------------------------
   商品ページのコンテナに左右余白を確保する。
   商品ページでは front-page.css が読み込まれず、.container の
   左右padding が無いため、SP等で内容が画面左端に張り付いて
   いた。商品ページ限定で余白を明示する。
   --------------------------------------------------------- */
body.single-product .product-single .container,
.product-single .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  body.single-product .product-single .container,
  .product-single .container {
    padding: 0 16px;
  }
}

/* ---------------------------------------------------------
   パンくずリスト
   --------------------------------------------------------- */
.nyuts-breadcrumb {
  margin: 1rem 0 .8rem;
}
.nyuts-breadcrumb .woocommerce-breadcrumb {
  font-size: .8rem;
  color: #8e8a86;
}
.nyuts-breadcrumb .woocommerce-breadcrumb a {
  color: #4FB8CC;
  text-decoration: none;
}
.nyuts-breadcrumb .woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   基本レイアウト：画像（左）＋情報（右）
   floatではなくflexで組み、価格未入力などで右側が
   空に近い場合でも後続セクションが食い込まないようにする
   --------------------------------------------------------- */
body.single-product div.product {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

/* WooCommerce標準のfloatを無効化＋左カラム幅を指定 */
body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product div.images,
body.single-product div.product .nyuts-product-gallery {
  float: none !important;
  width: 46% !important;
  margin: 0 !important;
}

body.single-product div.product .summary.entry-summary {
  float: none !important;
  width: auto !important;
  flex: 1;
  min-width: 280px;
  margin: 0 !important;
}

/* タブ・関連商品などの後続ブロックは全幅に */
body.single-product div.product .woocommerce-tabs,
body.single-product div.product .related.products,
body.single-product div.product .up-sells {
  width: 100%;
  flex-basis: 100%;
}

/* ---------------------------------------------------------
   ギャラリー画像
   --------------------------------------------------------- */
body.single-product .woocommerce-product-gallery img {
  border-radius: 12px;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.12);
}

/* ---------------------------------------------------------
   商品タイトル・価格
   --------------------------------------------------------- */
body.single-product .product_title {
  font-size: 28px;
  font-weight: 600;
  color: #473c34;
  margin-bottom: .6rem;
}

body.single-product .summary .price {
  font-size: 24px;
  font-weight: 600;
  color: #4FB8CC;
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   バリエーション（サイズ選択）・数量・カートボタン
   --------------------------------------------------------- */
body.single-product .summary select,
body.single-product .summary .quantity .qty {
  border: 1px solid #d8e7db;
  border-radius: 8px;
  padding: .45em .8em;
  background: #fff;
  color: #473c34;
}

body.single-product .summary .single_add_to_cart_button,
body.single-product .summary button[type="submit"] {
  background: #4FB8CC;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: .6em 1.6em;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
body.single-product .summary .single_add_to_cart_button:hover,
body.single-product .summary button[type="submit"]:hover {
  opacity: .85;
  background: #4FB8CC;
  color: #fff;
}

/* ---------------------------------------------------------
   タイトル下リンク集（生産者ロゴ＋カテゴリー/タグバッジ）
   --------------------------------------------------------- */
body.single-product .product-meta-nyuts {
  border-top: 1px solid #ddd;
  padding-top: 1.2rem;
  margin-top: 1.2rem;
}

/* 生産者・お店：グループごとにラベル付きで表示 */
body.single-product .product-owner-group {
  margin-bottom: .9rem;
}
/* 予約・問い合わせボタン（各オーナーの下にまとめて表示） */
body.single-product .product-reserve-btns {
  margin-top: .6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
body.single-product .product-reserve-btns:empty {
  display: none;
}
body.single-product .sbtn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .5em 1em;
  border-radius: 20px;
  background: #4FB8CC;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: opacity .2s;
}
body.single-product .sbtn:hover {
  opacity: .85;
}
body.single-product .event-btn-ig   { background: #e1306c !important; color: #fff !important; }
body.single-product .event-btn-line { background: #06c755 !important; color: #fff !important; }
body.single-product .event-entry-other {
  font-size: .78rem;
  color: #8e8a86;
  display: flex;
  gap: .3em;
  margin: .3rem 0 0;
  width: 100%;
}
body.single-product .event-entry-other i { color: #4FB8CC; flex-shrink: 0; margin-top: 2px; }
body.single-product .product-owner-label {
  display: inline-block;
  background: #4FB8CC;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .2em .9em;
  border-radius: 13px;
  margin-bottom: .4rem;
}
/* Hub Storeのラベルはサイト共通のピンク（--badge-color）にする */
body.single-product .owner-group-store .product-owner-label {
  background: var(--badge-color, #fb8498);
  color: #fff;
}
/* 生産者・お店エリア：説明文との間に区切り線 */
body.single-product .product-owner-area {
  border-top: 1px solid #ddd;
  padding-top: 1.2rem;
  margin-top: 1.4rem;
}
/* 生産者とお店の間には点線の区切りを入れる
   （2つ目以降のグループの上に点線） */
body.single-product .product-owner-area .product-owner-group + .product-owner-group {
  border-top: 1px dashed #ddd;
  padding-top: 1rem;
  margin-top: 1rem;
}

/* 生産者：ロゴ＋名前（複数の場合は横並び・折り返し） */
body.single-product .product-producer-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-bottom: 0;
}
body.single-product .product-producer-block {
  margin-bottom: 0;
}
body.single-product .product-producer-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #473c34;
  transition: opacity .2s;
}
body.single-product .product-producer-link:hover {
  opacity: .75;
}
body.single-product .product-producer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
  flex-shrink: 0;
}
body.single-product .product-producer-name {
  font-size: 1rem;
  font-weight: 600;
}

/* カテゴリー・タグ：バッジ */
body.single-product .product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
body.single-product .product-badge {
  display: inline-block;
  padding: .3em .9em;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
body.single-product .product-badge:hover {
  opacity: .82;
}
body.single-product .product-badge-cat {
  background: #EDF6EE;
  color: #4d9d81;
}
body.single-product .product-badge-tag {
  background: #eaf6f9;
  color: #4FB8CC;
}

/* 商品説明（summary内・タイトル/価格/リンクの下） */
body.single-product .product-main-description {
  margin-top: 1.4rem;
  font-size: .95rem;
  line-height: 1.9;
  color: #473c34;
}

/* ---------------------------------------------------------
   メタ情報（旧・フォールバック用）
   --------------------------------------------------------- */
body.single-product .summary .product_meta {
  border-top: 1px dashed #ddd;
  padding-top: 1rem;
  margin-top: 1.2rem;
  font-size: .88rem;
  color: #8e8a86;
  line-height: 2;
}
/* ⑦ カテゴリー・タグ・ブランド・生産者を横並びから縦並びにする */
body.single-product .summary .product_meta > span,
body.single-product .summary .product_meta .posted_in,
body.single-product .summary .product_meta .tagged_as,
body.single-product .summary .product_meta .brand_link,
body.single-product .summary .product_meta .producer_link {
  display: block;
  margin: 0 0 .2rem;
}

/* ① メインギャラリー画像下のサムネイル並びを4列グリッドに整える
   （WooCommerce標準のflexslider由来の崩れを防ぐ） */
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
/* メイン画像とサムネイルがくっつくのを防ぐ余白 */
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  margin-bottom: 0;
}
body.single-product .woocommerce-product-gallery .flex-viewport {
  margin-bottom: 1.2rem;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  margin: 0;
  width: 100% !important;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  border-radius: 6px;
  opacity: .7;
  transition: opacity .2s;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  opacity: 1;
}

/* ① 商品メイン画像は、farmers式ギャラリー（.nyuts-product-gallery）に
   差し替えて出力する（functions.php側）。farmersと同じHTML構造にすることで、
   窪み・矢印ボタン・Lightbox2モーダルが farmers と完全に一致する。 */
.nyuts-product-gallery {
  position: relative;
}
.nyuts-product-gallery .gallery-link {
  display: block;
  text-decoration: none;
  width: 100%;
}
.nyuts-product-gallery .gallery-main {
  width: 100%;
}
.nyuts-product-gallery .gallery-card-inner {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 */
  background: #fff;
  border-radius: 1.25rem;
  border-bottom-right-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.nyuts-product-gallery .gallery-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nyuts-product-gallery .gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.nyuts-product-gallery .gallery-link:hover .gallery-card img {
  transform: scale(1.05);
}
.nyuts-product-gallery .gallery-card-inner::before {
  content: "";
  position: absolute;
  bottom: -0.375rem;
  right: -0.375rem;
  width: 3.4rem;
  height: 3.4rem;
  background: #fff;
  border-top-left-radius: 50%;
  z-index: 1;
}
.nyuts-product-gallery .gallery-card-inner::after {
  content: "";
  position: absolute;
  bottom: -0.375rem;
  right: -0.375rem;
  width: 3.4rem;
  height: 3.4rem;
  background: transparent;
  border-top-left-radius: 50%;
  box-shadow: inset 0.313rem 0.313rem 0 0.313rem #fff;
  z-index: 2;
}
.nyuts-product-gallery .gallery-button {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  width: 2rem;
  height: 2rem;
  background: #4C9D81;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(112, 179, 177, 0.3);
  transition: all 0.3s ease;
}
.nyuts-product-gallery .gallery-button svg {
  width: 1.2rem;
  height: 1.2rem;
  color: #fff;
  transition: transform 0.3s ease;
}
.nyuts-product-gallery .gallery-link:hover .gallery-button svg {
  transform: translateX(2px);
}
/* サブ画像（サムネイル）4列。各サムネイルもメインと同じカード構造 */
.nyuts-product-gallery .gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  margin-top: 1.2rem;
}
.nyuts-product-gallery .gallery-thumbs .gallery-card-inner {
  padding-top: 100%; /* 正方形 */
  border-radius: .8rem;
  border-bottom-right-radius: 0;
}
/* サムネイルの窪み・ボタンは小さめに */
.nyuts-product-gallery .gallery-thumbs .gallery-card-inner::before,
.nyuts-product-gallery .gallery-thumbs .gallery-card-inner::after {
  width: 2.2rem;
  height: 2.2rem;
  bottom: -0.25rem;
  right: -0.25rem;
}
.nyuts-product-gallery .gallery-thumbs .gallery-button {
  width: 1.4rem;
  height: 1.4rem;
  bottom: 0.25rem;
  right: 0.25rem;
}
.nyuts-product-gallery .gallery-thumbs .gallery-button svg {
  width: 0.85rem;
  height: 0.85rem;
}
body.single-product .summary .product_meta a {
  color: #4FB8CC;
  text-decoration: none;
}
body.single-product .summary .product_meta a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   タブ（追加情報など）
   --------------------------------------------------------- */
/* ③ タブ形式をやめ、各セクションを見出し付きで縦に並べる。
   タブの切り替えボタン(ul.tabs)は隠し、全パネルを常時表示する。 */
body.single-product .woocommerce-tabs ul.tabs {
  display: none !important;
}
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
  display: block !important;
  margin-bottom: 2rem;
  padding-top: 1rem;
  border-top: 2px solid #EDF6EE;
}
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel > h2 {
  font-size: 20px;
  color: #473c34;
  margin: 0 0 1rem;
  padding-left: .6rem;
  border-left: 5px solid #4FB8CC;
  line-height: 1.3;
}

/* （旧・タブ形式用の見た目。上のdisplay:noneで非表示だが定義は残す） */
body.single-product .woocommerce-tabs ul.tabs-legacy {
  list-style: none;
  display: flex;
  gap: .4rem;
  padding: 0;
  margin: 0 0 1.5rem;
  border-bottom: 2px solid #EDF6EE;
}
/* WooCommerce標準のタブは li の前後に「/」区切りや下線が
   ::before/::after で入るため、それを消す */
body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
  content: none !important;
  border: none !important;
}
body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
body.single-product .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: .5em 1.4em;
  border-radius: 13px 13px 0 0;
  background: #EDF6EE;
  color: #4d9d81;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
body.single-product .woocommerce-tabs ul.tabs li.active a {
  background: #4FB8CC;
  color: #fff;
}

body.single-product .woocommerce-Tabs-panel h2 {
  font-size: 20px;
  color: #473c34;
  margin-bottom: .8rem;
}

/* 追加情報テーブル */
body.single-product table.woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
}
body.single-product table.woocommerce-product-attributes th,
body.single-product table.woocommerce-product-attributes td {
  border: none;
  border-bottom: 1px dashed #ddd;
  padding: .6em .4em;
  text-align: left;
  font-size: .9rem;
}
body.single-product table.woocommerce-product-attributes th {
  color: #4d9d81;
  font-weight: 600;
  width: 30%;
}

/* ---------------------------------------------------------
   関連商品（独自2セクション：同じ生産者・同じカテゴリー）
   --------------------------------------------------------- */
body.single-product .nyuts-related {
  width: 100%;
  flex-basis: 100%;
  margin-top: 2.5rem;
}
body.single-product .nyuts-related > h2 {
  font-size: 22px;
  color: #473c34;
  margin: 0 0 1.2rem;
  padding-left: .6rem;
  border-left: 5px solid #4FB8CC;
  line-height: 1.3;
}

/* ---------------------------------------------------------
   関連商品
   --------------------------------------------------------- */
body.single-product .related.products > h2,
body.single-product .up-sells > h2 {
  font-size: 22px;
  color: #473c34;
  margin: 2rem 0 1rem;
}

body.single-product ul.products {
  list-style: none;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  /* 左詰めにする（WooCommerce標準の中央寄せ配置を打ち消す） */
  justify-items: stretch;
  justify-content: start;
}
body.single-product ul.products::before,
body.single-product ul.products::after {
  display: none !important;
}
body.single-product ul.products li.product {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-align: center;
  /* 親の div.product が display:flex でも崩れないように */
  display: block;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}
body.single-product ul.products li.product img {
  border-radius: 8px;
  margin-bottom: .6rem;
  width: 100%;
  height: auto;
}
body.single-product ul.products li.product .woocommerce-loop-product__title {
  font-size: .95rem;
  color: #473c34;
  font-weight: 600;
}
body.single-product ul.products li.product .price {
  color: #4FB8CC;
  font-weight: 600;
  display: block;
  margin: .3rem 0 .6rem;
}
body.single-product ul.products li.product .button {
  display: inline-block;
  background: #4FB8CC;
  color: #fff;
  border-radius: 20px;
  padding: .45em 1.2em;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
body.single-product ul.products li.product .button:hover {
  opacity: .85;
}

/* ---------------------------------------------------------
   レスポンシブ
   --------------------------------------------------------- */
@media (max-width: 900px) {
  body.single-product div.product {
    flex-direction: column;
    gap: 1.5rem;
  }
  body.single-product div.product .woocommerce-product-gallery,
  body.single-product div.product div.images,
  body.single-product div.product .nyuts-product-gallery {
    width: 100% !important;
  }
  /* 追加：縦積みになった時、商品情報(summary)も全幅に戻す。
     これが無いとタブレット幅で右カラムが潰れ、価格から下が
     消えてしまう不具合があった。 */
  body.single-product div.product .summary.entry-summary {
    width: 100% !important;
    flex: 0 0 auto;
    min-width: 0;
  }
  body.single-product ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* ギャラリーや画像が幅をはみ出して左右余白が消えるのを防ぐ */
  body.single-product .nyuts-product-gallery,
  body.single-product .nyuts-product-gallery img {
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  body.single-product .product_title {
    font-size: 22px;
  }
  /* 商品一覧：SPは縦積みではなく、他ページのカード一覧と同じ
     横スクロールスライダーにする（front-page.cssの.cards-threeと同方式） */
  body.single-product ul.products {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem !important;
    padding: 0.5rem 0 1rem !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #70B3B1 transparent;
  }
  body.single-product ul.products::-webkit-scrollbar {
    height: 4px;
  }
  body.single-product ul.products::-webkit-scrollbar-track {
    background: transparent;
  }
  body.single-product ul.products::-webkit-scrollbar-thumb {
    background: #70B3B1;
    border-radius: 2px;
  }
  body.single-product ul.products li.product {
    flex: 0 0 calc(75vw - 2rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-width: 0;
  }
  /* SPでもギャラリーは全幅、サムネイルは4列のまま */
  body.single-product .nyuts-product-gallery {
    width: 100% !important;
  }
  body.single-product div.product {
    gap: 1.2rem;
  }
  .nyuts-product-gallery .gallery-thumbs {
    gap: .4rem;
  }
}

/* =========================================================
   Shop TOPページ（archive-product.php）
   NyutsNokaロゴ＋イラスト＋キャッチコピーのHero、その下に
   「カテゴリーから探す」を大きく見せる構成。
   ========================================================= */

.shop-archive {
  padding: 1rem 0 3rem;
}
.shop-archive .shop-empty {
  text-align: center;
  color: #8e8a86;
  padding: 3rem 0;
}
/* Shop一覧のカードグリッドも、商品ページの関連商品と同じ左詰め3列に統一 */
.shop-archive ul.products {
  list-style: none;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  justify-items: stretch;
  justify-content: start;
}
.shop-archive ul.products li.product {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-align: center;
  display: block;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}
.shop-archive ul.products li.product img {
  border-radius: 8px;
  margin-bottom: .6rem;
  width: 100%;
  height: auto;
}
.shop-archive ul.products li.product .woocommerce-loop-product__title {
  font-size: .95rem;
  color: #473c34;
  font-weight: 600;
}
.shop-archive ul.products li.product .price {
  color: #4FB8CC;
  font-weight: 600;
  display: block;
  margin: .3rem 0 .6rem;
}
.shop-archive ul.products li.product .button {
  display: inline-block;
  background: #4FB8CC;
  color: #fff;
  border-radius: 20px;
  padding: .45em 1.2em;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.shop-archive ul.products li.product .button:hover {
  opacity: .85;
}

@media (max-width: 900px) {
  .shop-archive ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .shop-cat-hero .section-title {
    font-size: 1.5rem;
  }
  .shop-archive ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Shop TOPページ 追加セクション（波・カテゴリー・
   お店/生産者から探す）
   front-page.cssの .room-box / .two-col-layout 等と
   同じ見た目を、Shopページ単体で完結するよう再定義する
   ========================================================= */

/* セクション見出し（共通） */
.shop-room-section .room-title-area {
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 2.5rem;
}
.shop-room-section .section-title {
  font-size: 1.6rem;
  color: #4C9D81;
  font-weight: 600;
  margin: 0;
}

/* カテゴリーから探す：カードは大きめのまま、見出しは標準サイズ
   （上にHeroが復活したため、見出し自体の主張は抑える） */
.shop-cat-hero .room-title-area {
  margin-bottom: 2.5rem;
}
.shop-cat-section {
  background: #EDF6EE;
  padding: 3.5rem 0;
}
.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}
.shop-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1rem;
  text-decoration: none;
  color: #473c34;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.shop-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}
.shop-cat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #EDF6EE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: #4C9D81;
}
.shop-cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.shop-cat-label {
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
}

/* 新着・注目の商品 */
.shop-new-section {
  padding: 3rem 0 2rem;
}
.shop-new-products {
  list-style: none;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  padding: 0 !important;
  margin: 0 0 2rem !important;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}
.shop-new-products li.product {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-align: center;
  display: block;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}
.shop-new-products li.product img {
  border-radius: 8px;
  margin-bottom: .6rem;
  width: 100%;
  height: auto;
}
.shop-section-more {
  text-align: center;
}
.shop-section-more .btn-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: .8rem !important;
  text-decoration: none !important;
  padding: .8em 1.6em !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: .88rem !important;
  background: #70B3B1 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  box-shadow: 0 0 0 3px #70B3B1 !important;
}
.shop-section-more .btn-link:hover {
  opacity: .85;
}

/* お店/生産者から探す：room-box型セクション */
.shop-store-section, .shop-farmer-section {
  padding: 1.5rem 0;
}
.shop-room-section .room-box {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}
.shop-room-section .badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #4FB8CC;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: .4em 1.2em;
  border-radius: 20px;
  margin: 0 auto 2rem;
}
/* お店＝ピンク（商品ページと同じ配色）、生産者＝ティール */
.shop-room-section .badge-wrap.badge-store {
  background: var(--badge-color, #fb8498);
}
.shop-room-section .badge-wrap.badge-farmer {
  background: #4FB8CC;
}
.shop-room-section .badge-wrap {
  display: flex;
  width: fit-content;
}
.shop-room-section .two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.shop-room-section .info-col .sub {
  font-size: .8rem;
  color: #84BEBC;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.shop-room-section .info-col h3 {
  font-size: 1.4rem;
  color: #473c34;
  margin: .3rem 0 1rem;
}
.shop-room-section .info-col p {
  font-size: .92rem;
  line-height: 1.8;
  color: #473c34;
  margin: 0 0 1.4rem;
}
.shop-room-section .btn-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: .8rem !important;
  text-decoration: none !important;
  padding: .8em 1.6em !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: .88rem !important;
}
.shop-room-section .btn-link.teal-outline {
  background: #70B3B1;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px #70B3B1;
  transition: opacity .2s;
}
.shop-room-section .btn-link.teal-outline:hover { opacity: .85; }

.shop-store-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.shop-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #473c34;
  background: #fff;
  border-radius: 12px;
  padding: 1rem .6rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform .2s;
}
.shop-mini-card:hover { transform: translateY(-3px); }
.shop-mini-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.shop-mini-card span {
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
}

.sp-only { display: none; }

@media (max-width: 900px) {
  .shop-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-new-products { grid-template-columns: repeat(2, 1fr) !important; }
  .shop-room-section .two-col-layout { grid-template-columns: 1fr; }
  .shop-store-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .sp-only { display: inline; }
  .shop-hero-title { font-size: 1.5rem; }
  .shop-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-new-products { grid-template-columns: 1fr !important; }
  .shop-store-cards { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Shop TOPページ：複数セクション構成
   1.目玉バナー 2.特集 3.カテゴリー 4.地区 5.つくり手/お店切り替え
   6.買い方案内 7.Nyuts動線バナー
   ========================================================= */

/* 共通コンテナ・見出し */
.shop-section .container,
.shop-hero-banners .container,
.shop-archive .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}
.shop-section-title {
  font-size: 1.3rem;
  color: #473c34;
  font-weight: 600;
  margin: 0 0 2rem;
  padding-left: .7rem;
  border-left: 5px solid #4FB8CC;
}
.shop-section {
  padding: 3.2rem 0;
}
.shop-attn-section,
.shop-toggle-section {
  background: #FAF9F5;
}

/* 1. Hero：ロゴ＋コピー */
.shop-hero {
  background: #EDF6EE;
  padding: 2.2rem 0;
}
.shop-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}
/* ロゴとコピーは常にこの中で横並びのまま保つ（幅に関わらず折り返さない） */
.shop-hero-top {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.shop-hero-logo {
  height: 64px !important;
  width: auto !important;
  max-width: 140px;
  margin: 0 !important;
  display: block;
  flex: 0 0 auto;
}
.shop-hero-lead-sub {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  color: #4C9D81;
  margin-bottom: .1rem;
  line-height: 1.5;
}
.shop-hero-lead {
  color: #2f7a72;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
  padding-left: 1.2rem;
  border-left: 1px solid #b9dcc2;
  text-align: left;
  white-space: normal;
}
.shop-hero-text {
  margin: 1rem 0 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
  color: #4c6b62;
  font-size: .8rem;
  line-height: 1.8;
  flex: 0 0 100%;
  width: 100%;
}
/* タブレット以上：ロゴ｜コピー｜説明文の横一列に切り替え */
@media (min-width: 900px) {
  .shop-hero-row {
    flex-wrap: nowrap;
  }
  .shop-hero-lead {
    font-size: 1.35rem;
    padding-left: 2rem;
    border-left: none;
    white-space: nowrap;
  }
  .shop-hero-text {
    margin: 0;
    padding-left: 2rem;
    border-left: 1px solid #b9dcc2;
    font-size: .82rem;
    line-height: 1.85;
    flex: 1 1 auto;
    width: auto;
  }
}
/* SP：ロゴ・文字サイズを少し抑えて、確実に収まるようにする */
@media (max-width: 420px) {
  .shop-hero-logo {
    height: 48px !important;
    max-width: 100px;
  }
  .shop-hero-lead {
    font-size: .95rem;
    padding-left: .8rem;
  }
}

/* 2. 目玉バナー（大きい2枚） */
.shop-hero-banners {
  padding: 2rem 0 0;
}
.shop-hero-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.shop-hero-banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 16px;
  padding: 2.2rem 2rem;
  text-decoration: none;
  min-height: 140px;
  transition: transform .2s;
}
.shop-hero-banner:hover {
  transform: translateY(-3px);
}
.shop-hero-banner-label {
  font-size: .8rem;
  font-weight: 600;
  opacity: .8;
  margin-bottom: .4rem;
}
.shop-hero-banner-text {
  font-size: 1.3rem;
  font-weight: 600;
}

/* 2. 特集 */
.shop-featured-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1rem;
}
/* 1枚目（今週の一押し）は2列2行分を占有し、大きく見せる */
.shop-featured-banner-lg {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.shop-featured-banner-lg img {
  aspect-ratio: 4/3;
  flex: 1;
}
.shop-featured-banner {
  display: block;
  text-decoration: none;
  color: #473c34;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(71,60,52,0.09);
  transition: transform .18s, box-shadow .18s;
}
.shop-featured-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(71,60,52,0.14);
}
.shop-featured-banner img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.shop-featured-caption {
  padding: .7rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.shop-featured-caption span:first-child {
  font-size: .88rem;
  font-weight: 600;
}
.shop-featured-banner-lg .shop-featured-caption span:first-child {
  font-size: 1.05rem;
}
.shop-featured-price {
  color: #4FB8CC;
  font-size: .82rem;
  font-weight: 600;
}
/* 抜粋文（商品ページ「商品について」と同じデータ）：味わいの手触りを添える */
.shop-featured-excerpt {
  color: #8e8a86;
  font-size: .76rem;
  line-height: 1.6;
  margin-top: .2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-featured-banner-lg .shop-featured-excerpt {
  -webkit-line-clamp: 3;
  font-size: .82rem;
}

/* 3. カテゴリー */
.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.shop-cat-icon-all {
  background: #4FB8CC !important;
  color: #fff !important;
  width: 58px;
  height: 58px;
}
.shop-cat-card-all {
  box-sizing: border-box;
}
.shop-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  background: #fff;
  border: none;
  border-radius: 14px;
  padding: 1.6rem .6rem 1.2rem;
  text-decoration: none;
  color: #473c34;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  position: relative;
  width: 100%;
  font-family: inherit;
}
.shop-cat-card:hover { transform: translateY(-3px); }
.shop-cat-card.is-active {
  box-shadow: 0 0 0 2px #4FB8CC;
}
.shop-cat-arrow {
  font-size: .75rem;
  color: #b8b4ac;
  transition: transform .2s;
}
.shop-cat-card.is-active .shop-cat-arrow {
  transform: rotate(180deg);
  color: #4FB8CC;
}
.shop-cat-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #EDF6EE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #4C9D81;
}
.shop-cat-icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.shop-cat-label { font-size: .85rem; font-weight: 600; }

/* カテゴリーごとの実商品：クリックで開閉するパネル */
.shop-cat-products-row {
  display: none;
  margin-top: 2rem;
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
}
.shop-cat-products-row.is-open {
  display: block;
}
.shop-cat-products-empty {
  text-align: center;
  color: #8e8a86;
  font-size: .88rem;
  margin: 0;
  padding: 1rem 0;
}
.shop-cat-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.shop-mini-product {
  display: block;
  text-decoration: none;
  color: #473c34;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(71,60,52,0.09);
  transition: transform .18s, box-shadow .18s;
}
.shop-mini-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(71,60,52,0.14);
}
.shop-mini-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
/* ③ 地区カードの画像は、少し余白を持たせて窮屈さを和らげる */
.shop-area-product-card {
  padding-top: .6rem;
}
.shop-area-product-card img {
  width: calc(100% - 1.2rem);
  margin: 0 .6rem;
  border-radius: 10px;
  aspect-ratio: 4/3;
  display: block;
}
.shop-area-product-card .shop-mini-product-noimg {
  width: calc(100% - 1.2rem);
  margin: 0 .6rem;
  border-radius: 10px;
  aspect-ratio: 4/3;
}
.shop-mini-product-noimg {
  width: 100%;
  aspect-ratio: 1;
  background: #EDF6EE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #a9cdb0;
}
.shop-mini-product-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  color: #fff;
  padding: .15em .6em;
  border-radius: 10px;
  margin: .5rem .6rem 0;
}
.shop-mini-product-badge.badge-farmer { background: #4FB8CC; }
.shop-mini-product-badge.badge-store { background: var(--badge-color, #fb8498); }
.shop-mini-product-name {
  display: block;
  font-size: .78rem;
  padding: .3rem .6rem 0;
}
.shop-mini-product-price {
  display: block;
  font-size: .78rem;
  color: #4FB8CC;
  font-weight: 600;
  padding: 0 .6rem .6rem;
}

/* ③ 地区カード専用：バッジ＋名前を横並びに、商品名も添える */
.shop-area-product-owner {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .6rem 0;
}
.shop-area-product-owner .shop-mini-product-badge {
  margin: 0;
  flex-shrink: 0;
}
.shop-area-product-owner .shop-mini-product-name {
  padding: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-area-product-item {
  display: block;
  font-size: .72rem;
  color: #8e8a86;
  padding: .3rem .6rem .6rem;
}
.shop-area-product-item-empty {
  color: #b8b4ac;
  font-style: italic;
}

/* 4. 地区 */
.shop-area-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.shop-area-nav a {
  background: #fff;
  color: #4FB8CC;
  border: 1px solid #4FB8CC;
  border-radius: 20px;
  padding: .35em 1.1em;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.shop-area-nav a:hover { background: #4FB8CC; color: #fff; }

.shop-area-block { margin-bottom: 2.2rem; scroll-margin-top: 20px; }
.shop-area-title {
  font-size: 1.05rem;
  color: #473c34;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.shop-area-title i { color: #4FB8CC; font-size: .85rem; }

.shop-area-cards {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: .7rem !important;
}
.shop-toggle-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1rem !important;
}
.shop-area-mini-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #473c34;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(71,60,52,0.09);
  transition: transform .18s, box-shadow .18s;
}
.shop-area-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(71,60,52,0.14);
}
/* 地区セクション：代表商品の写真は控えめなサイズに */
.shop-area-mini-card-photo {
  width: 100%;
  aspect-ratio: 1/1;
  background: #EDF6EE;
  max-height: 140px;
}
.shop-area-mini-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-area-mini-card-product-name {
  font-size: .72rem;
  font-weight: 600;
  color: #473c34;
  margin: .35rem .5rem 0;
  line-height: 1.4;
  min-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-area-mini-card-body {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .4rem .5rem;
  text-align: left;
}
.shop-area-mini-card-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
/* ③ 地区カード：サブタイトル（一言コピー） */
.shop-area-mini-card-sub {
  font-size: .68rem;
  color: #8e8a86;
  line-height: 1.5;
  margin: 0;
  padding: 0 .5rem .6rem;
}
/* ④ つくり手/お店カード：扱う商品のカテゴリータグ */
.shop-toggle-card-tags {
  display: block;
  font-size: .65rem;
  color: #4FB8CC;
  margin-top: .2rem;
}
/* つくり手/お店 切り替えセクション：写真は正方形より低めの比率にして
   縦長になりすぎないようにする。マージンも整理 */
.shop-toggle-grid .shop-area-mini-card {
  align-items: center;
  padding: .8rem .8rem 1rem;
  gap: .4rem;
  text-align: center;
}
/* ④ つくり手/お店カード：商品を見る／情報を見るの2ボタン（縦積み） */
.shop-toggle-card-btns {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
  padding: 0;
  margin-top: .7rem;
}
.shop-toggle-card-btn {
  display: block;
  text-decoration: none;
  font-size: .76rem;
  font-weight: 600;
  text-align: center;
  padding: .65em .5em;
  border-radius: 14px;
  background: #4FB8CC;
  color: #fff;
}
.shop-toggle-card-btn:hover {
  background: #3fa3b8;
}
.shop-toggle-card-btn-outline {
  background: #fff;
  color: #4FB8CC;
  border: 1px solid #4FB8CC;
}
.shop-toggle-card-btn-outline:hover {
  background: #EDF6EE;
}
.shop-toggle-grid .shop-area-mini-card > img:not(.shop-toggle-card-product-img) {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: .6rem;
}
.shop-area-card-type {
  font-size: .58rem;
  font-weight: 600;
  padding: .1em .5em;
  border-radius: 8px;
  color: #fff;
  width: fit-content;
}
.shop-area-card-type.badge-farmer { background: #4FB8CC; }
.shop-area-card-type.badge-store { background: var(--badge-color, #fb8498); }
.shop-area-card-name { font-size: .72rem; font-weight: 600; line-height: 1.3; }

/* 5. つくり手/お店 切り替え */
.shop-toggle-tabs {
  display: flex;
  gap: .6rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.shop-toggle-btn {
  background: #EDF6EE;
  color: #4d9d81;
  border: none;
  border-radius: 20px;
  padding: .6em 1.6em;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.shop-toggle-btn.is-active {
  background: #4FB8CC;
  color: #fff;
}
.shop-toggle-panel { display: none; }
.shop-toggle-panel.is-active { display: block; }
.shop-section-more { text-align: center; margin-top: 1.5rem; }
.shop-section-more .btn-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: .8rem !important;
  text-decoration: none !important;
  padding: .8em 1.6em !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  background: #70B3B1 !important;
  color: #fff !important;
}

.shop-empty { text-align: center; color: #8e8a86; padding: 2rem 0; }

@media (max-width: 900px) {
  .shop-featured-row { grid-template-columns: repeat(2, 1fr); }
  .shop-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-cat-products-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-area-cards { grid-template-columns: repeat(2, 1fr) !important; }
  .shop-toggle-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 600px) {
  .shop-section { padding: 1.8rem 0; }
  .shop-featured-row { grid-template-columns: 1fr; }
  .shop-featured-banner-lg { grid-column: auto; grid-row: auto; }
  .shop-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-cat-products-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-area-cards { grid-template-columns: repeat(2, 1fr) !important; gap: .5rem !important; }
  .shop-toggle-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* 2. アテンション4タイル（クリックでモーダル表示） */
.shop-attn-section {
  padding-top: 1rem;
}
.shop-attn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.shop-attn-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: #EDF6EE;
  border-radius: 24px;
  padding: 1em 1.2em;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  width: 100%;
}
.shop-attn-tile:hover {
  background: #dcefe0;
  transform: translateY(-2px);
}
.shop-attn-tile i {
  font-size: 1.1rem;
  color: #4C9D81;
}
.shop-attn-tile span {
  font-size: .92rem;
  font-weight: 600;
  color: #473c34;
}
@media (max-width: 900px) {
  .shop-attn-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .shop-attn-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
  }
  .shop-attn-tile {
    padding: .8em .6em;
    gap: .4rem;
  }
  .shop-attn-tile span {
    font-size: .78rem;
  }
  .shop-attn-tile i {
    font-size: .95rem;
  }
}

/* アテンションのモーダル */
.shop-attn-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.shop-attn-modal-overlay.is-open {
  display: flex;
}
.shop-attn-modal {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.shop-attn-modal-close {
  position: absolute;
  top: .8rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #8e8a86;
  cursor: pointer;
}
.shop-attn-modal h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.15rem;
  color: #4C9D81;
  margin: 0 0 1rem;
}
.shop-attn-modal-body {
  font-size: .88rem;
  line-height: 1.85;
  color: #473c34;
}
.shop-attn-modal-body p {
  margin: 0 0 1rem;
}
.shop-attn-modal-body p:last-child {
  margin-bottom: 0;
}
.shop-attn-modal-links {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.shop-attn-modal-links a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #EDF6EE;
  color: #4C9D81;
  border-radius: 20px;
  padding: .5em 1.1em;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.shop-attn-modal-links a:hover {
  background: #dcefe0;
}

/* 7. Nyuts本体への動線（ページ最後・バナー形式） */
.shop-nyuts-banner-section {
  padding-top: 1rem;
}
.shop-nyuts-banner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #4FAFAB;
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.shop-nyuts-banner-logo {
  height: 40px !important;
  width: auto !important;
  max-width: 140px;
  flex-shrink: 0;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: .3rem .5rem;
}
.shop-nyuts-banner-text {
  flex: 1;
}
.shop-nyuts-banner-title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}
.shop-nyuts-banner-sub {
  color: #d8ece2;
  font-size: .8rem;
  margin: .2rem 0 0;
}
.shop-nyuts-banner-arrow {
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.shop-nyuts-banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}
.shop-nyuts-banner-links a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #EDF6EE;
  color: #4C9D81;
  border-radius: 20px;
  padding: .5em 1.1em;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}
.shop-nyuts-banner-links a:hover {
  background: #dcefe0;
}

/* ④ トグルカード：サブタイトル */
.shop-toggle-card-sub {
  display: block;
  font-size: .68rem;
  color: #8e8a86;
  margin-top: .1rem;
}
/* ④ トグルカード：代表商品の写真 */
.shop-toggle-card-product-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: .4rem;
}
.shop-toggle-card-noimg {
  width: 100%;
  aspect-ratio: 3/2;
  background: #EDF6EE;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #a9cdb0;
  border-radius: 8px 8px 0 0;
  margin-bottom: .4rem;
}

/* ③ 地区カード：扱う商品のカテゴリータグ */
.shop-area-mini-card-tags {
  font-size: .62rem;
  color: #4FB8CC;
  margin: 0;
  padding: 0 .5rem .5rem;
  min-height: 1.6em;
}

@media (max-width: 900px) {
  .shop-hero-banner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shop-section .container,
  .shop-hero-banners .container,
  .shop-archive .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .shop-nyuts-banner { flex-direction: column; text-align: center; }
}

/* =========================================================
   Shop TOP：地区起点の構成
   ========================================================= */
.shop-area-archive {
  padding: 2.5rem 0 4rem;
}
.shop-area-archive .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}
.shop-empty {
  text-align: center;
  color: #8e8a86;
  padding: 3rem 0;
}

.shop-area-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.shop-area-nav a {
  background: #fff;
  color: #4FB8CC;
  border: 1px solid #4FB8CC;
  border-radius: 20px;
  padding: .4em 1.2em;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.shop-area-nav a:hover {
  background: #4FB8CC;
  color: #fff;
}

.shop-area-block {
  margin-bottom: 3.5rem;
  scroll-margin-top: 20px;
}
.shop-area-title {
  font-size: 1.4rem;
  color: #473c34;
  font-weight: 600;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.shop-area-title i {
  color: #4FB8CC;
}

.shop-area-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.shop-area-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
}
.shop-area-card-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem;
  text-decoration: none;
  color: #473c34;
  border-bottom: 1px dashed #eee;
}
.shop-area-card-head img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.shop-area-card-type {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  padding: .1em .6em;
  border-radius: 10px;
  color: #fff;
  width: fit-content;
  margin-bottom: .3rem;
}
.shop-area-card-type.badge-farmer { background: #4FB8CC; }
.shop-area-card-type.badge-store  { background: var(--badge-color, #fb8498); }
.shop-area-card-name {
  font-size: .95rem;
  font-weight: 600;
}

.shop-area-card-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  padding: .8rem;
}
.shop-area-product {
  text-decoration: none;
  color: #473c34;
  text-align: center;
}
.shop-area-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: .3rem;
}
.shop-area-product span {
  font-size: .72rem;
  display: block;
}
.shop-area-card-empty {
  font-size: .78rem;
  color: #8e8a86;
  padding: 0 1rem 1rem;
  margin: 0;
}

@media (max-width: 900px) {
  .shop-area-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shop-area-card-products { grid-template-columns: repeat(2, 1fr); }

  /* SPは横スクロールスライダーに（front-page.cssの.cards-threeと同方式）
     負のマージンで親からはみ出させる手法は、このクラスが複数の異なる
     親要素（カテゴリー展開パネル／地区セクション）で使い回されており、
     親の余白構造によってズレが生じるため使わない。
     親の内側にそのまま収まる形で、確実に左端を揃える。 */
  .shop-cat-products-grid,
  .shop-toggle-grid {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem !important;
    padding: .5rem 0 1rem !important;
    margin: 0 !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #70B3B1 transparent;
  }
  .shop-cat-products-grid::-webkit-scrollbar,
  .shop-toggle-grid::-webkit-scrollbar {
    height: 4px;
  }
  .shop-cat-products-grid::-webkit-scrollbar-track,
  .shop-toggle-grid::-webkit-scrollbar-track {
    background: transparent;
  }
  .shop-cat-products-grid::-webkit-scrollbar-thumb,
  .shop-toggle-grid::-webkit-scrollbar-thumb {
    background: #70B3B1;
    border-radius: 2px;
  }
  .shop-cat-products-grid > a,
  .shop-toggle-grid > .shop-area-mini-card {
    flex: 0 0 calc(70vw - 1rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-width: 0;
  }
}