/* ===== WINERY JUN common-parts.css / BUILD: v1.9.36 ===== */
@charset "UTF-8";
/* =========================================================
   WINERY JUN — 共通パーツ（ヘッダー / フッター / 商品項目）
   Figma: 【共有用】アイプロダクツ様
     Footer  173:1384
     Article 173:433
   数値はすべて Figma 実測値
   ========================================================= */

/* ---------- Tokens ---------- */
/* :root はテーマの base.css に統合済み */


/* =========================================================
   1. ヘッダー
   - TOP（.wj-header）        : 半透明ダーク背景＋白文字（FVに重なる）
   - 下層（.wj-header--solid） : ベージュ背景＋黒文字（ライト基調）
   ========================================================= */
.wj-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 82px;
  display: flex;
  align-items: center;
  color: var(--wj-white);
  background: rgba(18, 24, 16, .38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background-color .3s ease, color .3s ease;
}
/* TOPでスクロールしたら少し濃く（TOP限定・下層には効かせない） */
.wj-page-top .wj-header:not(.wj-header--solid).is-stuck {
  background: rgba(18, 24, 16, .72);
}
/* 下層ページ：ベージュ背景＋黒文字 */
.wj-header--solid {
  position: sticky;
  top: 0;
  height: 82px;
  background: rgba(234, 228, 214, .95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--wj-line-3, #cbc4b2);
  color: #26261f;
}
.wj-header__inner {
  width: min(var(--wj-wrap), 100% - var(--wj-pad, 24px) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.wj-header__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}
.wj-header__brand-name {
  font-family: var(--wj-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .12em;
  line-height: 1;
}
.wj-header__brand-sub {
  display: none; /* PCでは非表示。SPで表示 */
  font-family: var(--wj-serif);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  line-height: 1;
}
.wj-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* wp_nav_menu が生成する li の黒ポチを消す */
.wj-header__nav ul,
.wj-header__nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wj-header__nav li { display: inline-flex; }
.wj-header__nav a {
  font-family: var(--wj-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .05em;
  color: inherit;
  text-decoration: none;
  padding-block: 6px;
  position: relative;
}
.wj-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.wj-header__nav a:hover::after { transform: scaleX(1); }
.wj-header__tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.wj-header__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: inherit;
}
.wj-header__icon svg { width: 100%; height: 100%; }
.wj-header__cart { position: relative; }
.wj-header__cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--wj-gold);
  color: var(--wj-ink);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}
/* ハンバーガー（SPで表示） */
.wj-header__toggle {
  display: none;
  width: 28px;
  height: 20px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.wj-header__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  margin: 5px 0;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}

/* 下層（ライト基調）での要素色 */
.wj-header--solid .wj-header__toggle span { background: #26261f; }
.wj-header--solid .wj-header__cart-count {
  background: var(--wj-forest-dp);
  color: #fff;
}

/* =========================================================
   2. フッター（全ページ）  wj-footer
   ========================================================= */
.wj-footer {
  position: relative;
  background: var(--wj-forest-dp);
  color: var(--wj-white);
  overflow: hidden;
}
/* 背景の巨大ロゴ */
.wj-footer__watermark {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translate(-50%, -50%);
  font-family: var(--wj-serif);
  font-weight: 500;
  font-size: 244px;
  letter-spacing: .04em;
  line-height: .8;
  color: var(--wj-white);
  opacity: .04;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.wj-footer__inner {
  position: relative;
  z-index: 1;
  width: min(var(--wj-wrap), 100% - var(--wj-pad, 24px) * 2);
  margin-inline: auto;
  padding: 100px 0 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 40px;
  box-sizing: border-box;
}
/* 左：ブランド情報 */
.wj-footer__brand-name {
  font-family: var(--wj-serif);
  font-weight: 500;
  font-size: 25.6px;
  letter-spacing: .2em;
  line-height: 1;
  margin: 0;
}
.wj-footer__brand-sub {
  font-family: var(--wj-serif);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin: 14px 0 0;
}
.wj-footer__address {
  font-family: var(--wj-serif);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 2;
  margin: 26px 0 0;
  font-style: normal;
}
.wj-footer__follow {
  font-family: var(--wj-serif);
  font-weight: 600;
  font-size: 10.2px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--wj-gold);
  margin: 30px 0 0;
}
.wj-footer__sns {
  display: flex;
  gap: 11px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.wj-footer__sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--wj-line-dk);
  border-radius: 50%;
  color: var(--wj-white);
  transition: background-color .25s ease, border-color .25s ease;
}
.wj-footer__sns a:hover {
  background: var(--wj-line-dk);
  border-color: var(--wj-gold);
}
.wj-footer__sns svg { width: 21px; height: 21px; }
/* 右：ナビ */
.wj-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 156px);
  column-gap: 26px;
  row-gap: 48px;
}
.wj-footer__col-head {
  font-family: var(--wj-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .066em;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wj-line-dk);
}
/* アコーディオン用アイコン（PCでは非表示） */
.wj-footer__acc-icon { display: none; }
/* 大項目リンク */
.wj-footer__col-link {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.wj-footer__col-link:hover { color: var(--wj-gold); }
.wj-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wj-footer__list li { margin-bottom: 16px; }
/* 1カラム内に見出しブロックを複数積む場合の間隔（例：お取り扱い店＋法人のお客様へ） */
.wj-footer__col-group + .wj-footer__col-group { margin-top: 36px; }
.wj-footer__list a {
  font-family: var(--wj-serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--wj-white);
  text-decoration: none;
  transition: color .2s ease;
}
.wj-footer__list a:hover { color: var(--wj-gold); }
/* 下部：法的リンク＋コピーライト（中央揃え・縦積み） */
.wj-footer__legal {
  position: relative;
  z-index: 1;
  width: min(var(--wj-wrap), 100% - var(--wj-pad, 24px) * 2);
  margin: 40px auto 0;
  padding: 26px 0;
  border-top: 1px solid var(--wj-line-dk);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  box-sizing: border-box;
}
.wj-footer__legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wj-footer__legal-links a {
  font-family: var(--wj-serif);
  font-weight: 400;
  font-size: 11.2px;
  color: var(--wj-legal);
  text-decoration: none;
  transition: color .2s ease;
}
.wj-footer__legal-links a:hover { color: var(--wj-white); }
.wj-footer__copy {
  font-family: var(--wj-serif);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .065em;
  color: var(--wj-copy);
  margin: 0;
}
/* 最下部：年齢確認バー */
.wj-footer__age {
  position: relative;
  z-index: 1;
  background: var(--wj-bar);
  padding: 15px;
  text-align: center;
}
.wj-footer__age p {
  font-family: var(--wj-serif);
  font-weight: 400;
  font-size: 10.6px;
  letter-spacing: .08em;
  color: var(--wj-note);
  margin: 0;
}

/* =========================================================
   3. 商品項目（商品カード）  wj-product
   ========================================================= */
.wj-product {
  display: flex;
  flex-direction: column;
  background: transparent;
  width: 100%;
}
.wj-product__media {
  position: relative;
  aspect-ratio: 254.56 / 339.41;
  background: var(--wj-media);
  overflow: hidden;
}
.wj-product__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wj-product__link-media {
  display: block;
  position: absolute;
  inset: 0;
}
/* New / Limited バッジ */
.wj-product__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 10px;
  background: var(--wj-ink);
  color: var(--wj-paper);
  font-family: var(--wj-serif);
  font-weight: 600;
  font-size: 9.6px;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 2;
}
.wj-product__badge--limited { background: var(--wj-green); }
/* 価格（サムネ左下に載る） */
.wj-product__price {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 35px;
  padding: 0 16px;
  background: var(--wj-page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.wj-product__price .amount,
.wj-product__price .tax { line-height: 1; }
.wj-product__price .amount {
  font-family: var(--wj-serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .013em;
  color: var(--wj-ink);
}
.wj-product__price .tax {
  font-family: var(--wj-serif);
  font-weight: 400;
  font-size: 12px;
  color: var(--wj-ink);
}
/* 本文エリア */
.wj-product { min-height: 100%; }
.wj-product__body {
  padding: 27px 7px 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.wj-product__cat {
  font-family: var(--wj-serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wj-green);
  margin: 0;
}
.wj-product__title {
  font-family: var(--wj-serif);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .03em;
  line-height: 1.575;
  color: var(--wj-ink);
  margin: 11px 0 0;
}
.wj-product__title a {
  color: inherit;
  text-decoration: none;
}
.wj-product__spec {
  font-family: var(--wj-serif);
  font-weight: 400;
  font-size: 14px;
  color: var(--wj-muted);
  line-height: 1.44;
  margin: 16px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wj-line);
  margin-top: auto;
}
.wj-product__cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--wj-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .078em;
  text-transform: uppercase;
  color: var(--wj-ink);
  text-decoration: none;
  transition: opacity .2s ease;
}
.wj-product__cart:hover { opacity: .6; }
.wj-product__cart svg { width: 18px; height: 11px; }

/* =========================================================
   4. レスポンシブ（SP 〜768px）
   ========================================================= */
@media (max-width: 768px) {
  :root { --wj-side: 20px; }

  /* ---- ヘッダー：高さ・共通レイアウト ---- */
  .wj-header,
  .wj-header--solid {
    position: sticky;
    top: 0;
    height: 67px;
  }
  /* 下層：ライト基調（ベージュ半透明＋黒文字） */
  .wj-header--solid {
    background: rgba(234, 228, 214, .95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid #cbc4b2;
    color: #26261f;
  }
  .wj-header--solid .wj-header__toggle span { background: #26261f; }
  /* TOP：ダーク基調（半透明＋白文字）。body.wj-page-top で判定 */
  .wj-page-top .wj-header {
    background: rgba(18, 24, 16, .42);
    border-bottom: 0;
    color: #fff;
  }
  .wj-page-top .wj-header .wj-header__toggle span { background: #fff; }

  .wj-header__brand-sub { display: block; }
  .wj-header__brand { gap: 5px; }
  .wj-header__brand-name { font-size: 21px; letter-spacing: .16em; }

  .wj-header__nav { display: none; }
  .wj-header__tools { gap: 20px; }
  .wj-header__toggle { display: block; width: 24px; height: 18px; }
  .wj-header__icon { width: 21px; height: 21px; }
  /* カート点数バッジ */
  .wj-header__cart-count {
    background: var(--wj-forest-dp);
    color: #fff;
  }

  /* ---- フッター：アコーディオン化 ---- */
  .wj-footer__watermark { font-size: 96px; }
  .wj-footer__inner {
    grid-template-columns: 1fr;
    padding-top: 56px;
    gap: 32px;
  }
  .wj-footer__nav {
    display: block;
  }
  .wj-footer__col { border: 0; }
  .wj-footer__col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 24px 0;
    border-bottom: 1px solid var(--wj-line-dk);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .04em;
    cursor: pointer;
    user-select: none;
  }
  /* +/− アイコン */
  .wj-footer__acc-icon {
    display: block;
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }
  .wj-footer__acc-icon::before,
  .wj-footer__acc-icon::after {
    content: "";
    position: absolute;
    background: var(--wj-white);
    transition: opacity .25s ease, transform .25s ease;
  }
  .wj-footer__acc-icon::before { /* 横棒 */
    left: 0; top: 50%;
    width: 100%; height: 1.5px;
    transform: translateY(-50%);
  }
  .wj-footer__acc-icon::after { /* 縦棒 */
    top: 0; left: 50%;
    width: 1.5px; height: 100%;
    transform: translateX(-50%);
  }
  /* 開いたら縦棒を消して − に */
  .wj-footer__col-head[aria-expanded="true"] .wj-footer__acc-icon::after {
    opacity: 0;
    transform: translateX(-50%) rotate(90deg);
  }
  /* パネル（子リンク）：初期は閉じる */
  .wj-footer__list {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .wj-footer__list li { margin: 0; }
  .wj-footer__list li:first-child { padding-top: 16px; }
  .wj-footer__list li:last-child { padding-bottom: 20px; }
  .wj-footer__list li + li { margin-top: 14px; }

  /* ---- 下部リンク ---- */
  .wj-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 8px;
  }
  .wj-footer__legal-links { flex-wrap: wrap; gap: 14px 20px; }
  .wj-footer__copy { font-size: 11px; }
}

/* =========================================================
   バリエーション商品：WooCommerce要素の調整
   ========================================================= */
/* 隠しselect（ラジオで操作するため非表示） */
.wj-options__select { display: none !important; }
/* バリエーション選択後の価格・在庫表示 */
.single_variation_wrap .single_variation {
  margin: 8px 0 16px;
}
.single_variation_wrap .single_variation .price {
  font-family: var(--wj-serif);
  font-size: 20px;
  color: var(--wj-ink, #22241e);
  font-weight: 600;
}
.single_variation_wrap .woocommerce-variation-availability { font-size: 13px; color: var(--wj-muted, #6e6b5e); }
/* 未選択時は注文ボタンを無効化表示 */
.woocommerce-variation-add-to-cart-disabled .wj-buy__submit {
  opacity: .4;
  pointer-events: none;
}
/* WooCommerceのリセットリンク */
.reset_variations {
  display: inline-block;
  margin-left: 12px;
  font-size: 12px;
  color: var(--wj-muted, #6e6b5e);
}

/* =========================================================
   カート追加トースト通知
   ========================================================= */
.wj-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  background: var(--wj-forest-dp, #19241b);
  color: var(--wj-paper, #f4f1e8);
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: .05em;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  white-space: nowrap;
}
.wj-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.wj-toast--warn { background: #9e5236; white-space: normal; text-align: center; }

/* =========================================================
   グローバルナビ：サブメニュー（読みもの → お知らせ / ブログ）
   ========================================================= */
.wj-header__nav li { position: relative; }

/* 子を持つ項目には小さな下向き矢印を添える */
.wj-header__nav .menu-item-has-children > a { padding-right: 14px; }
.wj-header__nav .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.wj-header__nav .menu-item-has-children:hover > a::before { transform: rotate(225deg); margin-top: -1px; }

/* 下線アニメーションは矢印ぶんを除いた幅に合わせる */
.wj-header__nav .menu-item-has-children > a::after { width: calc(100% - 14px); }

.wj-header__nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 168px;
  margin-top: 10px;
  padding: 8px 0;
  background: var(--wj-paper, #f4f1e8);
  border: 1px solid var(--wj-line-3, #cbc4b2);
  box-shadow: 0 12px 28px rgba(34, 36, 30, .1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

/* ホバー領域が途切れないよう、項目と子メニューの間を橋渡しする */
.wj-header__nav .menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.wj-header__nav .menu-item-has-children:hover > .sub-menu,
.wj-header__nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.wj-header__nav .sub-menu li { display: block; width: 100%; }
.wj-header__nav .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s ease;
}
.wj-header__nav .sub-menu a::after { display: none; }
.wj-header__nav .sub-menu a:hover { background: var(--wj-paper-2, #eae4d6); }

/* =========================================================
   モバイルメニュー（SPドロワー）
   Figma: MOBILE MENU (173:4147) の指定値に準拠
   ========================================================= */
.wj-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #19241b;
  padding: 0 32px calc(40px + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.wj-menu-open .wj-drawer {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ドロワーを開いている間は背面をスクロールさせない */
.wj-menu-open,
.wj-menu-open body { overflow: hidden; }

/* ハンバーガーを×印に変える */
.wj-menu-open .wj-header__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.wj-menu-open .wj-header__toggle span:nth-child(2) { opacity: 0; }
.wj-menu-open .wj-header__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- ヘッダー（ブランド名 / 閉じる） --- */
.wj-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 94px;
  flex: 0 0 auto;
}
.wj-drawer__brand {
  font-family: var(--wj-num, "Cormorant Garamond", serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.8;
  letter-spacing: 4.4px;
  color: #fff;
  text-decoration: none;
}
.wj-drawer__close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--wj-serif);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* --- ナビゲーション --- */
.wj-drawer__list { list-style: none; margin: 0; padding: 0; }
.wj-drawer__item { border-bottom: 1px solid rgba(255, 255, 255, .12); }

.wj-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76.6px;
  color: inherit;
  text-decoration: none;
}
.wj-drawer__label {
  font-family: var(--wj-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.8;
  letter-spacing: 1.32px;
  color: #e6e3d8;
}
.wj-drawer__en {
  font-family: var(--wj-num, "Cormorant Garamond", serif);
  font-weight: 500;
  font-size: 12.4px;
  line-height: 1.89;
  letter-spacing: 1.32px;
  color: #8f9585;
}

/* サブメニュー（読みもの → お知らせ / ブログ） */
.wj-drawer__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 20px 14px;
}
.wj-drawer__sub li { margin-bottom: 14px; }
.wj-drawer__sub li:last-child { margin-bottom: 0; }
.wj-drawer__sub a {
  position: relative;
  display: inline-block;
  padding-left: 18px;
  font-family: var(--wj-serif);
  font-size: 15px;
  letter-spacing: 1.32px;
  color: rgba(230, 227, 216, .78);
  text-decoration: none;
}
.wj-drawer__sub a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 1px;
  background: rgba(230, 227, 216, .5);
}

/* --- フッター（検索 / マイページ / カート） --- */
.wj-drawer__foot {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.wj-drawer__foot a {
  font-family: var(--wj-serif);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .65px;
  color: #b3b8a9;
  text-decoration: none;
}

/* PCではドロワーを使わない */
@media (min-width: 769px) {
  .wj-drawer { display: none; }
}

/* SP固定バーがある画面では、トーストを固定バーの上に出す */
@media (max-width: 767px) {
  body.single-product .wj-toast,
  body.woocommerce-cart .wj-toast { bottom: 104px; }
}

/* =========================================================
   グローバルナビ：親項目をボタン化した場合の見た目調整
   （「読みもの」はリンクではなくプルダウンを開くだけ）
   ========================================================= */
.wj-header__nav .wj-nav__parent {
  position: relative;
  margin: 0;
  padding: 6px 14px 6px 0;
  border: 0;
  background: none;
  font-family: var(--wj-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .05em;
  color: inherit;
  cursor: pointer;
}
.wj-header__nav .wj-nav__parent::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease, margin-top .25s ease;
}
.wj-header__nav .menu-item-has-children:hover > .wj-nav__parent::after,
.wj-header__nav .wj-nav__parent[aria-expanded="true"]::after {
  transform: rotate(225deg);
  margin-top: -1px;
}
/* ボタンなので下線アニメーションは付けない */
.wj-header__nav .wj-nav__parent::before { display: none; }

/* タップで開いた状態 */
.wj-header__nav .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* ドロワー側：親項目はラベルだけ表示してサブメニューを常時開く */
.wj-drawer__item--parent .wj-drawer__link { cursor: default; }

/* =========================================================
   ヘッダーのプルダウン：文字色と背景を明示する
   （ヘッダーの文字色を継承していたため、TOPでは白文字になって
     背景の生成り色に埋もれて読めなくなっていた）
   ========================================================= */
.wj-header__nav .sub-menu {
  background: #fff;
  border: 1px solid var(--wj-line-3, #cbc4b2);
  box-shadow: 0 14px 30px rgba(34, 36, 30, .14);
  padding: 6px 0;
  min-width: 184px;
}
.wj-header__nav .sub-menu a {
  color: #26261f;
  font-size: 14px;
  letter-spacing: .06em;
  padding: 12px 22px;
}
.wj-header__nav .sub-menu a:hover {
  background: var(--wj-paper-2, #eae4d6);
  color: #19241b;
}

/* =========================================================
   v1.9.7 修正
   ========================================================= */

/* ---------------------------------------------------------
   ヘッダー：ロゴをコンテンツ幅の左端にそろえる
   （下層ページの本文と同じ 1160px 基準に合わせる）
   --------------------------------------------------------- */
.wj-header__inner {
  width: min(var(--wj-wrap-2, 1160px), 100% - var(--wj-pad, 24px) * 2);
}

/* ---------------------------------------------------------
   フッター：見出しが折り返さないようにする
   （「WINERY JUNについて」「会津・喜多方との関わり」など）
   --------------------------------------------------------- */
.wj-footer__col-head { white-space: nowrap; }
.wj-footer__nav { grid-template-columns: repeat(4, minmax(156px, auto)); column-gap: 34px; }
.wj-footer__list a { white-space: nowrap; }

@media (max-width: 1200px) {
  .wj-footer__nav { grid-template-columns: repeat(4, minmax(140px, auto)); column-gap: 24px; }
  .wj-footer__col-head,
  .wj-footer__list a { white-space: normal; }
}
@media (max-width: 768px) {
  .wj-footer__col-head,
  .wj-footer__list a { white-space: normal; }
}

/* =========================================================
   v1.9.56 — 商品カード：PC版PDFのベージュ本文エリアに統一
   ========================================================= */
.wj-product__body {
  background: #f4f1e8;
}
.wj-product__price {
  background: #f4f1e8;
}

/* v1.9.62: sticky page anchors should stay below the fixed header */
.wj-guide-nav,
.wj-anchor-nav { position: sticky; top: 102px; z-index: 70; }
@media (max-width: 767px) { .wj-guide-nav, .wj-anchor-nav { top: 87px; } }


/* =========================================================
   v1.9.83 — Footer bottom / watermark Figma alignment
   ========================================================= */

/* PC: background WINERYJUN spans almost the full viewport width */
@media (min-width: 768px) {
  .wj-footer__watermark {
    left: 50% !important;
    top: 65% !important;
    width: auto;
    max-width: none;
    transform: translate(-50%, -50%) !important;
    font-size: clamp(190px, 17vw, 340px) !important;
    letter-spacing: .015em !important;
    line-height: .72 !important;
    opacity: .045 !important;
    white-space: nowrap !important;
  }

  /* Reference layout: legal links left, copyright right on the same baseline */
  .wj-footer__legal {
    display: block !important;
    width: min(var(--wj-wrap), 100% - var(--wj-pad, 24px) * 2) !important;
    margin: 62px auto 0 !important;
    padding: 28px 0 22px !important;
    border-top: 1px solid var(--wj-line-dk) !important;
    text-align: left !important;
  }

  .wj-footer__legal-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 40px !important;
    width: 100%;
  }

  .wj-footer__legal-links {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;
  }

  .wj-footer__copy {
    margin: 0 0 0 auto !important;
    flex: 0 0 auto;
    text-align: right !important;
  }

  /* Megdai credit stays inside this quiet lower area without changing the reference row */
  .wj-footer__credit {
    margin: 12px 0 0 !important;
    padding: 0 !important;
    text-align: right !important;
    font-size: 8px !important;
    line-height: 1.5 !important;
    letter-spacing: .04em !important;
    color: rgba(223,214,196,.25) !important;
  }
}

/* SP keeps the existing stacked layout */
@media (max-width: 767px) {
  .wj-footer__legal-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
  }
  .wj-footer__legal-links {
    justify-content: flex-start;
  }
  .wj-footer__copy {
    margin: 0;
    text-align: left;
  }
  .wj-footer__credit {
    text-align: left !important;
  }
}


/* =========================================================
   v1.9.84 — Megdai credit size restore
   配置はv1.9.83のまま、文字サイズ・濃さ・余白だけv1.9.82相当に戻す
   ========================================================= */
@media (min-width: 768px) {
  .wj-footer__credit {
    margin: 10px 0 8px !important;
    font-size: 9px !important;
    line-height: 1.6 !important;
    letter-spacing: .05em !important;
    color: rgba(223,214,196,.34) !important;
  }
}

@media (max-width: 767px) {
  .wj-footer__credit {
    margin: 8px 0 6px !important;
    font-size: 8px !important;
    line-height: 1.6 !important;
    letter-spacing: .05em !important;
    color: rgba(223,214,196,.34) !important;
  }
}
