/* ==========================================================================
   MAKE MEDICAL — オンラインショップ（WooCommerce）
   _shared.css のトークン（--tiffany / --gold / --serif ほか）をそのまま使う。
   色を変えるときは _shared.css の :root だけを直せば、ここも一緒に変わる。
   WooCommerce 標準CSSのあとに読み込む前提（上書き用）。

   2026-08-25 全面見直し（内田指摘「ボタンがはみ出す・商品ページのバランスが悪い」）
   ・一覧：4列→3列。価格とボタンは縦積み（横並びは 4列時に内側224pxへ 価格135＋ボタン145 が入らず破綻していた）
   ・商品ページ：WooCommerce の woocommerce-layout.css にある
       div.images{float:left;width:48%} / div.summary{float:right;width:48%}
     がテーマの上書きより残り、grid の各列がさらに半分に潰れていた。
     → width:100% / float:none を !important で確実に勝たせる（該当箇所だけに限定）
   ・390px幅で横はみ出しゼロ。ボタン文字は枠内で折り返せる保険を掛ける
   2026-08-25 実機検品の差し戻し3点：購入手続きの請求先列（#customer_details.col2-set）を縦積み／
     カートのクーポン入力欄（WC既定 width:80px）／クーポンボタンのSP折れ
   2026-08-25 8観点再点検（所見78件）のCSS担当分を反映：ヘッダーのカゴ・トースト・商品名2段・
     無料お試し導線・購入手続きの右カラム固定・select2の高さ・カートSPの組み直し・
     見出し署名とフォーム部品の統一（参照＝機種ページ／お問い合わせページ）
   2026-08-25 第3便の残り2点：PCカートの削除×を40px円に／SP一覧のAJAX追加後の✓で2行に折れるのを防止
   ========================================================================== */

/* ---------- 見本サイトの帯 ---------- */
.sp-demobar{background:#3d2b00;color:#ffe9a8;font-size:.82rem;line-height:1.6;
  text-align:center;padding:10px 18px;font-weight:600;letter-spacing:.01em}
.sp-demobar b{color:#fff}

/* ---------- ヘッダーのカゴ（parts/header.php・ショップ画面だけ出る） ---------- */
header.nav .hdr-cart{display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;
  padding:0 8px;color:var(--on-tiff);font-weight:700;font-size:.85rem;text-decoration:none;
  white-space:nowrap;border-radius:6px}
header.nav .hdr-cart svg{width:20px;height:20px;flex:0 0 auto}
header.nav .hdr-cart span{border-bottom:1px solid transparent;line-height:1.3;transition:border-color .2s}
header.nav .hdr-cart:hover span{border-color:var(--gold-on-tiff)}
/* 本文中の a の色指定（下の .sp-archive a 等）が届かないよう、ヘッダー・フッター・モバイルメニューはこのファイルで触らない */
footer nav a{white-space:nowrap;display:inline-block}

/* ---------- カゴに追加したときのトースト（inc-shop.php 18） ---------- */
.sp-toast{position:fixed;left:50%;bottom:24px;z-index:100;display:flex;align-items:center;gap:14px;
  max-width:calc(100% - 32px);background:#fff;color:var(--teal-ink);border:1px solid var(--line);
  border-radius:12px;padding:12px 14px 12px 18px;box-shadow:0 18px 40px -18px rgba(6,49,58,.6);
  font-size:.92rem;font-weight:700;line-height:1.5;
  opacity:0;transform:translate(-50%,16px);transition:opacity .3s ease,transform .3s ease}
.sp-toast[hidden]{display:none}
.sp-toast.on{opacity:1;transform:translate(-50%,0)}
.sp-toast-tx{white-space:nowrap}
.sp-toast-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;
  background:var(--teal);color:#04343a;border-radius:6px;text-decoration:none;white-space:nowrap;font-size:.88rem}
.sp-toast-btn:hover{background:var(--teal-d);color:#04343a}
@media(prefers-reduced-motion:reduce){.sp-toast{transition:none;transform:translate(-50%,0)}}

/* ---------- 共通 ---------- */
.sp-archive{padding:56px 0 88px}
.sp-single{padding:34px 0 80px}
/* 本文中のリンク色。body.woocommerce の a 全部に当てるとヘッダー・フッター・モバイルメニュー（白文字）まで
   濃色になるので、ショップの本文の器（.sp-archive／.sp-single／.sp-page）に限定する */
.sp-archive a,.sp-single a,.sp-page a{color:var(--tx-d)}
.woocommerce .button,.woocommerce a.button,.woocommerce button.button,
.woocommerce input.button,.woocommerce #respond input#submit{
  display:inline-flex;align-items:center;justify-content:center;gap:.4em;
  background:var(--teal);color:#04343a;font-family:inherit;font-weight:700;
  border:0;border-radius:6px;padding:14px 26px;min-height:46px;font-size:.95rem;
  letter-spacing:.02em;line-height:1.4;text-decoration:none;cursor:pointer;
  transition:.25s;box-shadow:0 10px 24px -16px rgba(6,49,58,.6)}
.woocommerce .button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,
.woocommerce input.button:hover,.woocommerce #respond input#submit:hover{
  background:var(--teal-d);color:#04343a;transform:translateY(-2px)}
.woocommerce .button.alt,.woocommerce a.button.alt,.woocommerce button.button.alt,
.woocommerce input.button.alt{background:var(--gold);color:#2a1f00}
.woocommerce .button.alt:hover,.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover{background:var(--gold-h);color:#2a1f00}
.woocommerce .button:disabled,.woocommerce .button.disabled{opacity:.45;box-shadow:none;transform:none}

/* お知らせ（カゴに入れました／エラー等） */
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  border-top:0;border-left:3px solid var(--tiffany);background:var(--tiff-pale);
  color:var(--teal-ink);border-radius:8px;padding:16px 20px;font-size:.94rem;
  list-style:none;margin:0 0 26px;box-shadow:none}
.woocommerce-error{border-left-color:#b4462f;background:#fdf3f1;color:#7d2c1c}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{display:none}
.woocommerce-message .button,.woocommerce-info .button{padding:9px 18px;min-height:38px;font-size:.84rem}

/* ---------- 商品一覧 ---------- */
/* 二重h1は inc-shop.php 13 の woocommerce_show_page_title=false で止めている。ここは万一の保険だけ */
.sp-archive h1.page-title,.sp-archive .woocommerce-result-count,.sp-archive .woocommerce-breadcrumb{display:none}
/* カテゴリー説明を入れた場合の組み（今は未使用） */
.sp-archive .term-description{margin:0 0 30px;max-width:46em;font-size:.95rem;color:var(--sub);line-height:1.9}
.sp-archive .term-description p{margin:0 0 .8em}
.sp-archive .term-description p:last-child{margin-bottom:0}

.sp-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;
  flex-wrap:wrap;margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.sp-count{font-size:.9rem;color:var(--sub);margin:0}
.sp-count b{font-family:var(--serif);font-size:1.15rem;color:var(--teal-ink);margin:0 3px}
.sp-cats{display:flex;flex-wrap:wrap;gap:9px}
.sp-chip{display:inline-flex;align-items:center;background:#fff;border:1px solid var(--line);
  color:var(--tx-d);border-radius:99px;padding:8px 16px;font-size:.83rem;font-weight:700;
  text-decoration:none;transition:.2s;min-height:38px}
.sp-chip:hover{border-color:var(--tiffany);background:var(--tiff-pale)}
.sp-chip.on,.sp-chip[aria-current]{background:var(--teal);border-color:var(--teal);color:#04343a}

/* グリッド：3列（1120px幅で1カード約357px）。
   WooCommerce側の float／% 幅（.columns-3 li.product{width:30.75%} など）は
   グリッドの中で効くと1カードが列幅の3割に縮むので、幅・floatだけ !important で無効化する */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px 24px;margin:0;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product{
  width:auto!important;float:none!important;margin:0!important;padding:0;min-width:0;
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:12px;overflow:hidden;transition:box-shadow .25s,transform .25s,border-color .25s}
.woocommerce ul.products li.product:hover{box-shadow:0 10px 28px rgba(8,60,68,.10);
  transform:translateY(-2px);border-color:var(--tiff-l)}

/* 写真枠：正方・白地＋細罫・contain・余白16px（白背景の機種写真が浮かないよう地は白） */
.woocommerce ul.products li.product .sp-ph{position:relative;display:block;aspect-ratio:1/1;
  background:#fff;border-bottom:1px solid var(--line);overflow:hidden;margin:0}
.woocommerce ul.products li.product .sp-ph img{position:absolute;inset:0;width:100%;height:100%;
  padding:16px;object-fit:contain;display:block;margin:0;border-radius:0;box-shadow:none}

.woocommerce ul.products li.product .sp-bd{display:flex;flex-direction:column;flex:1;
  padding:16px 18px 18px;min-width:0}
/* 商品名：ゴシック太字。2行分の高さを確保して、隣のカードと価格の位置を揃える
   （3行以上の長い名前は切らずにそのまま伸ばす。行の高さはグリッドが揃える） */
.woocommerce ul.products li.product .sp-nm{font-family:var(--sans);font-weight:700;color:var(--teal-ink);
  font-size:.95rem;line-height:1.55;min-height:calc(1.55em * 2);
  word-break:auto-phrase;overflow-wrap:anywhere;margin:0;padding:0}
.woocommerce ul.products li.product .sp-nm a{text-decoration:none;color:inherit}
.woocommerce ul.products li.product .sp-nm a:hover{color:var(--tx)}

/* 価格→ボタンの縦積み。横並びは禁止（幅が足りずはみ出す） */
.woocommerce ul.products li.product .sp-ft{display:flex;flex-direction:column;align-items:stretch;
  gap:12px;margin-top:auto;padding-top:14px}
.woocommerce ul.products li.product .sp-pr{display:block;font-family:var(--serif);font-weight:700;
  color:var(--tx-d);font-size:1.2rem;line-height:1.35;letter-spacing:.01em}
.woocommerce ul.products li.product .sp-pr .woocommerce-Price-amount{font-family:var(--serif);color:inherit}
/* 「円（税込）」は小さく・ひとかたまりで。狭い幅では金額の次の行にまとまって落ちる（途中で割れない） */
.woocommerce ul.products li.product .sp-pr .woocommerce-Price-currencySymbol{display:inline-block;
  font-family:var(--sans);font-size:.7em;font-weight:700;color:var(--sub);white-space:nowrap;margin-left:.1em}
.woocommerce ul.products li.product .sp-pr del{color:var(--muted);font-size:.75em;margin-right:.4em;font-weight:400}
.woocommerce ul.products li.product .sp-pr ins{text-decoration:none}
.woocommerce ul.products li.product .sp-btn{display:block;min-width:0}
.woocommerce ul.products li.product .sp-btn a.button,
.woocommerce ul.products li.product .sp-btn .button{display:inline-flex;width:100%;margin:0;
  padding:11px 16px;min-height:44px;font-size:.84rem;line-height:1.35;text-align:center;
  white-space:normal;box-shadow:none;border-radius:6px}
.woocommerce ul.products li.product .sp-btn a.button:hover{transform:none;background:var(--teal-d)}
/* AJAX追加後にWCがボタンの直後へ差し込む「お買い物カゴを見る」。唯一のカゴ導線なので小さな下線リンクで出す */
.woocommerce ul.products li.product .sp-btn .added_to_cart{display:block;margin:8px 0 0;padding:0;
  min-height:32px;line-height:32px;text-align:center;font-size:.8rem;font-weight:700;
  color:var(--tx);text-decoration:underline;text-underline-offset:3px}
.woocommerce ul.products li.product .sp-btn .added_to_cart:hover{color:var(--teal-ink)}

/* ページ送り */
.woocommerce nav.woocommerce-pagination{margin-top:46px}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:8px;justify-content:center}
.woocommerce nav.woocommerce-pagination ul li{border:0;margin:0}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{border:1px solid var(--line);border-radius:8px;
  min-width:42px;height:42px;display:flex;align-items:center;justify-content:center;
  font-weight:700;color:var(--tx-d);background:#fff}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--teal);border-color:var(--teal);color:#04343a}

/* ---------- 商品ページ ---------- */
.crumb2{font-size:.82rem;color:var(--muted);margin-bottom:22px;word-break:auto-phrase;line-height:1.8}
.sp-single .crumb2 a{color:var(--tx);text-decoration:none;display:inline-block;padding:6px 2px;margin:-6px 0}
.sp-single .crumb2 a:hover{color:var(--tx-d);text-decoration:underline;text-underline-offset:3px}

/* 2カラム本体：写真 46% ／ 説明 54%、列の間 48px・行の間 24px。
   下の div.images / div.summary への !important は、woocommerce-layout.css の
   float:left/right + width:48% に確実に勝たせるためのもの（外すと各列が半分に潰れる） */
.woocommerce div.product{display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr);
  gap:24px 48px;align-items:start;position:relative}
.woocommerce div.product::before,.woocommerce div.product::after{display:none}
/* SP先出しの商品名（inc-shop.php 14）。PCでは出さない */
.woocommerce div.product .sp-title-mobile{display:none;min-width:0}

.woocommerce div.product div.images,
.woocommerce div.product div.images.woocommerce-product-gallery,
.woocommerce-page div.product div.images,
.woocommerce #content div.product div.images,
.woocommerce-page #content div.product div.images{
  width:100%!important;float:none!important;margin:0!important;min-width:0;
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;overflow:hidden}
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary,
.woocommerce #content div.product div.summary,
.woocommerce-page #content div.product div.summary{
  width:100%!important;float:none!important;margin:0!important;min-width:0}

/* メイン写真は枠いっぱい */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper{margin:0;padding:0}
.woocommerce div.product div.images .woocommerce-product-gallery__image{border-radius:10px;overflow:hidden;background:#fbfaf6}
.woocommerce div.product div.images .woocommerce-product-gallery__image img{width:100%;height:auto;display:block;border-radius:10px}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger{top:22px;right:22px;background:#fff;border:1px solid var(--line)}
/* サムネは5列（WooCommerce側の width:25% / float:left / li img{opacity:.5} を同じ詳細度以上で上書き） */
.woocommerce div.product div.images .flex-control-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;margin:12px 0 0;padding:0;overflow:visible}
.woocommerce div.product div.images .flex-control-thumbs li{width:auto!important;float:none!important;margin:0;list-style:none}
.woocommerce div.product div.images .flex-control-thumbs li img{width:100%;border:1px solid var(--line);border-radius:6px;
  background:#fff;opacity:.7;transition:.2s;margin:0;cursor:pointer}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover{opacity:1;border-color:var(--tiffany)}

/* 商品名：型番（明朝・大）＋説明（サンス・小）の2段。参照＝機種ページ「MEGA9000」の見出し階層
   型番と説明は inc-shop.php 14 が「｜」で分ける。分かれない名前（付属品）は1段で少し小さく */
.woocommerce div.product .product_title,
.woocommerce div.product .sp-title{font-family:var(--serif);font-weight:700;
  font-size:clamp(22px,2.2vw,27px);color:var(--teal-ink);line-height:1.5;
  letter-spacing:.01em;margin:0 0 14px;padding:0;clear:none;
  word-break:auto-phrase;overflow-wrap:anywhere;line-break:strict}
.woocommerce div.product .sp-title .sp-model{display:block;font-family:var(--serif);font-weight:800;
  font-size:clamp(26px,2.6vw,34px);line-height:1.25;letter-spacing:.02em;color:var(--teal-ink)}
.woocommerce div.product .sp-title .sp-model-sub{display:block;font-family:var(--sans);font-weight:500;
  font-size:.95rem;line-height:1.7;letter-spacing:0;color:var(--sub);margin-top:6px}
.woocommerce div.product .sp-title:not(:has(.sp-model-sub)) .sp-model{font-size:clamp(22px,2.2vw,28px);line-height:1.45;font-weight:700}

/* 価格：金の左罫＋サンド地（型はそのまま。大きさだけ整える） */
.woocommerce div.product p.price,.woocommerce div.product span.price{
  display:block;background:#fbfaf6;border:1px solid var(--line);border-left:3px solid var(--gold);
  border-radius:10px;padding:16px 20px;margin:0 0 20px;line-height:1.3;
  font-family:var(--serif);font-weight:700;font-size:1.6rem;color:var(--teal-ink)}
.woocommerce div.product p.price .woocommerce-Price-amount,
.woocommerce div.product span.price .woocommerce-Price-amount{font-family:var(--serif);color:inherit;white-space:nowrap}
.woocommerce div.product p.price .woocommerce-Price-currencySymbol,
.woocommerce div.product span.price .woocommerce-Price-currencySymbol{display:inline-block;
  font-family:var(--sans);font-size:.6em;font-weight:700;color:var(--sub);white-space:nowrap;margin-left:.15em}
.woocommerce div.product p.price del,.woocommerce div.product span.price del{color:var(--muted);font-size:.7em;margin-right:.5em;font-weight:400}
.woocommerce div.product p.price ins,.woocommerce div.product span.price ins{text-decoration:none;background:transparent}

.woocommerce div.product .woocommerce-product-details__short-description{
  color:var(--sub);font-size:.96rem;line-height:1.9;margin-bottom:22px}
.woocommerce div.product .woocommerce-product-details__short-description p{margin-bottom:.8em}
.woocommerce div.product .woocommerce-product-details__short-description p:last-child{margin-bottom:0}

/* カゴに入れる：数量＋ボタンを1行。WooCommerce側の clearfix（::after）は flex の中で
   余分な gap を生むので消す */
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;
  margin:0 0 10px;padding:18px;background:var(--tiff-pale);border:1px solid var(--teal-l);border-radius:12px}
.woocommerce div.product form.cart::before,.woocommerce div.product form.cart::after{display:none}
.woocommerce div.product form.cart div.quantity{display:flex;flex:0 0 auto;float:none;margin:0}
.woocommerce div.product form.cart .quantity input.qty{width:82px;min-height:54px;
  border:1px solid var(--line);border-radius:6px;text-align:center;font-family:inherit;
  font-size:1.05rem;font-weight:700;color:var(--teal-ink);background:#fff;padding:0 6px}
/* 目立つが下品にしない：サイト主ボタンと同じティファニー地＋濃色文字。
   WooCommerce が付ける .alt（金）はここでは使わず、金は「購入手続きへ進む／注文する」に残す */
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product form.cart button.single_add_to_cart_button.alt{
  flex:1 1 200px;min-width:0;float:none;margin:0;min-height:54px;padding:14px 22px;
  font-size:1rem;letter-spacing:.03em;background:var(--teal);color:#04343a;
  box-shadow:0 12px 26px -16px rgba(6,49,58,.6)}
.woocommerce div.product form.cart button.single_add_to_cart_button:hover{background:var(--teal-d);color:#04343a}
/* 10万円以上の機種に出る「2週間 無料お試し」（inc-shop.php 15）。カゴが主（ティファニー）、お試しは副（白地＋金枠） */
.woocommerce div.product .summary a.btn.sp-trial{display:flex;width:100%;margin:0 0 0;min-height:50px;padding:12px 20px;
  background:#fff;color:var(--gold-d);border:1.5px solid var(--gold);border-radius:6px;box-shadow:none;
  font-size:.98rem;letter-spacing:.02em;text-decoration:none}
.woocommerce div.product .summary a.btn.sp-trial:hover{background:var(--gold);color:#2a1f00;transform:translateY(-2px)}
.woocommerce div.product .stock{color:var(--tx-d);font-weight:700;font-size:.88rem;margin:0 0 12px}
.woocommerce div.product .product_meta{font-size:.84rem;color:var(--muted);
  border-top:1px solid var(--line);padding-top:14px;margin-top:18px}
.woocommerce div.product .product_meta>span{display:block;margin-bottom:2px}
.woocommerce div.product .product_meta a{color:var(--tx);text-decoration:none;display:inline-block;padding:6px 0}

/* 買う前に知りたい3行（inc-shop.php 7） */
.sp-trust{display:grid;gap:10px;margin-top:18px}
.sp-trust div{display:flex;gap:10px;align-items:flex-start;font-size:.88rem;color:var(--sub);line-height:1.7}
.sp-trust div::before{content:"";flex:0 0 auto;width:7px;height:7px;border-radius:50%;
  background:var(--tiffany);margin-top:.55em}
.sp-trust .sp-tel{font-weight:700;color:var(--teal-ink);text-decoration:underline;text-underline-offset:3px;
  margin-left:.4em;white-space:nowrap}
.sp-trust .sp-tel:hover{color:var(--tx)}

/* 説明・関連商品は2カラムの下に全幅で置く */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells{grid-column:1/-1;margin-top:40px;min-width:0}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:0 0 26px;
  display:flex;gap:8px;flex-wrap:wrap}
/* タブが「説明」1つしか無いときはピルを出さず、パネル先頭の h2 を見出しとして使う */
.woocommerce div.product .woocommerce-tabs ul.tabs:has(li:only-child){display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:#fff;border:1px solid var(--line);
  border-radius:99px;margin:0;padding:0;box-shadow:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:inline-flex;align-items:center;
  padding:10px 22px;min-height:42px;font-weight:700;color:var(--tx-d);font-size:.9rem;text-decoration:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--teal);border-color:var(--teal)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:#04343a}
.woocommerce div.product .woocommerce-tabs .panel{margin:0;padding:0}

/* セクション見出しの署名（参照＝機種ページ「SPECIFICATIONS ／ MEGA9000 の仕様」）：
   モノ小見出し（30pxの罫＋英字）＋明朝。下罫は 2px ティファニー・全幅の1種類だけ */
.woocommerce div.product .related>h2,
.woocommerce div.product .upsells>h2,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel>h2:first-child{
  display:block;font-family:var(--serif);font-weight:700;font-size:clamp(24px,2.6vw,30px);line-height:1.4;
  color:var(--teal-ink);letter-spacing:.01em;margin:0 0 26px;padding:0 0 14px;
  border:0;border-bottom:2px solid var(--tiffany)}
.woocommerce div.product .related>h2::before,
.woocommerce div.product .upsells>h2::before,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel>h2:first-child::before{
  display:block;font-family:var(--mono);font-size:12px;line-height:1.4;letter-spacing:.28em;text-transform:uppercase;
  font-weight:700;color:var(--gold-d);margin-bottom:12px;padding-left:42px;
  background:linear-gradient(var(--teal),var(--teal)) 0 50%/30px 2px no-repeat}
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel>h2:first-child::before{content:"Product details"}
.woocommerce div.product .related>h2::before{content:"Related products"}
.woocommerce div.product .upsells>h2::before{content:"Recommended"}

/* 本文の1行が長くなりすぎないよう読みやすい幅で止める（枠は全幅のまま）。表が広いときは横スクロールで受ける */
.woocommerce div.product .woocommerce-Tabs-panel{font-size:.96rem;line-height:1.95;color:var(--ink);max-width:900px;overflow-x:auto}
.woocommerce div.product .woocommerce-Tabs-panel p{margin:0 0 1.2em}
.woocommerce div.product .woocommerce-Tabs-panel a>br{display:none}
.woocommerce div.product .woocommerce-Tabs-panel img{border-radius:10px;margin:20px auto;max-width:100%;height:auto}
.woocommerce div.product .woocommerce-Tabs-panel h2,
.woocommerce div.product .woocommerce-Tabs-panel h3,
.woocommerce div.product .woocommerce-Tabs-panel h4{font-family:var(--serif);color:var(--teal-ink);
  margin:34px 0 12px;line-height:1.5;word-break:auto-phrase}
.woocommerce div.product .woocommerce-Tabs-panel h2{font-size:1.35rem;padding-bottom:.4em;border-bottom:1px solid var(--line)}
.woocommerce div.product .woocommerce-Tabs-panel h3{font-size:1.15rem;padding-left:.6em;border-left:4px solid var(--tiffany)}
.woocommerce div.product .woocommerce-Tabs-panel h4{font-size:1.02rem}
.woocommerce div.product .woocommerce-Tabs-panel ul,
.woocommerce div.product .woocommerce-Tabs-panel ol{margin:0 0 1.4em;padding-left:1.4em}
.woocommerce div.product .woocommerce-Tabs-panel li{margin-bottom:.4em}
.woocommerce div.product .woocommerce-Tabs-panel ul li::marker{color:var(--tiffany)}
.woocommerce div.product .woocommerce-Tabs-panel table{display:table;width:100%;min-width:100%;border-collapse:collapse;margin:0 0 1.6em;font-size:.92rem}
.woocommerce div.product .woocommerce-Tabs-panel th,
.woocommerce div.product .woocommerce-Tabs-panel td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top;
  word-break:auto-phrase;line-break:strict}
.woocommerce div.product .woocommerce-Tabs-panel th{background:var(--tiff-pale);color:var(--teal-ink);font-weight:700}
.woocommerce div.product .woocommerce-Tabs-panel a{color:var(--tx);font-weight:700;overflow-wrap:anywhere}

.woocommerce div.product .related,.woocommerce div.product .upsells{padding-top:0}

/* ---------- カート・購入手続き・マイページ 共通の器 ---------- */
.sp-page{padding:52px 0 88px}
.sp-hero .ph-lead{max-width:42em}
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:12px;border-collapse:separate;
  border-spacing:0;overflow:hidden;background:#fff}
.woocommerce table.shop_table th{background:var(--tiff-pale);color:var(--teal-ink);
  font-weight:700;font-size:.88rem;padding:16px 14px;border:0;border-bottom:1px solid var(--line)}
.woocommerce table.shop_table td{padding:18px 14px;border:0;border-bottom:1px solid var(--line);
  vertical-align:middle;font-size:.94rem}
.woocommerce table.shop_table tr:last-child td{border-bottom:0}
/* 金額は「円（税込）」の途中で割らない */
.woocommerce table.shop_table .woocommerce-Price-amount{white-space:nowrap}
.woocommerce table.cart img{width:74px;border-radius:8px;border:1px solid var(--line)}
.woocommerce table.cart td.product-name a{font-weight:700;color:var(--teal-ink);text-decoration:none;
  word-break:auto-phrase}
/* 金額・数量・小計は右揃え */
.woocommerce table.cart th.product-price,.woocommerce table.cart th.product-quantity,.woocommerce table.cart th.product-subtotal,
.woocommerce table.cart td.product-price,.woocommerce table.cart td.product-quantity,.woocommerce table.cart td.product-subtotal{text-align:right}
.woocommerce table.cart td.product-quantity .quantity{display:inline-block}
/* 削除×：PCでも 40px の円ヒットエリア（WC既定は 1em=23px・color:red!important なので色も !important で揃える） */
.woocommerce table.cart td.product-remove{text-align:center;vertical-align:middle;padding-left:10px;padding-right:10px}
.woocommerce a.remove{display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0 auto;
  border-radius:50%;background:#fdf3f1;color:#b4462f!important;font-size:1.3rem;font-weight:400;line-height:1;text-decoration:none}
.woocommerce a.remove:hover{background:#b4462f;color:#fff!important}
.woocommerce .quantity input.qty{width:74px;min-height:44px;border:1px solid var(--line);
  border-radius:6px;text-align:center;font-family:inherit;font-weight:700;color:var(--teal-ink);background:#fbfaf6}
.woocommerce .cart-collaterals{margin-top:38px}
.woocommerce .cart_totals{background:var(--sand);border-radius:14px;padding:26px 28px}
.woocommerce .cart_totals h2{font-family:var(--serif);font-size:1.3rem;color:var(--teal-ink);margin-bottom:16px}
.woocommerce .cart_totals table.shop_table{background:transparent;border:0}
.woocommerce .cart_totals table.shop_table th,.woocommerce .cart_totals table.shop_table td{
  background:transparent;border-bottom:1px dashed rgba(14,82,96,.22);padding:14px 0}
.woocommerce .cart_totals table.shop_table td{text-align:right}
.woocommerce .cart_totals table.shop_table tr.order-total th,
.woocommerce .cart_totals table.shop_table tr.order-total td{
  border-bottom:0;font-family:var(--serif);font-size:1.2rem;color:var(--teal-ink)}
.woocommerce .wc-proceed-to-checkout{padding-top:20px}
.woocommerce .wc-proceed-to-checkout a.checkout-button{width:100%;font-size:1.02rem;padding:18px 24px}
/* クーポン欄：WooCommerce既定の input{width:80px} が残り「クーポンコ」で切れていた（実測）。
   入力欄＋ボタンを flex で1行に。幅はWC側の詳細度が高いので !important で勝たせる。ボタンは白地＋細枠の副ボタン */
.woocommerce .cart .actions .coupon{display:flex;gap:10px;align-items:stretch;float:left;margin:0}
.woocommerce .cart .actions .coupon::before,.woocommerce .cart .actions .coupon::after{display:none}
.woocommerce .cart .actions .coupon input.input-text{width:auto!important;min-width:220px;flex:1 1 220px;
  float:none;margin:0;border:1px solid var(--line);border-radius:4px;min-height:46px;padding:0 14px;
  font-family:inherit;font-size:.95rem;color:var(--ink);background:#fbfaf6;line-height:1.6}
.woocommerce .cart .actions .coupon .button{white-space:nowrap;flex:0 0 auto;float:none;margin:0;
  background:#fff;color:var(--tx-d);border:1.5px solid var(--tiff-l);box-shadow:none}
.woocommerce .cart .actions .coupon .button:hover{background:var(--tiff-pale);color:var(--teal-ink);border-color:var(--tiffany);transform:none}
.woocommerce .cart-empty{font-family:var(--serif);font-size:1.25rem;color:var(--teal-ink);
  background:var(--tiff-pale);border-radius:12px;padding:34px;text-align:center;line-height:1.7}
.woocommerce .return-to-shop{text-align:center;margin-top:22px}

/* 購入手続き：左＝お届け先フォーム（2行ぶち抜き）、右＝見出し（1行目）＋注文内容（2行目・追従）。
   行を指定しないと #order_review がフォーム全体の高さぶん下に落ちる（実測） */
.woocommerce form.checkout{display:grid;grid-template-columns:1.1fr .9fr;grid-template-rows:auto 1fr;
  gap:0 44px;align-items:start}
.woocommerce form.checkout #customer_details{grid-column:1;grid-row:1/3;min-width:0}
.woocommerce form.checkout #order_review_heading{grid-column:2;grid-row:1;min-width:0}
.woocommerce form.checkout #order_review{grid-column:2;grid-row:2;min-width:0;align-self:start;position:sticky;top:90px}
/* 購入手続きの #customer_details にはWCが col2-set を付ける。下のマイページ用 .col2-set{grid 1fr 1fr} が
   ここにも効いて請求先が279pxに割れ左右逆転していた（実測）。購入手続きだけ縦積み（お届け先→別住所→ご要望） */
.woocommerce-checkout #customer_details.col2-set{display:block}
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2{width:100%;float:none;margin:0;min-width:0}
.woocommerce-checkout #customer_details .col-2{margin-top:28px}
.woocommerce-checkout h3{font-family:var(--serif);font-size:1.25rem;
  color:var(--teal-ink);margin:0 0 18px;padding-bottom:12px;border-bottom:2px solid var(--tiffany)}
/* 「別の住所へお届けしますか？」：WCの float を外して下罫を列幅いっぱいに。チェックは 20px（_shared.css .agree-label と同じ） */
.woocommerce-checkout #customer_details h3#ship-to-different-address{display:block;float:none;width:100%;clear:both}
.woocommerce-checkout #customer_details h3#ship-to-different-address label{display:inline-flex;align-items:center;gap:10px;
  cursor:pointer;font-weight:700;margin:0}
.woocommerce-checkout #customer_details h3#ship-to-different-address input[type=checkbox]{width:20px;height:20px;margin:0;
  flex:0 0 auto;accent-color:var(--teal)}

/* フォーム部品はお問い合わせページ（.formrow）の文法に揃える：
   ラベル太字＋金色の小さな「必須」、入力欄は #fbfaf6 地・角丸4px。購入手続き・マイページ・カート共通 */
.woocommerce form .form-row{padding:0;margin:0 0 16px}
.woocommerce form .form-row label{display:block;font-weight:700;font-size:.88rem;
  color:var(--teal-ink);margin-bottom:6px}
.woocommerce form .form-row label .optional{font-weight:400;font-size:.78rem;color:var(--muted);margin-left:4px}
.woocommerce form .form-row .required{font-size:0;color:transparent;text-decoration:none;border:0}
.woocommerce form .form-row .required::after{content:"必須";font-size:.72rem;font-weight:700;color:var(--gold);
  margin-left:6px;letter-spacing:.02em;vertical-align:1px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,
.woocommerce form .form-row select{
  width:100%;border:1px solid var(--line);border-radius:4px;min-height:48px;padding:12px 14px;
  font-family:inherit;font-size:.96rem;color:var(--ink);background:#fbfaf6;line-height:1.6}
.woocommerce form .form-row textarea,.woocommerce form .form-row textarea.input-text{min-height:110px;border:1px solid var(--line);resize:vertical}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus{border-color:var(--tiffany);outline:0}
/* キーボード操作の枠は全サイト共通のゴールド（_shared.css の a/button と同じ） */
.woocommerce form .form-row input.input-text:focus-visible,.woocommerce form .form-row textarea:focus-visible,
.woocommerce form .form-row select:focus-visible,.woocommerce .quantity input.qty:focus-visible,
.woocommerce .cart .actions .coupon input.input-text:focus-visible,
.select2-container--default.select2-container--focus .select2-selection--single{outline:3px solid var(--gold);outline-offset:3px}
/* 都道府県（select2）：外枠は padding 0・高さ48px、中身の行送り46px。二重取りで郵便番号欄の1.8倍になっていた */
.select2-container .select2-selection--single{width:100%;height:48px;min-height:48px;padding:0;
  border:1px solid var(--line);border-radius:4px;background:#fbfaf6;box-sizing:border-box}
.select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height:46px;padding:0 36px 0 14px;color:var(--ink);font-size:.96rem}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:46px;top:0;right:8px}
.select2-container--default.select2-container--open .select2-selection--single{border-color:var(--tiffany)}
.select2-dropdown{border:1px solid var(--line);border-radius:4px;font-family:inherit}
.select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--teal);color:#04343a}

.woocommerce-checkout #order_review{background:var(--sand);border-radius:14px;padding:26px 28px}
.woocommerce-checkout #order_review table.shop_table{background:transparent;border:0;table-layout:auto}
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td{background:transparent;
  border-bottom:1px dashed rgba(14,82,96,.22);padding:13px 0;font-size:.92rem;vertical-align:top}
/* 金額列は右揃え・1行。商品名列（左）が縮んで折り返す */
.woocommerce-checkout #order_review table.shop_table th:last-child,
.woocommerce-checkout #order_review table.shop_table td:last-child{text-align:right;padding-left:12px}
.woocommerce-checkout #order_review table.shop_table td.product-total,
.woocommerce-checkout #order_review table.shop_table tr.cart-subtotal td,
.woocommerce-checkout #order_review table.shop_table tr.order-total td{white-space:nowrap;width:1%}
.woocommerce-checkout #order_review table.shop_table td.product-name{word-break:auto-phrase}
.woocommerce-checkout #order_review tr.order-total th,
.woocommerce-checkout #order_review tr.order-total td{border-bottom:0;font-family:var(--serif);
  font-size:1.18rem;color:var(--teal-ink)}
.woocommerce-checkout #order_review ul#shipping_method{list-style:none;margin:0;padding:0}
.woocommerce-checkout #order_review ul#shipping_method li{margin:0;padding:0}
.woocommerce-checkout #payment{background:#fff;border:1px solid var(--line);border-radius:12px;margin-top:20px}
.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--line);padding:20px}
.woocommerce-checkout #payment ul.payment_methods li{list-style:none;margin-bottom:10px}
.woocommerce-checkout #payment ul.payment_methods label{font-weight:700;color:var(--teal-ink)}
.woocommerce-checkout #payment div.payment_box{background:var(--tiff-pale);color:var(--teal-ink);
  font-size:.88rem;border-radius:8px;line-height:1.75}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--tiff-pale)}
.woocommerce-checkout #payment div.form-row{padding:20px}
.woocommerce-checkout #payment div.place-order{padding:20px}
.woocommerce-checkout #payment #place_order{width:100%;font-size:1.05rem;padding:19px 24px;margin:0}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper{font-size:.88rem;color:var(--sub);line-height:1.8;margin:0 0 18px}
.woocommerce-checkout .woocommerce-privacy-policy-text p{margin:0}

/* マイページ（ログイン後）：左ナビ＋右コンテンツ */
.woocommerce-account .woocommerce{display:grid;grid-template-columns:250px 1fr;gap:44px;align-items:start}
.woocommerce-account .woocommerce-MyAccount-navigation{width:auto;float:none}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;
  background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.woocommerce-account .woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--line)}
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child{border-bottom:0}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:15px 18px;
  text-decoration:none;font-weight:700;font-size:.92rem;color:var(--tx-d)}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:var(--tiff-pale)}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--teal);color:#04343a}
.woocommerce-account .woocommerce-MyAccount-content{width:auto;float:none;min-width:0}
.woocommerce-account .woocommerce-MyAccount-content p{margin-bottom:1em}
/* ログイン前：左ナビが無いのに2列グリッドだと「ログイン」の見出しだけ左に取り残される。
   1列にして、見出し→フォームを中央 600px に揃える（登録フォーム併設時の2列 .col2-set はそのまま） */
body.woocommerce-account:not(.logged-in) .woocommerce{display:block}
body.woocommerce-account:not(.logged-in) .woocommerce>h2,
body.woocommerce-account:not(.logged-in) .woocommerce>form.login,
body.woocommerce-account:not(.logged-in) .woocommerce>form.lost_reset_password,
body.woocommerce-account:not(.logged-in) .woocommerce>.woocommerce-notices-wrapper{max-width:600px;margin-left:auto;margin-right:auto}
.woocommerce-account .woocommerce>h2,.woocommerce .col2-set h2{font-family:var(--serif);font-size:1.3rem;
  color:var(--teal-ink);line-height:1.5;margin:0 0 16px}
.woocommerce .col2-set{display:grid;grid-template-columns:1fr 1fr;gap:34px}
.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2{width:auto;float:none;min-width:0}
.woocommerce form.login,.woocommerce form.register,
.woocommerce form.lost_reset_password{border:1px solid var(--line);border-radius:14px;
  padding:28px 30px;background:#fff;margin:0}
.woocommerce form.login .form-row,.woocommerce form.register .form-row{padding:0}
.woocommerce form.login .form-row label.woocommerce-form-login__rememberme{display:inline-flex;align-items:center;gap:8px;
  margin:0 0 0 14px;font-weight:400;font-size:.88rem;color:var(--sub)}
.woocommerce form.login .form-row label.woocommerce-form-login__rememberme input{width:18px;height:18px;margin:0;accent-color:var(--teal)}
.woocommerce form.login .form-row button.woocommerce-form-login__submit{vertical-align:middle}
.woocommerce-LostPassword{font-size:.88rem;margin-top:12px}
/* 「パスワードを表示」の目アイコンは 44px のタップ領域に */
.woocommerce form .password-input{position:relative;display:block}
.woocommerce form .password-input input.input-text{padding-right:52px}
.woocommerce form .show-password-input{position:absolute;top:50%;right:4px;transform:translateY(-50%);
  width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  margin:0;padding:0;border:0;background:transparent;cursor:pointer;color:var(--muted);border-radius:6px}
.woocommerce form .show-password-input:hover{color:var(--teal-ink);background:var(--tiff-pale)}

/* ---------- タブレット・スマホ ---------- */
@media(max-width:1080px){
  .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}
  .woocommerce div.product{gap:24px 32px}
  .woocommerce form.checkout{grid-template-columns:1fr;grid-template-rows:auto;gap:34px}
  .woocommerce form.checkout #customer_details,
  .woocommerce form.checkout #order_review_heading,
  .woocommerce form.checkout #order_review{grid-column:1;grid-row:auto;position:static}
  .woocommerce form.checkout #order_review_heading{margin-bottom:0}
  .woocommerce-account .woocommerce{grid-template-columns:1fr;gap:26px}
}
@media(max-width:860px){
  /* 商品ページは1カラム：商品名（先出し）→ 写真 → 価格 → フォーム の順 */
  .woocommerce div.product{grid-template-columns:1fr;gap:22px}
  .woocommerce div.product .sp-title-mobile{display:block}
  .woocommerce div.product .sp-title-mobile .sp-title{margin:0}
  /* summary 側の h1 は視覚的に隠す（読み上げは残す）。見た目の重複を避ける */
  .woocommerce div.product .summary .sp-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;
    overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .related,
  .woocommerce div.product .upsells{margin-top:36px}
}
@media(max-width:780px){
  .woocommerce .col2-set{grid-template-columns:1fr;gap:24px}
}
@media(max-width:768px){
  /* WooCommerce の smallscreen.css（≤768px）がカート表をブロック化する。その前提で組み直す。
     ・偶数行の灰色しま模様（tr:nth-child(2n) td）はサンド地・白地に合わせて消す
     ・商品行：写真64pxを左、商品名を右、削除×は右上に 44px の円で添える（×だけの行を作らない） */
  .woocommerce-cart .cart_totals table.shop_table_responsive tr:nth-child(2n) td,
  .woocommerce-cart table.cart.shop_table_responsive tr:nth-child(2n) td,
  .woocommerce-checkout #order_review table.shop_table_responsive tr:nth-child(2n) td{background:transparent}
  .woocommerce table.cart tr.cart_item{display:grid;grid-template-columns:64px minmax(0,1fr);
    grid-template-areas:"thumb name" "price price" "qty qty" "sub sub";column-gap:12px;row-gap:0;
    position:relative;padding:14px 12px 6px;border-bottom:1px solid var(--line)}
  .woocommerce table.cart tr.cart_item:last-of-type{border-bottom:0}
  .woocommerce table.cart tr.cart_item td{border:0;padding:8px 0;font-size:.9rem}
  .woocommerce table.cart tr.cart_item td.product-thumbnail{grid-area:thumb;display:block;padding:0;text-align:left}
  .woocommerce table.cart tr.cart_item td.product-thumbnail::before{display:none}
  .woocommerce table.cart tr.cart_item td.product-thumbnail img{width:64px;height:64px;object-fit:contain;background:#fff;margin:0}
  .woocommerce table.cart tr.cart_item td.product-name{grid-area:name;padding:0 44px 0 0;text-align:left!important;
    line-height:1.55;align-self:center}
  .woocommerce table.cart tr.cart_item td.product-name::before{display:none}
  .woocommerce table.cart tr.cart_item td.product-price{grid-area:price;margin-top:8px;border-top:1px dashed var(--line)}
  .woocommerce table.cart tr.cart_item td.product-quantity{grid-area:qty}
  .woocommerce table.cart tr.cart_item td.product-subtotal{grid-area:sub}
  .woocommerce table.cart tr.cart_item td.product-remove{position:absolute;top:10px;right:10px;width:44px;height:44px;
    padding:0;margin:0;display:flex;align-items:center;justify-content:center}
  .woocommerce table.cart tr.cart_item td.product-remove::before{display:none}
  .woocommerce table.cart tr.cart_item td.product-remove a.remove{width:44px;height:44px;line-height:44px;
    display:flex;align-items:center;justify-content:center;border-radius:50%;
    background:#fdf3f1;color:#b4462f!important;font-size:1.3rem;font-weight:400;text-align:center}
  .woocommerce table.cart tr.cart_item td.product-remove a.remove:hover{background:#b4462f;color:#fff!important}
  .woocommerce table.cart td.actions{padding:14px 12px}
}
@media(max-width:640px){
  .sp-archive{padding:38px 0 62px}
  .sp-single{padding:22px 0 56px}
  .crumb2{font-size:.78rem;margin-bottom:16px}
  header.nav .hdr-cart{padding:0 6px}
  header.nav .hdr-cart span{display:none}
  .sp-toast{bottom:calc(16px + env(safe-area-inset-bottom,0px));gap:10px;padding:10px 10px 10px 14px;font-size:.88rem}
  /* 一覧は2列のまま詰める（1列は縦に長くなりすぎる）。
     390px：(342-12)/2=165 → 罫線2・余白10×2 → 内側143px。
     ボタン 9文字×12.9px＋16 ≒ 132px、価格 998,000円（税込） ≒ 135px が1行に収まる。
     最長の 1,298,000円（税込） は「円（税込）」だけ次の行にまとまって落ちる */
  .woocommerce ul.products{gap:14px 12px}
  .woocommerce ul.products li.product .sp-ph img{padding:12px}
  .woocommerce ul.products li.product .sp-bd{padding:12px 10px 14px}
  /* auto-phrase は狭い幅で折る位置が暴れるので、SPは普通の折り返し＋はみ出し保険 */
  .woocommerce ul.products li.product .sp-nm{font-size:.84rem;word-break:normal;overflow-wrap:anywhere}
  .woocommerce ul.products li.product .sp-ft{gap:10px;padding-top:12px}
  .woocommerce ul.products li.product .sp-pr{font-size:.96rem}
  .woocommerce ul.products li.product .sp-btn a.button,
  .woocommerce ul.products li.product .sp-btn .button{padding:9px 8px;min-height:42px;font-size:.76rem;letter-spacing:0}
  /* AJAX追加後にWCが付ける✓（a.button.added::after）の分で内側143pxを超え「お買い物カゴに追／加」と折れる。
     追加済みの合図は下の「お買い物カゴを表示」リンクとトーストで足りるので、SPでは✓を出さない */
  .woocommerce ul.products li.product .sp-btn a.button.added::after{display:none}
  .sp-tools{gap:14px;margin-bottom:22px;padding-bottom:16px}
  .sp-cats{gap:8px}
  .sp-chip{padding:7px 13px;font-size:.8rem;min-height:36px}
  /* 商品ページ */
  .woocommerce div.product div.images,
  .woocommerce div.product div.images.woocommerce-product-gallery,
  .woocommerce-page div.product div.images{padding:10px;border-radius:12px}
  .woocommerce div.product div.images .woocommerce-product-gallery__trigger{top:16px;right:16px}
  .woocommerce div.product div.images .flex-control-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}
  .woocommerce div.product .sp-title .sp-model{font-size:26px}
  .woocommerce div.product .sp-title:not(:has(.sp-model-sub)) .sp-model{font-size:22px}
  .woocommerce div.product p.price,.woocommerce div.product span.price{font-size:1.4rem;padding:14px 16px}
  /* カゴフォーム：390px なら 数量82＋gap12＋ボタン216 で1行。360px では自動で全幅に落ちる */
  .woocommerce div.product form.cart{padding:16px;gap:10px}
  .woocommerce div.product form.cart button.single_add_to_cart_button,
  .woocommerce div.product form.cart button.single_add_to_cart_button.alt{padding:14px 12px;font-size:.98rem;letter-spacing:.01em}
  .sp-trust .sp-tel{display:inline-block;margin:2px 0 0;padding:4px 0;white-space:nowrap}
  .woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:9px 16px;font-size:.86rem}
  .woocommerce div.product .woocommerce-Tabs-panel{font-size:.94rem}
  /* 表：セルの語を途中で折らない。1列目（項目名）は折らず、広ければパネルごと横スクロール */
  .woocommerce div.product .woocommerce-Tabs-panel table{font-size:.86rem}
  .woocommerce div.product .woocommerce-Tabs-panel th,
  .woocommerce div.product .woocommerce-Tabs-panel td{padding:9px 8px;min-width:6em}
  .woocommerce div.product .woocommerce-Tabs-panel th,
  .woocommerce div.product .woocommerce-Tabs-panel td:first-child{white-space:nowrap}
  /* カート・購入手続き・マイページ */
  .woocommerce .cart_totals,.woocommerce-checkout #order_review{padding:20px}
  .woocommerce table.shop_table td{padding:14px 10px;font-size:.9rem}
  .woocommerce-checkout #order_review tr.order-total th,
  .woocommerce-checkout #order_review tr.order-total td{font-size:1.05rem}
  /* クーポン：入力欄とボタンを縦積み・全幅（「クーポンを適／用」の2行折れを防ぐ）。
     WCの smallscreen.css が input/button に width:48% を当てるので !important で全幅にする */
  .woocommerce .cart .actions .coupon{flex-direction:column;float:none;width:100%;gap:8px}
  .woocommerce .cart .actions .coupon input.input-text{min-width:0;width:100%!important;flex:0 0 auto}
  .woocommerce .cart .actions .coupon .button{width:100%!important;float:none}
  .woocommerce .cart .actions>.button{width:100%;margin-top:12px}
  .woocommerce form.login,.woocommerce form.register,.woocommerce form.lost_reset_password{padding:22px 18px}
  .woocommerce form.login .form-row button.woocommerce-form-login__submit{width:100%}
  .woocommerce form.login .form-row label.woocommerce-form-login__rememberme{display:flex;margin:12px 0 0}
}
@media(min-width:641px){
  .woocommerce div.product .woocommerce-product-details__short-description br.sp{display:none}
}
@media(max-width:400px){
  .woocommerce ul.products li.product .sp-btn a.button,
  .woocommerce ul.products li.product .sp-btn .button{font-size:.72rem;padding:9px 6px}
}
