/* ================================================================
   コンポーネント — BOBOJYU デリバリー
================================================================ */

/* ─── スキップリンク ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-main);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.875rem;
}
.skip-link:focus {
  top: 0;
}

/* ── 視覚的非表示（スクリーンリーダー・検索エンジンには残す）───────
   例: 文字を画像に焼き込んだKVの <h1> */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ─── フォーカス可視性 ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ================================================================
   ボタン
================================================================ */

/*
 * Usage:
 *   <button class="btn-primary" type="button">カートに入れる</button>
 *   <a class="btn-primary btn-lg" href="#">大きいボタン</a>
 * サイズ修飾子: .btn-lg / .btn-md / .btn-sm（いずれのボタン種にも付与可）
 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--color-main);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--color-main-light);
  }
}
.btn-primary:disabled {
  background: var(--color-gray-light);
  cursor: not-allowed;
}

/*
 * Usage:
 *   <a class="btn-secondary" href="#">商品を見る</a>
 */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--color-white);
  color: var(--color-main);
  border: 1.5px solid var(--color-main);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--color-main);
    color: var(--color-white);
  }
}
.btn-secondary:disabled {
  color: var(--color-gray-light);
  border-color: var(--color-gray-lighter);
  cursor: not-allowed;
}

/*
 * Usage:
 *   <button class="btn-text" type="button">詳しく見る <span aria-hidden="true">›</span></button>
 */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-main);
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .btn-text:hover {
    color: var(--color-main-light);
  }
}

/* サイズ修飾子 */
.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}
.btn-md {
  padding: 14px 24px;
  font-size: 0.9375rem;
}
.btn-sm {
  padding: 10px 16px;
  font-size: 0.8125rem;
}

/* 既存ボタン（後方互換） */
/*
 * Usage:
 *   <a class="btn-normal" href="#">テキスト</a>
 * Modifiers: .-white, .-border, .-small
 */
.btn-normal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: var(--color-main);
  color: var(--color-white);
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1.5px solid var(--color-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .btn-normal:hover {
    background: var(--color-main-light);
    border-color: var(--color-main-light);
  }
}
.btn-normal.-white {
  background: var(--color-white);
  color: var(--color-main);
  border-color: var(--color-white);
}
@media (hover: hover) and (pointer: fine) {
  .btn-normal.-white:hover {
    background: var(--color-cream);
    border-color: var(--color-cream);
  }
}
.btn-normal.-border {
  background: transparent;
  color: var(--color-main);
  border-color: var(--color-main);
}
@media (hover: hover) and (pointer: fine) {
  .btn-normal.-border:hover {
    background: var(--color-main);
    color: var(--color-white);
  }
}
.btn-normal.-small {
  padding: 8px 20px;
  font-size: 0.8125rem;
}

/*
 * Usage:
 *   <button class="btn-cart" type="button">カートに入れる</button>
 */
.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .btn-cart:hover {
    background: var(--color-accent-light);
  }
}
.btn-cart:disabled {
  background: var(--color-gray-light);
  cursor: not-allowed;
}

/* ================================================================
   数量セレクター
================================================================ */

/*
 * Usage:
 *   <div class="quantity-selector">
 *     <button class="btn-qty -minus" type="button" aria-label="数量を減らす">－</button>
 *     <input class="qty-input" type="number" value="1" min="1" max="99" aria-label="数量">
 *     <button class="btn-qty -plus" type="button" aria-label="数量を増やす">＋</button>
 *   </div>
 */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-gray-lighter);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.quantity-selector > .btn-qty {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-main-lightest);
  border: none;
  font-size: 1.125rem;
  cursor: pointer;
  color: var(--color-font);
  transition: background 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .quantity-selector > .btn-qty:hover {
    background: var(--color-gray-lighter);
  }
}
.quantity-selector > .qty-input {
  width: 48px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--color-gray-lighter);
  border-right: 1.5px solid var(--color-gray-lighter);
  font-size: 0.9375rem;
  font-family: var(--font-family-base);
  color: var(--color-font);
  appearance: textfield;
  -moz-appearance: textfield;
}
.quantity-selector > .qty-input::-webkit-inner-spin-button,
.quantity-selector > .qty-input::-webkit-outer-spin-button {
  appearance: none;
}

/* ================================================================
   商品カード
================================================================ */

/*
 * BEM構造（推奨）:
 *   <article class="bento-card">
 *     <button class="bento-card__fav" type="button" aria-label="お気に入りに追加">♡</button>
 *     <img class="bento-card__image" src="..." alt="...">
 *     <div class="bento-card__body">
 *       <h3 class="bento-card__name">商品名</h3>
 *       <p class="bento-card__price">¥1,200<span class="bento-card__price-tax">（税込）</span></p>
 *     </div>
 *   </article>
 */
.bento-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  /* 金賞バッジ（.award-badge）をカードの外へはみ出させるため clip しない。
     画像の角丸は .bento-card__media（旧構造は .thumbnail）側で処理する。 */
  overflow: visible;
  box-shadow: var(--shadow-2);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
/* .bento-card:hover {
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
} */

/* BEM要素 */
.bento-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .bento-card:hover .bento-card__image {
    transform: scale(1.04);
  }
}
.bento-card__body {
  padding: 12px;
}
/* おすすめ／人気などの文字チップ（bento_tag）。
   商品カードでは .bento-card__badges の中に入り、NEWと同じ画像右上に重なる。
   商品詳細（--single）のみ商品名の直上に単独で並ぶ。
   金賞はカード外へはみ出す別バッジのためここには出ない。 */
.bento-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
/* 商品詳細ページはタイトルが大きいためチップも一回り大きくする */
.bento-card__tags--single {
  gap: 8px;
  margin-bottom: 12px;
}
.bento-card__tags--single .chip {
  padding: 6px 14px;
  font-size: 0.8125rem;
}
.bento-card__name {
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-narrow);
  color: var(--color-main);
  margin-bottom: 6px;
}
.bento-card__price {
  font-family: var(--font-family-base);
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
}
.bento-card__price-tax {
  font-size: 0.75rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-main-lighter);
  margin-left: 2px;
}
.bento-card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px; /* タッチターゲット最小 44px */
  height: 44px;
  background: rgba(
    255,
    255,
    255,
    0.9
  ); /* color-mix() 非対応ブラウザ向けフォールバック */
  background: color-mix(in srgb, var(--color-white) 90%, transparent);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .bento-card__fav:hover {
    background: var(--color-white);
  }
}

/* 旧ネスト構造（後方互換） */
.bento-card > .link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.bento-card > .link > .thumbnail {
  position: relative;
  overflow: hidden;
  /* .bento-card が overflow: visible のため、上部の角丸はここで作る */
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  aspect-ratio: 4 / 3;
}
.bento-card > .link > .thumbnail > .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .bento-card:hover > .link > .thumbnail > .image {
    transform: scale(1.04);
  }
}
.bento-card > .link > .body {
  padding: 12px 14px 4px;
}
.bento-card > .link > .body > .title {
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-narrow);
  color: var(--color-font);
  margin-bottom: 6px;
}
.bento-card > .link > .body > .price {
  font-size: 1.0625rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
}
.bento-card > .link > .body > .price > .tax {
  font-size: 0.75rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-gray);
}
.bento-card > .actions {
  padding: 10px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bento-card > .actions > .quantity-selector {
  align-self: flex-start;
}

/* ================================================================
   チップ / ラベル
================================================================ */

/*
 * Usage:
 *   <span class="chip chip--osusume">おすすめ</span>
 *   <span class="chip chip--shin">新着</span>
 */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-family-base);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  line-height: 1;
  letter-spacing: 0.02em;
}
.chip--osusume {
  background: var(--color-main);
  color: var(--color-white);
}
.chip--shin {
  background: var(--color-red);
  color: var(--color-white);
}
.chip--limited {
  background: var(--color-main-lighter);
  color: var(--color-white);
}
.chip--ninki {
  background: var(--color-cream);
  color: var(
    --color-main
  ); /* #1A1A1A — cream背景でコントラスト比 12.6:1（AA合格） */
  border: 1px solid var(--color-accent);
}
.chip--category {
  background: var(--color-main-lightest);
  color: var(--color-main);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .chip--category:hover {
    background: var(--color-main);
    color: var(--color-white);
  }
}

/* ================================================================
   タブ
================================================================ */

/*
 * Usage:
 *   <div class="tab-list" role="tablist">
 *     <button class="tab-item is-active" role="tab" aria-selected="true">すべて</button>
 *     <button class="tab-item" role="tab" aria-selected="false">種類</button>
 *   </div>
 */
.tab-list {
  display: flex;
  border-bottom: 1px solid var(--color-gray-lighter);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-list::-webkit-scrollbar {
  display: none;
}
.tab-item {
  padding: 12px 20px;
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-main-lighter);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .tab-item:hover {
    color: var(--color-main);
  }
}
.tab-item.is-active {
  color: var(--color-main);
  border-bottom-color: var(--color-main);
  font-weight: var(--font-weight-medium);
}

/* ================================================================
   フォーム
================================================================ */

/*
 * Usage:
 *   <div class="form-group">
 *     <label class="form-label" for="email">メールアドレス</label>
 *     <input class="form-input" type="email" id="email" placeholder="例: info@example.com">
 *   </div>
 */
.form-label {
  display: block;
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-gray-lighter);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-main);
  background: var(--color-white);
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--color-main); /* WCAG 2.4.7: フォーカスを outline で明示 */
  outline-offset: 2px;
  border-color: var(--color-main);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-light);
}
/* セレクト矢印（SVG の色は --color-main の値 #1A1A1A に合わせる）*/
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231A1A1A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ================================================================
   コンタクトフォーム（Contact Form 7）
================================================================ */

/*
 * /contact/ ページ（templates/page-2col.php + [contact-form-7]）専用。
 * CF7 は .form-input 等の独自クラスを付与できないため、CF7 が出力する
 * 標準クラス（.wpcf7-form-control 等）に対してデザインシステムのトークンを直接適用する。
 * フィールドは 本番サイト https://bobojyu-delivery.com/contact/ と同じ構成
 *（functions.php: bobojyu_setup_contact_form() 参照）。
 *
 * ラベル内テキスト＋入力欄が同一 <label> 内に並ぶ CF7 標準マークアップを
 * flex-direction: column で縦積みにし、.form-label 相当の見た目に揃える。
 */
.entry-content .wpcf7 {
  max-width: 560px;
}
/*
 * 項目間の余白は 40px。
 * CF7 は wpautop により各フィールドを <p> で自動的に囲む
 *（use_label_element を使う項目だけ <div><p>…</p></div> の二重ラップになる）。
 * ラップ要素のタグ名を決め打ちすると、フォーム定義を編集して p / div が
 * 入れ替わったときに余白が抜けるため、フォーム直下の全要素に * + * で付ける。
 * 例外は以下の3つ:
 *   - 先頭の fieldset.hidden-fields-container（CF7のhidden input群）→ 余白なし
 *   - その直後の最初の項目 → フォーム冒頭なので余白なし
 *   - 空の <p>（wpautopが改行だけの行に生成する）→ 余分な40pxを生むので消す
 * .wpcf7-response-output（送信結果メッセージ）は同ファイル後方の専用ルール
 *（margin: var(--space-item) 0 0）が同specificity・後勝ちで上書きする。
 */
.entry-content .wpcf7-form > * {
  margin: 0;
}
.entry-content .wpcf7-form > p:empty {
  display: none;
}
.entry-content .wpcf7-form > * + * {
  margin-top: 40px;
}
.entry-content .wpcf7-form > .hidden-fields-container {
  display: none;
}
.entry-content .wpcf7-form > .hidden-fields-container,
.entry-content .wpcf7-form > .hidden-fields-container + * {
  margin-top: 0;
}
.entry-content .wpcf7-form > p > label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
}

/*
 * ラジオ等、選択肢ごとに独自の <label> を持つ form-tag（use_label_element）は
 * 見出しを <label> ではなく .wpcf7-field-label（<span>）にする必要がある
 * （<label> の入れ子は無効なHTMLで、CF7 Config Validatorのエラー原因になるため）。
 * .wpcf7-field-label は <div><p>...</p></div>（wpautopが<div>内にも<p>を挿入する）
 * の中に出力されるため、見出し+コントロールの縦積みは内側の <p> 側で担う。
 */
.entry-content .wpcf7-form > div > p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.entry-content .wpcf7-form > div .wpcf7-field-label {
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
}

/* 必須バッジ（* 付きフィールドのみ／絶対配置なので DOM 順に依存しない） */
.entry-content
  .wpcf7-form
  > p
  > label:has(.wpcf7-validates-as-required)::after {
  content: "必須";
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
}

/* .wpcf7-date / .wpcf7-number は旅行会社向けLPのフォーム（納品日・食数）で使用 */
.entry-content .wpcf7-text,
.entry-content .wpcf7-tel,
.entry-content .wpcf7-email,
.entry-content .wpcf7-date,
.entry-content .wpcf7-number,
.entry-content .wpcf7-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-gray-lighter);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-main);
  background: var(--color-white);
  transition: border-color 0.15s;
}
.entry-content .wpcf7-text:focus,
.entry-content .wpcf7-tel:focus,
.entry-content .wpcf7-email:focus,
.entry-content .wpcf7-date:focus,
.entry-content .wpcf7-number:focus,
.entry-content .wpcf7-textarea:focus {
  outline: 2px solid var(--color-main);
  outline-offset: 2px;
  border-color: var(--color-main);
}

/* 日付・数値は文字数が短いため入力欄の幅を絞る（SPでは全幅） */
@media (min-width: 600px) {
  .entry-content .wpcf7-date,
  .entry-content .wpcf7-number {
    max-width: 280px;
  }
}
.entry-content .wpcf7-textarea {
  resize: vertical;
  min-height: 160px;
}

/*
 * お問い合わせ内容について（ラジオ）: チップ状に横並び
 * [radio ... use_label_element] により <input> と .wpcf7-list-item-label は
 * <label> でラップされる。パディングは .wpcf7-list-item ではなく内側の
 * <label> 側に持たせ、チップ全体（余白部分含む）をクリック範囲にする。
 */
.entry-content .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.entry-content .wpcf7-radio .wpcf7-list-item {
  display: inline-flex;
  margin: 0;
  border: 1.5px solid var(--color-gray-lighter);
  border-radius: var(--radius-full);
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-main);
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.entry-content .wpcf7-radio .wpcf7-list-item:has(input:checked) {
  border-color: var(--color-main);
  background: var(--color-main);
  color: var(--color-white);
}
.entry-content .wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  cursor: pointer;
}
.entry-content .wpcf7-radio input[type="radio"] {
  accent-color: var(--color-main);
  cursor: pointer;
}
.entry-content .wpcf7-radio .wpcf7-list-item-label {
  cursor: pointer;
}

/* プライバシーポリシー同意チェックボックス */
.entry-content .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.entry-content .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  line-height: var(--line-height-normal);
  color: var(--color-main);
  cursor: pointer;
}
.entry-content .wpcf7-acceptance input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-main);
}
.entry-content .wpcf7-acceptance a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .entry-content .wpcf7-acceptance a:hover {
    color: var(--color-accent-light);
  }
}

/* 送信ボタン（項目間と同じ 40px。上の * + * で付くため個別指定はしない） */
.entry-content .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 32px;
  background: var(--color-main);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .entry-content .wpcf7-submit:hover {
    background: var(--color-main-light);
  }
}
.entry-content .wpcf7-spinner {
  margin: 0 0 0 8px;
}

/* バリデーションエラー・送信結果メッセージ */
.entry-content .wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  color: var(--color-red);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-regular);
}
.entry-content .wpcf7-form-control.wpcf7-not-valid {
  border-color: var(--color-red);
}
.entry-content .wpcf7-response-output {
  margin: var(--space-item) 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  line-height: var(--line-height-normal);
}
.entry-content .wpcf7-form.sent .wpcf7-response-output {
  border: 1px solid var(--color-accent);
  background: var(--color-cream);
  color: var(--color-main);
}
.entry-content .wpcf7-form.invalid .wpcf7-response-output,
.entry-content .wpcf7-form.failed .wpcf7-response-output,
.entry-content .wpcf7-form.aborted .wpcf7-response-output {
  border: 1px solid var(--color-red);
  background: #fdeeea;
  color: var(--color-red);
}

/* ================================================================
   アコーディオン
================================================================ */

/*
 * Usage:
 *   <div class="accordion">
 *     <button class="accordion__trigger" type="button" aria-expanded="false" aria-controls="acc-1">
 *       アレルギー情報について
 *       <span class="accordion__icon" aria-hidden="true">＋</span>
 *     </button>
 *     <div class="accordion__body" id="acc-1">
 *       <p>本文テキスト</p>
 *     </div>
 *   </div>
 * JS: aria-expanded を true/false で切り替えることで表示制御
 */
.accordion__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-main);
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-gray-lighter);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .accordion__trigger:hover {
    color: var(--color-main-light);
  }
}
.accordion__icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
}
.accordion__body {
  padding: 16px 0;
  display: none;
}
.accordion__trigger[aria-expanded="true"] + .accordion__body {
  display: block;
}

/* ================================================================
   ステッパー（注文ステップ）
================================================================ */

/*
 * Usage:
 *   <ol class="step-list">
 *     <li class="step-item is-active">
 *       <span class="step-item__num">1</span>ご注文情報
 *     </li>
 *     <li class="step-divider" role="presentation"></li>
 *     <li class="step-item">
 *       <span class="step-item__num">2</span>ご注文確認
 *     </li>
 *   </ol>
 */
.step-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-main-lighter);
  white-space: nowrap;
}
.step-item__num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-gray-lighter);
  color: var(--color-main-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
}
.step-item.is-active {
  color: var(--color-main);
  font-weight: var(--font-weight-medium);
}
.step-item.is-active > .step-item__num {
  background: var(--color-main);
  color: var(--color-white);
}
.step-divider {
  flex: 1;
  height: 1px;
  background: var(--color-gray-lighter);
  margin: 0 8px;
  min-width: 16px;
}

/* ================================================================
   バッジ
================================================================ */

/*
 * Usage:
 *   <span class="tag-badge">新商品</span>
 *   <span class="tag-badge -red">期間限定</span>
 */
.tag-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-cream);
  color: var(--color-main);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}
.tag-badge.-red {
  background: var(--color-red);
  color: var(--color-white);
}
.tag-badge.-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ================================================================
   フィルター
================================================================ */

/*
 * Usage:
 *   <aside class="bento-filter">
 *     <section class="filter-group" aria-labelledby="filter-bento-category">
 *       <h3 class="title" id="filter-bento-category">種類から選ぶ</h3>
 *       <ul class="list">
 *         <li class="item"><a class="link" href="...">のり弁一段重</a></li>
 *       </ul>
 *     </section>
 *   </aside>
 */
.bento-filter > .filter-group {
  padding-bottom: 24px;
}
.bento-filter > .filter-group > .title {
  font-size: 0.8125rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  color: var(--color-main);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--color-gray-lighter);
}
.bento-filter > .filter-group > .list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bento-filter > .filter-group > .list > .item > .link {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-gray-lighter);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--color-font);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.bento-filter > .filter-group > .list > .item > .link.-active {
  background: var(--color-main);
  color: var(--color-white);
  border-color: var(--color-main);
}

@media (hover: hover) and (pointer: fine) {
  .bento-filter > .filter-group > .list > .item > .link:hover {
    background: var(--color-main);
    color: var(--color-white);
    border-color: var(--color-main);
  }
}

/* ================================================================
   見出し（title-area）
================================================================ */

/*
 * Usage:
 *   <hgroup class="title-area">
 *     <p class="en">Products</p>
 *     <h2 class="ja">お弁当一覧</h2>
 *   </hgroup>
 * Modifiers: .-center, .-white
 */
.title-area > .en {
  font-family: var(--font-family-serif);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(
    --color-main-lighter
  ); /* #616161 — white背景でコントラスト比 6.19:1（AA合格） */
  text-transform: uppercase;
  margin-bottom: 4px;
}
.title-area > .ja {
  font-family: var(--font-family-serif);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  line-height: var(--line-height-narrow);
  color: var(--color-font);
}
.title-area.-center {
  text-align: center;
}
.title-area.-white > .en {
  color: rgba(
    255,
    255,
    255,
    0.85
  ); /* フォールバック: 暗背景上コントラスト比 ≈9:1 */
  color: color-mix(
    in srgb,
    var(--color-white) 85%,
    transparent
  ); /* 65% → 85% に引き上げ */
}
.title-area.-white > .ja {
  color: var(--color-white);
}

/* ================================================================
   ページネーション
================================================================ */

/*
 * Usage:
 *   <nav class="pagination" aria-label="ページナビゲーション">
 *     <ul class="list">
 *       <li class="item"><a class="link" href="...">1</a></li>
 *       <li class="item"><span class="link -current" aria-current="page">2</span></li>
 *     </ul>
 *   </nav>
 */
.pagination {
  margin-top: 40px;
}
.pagination > .list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pagination > .list > .item > .link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1.5px solid var(--color-gray-lighter);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--color-font);
  transition:
    background 0.15s,
    border-color 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .pagination > .list > .item > .link:hover {
    background: var(--color-main-lightest);
    border-color: var(--color-main-lighter);
  }
}
.pagination > .list > .item > .link.-current {
  background: var(--color-main);
  color: var(--color-white);
  border-color: var(--color-main);
}

/* ================================================================
   パンくずリスト
================================================================ */

/* bobojyu_breadcrumb() 関数で出力 */
.breadcrumb {
  margin-bottom: 24px;
}
.breadcrumb > .breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--color-gray);
}
.breadcrumb > .breadcrumb-list > .breadcrumb-item {
  display: flex;
  align-items: center;
}
.breadcrumb > .breadcrumb-list > .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin-right: 4px;
  color: var(--color-gray-light);
}
.breadcrumb > .breadcrumb-list > .breadcrumb-item > .link {
  text-decoration: none;
  color: var(--color-gray);
  transition: color 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .breadcrumb > .breadcrumb-list > .breadcrumb-item > .link:hover {
    color: var(--color-font);
  }
}
.breadcrumb > .breadcrumb-list > .breadcrumb-item > .current {
  color: var(--color-main-lighter);
}

/* ================================================================
   カートメッセージ（ARIA live）
================================================================ */

.cart-message {
  font-size: 0.8125rem;
  color: var(--color-main-lighter);
  min-height: 1.2em;
}
.cart-message.-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================================================================
   HERO コンポーネント
================================================================ */

/*
 * Usage:
 *   <div class="hero-copy">
 *     <h1 class="hero-copy__main">五つ星のり弁、まごころ込めて。</h1>
 *     <span class="hero-copy__hanko" aria-hidden="true">弁</span>
 *   </div>
 * 配置: layout.css .hero-copy が flex row / align-items: center / justify-content: flex-end
 */

/* ── 縦書きキャッチコピー ────────────────────────────────────── */
.hero-copy__main {
  writing-mode: vertical-rl; /* 縦書き・右→左方向 */
  text-orientation: mixed;
  font-family: var(--font-mincho);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: var(--font-weight-bold); /* 游明朝 Bold 相当 */
  color: var(--color-white);
  line-height: 1.9;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  margin: 0;
}
/* タブレット幅は HERO の高さが画像比率で決まり 300〜400px 程度になる。
   縦書きコピー（スライド2）がはみ出さないよう字送りを詰める */
@media (min-width: 750px) and (max-width: 1024px) {
  .hero-copy__main {
    font-size: clamp(1.125rem, 2.6vw, 1.75rem);
  }
}
@media (min-width: 1025px) {
  .hero-copy__main {
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  }
}

/* ── 落款（朱色の印）────────────────────────────────────────── */
/*
 * aria-hidden="true" で読み上げからは除外
 * キャッチコピーの右下に配置（flex row の順序: main の後）
 */
.hero-copy__hanko {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-red); /* 朱: #CC2200 */
  color: var(--color-white);
  font-family: var(--font-mincho);
  font-size: 1.375rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0;
  border-radius: 2px; /* 落款らしい微角丸 */
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.3),
    /* 内枠 */ 0 2px 8px rgba(0, 0, 0, 0.4); /* 浮き影 */
  writing-mode: horizontal-tb; /* 縦書きモードをリセット */
  align-self: flex-end; /* キャッチコピーの下端に揃える */
  margin-bottom: 4px;
}
@media (min-width: 1025px) {
  .hero-copy__hanko {
    width: 60px;
    height: 60px;
    font-size: 1.625rem;
  }
}

/* ── スライド 2 以降のサブコピー・CTAボタン ───────────────────── */
.hero-copy__sub {
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.24em;
  color: var(--color-white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.hero-copy__btn {
  /* btn-secondary を基本スタイルとして使用（components.css 定義済み）*/
  /* 暗背景上での視認性のため色を上書き */
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  writing-mode: horizontal-tb; /* ボタンテキストは横書き */
  align-self: flex-end;
}
@media (hover: hover) and (pointer: fine) {
  .hero-copy__btn:hover {
    background: var(--color-white);
    color: var(--color-main);
  }
}

/* ================================================================
   ヘッダー追加コンポーネント
================================================================ */

/* ── ロゴテキスト（.logo の BEM 子要素）─────────────────────── */
/* ロゴ画像は差し替え前提で寸法を CSS 側に持たせる（高さ基準・幅は auto）*/
.logo__image {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 1025px) {
  .logo__image {
    height: clamp(56px, 6vw, 76px);
  }
}

/* ── ヘッダーアクション — ログインボタン ────────────────────── */
/* SP: ログインはドロワー内のみ表示 */
/* SP: アイコンのみのマイページボタン。PC（1025px〜）ではラベル付きの枠線ボタンになる */
.header-actions__login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s;
}
.header-actions__login svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .header-actions__login:hover {
    opacity: 0.75;
  }
}
.header-actions__label {
  display: none; /* SP はアイコンのみ。PC で表示に戻す */
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}
@media (min-width: 1025px) {
  /* PC: 白枠のボタン。幅・高さはカート画像と揃える（--header-btn-w）*/
  .header-actions__login {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding-inline: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border: 1px solid color-mix(in srgb, var(--color-white) 60%, transparent);
    border-radius: var(--radius-sm);
    transition:
      background-color 0.2s,
      border-color 0.2s,
      opacity 0.2s;
  }
  .header-actions__login svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .header-actions__label {
    display: inline;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
  }
}
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .header-actions__login:hover {
    opacity: 1;
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    background: color-mix(in srgb, var(--color-white) 10%, transparent);
  }
}

/* ── グローバルナビ — WordPress 標準クラス対応 ───────────────── */
/* layout.css が .global-menu の表示 / 非表示を BP 別に制御する  */

.global-menu > .list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
}
.global-menu .menu-item > a {
  display: flex;
  align-items: center;
  height: var(--header-h-pc);
  padding-inline: clamp(14px, 2vw, 28px);
  color: rgba(255, 255, 255, 0.8); /* フォールバック */
  color: color-mix(in srgb, var(--color-white) 80%, transparent);
  text-decoration: none;
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  /* white-space: nowrap; */
  transition: color 0.2s;
}
.global-menu .current-menu-item > a,
.global-menu .current-menu-ancestor > a {
  color: var(--color-accent); /* 琥珀 #B08D57 */
}

@media (hover: hover) and (pointer: fine) {
  .global-menu .menu-item > a:hover {
    color: var(--color-accent); /* 琥珀 #B08D57 */
  }
}

/* ================================================================
   SP ドロワーメニュー
================================================================ */

/* ── コンテナ（固定・フルビューポート）────────────────────── */
.drawer-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.drawer-nav.-open {
  visibility: visible;
  pointer-events: auto;
}

/* ── オーバーレイ（暗い背景、クリックで閉じる）──────────────── */
.drawer-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6); /* フォールバック */
  background: color-mix(in srgb, var(--color-main) 60%, transparent);
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}
.drawer-nav.-open > .drawer-nav__overlay {
  opacity: 1;
}

/* ── スライドインパネル ──────────────────────────────────────── */
.drawer-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-main);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.drawer-nav.-open .drawer-nav__panel {
  transform: translateX(0);
}

/* ── 閉じるボタン ────────────────────────────────────────────── */
.drawer-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 44px;
  height: 44px;
  margin: 8px 8px 0;
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  transition: opacity 0.2s;
}
.drawer-nav__close:focus-visible {
  opacity: 0.75;
}

@media (hover: hover) and (pointer: fine) {
  .drawer-nav__close:hover {
    opacity: 0.75;
  }
}

/* ================================================================
   bento-card 新要素（人気のお弁当セクション用）
================================================================ */

/* 画像リンクラッパー */
.bento-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  /* .bento-card が overflow: visible のため、上部の角丸はここで作る。
     画像のホバーズーム（scale 1.04）もこのボックスでクリップされる。 */
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* 金賞バッジ（bento_tag: gold）
   カードの左上角から外側へはみ出させる。
   そのため .bento-card__media（overflow: hidden）ではなく
   .bento-card（position: relative / overflow: visible）の直下に置くこと。
   サイズはカードの幅に対する比率で決めると PC/SPで見え方が揃わないため、
   固定値をブレークポイントで切り替える。

   はみ出し量（top / left の負値）の上限は .container の左右ガター
   （SP 20px / 750〜1024px 50px / 1025px〜 40px）。これを超えると
   .page-contents の overflow-x: clip で左端のカードのバッジが欠ける。 */
/* SP は 2 カラムでカード自体が小さい（実測 約180px）ため、
   バッジを大きくすると商品写真を覆ってしまう。
   カード幅の 1/3 に収まるサイズにして、はみ出し量で存在感を出す。 */
.award-badge {
  position: absolute;
  top: -18px;
  left: -18px;
  z-index: 3;
  width: 58px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}
/* タブレット（750〜1024px）はグリッドが 3 カラムになりカードは 200〜300px。
   PC と同じ 88px では大きすぎるため中間サイズにする。 */
@media (min-width: 750px) {
  .award-badge {
    top: -24px;
    left: -24px;
    width: 72px;
  }
}
@media (min-width: 1025px) {
  .award-badge {
    top: -30px;
    left: -30px;
    width: 88px;
  }
}
/* NEWバッジ（bento_tag: new）
   金賞バッジ（左上）と対になるよう右上に置く。チップの見た目は .chip--shin を流用。 */
.new-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.new-badge--single {
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  font-size: 0.875rem;
}

/* カード画像に重ねるバッジ群（NEW ＋ おすすめ／人気／限定）
   おすすめ・人気チップも NEW と同じ画像右上に置く。
   左右にゆとりを持たせ、チップが増えたら右端揃えのまま折り返す。 */
.bento-card__badges {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  pointer-events: none;
}
/* ラッパー内では各バッジの個別配置を解除し、flex の並びに任せる */
.bento-card__badges .new-badge {
  position: static;
}
.bento-card__badges .bento-card__tags {
  margin-bottom: 0;
}
/* 写真の上に乗るため、チップに影を付けて可読性を確保する */
.bento-card__badges .chip {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 商品詳細のメイン画像は画像自体が大きいためバッジも大きくする。
   .thumbnail-figure は overflow を持たないので、そのままはみ出せる。 */
.award-badge--single {
  top: -28px;
  left: -28px;
  width: 96px;
}
@media (min-width: 750px) {
  .award-badge--single {
    top: -44px;
    left: -44px;
    width: 128px;
  }
}

/* サムネイル未設定時のプレースホルダー */
.bento-card__no-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
}

/* カード名のリンク */
.bento-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .bento-card__name a:hover {
    color: var(--color-main);
  }
}
.bento-card__name a:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 2px;
  border-radius: 2px;
}

/* delicart_item_id 未設定時のフォールバック */
.bento-card__no-id {
  margin-top: 10px;
}

/* ================================================================
   デリカート連携 UI（カード内）
   class 名は外部 JS が参照するため変更禁止:
     .set-a / .item_stow / .x_jatmn / .item_detail_info
     .item_detail_item_id / .item_detail_number / .item-num / .add
================================================================ */

/* デリカートラッパーのマージン */
.bento-card .set-a {
  margin-top: 10px;
}

/* 数量ステッパー行
   "数量:" テキストノードを font-size:0 で非表示にしつつ
   子要素は明示的に再設定する */
.bento-card .item_detail_number {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 0;
}
.bento-card .item_detail_number button {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--color-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    border-color 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .bento-card .item_detail_number button:hover {
    background: var(--color-main-lightest);
    border-color: var(--color-main);
  }
}
.bento-card .item_detail_number button:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 1px;
}
.bento-card .item-num {
  width: 44px;
  height: 32px;
  padding: 0 4px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  color: var(--color-main);
  background: var(--color-white);
}
.bento-card .item-num:focus {
  outline: none;
  border-color: var(--color-main);
}

/* カートボタンのラッパー */
.item-cart-actions {
  display: block;
}

/* ── デリカート「カートに入れる」ボタン ──────────────────────── */
.delicart-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  background: var(--color-main);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .delicart-add-btn:hover {
    background: var(--color-main-light);
    color: var(--color-white);
  }
}
.delicart-add-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.delicart-add-btn.is-adding {
  background: var(--color-kin);
  pointer-events: none;
  cursor: default;
}

/* 詳しくはこちらボタン */
.bento-card__detail-link {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
  padding: 7px 16px;
  font-size: 0.75rem;
  border-width: 1px;
}

/* ================================================================
   お弁当一覧グリッド: 同じ行のカード高さを揃える
   グリッドセル（li）は行内で最も高いものに揃うが、中の .bento-card は
   内容分の高さで止まるため、セルいっぱいに伸ばして高さを統一する。
================================================================ */
.bento-grid__item {
  display: flex;
}
.bento-grid .bento-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.bento-grid .bento-card__media {
  flex-shrink: 0;
}
.bento-grid .bento-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 12px; /* 各要素間の一定間隔（詳しくはこちらの上にも余白を確保）*/
}
/* 商品名は最低2行分（line-height-narrow 1.3 × 2）を確保し、価格以下の位置を揃える */
.bento-grid .bento-card__name {
  min-height: 2.6em;
  margin-bottom: 0; /* 間隔は body の gap に統一 */
}
/* 既存の個別マージンを解除して gap に統一 */
.bento-grid .bento-card .set-a {
  margin-top: 0;
}
/* 「詳しくはこちら」を常にカード下端へ揃える（gap と合わせて上に必ず余白）*/
.bento-grid .bento-card__detail-link {
  margin-top: auto;
}

/* ================================================================
   エリアカード（area-card）
   dark 背景（var(--color-sumi)）上に配置するカードコンポーネント
================================================================ */

.area-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06); /* フォールバック */
  background: color-mix(in srgb, var(--color-white) 6%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.12); /* フォールバック */
  border: 1px solid color-mix(in srgb, var(--color-white) 12%, transparent);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .area-card:hover {
    background: rgba(255, 255, 255, 0.1); /* フォールバック */
    background: color-mix(in srgb, var(--color-white) 10%, transparent);
  }
}

/* 画像 */
.area-card__media {
  overflow: hidden;
  flex-shrink: 0;
}
.area-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .area-card:hover .area-card__image {
    transform: scale(1.04);
  }
}

/* 本文
   リンクの当たり判定を本文全体に広げる（.area-card__link::after の基準） */
.area-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  gap: 10px;
}

/* 最低注文金額バッジ */
.area-card__min-order {
  font-family: var(--font-family-serif);
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  letter-spacing: 0.02em;
  margin: 0;
}

/* エリア名（游明朝系） */
.area-card__name {
  font-family: var(--font-family-serif);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: var(--line-height-narrow);
  margin: 0;
}

/* 説明文（excerpt） */
.area-card__excerpt {
  font-size: 0.8125rem;
  line-height: var(--line-height-wide);
  color: rgba(255, 255, 255, 0.7); /* フォールバック */
  color: color-mix(in srgb, var(--color-white) 70%, transparent);
  flex: 1;
  margin: 0;
}

/* リンク（琥珀色、ホバーでアンダーライン） */
.area-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
  transition: gap 0.2s;
}
/* 本文エリア全体をクリック範囲にする（ストレッチドリンク）。
   aタグは1本のまま広げるので、リンクの読み上げ・遷移先は変わらない。 */
.area-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
@media (hover: hover) and (pointer: fine) {
  /* 本文のどこにホバーしてもリンクと同じ表示になるようにする */
  .area-card__link:hover,
  .area-card__body:hover .area-card__link {
    gap: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.area-card__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ================================================================
   エリア案内「すべて見る」ボタン（白アウトライン、dark 背景専用）
================================================================ */

.btn-area-guide-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.5); /* フォールバック */
  border: 1.5px solid color-mix(in srgb, var(--color-white) 50%, transparent);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .btn-area-guide-more:hover {
    background: rgba(255, 255, 255, 0.1); /* フォールバック */
    background: color-mix(in srgb, var(--color-white) 10%, transparent);
    border-color: var(--color-white);
  }
}
.btn-area-guide-more:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ================================================================
   ご注文の流れ — ステップカード（flow-step）
   .section-flow（背景 var(--color-washi)）上で使用
   design-image.png ステップコンポーネント（step-item__num 踏襲）
================================================================ */

.flow-step {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  /* 和紙背景から浮かせる白カード（design-image.png .bento-card 準拠） */
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: 32px 16px 24px;
}

/* 番号バッジ: design-image.png .step-item__num を section レベルに拡張
   カード上端をまたぐ位置に配置して各ステップの区切りを明確化 */
.flow-step__num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-main);
  color: var(--color-white);
  border: 3px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-serif);
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* SVGアイコン（Lucide outline） */
.flow-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  width: 48px;
  height: 48px;
  margin-top: 8px;
}
.flow-step__icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.75;
}

/* ステップタイトル */
.flow-step__title {
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-main);
  line-height: var(--line-height-normal);
  margin: 0;
}

/* ── コネクター矢印（→ / SP では ↓）────────────────────────── */
.flow-connector {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-main-light); /* 和紙背景上でも視認できる濃度 */
  padding: 0 6px;
  /* reduce-motion: 矢印は静的なのでアニメなし */
}

/* ── メニューリスト（WordPress 標準クラス対応）──────────────── */
.drawer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.drawer-nav__list .menu-item > a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: var(--color-accent); /* 琥珀 #B08D57 */
  text-decoration: none;
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* フォールバック */
  border-bottom-color: color-mix(in srgb, var(--color-white) 10%, transparent);
  transition:
    background 0.15s,
    color 0.15s;
}
.drawer-nav__list .current-menu-item > a {
  background: rgba(255, 255, 255, 0.08); /* フォールバック */
  background: color-mix(in srgb, var(--color-white) 8%, transparent);
  color: var(--color-accent-light);
}

@media (hover: hover) and (pointer: fine) {
  .drawer-nav__list .menu-item > a:hover {
    background: rgba(255, 255, 255, 0.08); /* フォールバック */
    background: color-mix(in srgb, var(--color-white) 8%, transparent);
    color: var(--color-accent-light);
  }
}

/* お問い合わせのみ反転配色で強調（SP ドロワー）
   他項目: 漆黒背景 × 琥珀文字 → ここだけ 琥珀背景 × 漆黒文字 */
.drawer-nav__list .menu-item > a[href*="/contact"] {
  background: var(--color-accent);
  color: var(--color-main);
  font-weight: var(--font-weight-bold);
}

@media (hover: hover) and (pointer: fine) {
  .drawer-nav__list .menu-item > a[href*="/contact"]:hover {
    background: var(--color-accent-light);
    color: var(--color-main);
  }
}

/* ── ドロワーフッター（ログイン・連絡先・補助リンク）─────────── */
.drawer-nav__footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: color-mix(in srgb, var(--color-white) 10%, transparent);
  flex-shrink: 0;
}

/* 連絡先ブロック — top-infobar__contact（PC）と同内容を SP ドロワーに掲出 */
.drawer-contact {
  margin-top: 24px;
  text-align: center;
}
.drawer-contact__tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-family-base);
  font-size: 1.375rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.drawer-contact__tel svg {
  flex-shrink: 0;
}
.drawer-contact__hours {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85); /* フォールバック */
  color: color-mix(in srgb, var(--color-white) 85%, transparent);
}
.drawer-contact__hours > p {
  margin: 0;
}

@media (hover: hover) and (pointer: fine) {
  .drawer-contact__tel:hover {
    color: var(--color-accent);
  }
}

/* 補助リンク（よくあるご質問・会社概要）*/
.drawer-sublinks {
  margin-top: 20px;
}
.drawer-sublinks__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.drawer-sublinks__list > li > a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* フォールバック */
  border-color: color-mix(in srgb, var(--color-white) 30%, transparent);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.85); /* フォールバック */
  color: color-mix(in srgb, var(--color-white) 85%, transparent);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  transition:
    color 0.15s,
    border-color 0.15s;
}

@media (hover: hover) and (pointer: fine) {
  .drawer-sublinks__list > li > a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
  }
}

/* ── スクロールロック（body に JS が付与）────────────────────── */
body.u-noscroll {
  overflow: hidden;
}

/* lg 以上: ドロワーとハンバーガーを非表示 */
@media (min-width: 1025px) {
  .drawer-nav,
  .burger-bars {
    display: none !important;
  }
}

/* ================================================================
   印刷スタイル
================================================================ */

@media print {
  .top-infobar,
  .header-site,
  .footer-site,
  .bento-filter,
  .actions,
  .btn-cart,
  .btn-primary,
  .btn-secondary,
  .btn-normal,
  .pagination {
    display: none !important;
  }
  .main-contents {
    padding-top: 0 !important;
  }
}
