@charset "UTF-8";
/*
 * ジープラス化粧品 — 共通フレーム スタイル
 *
 * 読み込み順（default_frame.twig）
 *   1. base.css   … EC-CUBE標準テーマの style.css をそのまま複製したもの。
 *                    未実装ページ（商品一覧・詳細・カート・注文フロー等）が
 *                    素の見た目にならないための土台。内容は変更しない。
 *   2. tokens.css … デザイントークン
 *   3. style.css  … このファイル。共通フレームの見た目を確定させる。
 *
 * ■ base.css との詳細度について
 * base.css は 3,894ルールあり、`.ec-layoutRole .ec-layoutRole__contents` のように
 * 親子2段以上のセレクタが多い。後から読むだけでは詳細度で負けて上書きできないため、
 * 共通フレームのルールは body に付けた `.gplus-theme` を前置して詳細度を上げている。
 * （個別画面のスタイルは今回対象外。実装時も同じ前置きを使うこと）
 *
 * 前置きしないもの:
 *   - 要素セレクタのベース（body / a / img など）… base.css と同詳細度で、後勝ちで足りる
 *   - .gplus-plugin-slot 配下 … 詳細度を上げるとプラグイン側CSSに勝ってしまうため
 *
 * ■ デザイン方針（GPLUS_THEME_SPEC.md §2 / CLAUDE.md）
 *   - 白基調、余白は大きく、装飾は削る
 *   - border-radius / box-shadow は使わない。境界は罫線で表現する
 *   - 色は tokens.css の CSS変数のみ。16進数を直接書かない
 *   - モバイルファースト。ブレークポイントは 768px
 *   - 本文は 13px（--fs-md）を下回らない / タップ領域は 44px（--tap-min）以上
 *
 * ■ コントラストの注意
 * --c-accent (#5A8CA8) は白背景で 3.65:1、--c-text-mute (#9A9A94) は 2.83:1 で、
 * SPEC §5 の 4.5:1 を満たさない。本文・リンク文字には使わず、
 * ロゴの「+」（商標の一部）、フォーカスリング、罫線に用途を限定している。
 */

/* ==========================================================================
   1. リセット / ベース
   グローバルに効かせるのはここだけ。装飾（角丸・影・色）は
   要素セレクタでは指定せず、クラス単位で当てる。
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-base);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  font-weight: 400;
}

/* ドロワー展開中の背面スクロールを止める（function.js が body に付与） */
body.have_curtain {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-ink);
}

p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* base.css が .ec-*Role textarea に sans-serif を当てているため、
   言語別の書体が効くよう継承に戻す */
body.gplus-theme textarea {
  font-family: inherit;
}

table {
  border-collapse: collapse;
}

/* ==========================================================================
   2. 言語別の書体
   Noto Sans JP は日本語向け。ko / zh をこれに固定すると字形が合わないため、
   言語ごとに OS 標準フォントへ退避する。
   追加のWebフォント読込・外部通信先は増やしていない。
   body に当てて継承させることで、Font Awesome の .fas 等
   （自前で font-family を持つ要素）を壊さないようにしている。
   ========================================================================== */

body:lang(ja) { font-family: var(--f-base); }
body:lang(en) { font-family: var(--f-latin); }
body:lang(ko) { font-family: var(--f-ko); }
body:lang(zh) { font-family: var(--f-zh); }

/* 言語切替リンクは各言語名をその言語の書体で表示する（リンクに lang 属性を付けている）。
   表示中の言語に関係なく「한국어」「简体中文」が正しい字形になる。 */
[lang="ja"] { font-family: var(--f-base); }
[lang="en"] { font-family: var(--f-latin); }
[lang="ko"] { font-family: var(--f-ko); }
[lang="zh"] { font-family: var(--f-zh); }

/* ==========================================================================
   3. プラグイン挿入領域（SPEC §3-4）
   商品詳細のカートボタン下、カートページの「レジに進む」下など、
   決済プラグインがボタンを差し込む領域に付けるラッパー。
   Amazon Pay 等はブランドガイドラインで見た目の改変が禁止されているため、
   このスコープ内では上の「1. リセット / ベース」を打ち消す。

   :where() で詰めており、かつ .gplus-theme を前置していないので、
   プラグイン自身のCSSが必ず優先される。ここだけは詳細度を上げないこと。

   使う場所（いずれも個別画面の実装時。今回は枠の定義のみ）:
     Product/detail.twig … .ec-productRole__btn の直下
     Cart/index.twig     … .ec-cartRole__actions の直下
   ========================================================================== */

.gplus-plugin-slot {
  display: block;
  margin-top: var(--sp-4);
}

.gplus-plugin-slot :where(img) {
  max-width: revert;
  height: revert;
  vertical-align: revert;
}

.gplus-plugin-slot :where(a) {
  color: revert;
  text-decoration: revert;
}

.gplus-plugin-slot :where(a:hover) {
  text-decoration: revert;
}

.gplus-plugin-slot :where(input, select, textarea, button) {
  font: revert;
  color: revert;
  line-height: revert;
}

.gplus-plugin-slot :where(ul, ol) {
  padding: revert;
  list-style: revert;
}

/* ==========================================================================
   4. アクセシビリティ（SPEC §5）
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.gplus-visuallyHidden {
  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;
}

/* 郵便番号検索は文字リンクだけで意味が完結する。
   標準テーマ由来の装飾用「?」は負の位置指定も持つため、全フォームで非表示にする。 */
body.gplus-theme .ec-zipInputHelp__icon {
  display: none;
}

/* 本文へスキップ。フォーカス時のみ現れる */
.gplus-skipLink {
  position: absolute;
  top: -200px;
  left: var(--sp-2);
  z-index: 1000;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-ink);
  color: var(--c-bg);
  font-size: var(--fs-md);
}

.gplus-skipLink:focus {
  top: var(--sp-2);
  text-decoration: none;
}

/* skip link の着地点。アウトラインは出さない */
body.gplus-theme .ec-layoutRole__main:focus,
body.gplus-theme .ec-layoutRole__mainWithColumn:focus,
body.gplus-theme .ec-layoutRole__mainBetweenColumn:focus {
  outline: none;
}

/* ==========================================================================
   5. base.css のクリアフィックスを無効化
   base.css は .ec-headerRole 等に `content:" "; display:table` の
   擬似要素を持つ。これらを flex コンテナにすると空の flex アイテムが増えて
   space-between のレイアウトが崩れるため、フレーム側では消す。
   ========================================================================== */

body.gplus-theme .ec-headerRole::before,
body.gplus-theme .ec-headerRole::after,
body.gplus-theme .ec-headerNaviRole::before,
body.gplus-theme .ec-headerNaviRole::after,
body.gplus-theme .ec-categoryNaviRole::before,
body.gplus-theme .ec-categoryNaviRole::after,
body.gplus-theme .ec-footerRole__inner::before,
body.gplus-theme .ec-footerRole__inner::after,
body.gplus-theme .ec-cartNaviIsset__cart::before,
body.gplus-theme .ec-cartNaviIsset__cart::after {
  content: none;
  display: none;
}

/* ==========================================================================
   6. レイアウト
   ========================================================================== */

body.gplus-theme .ec-layoutRole {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--c-bg);
}

body.gplus-theme .ec-layoutRole__contents {
  flex: 1 0 auto;
  width: 100%;
}

body.gplus-theme .ec-layoutRole__contentTop,
body.gplus-theme .ec-layoutRole__contentBottom,
body.gplus-theme .ec-layoutRole__mainTop,
body.gplus-theme .ec-layoutRole__mainBottom {
  width: 100%;
}

body.gplus-theme .ec-layoutRole__main,
body.gplus-theme .ec-layoutRole__mainWithColumn,
body.gplus-theme .ec-layoutRole__mainBetweenColumn {
  width: 100%;
  min-width: 0;
}

/* 左右カラムはSPでは本文の下に回す */
body.gplus-theme .ec-layoutRole__left,
body.gplus-theme .ec-layoutRole__right {
  width: 100%;
}

/* ==========================================================================
   7. ヘッダ（共通）
   DOM順は Layout の HEADER セクション。標準は header → logo → category_nav_pc
   で、header ブロック（Block/header.twig）は言語切替 + .ec-headerNaviRole を出す。

   SP: 言語バー（上段） / ロゴ中央（下段） にハンバーガーとカートを重ねる
   PC: 言語バー（上段） / 左ロゴ + カテゴリナビ + 検索・カート・マイページ（下段）

   並べ替えは flex の order で行っており、Layout のブロック並び順に依存しない。
   ========================================================================== */

body.gplus-theme .ec-layoutRole__header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}

/* --- 言語切替（Block/language_switcher.twig） ---
   SP: ヘッダには出さず、.ec-drawerRole 内の 'drawer' 版だけを見せる
   PC: ヘッダ右端の 'header' 版（<details>）だけを見せる
   開閉は <details>/<summary> の標準挙動に任せ、JSは足していない。 */

.gplus-langSwitch__list {
  display: flex;
  flex-direction: column;
}

.gplus-langSwitch__item {
  flex: 0 0 auto;
}

.gplus-langSwitch__link {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: var(--sp-2) var(--sp-4);
  border-left: 2px solid transparent;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  white-space: nowrap;
}

.gplus-langSwitch__link:hover {
  color: var(--c-ink);
  text-decoration: none;
}

/* 現在の言語。色だけに頼らず罫線でも示す */
.gplus-langSwitch__link[aria-current="page"] {
  border-left-color: var(--c-ink);
  color: var(--c-ink);
}

/* SPではヘッダ側の言語切替を出さない */
.gplus-langSwitch--header {
  display: none;
}

.gplus-langSwitch--drawer {
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

/* --- ロゴ（Block/logo.twig） --- */

body.gplus-theme .ec-headerRole {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--header-h-sp);
  padding: 0 calc(var(--tap-min) + var(--sp-2));
}

body.gplus-theme .ec-headerRole__title,
body.gplus-theme .ec-headerTitle,
body.gplus-theme .ec-headerTitle__title {
  margin: 0;
}

body.gplus-theme .ec-headerTitle__title h1 {
  margin: 0;
}

.gplus-logo {
  display: inline-block;
  line-height: 0;
}

.gplus-logo:hover {
  text-decoration: none;
}

.gplus-logo__image {
  display: block;
  width: auto;
  height: 30px;
  max-width: 108px;
  object-fit: contain;
}

/* --- ユーティリティ列（Block/header.twig） --- */

body.gplus-theme .ec-headerNaviRole {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h-sp);
  /* 中央のロゴを触れるようにする。子には auto を戻す */
  pointer-events: none;
}

body.gplus-theme .ec-headerNaviRole__left,
body.gplus-theme .ec-headerNaviRole__right {
  display: flex;
  align-items: center;
  pointer-events: auto;
}

/* SPではヘッダ内の検索とログインナビは出さない（ドロワーに同等のものがある） */
body.gplus-theme .ec-headerNaviRole__search,
body.gplus-theme .ec-headerNaviRole__nav {
  display: none;
}

/* --- ハンバーガー（Block/nav_sp.twig） --- */

body.gplus-theme .ec-headerNavSP {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  color: var(--c-ink);
  font-size: var(--fs-lg);
  cursor: pointer;
}

/* --- カート（Block/cart.twig） --- */

body.gplus-theme .ec-headerRole__cart,
body.gplus-theme .ec-cartNaviWrap {
  position: relative;
}

body.gplus-theme .ec-cartNavi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-width: var(--tap-min);
  height: var(--tap-min);
  padding: 0 var(--sp-3);
  color: var(--c-ink);
  cursor: pointer;
}

body.gplus-theme .ec-cartNavi__icon {
  position: relative;
  font-size: var(--fs-lg);
  line-height: 1;
}

/* base.css の `.ec-cartNavi.is-active .ec-cartNavi__badge` (0,3,0) に勝つ深さが要る */
body.gplus-theme .ec-cartNavi .ec-cartNavi__badge {
  position: absolute;
  top: -6px;
  left: 12px;
  display: inline-block;
  min-width: 16px;
  height: auto;
  padding: 0 var(--sp-1);
  background: var(--c-ink);
  color: var(--c-bg);
  /* 親が .fas（Font Awesome）なので、数字が出るよう書体を戻す */
  font-family: var(--f-latin);
  font-size: var(--fs-xs);
  font-style: normal;
  line-height: 16px;
  text-align: center;
}

/* 金額はPCのみ。SPはアイコンとバッジだけにする */
body.gplus-theme .ec-cartNavi__label {
  display: none;
}

/* カートのドロップダウン。function.js が .is-active を付け外しする */
body.gplus-theme .ec-cartNaviIsset,
body.gplus-theme .ec-cartNaviNull {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: var(--z-header);
  width: 300px;
  max-width: calc(100vw - var(--sp-4) * 2);
  padding: var(--sp-4);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
}

body.gplus-theme .ec-cartNaviIsset.is-active,
body.gplus-theme .ec-cartNaviNull.is-active {
  display: block;
}

body.gplus-theme .ec-cartNaviIsset__cart {
  display: flex;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .ec-cartNaviIsset__cartImage {
  flex: 0 0 64px;
  width: 64px;
  background: var(--c-bg-soft);
}

body.gplus-theme .ec-cartNaviIsset__cartContent {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  font-size: var(--fs-md);
  line-height: 1.6;
}

body.gplus-theme .ec-cartNaviIsset__cartContentTitle {
  color: var(--c-ink);
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .ec-cartNaviIsset__cartContentPrice,
body.gplus-theme .ec-cartNaviIsset__cartContentNumber {
  color: var(--c-text-sub);
}

body.gplus-theme .ec-cartNaviIsset__cartContentTax {
  display: inline;
  font-size: var(--fs-md);
}

body.gplus-theme .ec-cartNaviIsset__action {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

body.gplus-theme .ec-cartNaviNull__message {
  color: var(--c-text-sub);
  text-align: center;
}

/* ヘッダ内で使われる標準ボタン。角丸・影は付けない */
body.gplus-theme .ec-blockBtn,
body.gplus-theme .ec-blockBtn--action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: var(--fs-md);
  letter-spacing: 0.08em;
  text-align: center;
  cursor: pointer;
}

body.gplus-theme .ec-blockBtn--action {
  background: var(--c-ink);
  color: var(--c-bg);
}

/* base.css の `.ec-cartNaviIsset .ec-cartNaviIsset__action .ec-blockBtn--action` (0,3,0) 対策 */
body.gplus-theme .ec-cartNaviIsset__action .ec-blockBtn--action {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme .ec-cartNaviIsset__action .ec-blockBtn {
  background: var(--c-bg);
  color: var(--c-ink);
}

body.gplus-theme .ec-blockBtn:hover,
body.gplus-theme .ec-blockBtn--action:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* --- ログインナビ（Block/login.twig。PCのみ表示） --- */

body.gplus-theme .ec-headerNav {
  display: flex;
  align-items: center;
}

body.gplus-theme .ec-headerNav__item a {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: var(--tap-min);
  padding: 0 var(--sp-3);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

body.gplus-theme .ec-headerNav__itemIcon {
  font-size: var(--fs-md);
}

/* --- ヘッダ検索（Block/search_product.twig。PCのみ表示） --- */

body.gplus-theme .ec-headerSearch .searchform {
  display: flex;
  align-items: stretch;
  gap: var(--sp-2);
}

/* base.css の `.ec-headerSearch .ec-headerSearch__category .ec-select select` (0,3,1) に勝つ深さ */
body.gplus-theme .ec-headerSearch .ec-headerSearch__category .ec-select select,
body.gplus-theme .ec-headerSearch .ec-headerSearch__keyword input {
  height: var(--tap-min);
  padding: 0 var(--sp-2);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-md);
  -webkit-appearance: none;
  appearance: none;
}

body.gplus-theme .ec-headerSearch .ec-headerSearch__category .ec-select select {
  padding-right: var(--sp-6);
  width: 100%;
  border-left: 0;
}

/* 包含label側で左端を描き、select自身の背景に隠れない外周線にする。 */
body.gplus-theme .ec-headerSearch__category .gplus-headerSearch__label {
  box-sizing: border-box;
  border-left: 1px solid var(--c-border-str);
}

/* base.css が同じ位置に ::before で矢印を描くため、こちらで消して描き直す */
body.gplus-theme .ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search::before {
  content: none;
}

body.gplus-theme .ec-headerSearch__category .ec-select {
  position: relative;
  display: block;
}

body.gplus-theme .ec-headerSearch__category .ec-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--sp-3);
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--c-text-sub);
  border-bottom: 1px solid var(--c-text-sub);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

body.gplus-theme .ec-headerSearch__keyword .ec-input {
  display: flex;
  align-items: stretch;
}

body.gplus-theme .ec-headerSearch__keywordBtn {
  position: static;
  display: flex;
  flex: 0 0 var(--tap-min);
  align-items: center;
  justify-content: center;
  inset: auto;
  width: var(--tap-min);
  height: var(--tap-min);
  margin: 0;
  padding: 0;
  border: 1px solid var(--c-ink);
  border-radius: 0;
  background: var(--c-ink);
  transform: none;
  cursor: pointer;
}

body.gplus-theme .ec-headerSearch__keywordBtn img {
  width: 16px;
  height: 16px;
  /* search-dark.svg は濃色固定。ボタン背景が濃いので白に転写する */
  filter: brightness(0) invert(1);
}

/* --- カテゴリナビ（Block/category_nav_pc.twig。PCのみ表示） --- */

body.gplus-theme .ec-categoryNaviRole {
  display: none;
}

/* ==========================================================================
   8. ドロワー（SP）
   構造は標準のまま。function.js が .is_active と body.have_curtain を操作する。
   ========================================================================== */

body.gplus-theme .ec-overlayRole {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--c-ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* base.css の `.have_curtain .ec-overlayRole` (0,2,0) に勝たせる */
body.gplus-theme.have_curtain .ec-overlayRole {
  display: block;
  background: var(--c-ink);
  opacity: 0.45;
  visibility: visible;
}

body.gplus-theme .ec-drawerRole {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-drawer);
  width: var(--drawer-w);
  height: 100%;
  padding: var(--sp-5) 0 var(--sp-7);
  overflow-y: auto;
  background: var(--c-bg);
  border-right: 1px solid var(--c-border);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease;
  -webkit-overflow-scrolling: touch;
}

body.gplus-theme .ec-drawerRole.is_active {
  display: block;
  transform: translateX(0);
  visibility: visible;
  z-index: var(--z-drawer);
}

body.gplus-theme .ec-drawerRoleClose {
  display: none;
  position: fixed;
  top: 0;
  left: var(--drawer-w);
  z-index: var(--z-drawer);
  width: var(--tap-min);
  height: var(--tap-min);
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: var(--fs-lg);
  cursor: pointer;
}

body.gplus-theme .ec-drawerRoleClose.is_active {
  display: flex;
}

/* ドロワー内: 検索 */
body.gplus-theme .ec-drawerRole .ec-headerSearch {
  padding: 0 var(--sp-4) var(--sp-5);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .ec-drawerRole .ec-headerSearch .searchform {
  flex-direction: column;
  gap: var(--sp-2);
}

body.gplus-theme .ec-drawerRole .ec-headerSearch__keyword .ec-input {
  width: 100%;
}

body.gplus-theme .ec-drawerRole .ec-headerSearch__keyword .ec-input input {
  flex: 1 1 auto;
  min-width: 0;
}

/* ドロワー内: カテゴリ一覧 */
body.gplus-theme .ec-headerCategoryArea {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--c-border);
}

/* base.css の `.ec-drawerRole .ec-headerCategoryArea .ec-headerCategoryArea__heading` (0,3,0) 対策 */
body.gplus-theme .ec-drawerRole .ec-headerCategoryArea__heading {
  padding: 0 var(--sp-4) var(--sp-2);
  background: var(--c-bg);
  border-bottom: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  letter-spacing: var(--ls-wide);
}

/* base.css の `.ec-drawerRole .ec-headerCategoryArea .ec-itemNav__nav li a` (0,3,2) 対策 */
body.gplus-theme .ec-drawerRole .ec-headerCategoryArea .ec-itemNav__nav a {
  display: block;
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

body.gplus-theme .ec-drawerRole .ec-headerCategoryArea .ec-itemNav__nav ul a {
  padding-left: var(--sp-6);
  color: var(--c-text-sub);
}

/* ドロワー内: 会員メニュー（Block/login_sp.twig） */
body.gplus-theme .ec-headerLinkArea {
  padding: var(--sp-5) 0 0;
  background: var(--c-bg);
}

/* base.css の `.ec-drawerRole .ec-headerLinkArea .ec-headerLink__item` (0,3,0) 対策 */
body.gplus-theme .ec-drawerRole .ec-headerLink__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--tap-min);
  padding: var(--sp-2) var(--sp-4);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

body.gplus-theme .ec-drawerRole .ec-headerLink__icon {
  width: 1.25em;
  text-align: center;
}

/* ==========================================================================
   9. フッタ
   ========================================================================== */

body.gplus-theme .ec-layoutRole__footer {
  flex: 0 0 auto;
  margin-top: var(--sp-7);
}

body.gplus-theme .ec-footerRole {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .ec-footerRole__inner {
  padding: var(--sp-6) var(--sp-4) var(--sp-7);
}

/* 会社情報 */
.gplus-footer__company {
  margin-bottom: var(--sp-6);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

.gplus-footer__companyName {
  margin-bottom: var(--sp-1);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

.gplus-footer__companyItem {
  margin: 0;
}

/* 案内リンク。1行44px以上、罫線で区切る */
.gplus-footer__nav {
  margin-bottom: var(--sp-6);
}

body.gplus-theme .ec-footerNavi {
  margin: 0;
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .ec-footerNavi__link {
  display: block;
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .ec-footerNavi__link a {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--sp-2) 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
}

/* ブランド行 */
body.gplus-theme .ec-footerTitle {
  text-align: center;
}

body.gplus-theme .ec-footerTitle__logo {
  margin-bottom: var(--sp-3);
}

body.gplus-theme .ec-footerTitle__logo a {
  display: inline-block;
}

body.gplus-theme .ec-footerTitle__logo .gplus-logo__image {
  height: 42px;
  max-width: 130px;
}

body.gplus-theme .ec-footerTitle__copyright {
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   10. ページトップ
   function.js が fadeIn/fadeOut で display を直接操作するため、
   display:block のままで成立する指定にしておく（flex を使わない）。
   固定配置が本文を覆わないだけの右余白を確保できる幅だけで表示する。
   ========================================================================== */

body.gplus-theme .ec-blockTopBtn {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: var(--z-header);
  width: 128px;
  min-height: var(--tap-min);
  margin: 0;
  padding: 0 var(--sp-3);
  border: 0;
  height: var(--tap-min);
  background: var(--c-ink);
  color: var(--c-bg);
  font-size: var(--fs-md);
  letter-spacing: 0.08em;
  line-height: var(--tap-min);
  text-align: center;
  cursor: pointer;
}

@media screen and (max-width: 1535px) {
  body.gplus-theme .ec-blockTopBtn {
    display: none !important;
  }
}

/* ==========================================================================
   11. メンテナンス / デバッグ表示
   ========================================================================== */

body.gplus-theme .ec-twoModeAlert {
  display: block;
}

body.gplus-theme .ec-maintenanceAlert,
body.gplus-theme .ec-debugModeAlert {
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-ink);
  color: var(--c-bg);
  font-size: var(--fs-md);
  text-align: center;
}

body.gplus-theme .ec-maintenanceAlert > div,
body.gplus-theme .ec-debugModeAlert > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}

body.gplus-theme .ec-maintenanceAlert__icon,
body.gplus-theme .ec-debugModeAlert__icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: var(--c-bg);
  line-height: 0;
}

/* 送信中オーバーレイ（function.js が body に差し込む） */
.bg-load-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--c-bg);
  opacity: 0.6;
}

/* ==========================================================================
   12. PC（768px 以上）
   ブレークポイントは tokens.css のコメント参照。
   ========================================================================== */

/* ==========================================================================
   13. トップページ（index.twig）
   このセクションは .gplus-home* に閉じており、他ページへ漏れない。
   色は --c-ink / --c-text-sub / --c-border / --c-bg-soft のみを使う。
   --c-accent と --c-text-mute は白背景の通常サイズ本文には使わない
   （白背景で 3.65:1 / 2.83:1 と 4.5:1 を満たさないため）。
   モバイルファースト。PC の指定は末尾のメディアクエリ側にある。
   ========================================================================== */

/* 英字の小見出し。CJKにはならないキー（G+PLUS SKINCARE / CONCERN / PRODUCTS）にのみ使う */

/* --- 1. ヒーロー --- */

/* DBの実商品画像だけを、重ねずにまとまりのあるグリッドで見せる。 */

/* --- 2. ラインアップ導線 --- */

/* 紹介キャンペーン予告。PDF由来の商品写真と、翻訳可能な本文を分ける。 */

/* --- 3. ブランドストーリー --- */

/* --- 4. お悩みから選ぶ（SP 2列 / PC 4列） --- */

/* --- 5. 製品一覧（SP 2列 / PC 3列） --- */

/* ==========================================================================
   14. 商品一覧（Product/list.twig）
   このセクションは .gplus-productList* に閉じており、他画面へ漏れない。
   カードの見た目はトップの製品一覧（.gplus-homeProducts*）と揃えているが、
   クラスは共有せず独立させている。
   色は --c-ink / --c-text-sub / --c-border / --c-border-str / --c-bg-soft のみ。
   --c-accent と --c-text-mute は通常サイズ文字に使わない
   （白背景で 3.65:1 / 2.83:1 と 4.5:1 を満たさないため）。
   ※ SPEC §4-3 は英字カテゴリラベルを「アクセント色」としているが、
     コントラスト要件を優先して --c-text-sub（5.44:1）を採用している。
   ========================================================================== */

body.gplus-theme .gplus-productList__head {
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
}

body.gplus-theme .gplus-productList__topicpath {
  padding: 0;
  margin-bottom: var(--sp-4);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productList__topicpath a {
  color: var(--c-text-sub);
}

body.gplus-theme .gplus-productList__title {
  margin-bottom: var(--sp-3);
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
}

/* 件数と 表示件数／並び替え。base.css の 50%/100% 固定幅と
   max-width:1130px + margin:0 auto を解除する */
body.gplus-theme .gplus-productList__infos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: auto;
  max-width: none;
  margin: 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .gplus-productList__counter {
  width: auto;
  margin-bottom: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productList__actions {
  width: auto;
  text-align: left;
}

body.gplus-theme .gplus-productList__actions .ec-select {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

body.gplus-theme .gplus-productList__actions select {
  height: var(--tap-min);
  padding: 0 var(--sp-3);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productList__error {
  padding: var(--sp-5) var(--sp-4);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

/* --- カード一覧（SP 2列） ---
   base.css は .ec-shelfGrid を flex、__item を width:50%（PCは25%）にしているため、
   幅・padding・負マージンを解除して grid に置き換える。 */

body.gplus-theme .gplus-productList {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 var(--sp-4) var(--sp-6);
}

body.gplus-theme .gplus-productList__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-4);
  margin: 0;
  padding: 0;
}

/* base.css の .ec-shelfGrid .ec-shelfGrid__item:nth-child(odd/even) (0,3,0) に勝つ深さ */
body.gplus-theme .gplus-productList__grid .gplus-productList__item {
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  margin-bottom: 0;
  padding: 0;
}

body.gplus-theme .gplus-productList__link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  color: var(--c-ink);
}

body.gplus-theme .gplus-productList__link:hover {
  text-decoration: none;
}

/* 英字カテゴリラベル。ラテン文字固定のため --fs-sm を許容する */
body.gplus-theme .gplus-productList__label {
  margin-bottom: var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
}

body.gplus-theme .gplus-productList__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  height: auto;
  margin-bottom: var(--sp-3);
  padding: 0;
  overflow: hidden;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  text-align: center;
}

body.gplus-theme .gplus-productList__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.gplus-theme .gplus-productList__link:hover .gplus-productList__thumb {
  border-color: var(--c-ink);
}

body.gplus-theme .gplus-productList__name {
  margin-bottom: var(--sp-1);
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: 1.6;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-productList__desc {
  margin-bottom: var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: 1.7;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-productList__price {
  margin-top: auto;
  margin-bottom: var(--sp-3);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

/* 規格選択・数量。カードの下端をそろえるため、ボタンは末尾に寄せる */
body.gplus-theme .gplus-productList__cartActions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-productList__cartActions select {
  width: 100%;
  height: var(--tap-min);
  padding: 0 var(--sp-3);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productList__cartActions .ec-numberInput {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productList__cartActions .ec-numberInput input {
  width: 72px;
  height: var(--tap-min);
  padding: 0 var(--sp-2);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productList__btn {
  margin-top: auto;
}

body.gplus-theme .gplus-productList__btn .ec-blockBtn--action {
  width: 100%;
  min-height: var(--tap-min);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  background: var(--c-ink);
  color: var(--c-bg);
  font-size: var(--fs-md);
  letter-spacing: 0.08em;
}

body.gplus-theme .gplus-productList__btn .ec-blockBtn--action[disabled] {
  border-color: var(--c-border-str);
  background: var(--c-bg-soft);
  color: var(--c-text-sub);
  cursor: default;
  opacity: 1;
}

/* --- ページャ --- */

body.gplus-theme .gplus-productList__pager {
  padding: 0 var(--sp-4) var(--sp-7);
}

body.gplus-theme .gplus-productList__pager .ec-pager__item a,
body.gplus-theme .gplus-productList__pager .ec-pager__item--active a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productList__pager .ec-pager__item--active a {
  border-bottom: 2px solid var(--c-ink);
}

/* --- カート追加モーダル（商品一覧・詳細で共通） --- */

body.gplus-cartModal-open {
  overflow: hidden;
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__overlay {
  padding: var(--sp-4);
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__dialog {
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding: var(--sp-6) var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  background: var(--c-bg);
  color: var(--c-text);
  outline: none;
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__dialog:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: var(--sp-2);
  right: var(--sp-2);
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__close .ec-icon,
body.gplus-theme .gplus-cartModal .gplus-cartModal__close img {
  display: block;
  width: 18px;
  height: 18px;
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__message {
  padding: 0 var(--sp-5);
  color: var(--c-ink);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
  white-space: pre-line;
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__box {
  margin-top: var(--sp-5);
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--sp-2);
  margin-top: 0;
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__primary,
body.gplus-theme .gplus-cartModal .gplus-cartModal__secondary {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-decoration: none;
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__primary,
body.gplus-theme .gplus-cartModal .gplus-cartModal__primary:hover,
body.gplus-theme .gplus-cartModal .gplus-cartModal__primary:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__secondary,
body.gplus-theme .gplus-cartModal .gplus-cartModal__secondary:hover,
body.gplus-theme .gplus-cartModal .gplus-cartModal__secondary:focus {
  background: var(--c-bg);
  color: var(--c-ink);
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__primary:hover,
body.gplus-theme .gplus-cartModal .gplus-cartModal__secondary:hover {
  opacity: 0.85;
}

body.gplus-theme .gplus-cartModal .gplus-cartModal__primary:focus-visible,
body.gplus-theme .gplus-cartModal .gplus-cartModal__secondary:focus-visible,
body.gplus-theme .gplus-cartModal .gplus-cartModal__close:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  body.gplus-theme .gplus-cartModal .gplus-cartModal__dialog {
    padding: var(--sp-7) var(--sp-6) var(--sp-6);
  }

  body.gplus-theme .gplus-cartModal .gplus-cartModal__actions {
    flex-direction: row;
  }
}

/* ==========================================================================
   16. 商品詳細（Product/detail.twig）
   .gplus-productDetail* に閉じており、トップ・商品一覧・ヘッダ・フッタへ波及しない。
   標準クラスを上書きする場合も body.gplus-theme .gplus-productDetail... の
   祖先スコープを付け、base.css の固定幅（max-width:1130px / cell 50% /
   __btn min-width:350px 等）だけを解除する。
   .gplus-plugin-slot はフレーム側の保護ルールのままにし、
   ここでは配下の button / input / a / img へ一切スタイルを当てない。
   色は既存トークンのみ。--c-accent は本文に使わない。
   ========================================================================== */

body.gplus-theme .gplus-productDetail {
  width: auto;
  max-width: none;
  margin: 0;
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
}

/* --- 1. パンくず --- */

body.gplus-theme .gplus-productDetail__breadcrumb {
  margin-bottom: var(--sp-4);
}

body.gplus-theme .gplus-productDetail__breadcrumb .ec-topicpath {
  padding: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productDetail__breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--c-text-sub);
}

/* --- レイアウト（SPは1カラム縦積み） --- */

body.gplus-theme .gplus-productDetail__grid {
  display: block;
  margin: 0;
}

body.gplus-theme .gplus-productDetail__grid .ec-grid2__cell {
  width: auto;
  min-width: 0;
}

body.gplus-theme .gplus-productDetail .ec-sliderItemRole {
  width: auto;
  max-width: none;
  margin: 0 0 var(--sp-5);
}

body.gplus-theme .gplus-productDetail .ec-productRole__profile {
  margin-left: 0;
}

/* --- 2. 商品画像 --- */

body.gplus-theme .gplus-productDetail .slide-item {
  overflow: hidden;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
}

body.gplus-theme .gplus-productDetail .slide-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

body.gplus-theme .gplus-productDetail .item_nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

body.gplus-theme .gplus-productDetail .slideThumb {
  display: block;
  flex: 0 0 auto;
  width: calc((100% - var(--sp-2) * 3) / 4);
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  margin: 0;
  padding: 0;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 0;
  color: inherit;
  font: inherit;
  opacity: 0.8;
  cursor: pointer;
}

body.gplus-theme .gplus-productDetail .slideThumb:hover,
body.gplus-theme .gplus-productDetail .slideThumb[aria-current="true"] {
  border-color: var(--c-ink);
  opacity: 1;
}

body.gplus-theme .gplus-productDetail .slideThumb:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  opacity: 1;
}

body.gplus-theme .gplus-productDetail .slideThumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- 3〜5. ラベル・商品名・短い説明 --- */

body.gplus-theme .gplus-productDetail__label {
  margin-bottom: var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
}

body.gplus-theme .gplus-productDetail__title {
  margin: 0 0 var(--sp-3);
  color: var(--c-ink);
  font-size: var(--fs-xl);
  line-height: 1.5;
}

body.gplus-theme .gplus-productDetail__lead {
  margin-bottom: var(--sp-4);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-productDetail__tags {
  margin: 0 0 var(--sp-3);
  padding: 0;
}

body.gplus-theme .gplus-productDetail__tags .ec-productRole__tag {
  display: inline-block;
  margin: 0 var(--sp-2) var(--sp-2) 0;
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

/* --- 6. 価格 --- */

body.gplus-theme .gplus-productDetail .ec-productRole__priceRegular {
  padding-top: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productDetail .ec-productRole__price {
  padding: var(--sp-3) 0;
}

body.gplus-theme .gplus-productDetail .ec-price__price {
  padding: 0;
  color: var(--c-ink);
  font-size: var(--fs-2xl);
  line-height: 1.3;
}

body.gplus-theme .gplus-productDetail .ec-price__tax {
  margin-left: var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

/* --- 7. 商品コード・関連カテゴリ --- */

body.gplus-theme .gplus-productDetail__code,
body.gplus-theme .gplus-productDetail__category {
  padding: var(--sp-2) 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productDetail__category a {
  display: inline-block;
  min-height: var(--tap-min);
  line-height: var(--tap-min);
  color: var(--c-ink);
}

/* --- 8〜9. 規格・数量 --- */

body.gplus-theme .gplus-productDetail__actions {
  padding: var(--sp-4) 0 var(--sp-3);
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .gplus-productDetail__actions .ec-select select {
  width: 100%;
  min-height: var(--tap-min);
  margin-bottom: var(--sp-2);
  padding: 0 var(--sp-3);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productDetail__actions .ec-numberInput {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-productDetail__actions .ec-numberInput input {
  width: 88px;
  min-height: var(--tap-min);
  padding: 0 var(--sp-2);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-md);
}

/* --- 10. カートボタン --- */

body.gplus-theme .gplus-productDetail__btn {
  width: 100%;
  min-width: 0;
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-productDetail__btn .ec-blockBtn--action,
body.gplus-theme .gplus-productDetail__btn .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  background: var(--c-ink);
  color: var(--c-bg);
  font-size: var(--fs-md);
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

body.gplus-theme .gplus-productDetail__btn--favorite .ec-blockBtn--cancel {
  background: var(--c-bg);
  color: var(--c-ink);
}

body.gplus-theme .gplus-productDetail__btn .ec-blockBtn--action[disabled],
body.gplus-theme .gplus-productDetail__btn .ec-blockBtn--cancel[disabled] {
  border-color: var(--c-border-str);
  background: var(--c-bg-soft);
  color: var(--c-text-sub);
  cursor: default;
  opacity: 1;
}

/* 11. プラグイン挿入領域はフレーム側の .gplus-plugin-slot をそのまま使う。
   配下の要素へ見た目を当てないため、ここには何も書かない。 */

/* --- 14. 商品情報 --- */

body.gplus-theme .gplus-productDetail__facts {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .gplus-productDetail__factsEyebrow {
  margin-bottom: var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
}

body.gplus-theme .gplus-productDetail__factsHeading {
  margin-bottom: var(--sp-5);
  color: var(--c-ink);
  font-size: var(--fs-lg);
  letter-spacing: 0.04em;
}

body.gplus-theme .gplus-productDetail__factsList {
  margin: 0;
}

body.gplus-theme .gplus-productDetail__factsTerm {
  margin-bottom: var(--sp-1);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
  color: var(--c-ink);
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
}

body.gplus-theme .gplus-productDetail__factsDesc {
  margin: 0 0 var(--sp-4);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-productDetail__usage {
  margin: 0;
  padding-left: var(--sp-5);
  list-style: decimal;
}

body.gplus-theme .gplus-productDetail__usage li {
  margin-bottom: var(--sp-1);
}

body.gplus-theme .gplus-productDetail__ingredientsNote {
  margin-top: var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

/* --- 15. 商品補足・動画 --- */

body.gplus-theme .gplus-productDetail__legacy {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .gplus-productDetail__legacyDescription {
  margin: 0 0 var(--sp-3);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-productDetail__legacySection + .gplus-productDetail__legacySection {
  margin-top: var(--sp-5);
}

body.gplus-theme .gplus-productDetail__legacyHeading {
  margin-bottom: var(--sp-3);
  color: var(--c-ink);
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
}

body.gplus-theme .gplus-productDetail__legacyFigure {
  margin: var(--sp-5) 0 0;
  text-align: center;
}

body.gplus-theme .gplus-productDetail__legacyFigure img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

body.gplus-theme .gplus-productDetail__video {
  margin-top: var(--sp-6);
}

body.gplus-theme .gplus-productDetail__videoHeading {
  margin-bottom: var(--sp-3);
  color: var(--c-ink);
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
}

body.gplus-theme .gplus-productDetail__videoFrame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--c-bg-soft);
}

body.gplus-theme .gplus-productDetail__videoFrame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- 16. freearea --- */

body.gplus-theme .gplus-productDetail__freearea {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

@media screen and (min-width: 768px) {

  /* --- レイアウト --- */

  /*
   * トップは左右カラムを使わない1カラムページ。
   * base.css の max-width と共通PC余白を親子で二重に適用すると、
   * 広い画面ほど本文が不自然に細くなるため、トップだけ外側を全幅に戻す。
   */

  body.gplus-theme .ec-layoutRole__contents {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-6);
    max-width: none;
    padding: 0 max(var(--sp-5), calc((100% - var(--layout-max)) / 2));
  }

  body.gplus-theme .ec-layoutRole__left,
  body.gplus-theme .ec-layoutRole__right {
    flex: 0 0 220px;
    width: 220px;
  }

  body.gplus-theme .ec-layoutRole__main,
  body.gplus-theme .ec-layoutRole__mainWithColumn,
  body.gplus-theme .ec-layoutRole__mainBetweenColumn {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  /*
   * 固定ページはサイドバーを持たない。EC-CUBEのページ設定に残る
   * 2/3カラム枠で本文幅を削らないよう、Help とお問い合わせだけは
   * 1カラムの専用シェルにする。
   */
  body.gplus-theme.gplus-staticPage .ec-layoutRole__contents {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  body.gplus-theme.gplus-staticPage .ec-layoutRole__main,
  body.gplus-theme.gplus-staticPage .ec-layoutRole__mainWithColumn,
  body.gplus-theme.gplus-staticPage .ec-layoutRole__mainBetweenColumn {
    width: 100%;
    max-width: none;
  }

  body.gplus-theme.gplus-staticPage .ec-layoutRole__left,
  body.gplus-theme.gplus-staticPage .ec-layoutRole__right {
    display: none;
  }

  /* --- ヘッダ: 左ロゴ + カテゴリナビ + 検索・カート・マイページ + 言語切替 --- */

  body.gplus-theme .ec-layoutRole__header {
    align-items: center;
    padding: 0 max(var(--sp-5), calc((100% - var(--layout-max)) / 2));
  }

  /* --- 言語切替（PC）: ヘッダ右端。グローバルナビとは別領域に置く --- */

  .gplus-langSwitch--drawer {
    display: none;
  }

  .gplus-langSwitch--header {
    order: 4;
    display: block;
    position: relative;
    flex: 0 0 auto;
  }

  .gplus-langSwitch__toggle {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    min-width: var(--tap-min);
    height: var(--tap-min);
    padding: 0 var(--sp-2);
    color: var(--c-ink);
    cursor: pointer;
    /* 既定の三角マーカーを消し、下の ::after で描き直す */
    list-style: none;
  }

  .gplus-langSwitch__toggle::-webkit-details-marker {
    display: none;
  }

  .gplus-langSwitch__code {
    font-size: var(--fs-md);
    letter-spacing: var(--ls-wide);
  }

  /* 開閉を示すシェブロン。罫線で描く（角丸・影は使わない） */
  .gplus-langSwitch__toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--c-text-sub);
    border-bottom: 1px solid var(--c-text-sub);
    transform: translateY(-2px) rotate(45deg);
  }

  .gplus-langSwitch--header[open] .gplus-langSwitch__toggle::after {
    transform: translateY(1px) rotate(-135deg);
  }

  .gplus-langSwitch__list--dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: var(--z-header);
    min-width: 160px;
    padding: var(--sp-2) 0;
    background: var(--c-bg);
    border: 1px solid var(--c-border-str);
  }

  body.gplus-theme .ec-headerRole {
    order: 1;
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-start;
    min-height: var(--header-h-pc);
    padding: 0;
  }

  /* ヘッダの正式ロゴだけ大きくする。フッタのロゴは変えない */
  body.gplus-theme .ec-headerRole .gplus-logo {
    line-height: 0;
  }

  body.gplus-theme .ec-headerRole .gplus-logo__image {
    height: 52px;
    max-width: 152px;
    transform: translateY(22px);
  }

  body.gplus-theme .ec-categoryNaviRole {
    order: 2;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 var(--sp-6);
  }

  body.gplus-theme .ec-categoryNaviRole .ec-itemNav__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--sp-5);
  }

  body.gplus-theme .ec-categoryNaviRole .ec-itemNav__nav > li {
    position: relative;
  }

  body.gplus-theme .ec-categoryNaviRole .ec-itemNav__nav > li > a {
    display: flex;
    align-items: center;
    min-height: var(--tap-min);
    background: var(--c-bg);
    color: var(--c-ink);
    font-size: var(--fs-md);
    white-space: nowrap;
  }

  /* 第2階層はホバーで開く。
     マクロ上 <li> の直下に <a> と <ul> が並ぶ構造になっている。 */
  body.gplus-theme .ec-categoryNaviRole .ec-itemNav__nav > li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: var(--z-header);
    min-width: 200px;
    padding: var(--sp-2) 0;
    background: var(--c-bg);
    border: 1px solid var(--c-border-str);
  }

  body.gplus-theme .ec-categoryNaviRole .ec-itemNav__nav > li:hover ul,
  body.gplus-theme .ec-categoryNaviRole .ec-itemNav__nav > li:focus-within ul {
    display: block;
  }

  body.gplus-theme .ec-categoryNaviRole .ec-itemNav__nav ul a {
    display: block;
    min-height: var(--tap-min);
    padding: var(--sp-2) var(--sp-4);
    background: var(--c-bg);
    color: var(--c-ink);
    font-size: var(--fs-md);
    line-height: calc(var(--tap-min) - var(--sp-2) * 2);
    white-space: nowrap;
  }

  body.gplus-theme .ec-headerNaviRole {
    order: 3;
    position: static;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: var(--sp-4);
    height: auto;
    margin-left: auto;
    pointer-events: auto;
  }

  body.gplus-theme .ec-headerNaviRole__left,
  body.gplus-theme .ec-headerNaviRole__right {
    gap: var(--sp-2);
  }

  /* PCでは検索とログインナビを出し、ハンバーガーを隠す */
  body.gplus-theme .ec-headerNaviRole__search,
  body.gplus-theme .ec-headerNaviRole__nav {
    display: block;
  }

  body.gplus-theme .ec-headerRole__navSP {
    display: none;
  }

  body.gplus-theme .ec-headerSearch .ec-headerSearch__keyword input {
    width: 180px;
  }

  body.gplus-theme .ec-cartNavi__label {
    display: block;
    font-size: var(--fs-md);
    color: var(--c-ink);
  }

  /* --- ドロワーはPCでは使わない ---
     SPで開いたまま768px以上にリサイズされても残らないよう、
     .is_active 付きの状態（詳細度が高い）も明示的に打ち消す。 */

  body.gplus-theme .ec-drawerRole,
  body.gplus-theme .ec-drawerRole.is_active,
  body.gplus-theme .ec-drawerRoleClose,
  body.gplus-theme .ec-drawerRoleClose.is_active,
  body.gplus-theme .ec-overlayRole,
  body.gplus-theme.have_curtain .ec-overlayRole {
    display: none;
  }

  /* 同じ理由で、背面スクロールのロックも解除する */
  body.gplus-theme.have_curtain {
    overflow: visible;
  }

  /* --- フッタ --- */

  body.gplus-theme .ec-footerRole__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-6);
    padding: var(--sp-7) max(var(--sp-5), calc((100% - var(--layout-max)) / 2));
  }

  .gplus-footer__company {
    flex: 0 1 auto;
    margin-bottom: 0;
  }

  .gplus-footer__nav {
    flex: 0 1 auto;
    margin-bottom: 0;
  }

  body.gplus-theme .ec-footerNavi {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--sp-5);
    margin: 0;
    border-top: 0;
  }

  body.gplus-theme .ec-footerNavi__link {
    border-bottom: 0;
  }

  body.gplus-theme .ec-footerNavi__link a {
    padding: 0;
  }

  body.gplus-theme .ec-footerTitle {
    flex: 1 0 100%;
    padding-top: var(--sp-5);
    border-top: 1px solid var(--c-border);
    text-align: left;
  }

  /* 1200px以上では会社情報・案内・ブランド行を明確な3領域に分ける。 */
  @media screen and (min-width: 1200px) {
    body.gplus-theme .ec-footerRole__inner {
      display: grid !important;
      grid-template-columns: minmax(260px, 1fr) auto;
      grid-template-areas:
        "company navigation"
        "brand brand";
      align-items: start;
      column-gap: var(--sp-7);
      row-gap: var(--sp-6);
      width: 100% !important;
      max-width: var(--layout-max) !important;
      margin: 0 auto !important;
      padding: var(--sp-7) var(--sp-5) !important;
    }

    .gplus-footer__company {
      grid-area: company;
    }

    .gplus-footer__nav {
      grid-area: navigation;
      min-width: 0;
    }

    body.gplus-theme .ec-footerNavi {
      flex-wrap: nowrap;
      align-items: center;
      gap: 0 clamp(var(--sp-3), 2vw, var(--sp-5));
      white-space: nowrap;
    }

    body.gplus-theme .ec-footerNavi__link {
      flex: 0 0 auto;
    }

    body.gplus-theme .ec-footerTitle {
      grid-area: brand;
      display: flex;
      flex: none;
      align-items: center;
      gap: var(--sp-4);
      padding-top: var(--sp-5);
      text-align: left;
    }

    body.gplus-theme .ec-footerTitle__logo {
      flex: 0 0 auto;
      margin-bottom: 0;
    }
  }

  /* --- トップページ（PC） --- */

  /* お悩みは4列 */

  /* 製品は3列 */

  /* --- base.css から継承される PC 向け指定の明示解除 ---------------------
     base.css は .ec-headerRole / .ec-headerNaviRole / .ec-categoryNaviRole の
     3ブロックすべてに `max-width: 1130px` + `margin: 0 auto` + `width: 100%` を
     当てている。そのため flex の1行に載らず各ブロックが1行を占有し、
     1280px でヘッダが約236px（ロゴ中央 / カテゴリナビ / 検索・カート の3段）に
     なっていた。さらに .ec-headerNaviRole の padding-top:15px + padding-bottom:40px が
     高さを押し上げていた。

     ここで幅・自動マージン・上下padding・固定比率 widthを打ち消し、
     ロゴ左 → カテゴリナビ → 検索/会員ナビ/カート → 言語切替 を
     同一のヘッダ帯に収める。SP（768px未満）には一切影響しない。

     一律の nowrap は使っていない。768px / 1024px では
     .ec-layoutRole__header の flex-wrap により折り返すため横スクロールは出ない。
     ------------------------------------------------------------------- */

  /* 幅の上限と自動マージンを外す（3ブロック共通） */
  body.gplus-theme .ec-headerRole,
  body.gplus-theme .ec-headerNaviRole,
  body.gplus-theme .ec-categoryNaviRole {
    width: auto;
    max-width: none;
  }

  body.gplus-theme .ec-headerRole {
    margin: 0;
    padding-top: 0;
  }

  /* ロゴを左へ。base.css は __title を width:100%、その配下を text-align:center にする */
  body.gplus-theme .ec-headerRole__title {
    width: auto;
  }

  body.gplus-theme .ec-headerTitle__title {
    text-align: left;
  }

  body.gplus-theme .ec-categoryNaviRole {
    margin: 0 var(--sp-5);
  }

  /* ナビ帯。width:100% と上下padding が縦積み・高さ増の主因 */
  body.gplus-theme .ec-headerNaviRole {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 0 0 auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* 33.3% / 66.7% の固定比率を解除して内容幅にする */
  body.gplus-theme .ec-headerNaviRole__left,
  body.gplus-theme .ec-headerNaviRole__right {
    width: auto;
    min-width: 0;
  }

  body.gplus-theme .ec-headerNaviRole__search {
    margin-top: 0;
  }

  /* 検索の 43% / 57% + float を解除。狭い幅でも縮められるよう min-width も 0 にする */
  body.gplus-theme .ec-headerSearch__category,
  body.gplus-theme .ec-headerSearch__keyword {
    float: none;
    width: auto;
    min-width: 0;
  }

  body.gplus-theme .ec-headerSearch .searchform,
  body.gplus-theme .ec-headerSearch__keyword .ec-input,
  body.gplus-theme .ec-headerSearch .ec-headerSearch__keyword input {
    min-width: 0;
  }

  /* アイコンの左右マージンは gap で取るため詰める */
  body.gplus-theme .ec-headerNav__itemIcon {
    margin-right: 0;
    margin-left: 0;
  }

  /* --- 商品一覧（PC: 3列） --- */

  body.gplus-theme .gplus-productList__head {
    padding: var(--sp-6) max(var(--sp-5), calc((100% - var(--layout-max)) / 2)) var(--sp-4);
  }

  body.gplus-theme .gplus-productList__title {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme .gplus-productList {
    padding: 0 max(var(--sp-5), calc((100% - var(--layout-max)) / 2)) var(--sp-7);
  }

  body.gplus-theme .gplus-productList__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-7) var(--sp-5);
    margin-left: 0;
    margin-right: 0;
  }

  body.gplus-theme .gplus-productList__pager {
    padding: 0 max(var(--sp-5), calc((100% - var(--layout-max)) / 2)) var(--sp-7);
  }

  /* --- 商品詳細（PC: 左ギャラリー / 右商品情報の2カラム） --- */

  body.gplus-theme .gplus-productDetail {
    padding: var(--sp-5) max(var(--sp-5), calc((100% - var(--layout-max)) / 2)) var(--sp-7);
  }

  body.gplus-theme .gplus-productDetail__grid {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-7);
  }

  /* base.css の .ec-grid2 .ec-grid2__cell { width: 50% } を解除して gap を効かせる */
  body.gplus-theme .gplus-productDetail__grid .ec-grid2__cell {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  body.gplus-theme .gplus-productDetail .ec-sliderItemRole {
    margin-bottom: 0;
  }

  body.gplus-theme .gplus-productDetail__title {
    font-size: var(--fs-2xl);
  }

  /* base.css の .ec-productRole .ec-productRole__btn { width:60%; min-width:350px } を解除 */
  body.gplus-theme .gplus-productDetail__btn {
    width: 100%;
    min-width: 0;
  }

  body.gplus-theme .gplus-productDetail__facts {
    margin-top: var(--sp-7);
    padding-top: var(--sp-7);
  }

  body.gplus-theme .gplus-productDetail__factsHeading {
    font-size: var(--fs-xl);
  }

  /* 用語と説明を2カラムに並べる */
  body.gplus-theme .gplus-productDetail__factsList {
    display: grid;
    grid-template-columns: 180px 1fr;
    column-gap: var(--sp-6);
  }

  body.gplus-theme .gplus-productDetail__factsTerm {
    margin-bottom: 0;
    padding-top: var(--sp-4);
  }

  body.gplus-theme .gplus-productDetail__factsDesc {
    margin-bottom: 0;
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-4);
    border-top: 1px solid var(--c-border);
  }
}

/* ==========================================================================
   15. SP（768px未満）のハンバーガー位置の是正
   base.css の `.ec-headerNavSP { position: fixed; top: 10px; padding: 10px }` が
   効いたままで、スクロールしてもビューポート上部に残っていた。

   当初は position: static に戻したが、それだと通常フローに入ってしまい、
   375px の商品一覧で .ec-headerRole（中央ロゴのブロック）にクリックを
   遮られることを実機で確認した。

   そのため absolute に切り替える。包含ブロックは SP で position: absolute の
   .ec-headerNaviRole（top:0 / 高さ --header-h-sp）になるため、
   ビューポート固定にはならずスクロールに追従しない。
   top は 56px のヘッダ帯に 44px のタップ領域を縦中央で置く計算、
   left は --sp-2 分の余白、z-index はロゴブロックより前面に出すため。

   幅・高さ（44px タップ領域）、ARIA、function.js によるドロワー開閉、
   ドロワーのDOMは変更していない。768px 以上には適用されない。
   ========================================================================== */

@media screen and (max-width: 767px) {

  /* 標準テーマのロゴ下余白・ナビ上余白を外し、56pxの同じ帯で中央揃え。 */
  body.gplus-theme .ec-headerTitle__title h1 {
    display: flex;
    justify-content: center;
    line-height: 0;
  }

  body.gplus-theme .ec-headerTitle__title h1 .gplus-logo {
    margin: 0;
  }

  body.gplus-theme .ec-headerNaviRole {
    padding: 0 var(--sp-2);
  }

  body.gplus-theme .ec-headerRole__cart {
    z-index: 2;
  }

  body.gplus-theme .ec-headerNavSP {
    position: absolute;
    top: calc((var(--header-h-sp) - var(--tap-min)) / 2);
    left: var(--sp-2);
    z-index: 2;
    padding: 0;
  }
}

/* ==========================================================================
   17. カート（Cart/index.twig）
   すべて body.gplus-theme.cart_page .gplus-cart 配下にスコープしており、
   トップ・商品一覧・商品詳細・ヘッダ・SPドロワーへ波及しない。
   base.css は .ec-cartRole（外側のdivとformの両方に付く）へ
   display:flex / justify-content:flex-end / max-width:1130px / margin:0 auto を、
   PCでは .ec-cartRole__cart へ margin:0 10%、.ec-cartRole__actions へ
   width:30% + margin-right:10% を当てているため、それらを解除して
   「左:明細／右:サマリー」の2カラムに組み直す。

   position: sticky を壊さないよう、.gplus-cart / .gplus-cart__form /
   .gplus-cart__unit のいずれにも overflow を指定していない。

   .gplus-plugin-slot はフレーム側の既存ルールをそのまま使い、
   ここでは slot 自身にも配下の要素にも一切スタイルを当てない。
   ========================================================================== */

body.gplus-theme.cart_page .gplus-cart__pageHeader {
  padding: var(--sp-5) var(--sp-4) 0;
}

body.gplus-theme.cart_page .gplus-cart__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
}

/* 外側の .ec-cartRole と form#form_cart の両方に効く指定を解除する */
body.gplus-theme.cart_page .gplus-cart {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  /* base.css の .ec-cartRole { color: #525263 } を解除してトークン色に戻す */
  color: var(--c-text);
}

body.gplus-theme.cart_page .gplus-cart__form {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  /* form にも .ec-cartRole が付くため、同じく base.css の色指定を解除する */
  color: inherit;
}

/* --- 進捗（ゲスト5段階／会員4段階の条件はTwig側で維持） --- */

body.gplus-theme.cart_page .gplus-cart .ec-progress {
  max-width: none;
  padding: 0 0 var(--sp-5);
}

body.gplus-theme.cart_page .gplus-cart .ec-progress__number {
  width: var(--sp-6);
  height: var(--sp-6);
  line-height: var(--sp-6);
  border-radius: 0;
  background: var(--c-bg-soft);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
}

body.gplus-theme.cart_page .gplus-cart .is-complete .ec-progress__number {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme.cart_page .gplus-cart .ec-progress__label {
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.5;
}

body.gplus-theme.cart_page .gplus-cart .is-complete .ec-progress__label {
  color: var(--c-ink);
}

body.gplus-theme.cart_page .gplus-cart .ec-progress__item::after {
  height: 1px;
  background: var(--c-border);
  top: calc(var(--sp-6) / 2);
}

/* --- 警告・エラー（flashbag 3系統と分割カート警告の共通見た目） --- */

body.gplus-theme.cart_page .gplus-cart .ec-alert-warning {
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border-str);
}

body.gplus-theme.cart_page .gplus-cart .ec-alert-warning__text {
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  text-align: left;
}

/* exclamation-white.svg は白なので、淡色地では見えるよう濃色に転写する */
body.gplus-theme.cart_page .gplus-cart .ec-alert-warning__icon img {
  filter: brightness(0);
}

body.gplus-theme.cart_page .gplus-cart .ec-cartRole__totalText {
  padding: 0 0 var(--sp-4);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  text-align: left;
}

/* --- 明細テーブル（標準の table 表示モデルは変えない） --- */

body.gplus-theme.cart_page .gplus-cart .ec-cartRole__cart {
  width: auto;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-cart .ec-cartHeader__label {
  padding: var(--sp-2) var(--sp-2);
  border-bottom: 1px solid var(--c-border-str);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme.cart_page .gplus-cart .ec-cartRow > li {
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}

body.gplus-theme.cart_page .gplus-cart .ec-cartRow__img img {
  background: var(--c-bg-soft);
}

body.gplus-theme.cart_page .gplus-cart .gplus-cart__label {
  margin-bottom: var(--sp-1);
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
}

body.gplus-theme.cart_page .gplus-cart .ec-cartRow__name {
  margin-bottom: var(--sp-2);
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: 1.6;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.cart_page .gplus-cart .ec-cartRow__name a {
  color: var(--c-ink);
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.cart_page .gplus-cart .ec-cartRow__unitPrice,
body.gplus-theme.cart_page .gplus-cart .ec-cartRow__sutbtotalSP,
body.gplus-theme.cart_page .gplus-cart .ec-cartRow__amountSP {
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme.cart_page .gplus-cart .ec-cartRow__amount,
body.gplus-theme.cart_page .gplus-cart .ec-cartRow__sutbtotal {
  color: var(--c-ink);
  font-size: var(--fs-md);
}

/* 削除アンカーのタップ領域を44pxにする（PUT契約は変更しない） */
body.gplus-theme.cart_page .gplus-cart .ec-cartRow__delColumn .ec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
}

/* 数量の増減。標準は円形30pxなので、角丸なし44pxにする */
body.gplus-theme.cart_page .gplus-cart .ec-cartRow__amountUpButton,
body.gplus-theme.cart_page .gplus-cart .ec-cartRow__amountDownButton,
body.gplus-theme.cart_page .gplus-cart .ec-cartRow__amountDownButtonDisabled {
  width: var(--tap-min);
  min-width: var(--tap-min);
  max-width: var(--tap-min);
  height: var(--tap-min);
  line-height: var(--tap-min);
  margin: 0 var(--sp-1);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  background: var(--c-bg);
}

body.gplus-theme.cart_page .gplus-cart .ec-cartRow__amountDownButtonDisabled {
  border-color: var(--c-border);
  background: var(--c-bg-soft);
}

/* --- 右側サマリー --- */

body.gplus-theme.cart_page .gplus-cart .gplus-cart__deliveryFree {
  width: auto;
  margin-bottom: var(--sp-3);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  text-align: left;
}

/* 標準が案内の前に置く <br> は詰める（DOMは残す） */
body.gplus-theme.cart_page .gplus-cart .gplus-cart__deliveryFree br {
  display: none;
}

body.gplus-theme.cart_page .gplus-cart .gplus-cart__deliveryFree .ec-color-red {
  color: var(--c-ink);
}

body.gplus-theme.cart_page .gplus-cart .ec-cartRole__actions {
  width: auto;
  margin-right: 0;
  padding: var(--sp-4);
  background: var(--c-bg-soft);
  text-align: left;
}

body.gplus-theme.cart_page .gplus-cart .ec-cartRole__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding: 0 0 var(--sp-3);
  border-bottom: 1px solid var(--c-border-str);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

body.gplus-theme.cart_page .gplus-cart .ec-cartRole__totalAmount {
  margin-left: 0;
  color: var(--c-ink);
  font-size: var(--fs-xl);
}

body.gplus-theme.cart_page .gplus-cart .ec-blockBtn--action,
body.gplus-theme.cart_page .gplus-cart .ec-blockBtn--cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

body.gplus-theme.cart_page .gplus-cart .ec-blockBtn--action,
body.gplus-theme.cart_page .gplus-cart .ec-blockBtn--action:hover,
body.gplus-theme.cart_page .gplus-cart .ec-blockBtn--action:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme.cart_page .gplus-cart .ec-blockBtn--cancel,
body.gplus-theme.cart_page .gplus-cart .ec-blockBtn--cancel:hover,
body.gplus-theme.cart_page .gplus-cart .ec-blockBtn--cancel:focus {
  margin-top: var(--sp-3);
  background: var(--c-bg);
  color: var(--c-ink);
}

body.gplus-theme.cart_page .gplus-cart .gplus-plugin-slot:empty {
  display: none;
}

/* --- 空カート --- */

body.gplus-theme.cart_page .gplus-cart .ec-off3Grid {
  margin: 0;
}

/* ==========================================================================
   18. カート（768px以上）: 余白のみ。明細とサマリーは縦積みのまま
   768〜1023px は幅が足りず、右サマリー320px + gap を先に確保すると
   左の明細テーブル（商品名・カテゴリ名・数量）が干渉するため、
   2カラム化は 1024px 以上でだけ行う。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme.cart_page .gplus-cart__pageHeader {
    padding: var(--sp-6) max(var(--sp-5), calc((100% - var(--layout-max)) / 2)) 0;
  }

  body.gplus-theme.cart_page .gplus-cart__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme.cart_page .gplus-cart {
    padding: var(--sp-5) max(var(--sp-5), calc((100% - var(--layout-max)) / 2)) var(--sp-7);
  }
}

/* ==========================================================================
   18-2. カート（1024px以上）: 左に明細、右にサマリー
   ========================================================================== */

@media screen and (min-width: 1024px) {

  /* Cart 1件ごとに 明細 + サマリー を1組ずつ持つ */
  body.gplus-theme.cart_page .gplus-cart__unit {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-6);
    margin-bottom: var(--sp-7);
  }

  body.gplus-theme.cart_page .gplus-cart__items {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* 親に overflow を付けていないので sticky が効く */
  body.gplus-theme.cart_page .gplus-cart__summary {
    position: sticky;
    top: var(--sp-5);
    flex: 0 0 320px;
    width: 320px;
  }
}

/* ==========================================================================
   20. 購入時ログイン／ゲスト購入選択（Shopping/login.twig）
   Cart/index.twig と同じ body_class（cart_page）を使うため、
   すべて .gplus-shoppingLogin を含めてスコープし、カートへ波及させない。
   base.css は .ec-login / .ec-guest に #F3F4F4 の塗りと 13% パディングを、
   .ec-grid3__cell2 / __cell に 66.6% / 33.3% を当てているので、
   白基調・罫線・トークン余白に置き換える。
   この画面には支払方法・定期購入・uniple checkout・
   プラグイン挿入領域を置かない。
   ========================================================================== */

body.gplus-theme.cart_page .gplus-shoppingLogin {
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
}

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-role {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.gplus-theme.cart_page .gplus-shoppingLogin__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme.cart_page .gplus-shoppingLogin__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
}

/* --- SPは1カラム（会員ログインが先、ゲスト購入がその下） --- */

body.gplus-theme.cart_page .gplus-shoppingLogin__grid {
  display: block;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingLogin__memberCell,
body.gplus-theme.cart_page .gplus-shoppingLogin__guestCell {
  width: auto;
  min-width: 0;
}

/* --- カード（白基調・罫線・角丸なし） --- */

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-login,
body.gplus-theme.cart_page .gplus-shoppingLogin .ec-guest {
  display: block;
  height: auto;
  margin: 0 0 var(--sp-5);
  padding: var(--sp-5) var(--sp-4);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
}

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-login__icon {
  margin-bottom: var(--sp-4);
  text-align: center;
}

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-login__icon img {
  width: 32px;
  height: 32px;
}

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-login__input {
  margin-bottom: var(--sp-4);
}

/* --- 明示ラベルと入力欄 --- */

body.gplus-theme.cart_page .gplus-shoppingLogin__label {
  display: block;
  margin-bottom: var(--sp-1);
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: 1.6;
}

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-input input {
  display: block;
  width: 100%;
  min-height: var(--tap-min);
  margin-bottom: var(--sp-4);
  padding: 0 var(--sp-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-checkbox label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: 1.6;
}

/* --- 認証エラー。ja/en/ko/zh いずれでも折り返す --- */

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-errorMessage {
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border-str);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  text-align: left;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --- ボタンとリンク --- */

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

/* 会員ログインは主操作 */
body.gplus-theme.cart_page .gplus-shoppingLogin .ec-login .ec-blockBtn--cancel,
body.gplus-theme.cart_page .gplus-shoppingLogin .ec-login .ec-blockBtn--cancel:hover,
body.gplus-theme.cart_page .gplus-shoppingLogin .ec-login .ec-blockBtn--cancel:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

/* ゲスト購入は副操作 */
body.gplus-theme.cart_page .gplus-shoppingLogin .ec-guest .ec-blockBtn--cancel,
body.gplus-theme.cart_page .gplus-shoppingLogin .ec-guest .ec-blockBtn--cancel:hover,
body.gplus-theme.cart_page .gplus-shoppingLogin .ec-guest .ec-blockBtn--cancel:focus {
  background: var(--c-bg);
  color: var(--c-ink);
}

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-login__actions {
  color: var(--c-ink);
}

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-login__link {
  margin-top: var(--sp-2);
  margin-left: 0;
}

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

/* --- ゲスト購入カード --- */

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-guest__inner {
  display: block;
  text-align: left;
}

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-guest__inner p {
  margin-bottom: var(--sp-4);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme.cart_page .gplus-shoppingLogin .ec-guest__actions {
  display: block;
  color: var(--c-ink);
  text-align: left;
}

/* ==========================================================================
   21. 購入時ログイン（768px以上）: 左に会員ログイン、右にゲスト購入（2:1）
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme.cart_page .gplus-shoppingLogin {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme.cart_page .gplus-shoppingLogin__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  /* align-items 既定の stretch で両カードの上端と高さを揃える */
  body.gplus-theme.cart_page .gplus-shoppingLogin__grid {
    display: flex;
    gap: var(--sp-5);
  }

  body.gplus-theme.cart_page .gplus-shoppingLogin__memberCell {
    flex: 2 1 0;
    width: auto;
    min-width: 0;
  }

  body.gplus-theme.cart_page .gplus-shoppingLogin__guestCell {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  body.gplus-theme.cart_page .gplus-shoppingLogin__memberCell form,
  body.gplus-theme.cart_page .gplus-shoppingLogin .ec-login,
  body.gplus-theme.cart_page .gplus-shoppingLogin .ec-guest {
    height: 100%;
    margin: 0;
    padding: var(--sp-6) var(--sp-5);
  }

  /* ログインボタンと各リンクを左右に置く */
  body.gplus-theme.cart_page .gplus-shoppingLogin__actions {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
  }

  body.gplus-theme.cart_page .gplus-shoppingLogin__actions .ec-grid2__cell {
    width: auto;
    min-width: 0;
  }

  body.gplus-theme.cart_page .gplus-shoppingLogin__actions .ec-grid2__cell:first-child {
    flex: 0 0 auto;
    min-width: 200px;
  }

  body.gplus-theme.cart_page .gplus-shoppingLogin__actions .ec-grid2__cell:last-child {
    flex: 1 1 auto;
  }
}

/* ==========================================================================
   22. ゲスト購入者情報入力（Shopping/nonmember.twig）
   Cart / Shopping/login と同じ body_class（cart_page）を使うため、
   すべて .gplus-shoppingNonmember を含めてスコープし、他画面へ波及させない。
   base.css は .ec-customerRole に max-width:1130px / color:#525263 を、
   .ec-off1Grid__cell に PC で margin-left:8.33% + width:83.33% を当てているので、
   中央寄せ・最大幅・トークン色に置き換える。
   この画面には支払方法・決済ボタン・ポイント・送料・金額表示・
   プラグイン挿入領域・固定CTAを置かない。
   ========================================================================== */

body.gplus-theme.cart_page .gplus-shoppingNonmember {
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-customerRole {
  width: auto;
  max-width: none;
  margin: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
}

/* --- 進捗（標準5段階のまま。角丸を外してトークン色にする） --- */

body.gplus-theme.cart_page .gplus-shoppingNonmember__progressWrap {
  display: block;
  width: auto;
  max-width: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-progress {
  max-width: none;
  padding: 0;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-progress__number {
  width: var(--sp-6);
  height: var(--sp-6);
  line-height: var(--sp-6);
  border-radius: 0;
  background: var(--c-bg-soft);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .is-complete .ec-progress__number {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-progress__label {
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.5;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .is-complete .ec-progress__label {
  color: var(--c-ink);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-progress__item::after {
  height: 1px;
  background: var(--c-border);
  top: calc(var(--sp-6) / 2);
}

/* --- フォーム全体（SPは1カラム） --- */

body.gplus-theme.cart_page .gplus-shoppingNonmember__grid {
  display: block;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember__grid .ec-off1Grid__cell {
  width: auto;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember__defs {
  width: auto;
  margin-bottom: var(--sp-5);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember__defs dl {
  margin: 0;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember__defs dl:first-child {
  border-top: 1px solid var(--c-border);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember__defs dt {
  margin-bottom: var(--sp-2);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember__defs dd {
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-label {
  display: inline-block;
  margin-bottom: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: 1.6;
}

/* --- 入力欄。44px以上の操作領域 --- */

body.gplus-theme.cart_page .gplus-shoppingNonmember input[type="text"],
body.gplus-theme.cart_page .gplus-shoppingNonmember input[type="email"],
body.gplus-theme.cart_page .gplus-shoppingNonmember input[type="tel"],
body.gplus-theme.cart_page .gplus-shoppingNonmember select {
  width: 100%;
  max-width: 100%;
  min-height: var(--tap-min);
  padding: 0 var(--sp-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-input,
body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-select,
body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-telInput {
  margin-bottom: var(--sp-3);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-input:last-child,
body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-select:last-child {
  margin-bottom: 0;
}

/* 姓／名など横並び2項目。SPでも折り返して収める */
body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-halfInput {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-halfInput input {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  margin: 0;
}

/* 郵便番号。入力と検索リンクを1行に置き、狭い幅では折り返す */
body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-zipInput {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  color: var(--c-text-sub);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-zipInput input {
  flex: 0 1 180px;
  width: auto;
  min-width: 0;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-zipInputHelp {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  margin: 0;
  line-height: 1.5;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-zipInputHelp__icon {
  width: 20px;
  height: 20px;
  background: var(--c-ink);
  border-radius: 0;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-zipInputHelp a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

/* --- エラー表示。ja/en/ko/zh いずれでも折り返す --- */

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-errorMessage {
  margin: var(--sp-1) 0 var(--sp-2);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .error input,
body.gplus-theme.cart_page .gplus-shoppingNonmember .error select {
  border-color: var(--c-ink);
}

/* --- 送信・戻る --- */

body.gplus-theme.cart_page .gplus-shoppingNonmember__actions {
  margin-top: var(--sp-5);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember__actions .ec-off4Grid {
  display: block;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember__actions .ec-off4Grid__cell {
  width: auto;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-blockBtn--action,
body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  margin-bottom: 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-blockBtn--action,
body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-blockBtn--action:hover,
body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-blockBtn--action:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-blockBtn--cancel,
body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-blockBtn--cancel:hover,
body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-blockBtn--cancel:focus {
  margin-top: var(--sp-3);
  background: var(--c-bg);
  color: var(--c-ink);
}

/* ==========================================================================
   23. ゲスト購入者情報入力（768px以上）
   中央寄せ・最大幅960px。ラベルと入力欄を2カラムで整列させる。
   長い翻訳文でも崩れないよう、ラベル列は固定幅ではなく minmax で伸縮させる。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme.cart_page .gplus-shoppingNonmember {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme.cart_page .gplus-shoppingNonmember__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme.cart_page .gplus-shoppingNonmember__defs dl {
    display: grid;
    grid-template-columns: minmax(140px, 30%) 1fr;
    align-items: start;
    column-gap: var(--sp-5);
    padding: var(--sp-5) 0;
  }

  /* base.css の .ec-borderedDefs dt { width: 30% } / dd { width: 70%; line-height: 3 }
     を解除する。dl を grid にしているため、この割合指定が残っていると
     dt が「ラベル列の30%」、dd が「入力列の70%」へさらに縮み、
     「メールアドレス」等が不要に改行され入力欄の右に余白が出る。
     幅は grid-template-columns に任せる。折り返しは維持したいので
     white-space: nowrap は付けない。 */
  body.gplus-theme.cart_page .gplus-shoppingNonmember__defs dt {
    width: auto;
    min-width: 0;
    margin-bottom: 0;
    padding-top: var(--sp-2);
  }

  body.gplus-theme.cart_page .gplus-shoppingNonmember__defs dd {
    width: auto;
    min-width: 0;
    line-height: var(--lh-body);
  }

  body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-zipInput input {
    flex: 0 1 200px;
  }

  /* 送信と戻るを横並びにする */
  body.gplus-theme.cart_page .gplus-shoppingNonmember__actions .ec-off4Grid__cell {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
  }

  body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-blockBtn--action,
  body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-blockBtn--cancel {
    flex: 1 1 0;
    min-width: 0;
  }

  body.gplus-theme.cart_page .gplus-shoppingNonmember .ec-blockBtn--cancel {
    margin-top: 0;
    order: -1;
  }
}

/* ==========================================================================
   24. ご注文手続き（Shopping/index.twig）
   標準 Shopping/index.twig は body_class を設定しないため、根は
   body.gplus-theme .gplus-shoppingOrder に限定する。
   （body_class だけを根にした汎用 .ec-* 上書きはしない）

   base.css は .ec-orderRole に max-width:1130px / flex-direction:column、
   768px以上で flex-direction:row + __detail 66.6% / __summary 33.3% を当てる。
   768〜1023px では横幅が足りないため、2カラム化は 1024px 以上だけにする。

   なお assets/js/function.js は window.innerWidth > 767 のとき
   .ec-orderRole__summary へインラインで margin-top を書き込み、
   JSでstickyを擬似再現する。JSは変更禁止で、この画面では
   768〜1023px が縦積み・1024px以上が CSS sticky のため、
   そのインライン値を margin-top: 0 !important で無効化している。
   （インラインスタイルを打ち消せるのは author !important のみ）
   ========================================================================== */

body.gplus-theme .gplus-shoppingOrder {
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
}

body.gplus-theme .gplus-shoppingOrder .ec-role,
body.gplus-theme .gplus-shoppingOrder .ec-cartRole {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.gplus-theme .gplus-shoppingOrder__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme .gplus-shoppingOrder__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
}

/* --- 進捗（標準5段階／4段階の条件はTwig側で維持） --- */

body.gplus-theme .gplus-shoppingOrder__progressWrap {
  margin-bottom: var(--sp-5);
}

body.gplus-theme .gplus-shoppingOrder .ec-progress {
  max-width: none;
  padding: 0;
}

body.gplus-theme .gplus-shoppingOrder .ec-progress__number {
  width: var(--sp-6);
  height: var(--sp-6);
  line-height: var(--sp-6);
  border-radius: 0;
  background: var(--c-bg-soft);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
}

body.gplus-theme .gplus-shoppingOrder .is-complete .ec-progress__number {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme .gplus-shoppingOrder .ec-progress__label {
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.5;
}

body.gplus-theme .gplus-shoppingOrder .is-complete .ec-progress__label {
  color: var(--c-ink);
}

body.gplus-theme .gplus-shoppingOrder .ec-progress__item::after {
  height: 1px;
  background: var(--c-border);
  top: calc(var(--sp-6) / 2);
}

/* --- 1023px以下は縦積み。summary は詳細の後 --- */

body.gplus-theme .gplus-shoppingOrder__role {
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-shoppingOrder .ec-orderRole__detail,
body.gplus-theme .gplus-shoppingOrder .ec-orderRole__summary {
  width: auto;
  min-width: 0;
  padding: 0;
}

/* function.js のインライン margin-top を無効化する（JSは変更禁止のため） */
body.gplus-theme .gplus-shoppingOrder .ec-orderRole__summary {
  margin-top: 0 !important;
}

/* --- 見出し --- */

body.gplus-theme .gplus-shoppingOrder .ec-rectHeading {
  margin: var(--sp-6) 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .gplus-shoppingOrder .ec-rectHeading h2 {
  padding: 0;
  background: none;
  border: 0;
  color: var(--c-ink);
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* --- お客様情報 --- */

body.gplus-theme .gplus-shoppingOrder .ec-orderAccount__account p,
body.gplus-theme .gplus-shoppingOrder .ec-orderDelivery__address p {
  margin-bottom: var(--sp-1);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingOrder .ec-orderAccount__change {
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-shoppingOrder .ec-inlineBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-bg);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  cursor: pointer;
}

body.gplus-theme .gplus-shoppingOrder .ec-required {
  margin-left: var(--sp-2);
  color: var(--c-error, #a52525);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-shoppingOrder .ec-label {
  color: var(--c-ink);
  font-size: var(--fs-md);
}

/* ゲスト情報編集時に動的生成される input も44px以上にする */
body.gplus-theme .gplus-shoppingOrder .customer-form input {
  width: 100%;
  min-height: var(--tap-min);
  padding: 0 var(--sp-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-shoppingOrder .mod-button {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

/* --- 配送 --- */

body.gplus-theme .gplus-shoppingOrder .ec-orderDelivery__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-shoppingOrder .ec-borderedList {
  margin: 0;
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .gplus-shoppingOrder .ec-borderedList li {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .gplus-shoppingOrder .ec-imageGrid {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

body.gplus-theme .gplus-shoppingOrder .ec-imageGrid__img {
  flex: 0 0 72px;
  width: 72px;
  padding: 0;
  background: var(--c-bg-soft);
}

body.gplus-theme .gplus-shoppingOrder .ec-imageGrid__img img {
  width: 100%;
  height: auto;
}

body.gplus-theme .gplus-shoppingOrder .ec-imageGrid__content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  vertical-align: top;
}

body.gplus-theme .gplus-shoppingOrder .ec-imageGrid__content p {
  margin-bottom: var(--sp-1);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: 1.7;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingOrder .ec-imageGrid__content p:first-child {
  color: var(--c-ink);
}

body.gplus-theme .gplus-shoppingOrder .ec-orderDelivery__address {
  margin: var(--sp-3) 0;
}

body.gplus-theme .gplus-shoppingOrder .ec-orderDelivery__actions,
body.gplus-theme .gplus-shoppingOrder .ec-orderDelivery__edit {
  margin-bottom: var(--sp-4);
}

body.gplus-theme .gplus-shoppingOrder .ec-selects {
  margin: 0;
}

body.gplus-theme .gplus-shoppingOrder .ec-select {
  display: block;
  margin: 0 0 var(--sp-3);
}

body.gplus-theme .gplus-shoppingOrder .ec-select label {
  display: block;
  margin-bottom: var(--sp-1);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

/* --- 入力欄・選択肢 --- */

body.gplus-theme .gplus-shoppingOrder select,
body.gplus-theme .gplus-shoppingOrder input[type="text"],
body.gplus-theme .gplus-shoppingOrder textarea {
  width: 100%;
  max-width: 100%;
  min-height: var(--tap-min);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-shoppingOrder .ec-radio > div {
  margin-bottom: var(--sp-2);
}

body.gplus-theme .gplus-shoppingOrder .ec-radio label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: 1.6;
}

body.gplus-theme .gplus-shoppingOrder .ec-radio input[type="radio"] {
  width: auto;
  min-height: 0;
  margin: 0;
}

body.gplus-theme .gplus-shoppingOrder .ec-errorMessage {
  margin: var(--sp-1) 0 var(--sp-2);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 特商法の管理者入力HTMLは折り返しだけ面倒を見る */
body.gplus-theme .gplus-shoppingOrder .ec-orderConfirm .ec-input {
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --- 合計ボックス --- */

body.gplus-theme .gplus-shoppingOrder .ec-totalBox {
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-4);
  padding: var(--sp-4);
  background: var(--c-bg-soft);
  border-radius: 0;
}

body.gplus-theme .gplus-shoppingOrder .ec-totalBox__spec,
body.gplus-theme .gplus-shoppingOrder .ec-totalBox__taxRate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-shoppingOrder .ec-totalBox__spec dd,
body.gplus-theme .gplus-shoppingOrder .ec-totalBox__taxRate dd {
  margin: 0;
  text-align: right;
}

body.gplus-theme .gplus-shoppingOrder .ec-totalBox__specTotal {
  color: var(--c-ink);
}

body.gplus-theme .gplus-shoppingOrder .ec-totalBox__total,
body.gplus-theme .gplus-shoppingOrder .ec-totalBox__paymentTotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--c-border-str);
  color: var(--c-ink);
  font-size: var(--fs-md);
  text-align: left;
}

body.gplus-theme .gplus-shoppingOrder .ec-totalBox__price {
  margin-left: auto;
  color: var(--c-ink);
  font-size: var(--fs-xl);
}

body.gplus-theme .gplus-shoppingOrder .ec-totalBox__taxLabel {
  margin-left: var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-shoppingOrder .ec-totalBox__pointBlock {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border-str);
}

body.gplus-theme .gplus-shoppingOrder .ec-totalBox__btn {
  margin-top: var(--sp-4);
}

body.gplus-theme .gplus-shoppingOrder .ec-blockBtn--action,
body.gplus-theme .gplus-shoppingOrder .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

body.gplus-theme .gplus-shoppingOrder .ec-blockBtn--action,
body.gplus-theme .gplus-shoppingOrder .ec-blockBtn--action:hover,
body.gplus-theme .gplus-shoppingOrder .ec-blockBtn--action:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme .gplus-shoppingOrder .ec-blockBtn--cancel,
body.gplus-theme .gplus-shoppingOrder .ec-blockBtn--cancel:hover,
body.gplus-theme .gplus-shoppingOrder .ec-blockBtn--cancel:focus {
  margin-top: var(--sp-3);
  background: var(--c-bg);
  color: var(--c-ink);
}

/* ==========================================================================
   25. ご注文手続き（1024px以上）: 左に詳細、右にサマリー
   sticky を壊さないよう、.gplus-shoppingOrder / __role / __detail /
   __summary のいずれにも overflow を指定していない。
   top はヘッダと重ならない余白を確保する。
   ========================================================================== */

@media screen and (min-width: 1024px) {

  body.gplus-theme .gplus-shoppingOrder {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme .gplus-shoppingOrder__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme .gplus-shoppingOrder__role {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-6);
  }

  body.gplus-theme .gplus-shoppingOrder .ec-orderRole__detail {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  body.gplus-theme .gplus-shoppingOrder .ec-orderRole__summary {
    position: sticky;
    top: var(--sp-5);
    flex: 0 0 320px;
    width: 320px;
    min-width: 0;
  }

  body.gplus-theme .gplus-shoppingOrder .ec-totalBox {
    margin-top: 0;
  }

  body.gplus-theme .gplus-shoppingOrder .ec-imageGrid__img {
    flex: 0 0 88px;
    width: 88px;
  }
}

/* ==========================================================================
   26. ご注文内容のご確認（Shopping/confirm.twig）
   レイアウトは section 24 / 25 の .gplus-shoppingOrder をそのまま再利用する
   （wrapper に gplus-shoppingOrder と gplus-shoppingConfirm の両方を付けている）。
   縦積み／1024px以上の2カラム・sticky サマリー・function.js 対策の
   margin-top: 0 !important もそちらの定義がそのまま効くため、ここでは重複させない。

   ここに書くのは確認画面固有の要素だけ。
   確認画面は入力欄がなく、配送業者・配送日・配送時間・支払方法・ポイントが
   プレーンテキストで出るため、その表示だけを整える。
   ========================================================================== */

/* 配送見出し直下は見出しの区切り線だけにし、商品内の重複線も除く。 */
body.gplus-theme .gplus-shoppingConfirm .ec-orderDelivery > .ec-rectHeading + .ec-orderDelivery__item > .ec-borderedList,
body.gplus-theme .gplus-shoppingConfirm .ec-orderDelivery .ec-imageGrid {
  border-top: 0;
}

/* 値がテキストで入る .ec-select（確認画面では select 要素ではない） */
body.gplus-theme .gplus-shoppingConfirm .ec-select {
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 支払方法・利用ポイントの表示ブロック（base.css に定義がない） */
body.gplus-theme .gplus-shoppingConfirm .ec-blockRadio {
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* ご要望欄と特商法の本文。長い英語・韓国語・中国語と管理者入力HTMLを折り返す。
   管理画面で入力されたHTMLは固定幅を持つことがあるため、はみ出しは
   この .ec-input の内側だけで受け止める（ページ全体を横スクロールさせない）。
   overflow-x はこのコンテナに限定しており、sticky の祖先
   （.gplus-shoppingOrder / .ec-orderRole__detail / .ec-orderRole__summary）
   には付けていない。法定表示を隠さないよう max-height や
   display:none / visibility:hidden も使わない。 */
body.gplus-theme .gplus-shoppingConfirm .ec-orderConfirm .ec-input {
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

body.gplus-theme .gplus-shoppingConfirm .ec-orderConfirm .ec-input img {
  max-width: 100%;
  height: auto;
}

body.gplus-theme .gplus-shoppingConfirm .ec-orderConfirm .ec-input table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

/* 整形済みテキストは折り返して収める */
body.gplus-theme .gplus-shoppingConfirm .ec-orderConfirm .ec-input pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* 固定幅になり得る埋め込み要素 */
body.gplus-theme .gplus-shoppingConfirm .ec-orderConfirm .ec-input iframe,
body.gplus-theme .gplus-shoppingConfirm .ec-orderConfirm .ec-input video,
body.gplus-theme .gplus-shoppingConfirm .ec-orderConfirm .ec-input object,
body.gplus-theme .gplus-shoppingConfirm .ec-orderConfirm .ec-input embed,
body.gplus-theme .gplus-shoppingConfirm .ec-orderConfirm .ec-input svg {
  max-width: 100%;
}

/* ==========================================================================
   27. ご注文完了（Shopping/complete.twig）
   Cart / Shopping/login / Shopping/nonmember と同じ body_class（cart_page）を
   使うため、すべて .gplus-shoppingComplete を含めてスコープし、
   他の Cart / Shopping 画面へ波及させない。

   base.css は .ec-role / .ec-cartRole / .ec-cartCompleteRole に
   max-width:1130px・左右20px・font-size:16px・color:#525263 を当て、
   .ec-cartRole は display:flex になる。余白と最大幅は外側の wrapper で
   決めるため、この3つは素の block へ戻す。
   .ec-off3Grid / .ec-off4Grid は 768px以上で flex になり、セルへ
   margin-left:25% / 33.3% と width:50% / 33.3% が入るので中央寄せへ置き換える。

   この画面には支払状態表示・メール送信済み表示・決済ボタン・再決済導線・
   ウォレット接続・プラグイン挿入領域・固定CTAを置かない。

   決済方式固有の完了メッセージ（Order.complete_message）は法定・決済上の
   情報を含みうるため display:none / visibility:hidden / max-height で隠さず、
   はみ出しだけを本文コンテナ（.gplus-shoppingComplete__cell）の内側へ
   封じ込める。overflow を指定するのはこのセルだけで、この画面に
   position: sticky / fixed の要素は存在しない。
   ========================================================================== */

body.gplus-theme.cart_page .gplus-shoppingComplete {
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme.cart_page .gplus-shoppingComplete .ec-role,
body.gplus-theme.cart_page .gplus-shoppingComplete .ec-cartRole,
body.gplus-theme.cart_page .gplus-shoppingComplete .ec-cartCompleteRole {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.gplus-theme.cart_page .gplus-shoppingComplete__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme.cart_page .gplus-shoppingComplete__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
}

/* --- 進捗（ゲスト5段階／会員4段階の条件と is-complete は Twig 側で維持） --- */

body.gplus-theme.cart_page .gplus-shoppingComplete__progressWrap {
  margin-bottom: var(--sp-5);
}

body.gplus-theme.cart_page .gplus-shoppingComplete .ec-progress {
  max-width: none;
  padding: 0;
}

body.gplus-theme.cart_page .gplus-shoppingComplete .ec-progress__number {
  width: var(--sp-6);
  height: var(--sp-6);
  line-height: var(--sp-6);
  border-radius: 0;
  background: var(--c-bg-soft);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
}

body.gplus-theme.cart_page .gplus-shoppingComplete .is-complete .ec-progress__number {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme.cart_page .gplus-shoppingComplete .ec-progress__label {
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.5;
}

body.gplus-theme.cart_page .gplus-shoppingComplete .is-complete .ec-progress__label {
  color: var(--c-ink);
}

body.gplus-theme.cart_page .gplus-shoppingComplete .ec-progress__item::after {
  height: 1px;
  background: var(--c-border);
  top: calc(var(--sp-6) / 2);
}

/* --- 完了メッセージ --- */

/* base.css の .ec-reportHeading は border-top: 1px dotted #ccc と
   24px / bold を持つ。罫線はトークン色の実線へ置き換える。 */
body.gplus-theme.cart_page .gplus-shoppingComplete__heading {
  width: auto;
  margin: 0 0 var(--sp-5);
  padding: var(--sp-6) 0 0;
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-xl);
  font-weight: 400;
  text-align: center;
}

body.gplus-theme.cart_page .gplus-shoppingComplete__heading h2 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

body.gplus-theme.cart_page .gplus-shoppingComplete__grid {
  display: block;
  margin: 0;
}

/* 本文コンテナ。管理画面で入力された完了メッセージが固定幅を持つことが
   あるため、はみ出しはこのセルの内側だけで受け止め、ページ全体を
   横スクロールさせない。 */
body.gplus-theme.cart_page .gplus-shoppingComplete__cell {
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
}

body.gplus-theme.cart_page .gplus-shoppingComplete__description {
  margin: 0 0 var(--sp-6);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 注文番号。控えてもらう値なので本文色より濃くする。 */
body.gplus-theme.cart_page .gplus-shoppingComplete__description strong {
  color: var(--c-ink);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* 決済方式固有の完了メッセージ（管理画面入力HTML）を幅の中へ収める。
   非表示・切り詰めはしない。 */
body.gplus-theme.cart_page .gplus-shoppingComplete__cell a {
  overflow-wrap: anywhere;
}

/* base.css の .ec-cartCompleteRole img { width: 100% } を解除する */
body.gplus-theme.cart_page .gplus-shoppingComplete__cell img {
  width: auto;
  max-width: 100%;
  height: auto;
}

body.gplus-theme.cart_page .gplus-shoppingComplete__cell table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

body.gplus-theme.cart_page .gplus-shoppingComplete__cell pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.gplus-theme.cart_page .gplus-shoppingComplete__cell iframe,
body.gplus-theme.cart_page .gplus-shoppingComplete__cell video,
body.gplus-theme.cart_page .gplus-shoppingComplete__cell object,
body.gplus-theme.cart_page .gplus-shoppingComplete__cell embed,
body.gplus-theme.cart_page .gplus-shoppingComplete__cell svg {
  max-width: 100%;
}

/* --- CTA。base.css の height:56px / line-height:56px / white-space:nowrap を
       解除し、長い英語・韓国語・中国語でも折り返しつつ 44px 以上を保つ。 --- */

body.gplus-theme.cart_page .gplus-shoppingComplete__actions {
  display: block;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingComplete__actions .ec-off4Grid__cell {
  width: auto;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingComplete .ec-blockBtn--primary,
body.gplus-theme.cart_page .gplus-shoppingComplete .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.cart_page .gplus-shoppingComplete .ec-blockBtn--primary,
body.gplus-theme.cart_page .gplus-shoppingComplete .ec-blockBtn--primary:hover,
body.gplus-theme.cart_page .gplus-shoppingComplete .ec-blockBtn--primary:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme.cart_page .gplus-shoppingComplete .ec-blockBtn--cancel,
body.gplus-theme.cart_page .gplus-shoppingComplete .ec-blockBtn--cancel:hover,
body.gplus-theme.cart_page .gplus-shoppingComplete .ec-blockBtn--cancel:focus {
  background: var(--c-bg);
  color: var(--c-ink);
}

/* ==========================================================================
   28. ご注文完了（768px以上）
   中央寄せ。1024px / 1280px でも同じ最大幅を保ち、2カラム化はしない。
   （完了画面は明細も入力欄も持たないため、読み幅を広げる意味がない）
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme.cart_page .gplus-shoppingComplete {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme.cart_page .gplus-shoppingComplete__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme.cart_page .gplus-shoppingComplete__heading h2 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme.cart_page .gplus-shoppingComplete__actions .ec-off4Grid__cell {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   29. お届け先の変更／追加（Shopping/shipping_edit.twig）
   Cart / Shopping/login / Shopping/nonmember / Shopping/complete と同じ
   body_class（cart_page）を使うため、すべて .gplus-shoppingShippingEdit を
   含めてスコープし、他の Cart / Shopping 画面へ波及させない。
   実装済みの .gplus-shoppingNonmember は変更せず、同じデザイン言語を
   この専用スコープ内で作り直している。

   標準は .ec-role（ページ見出し）と .ec-role > .ec-registerRole（フォーム）の
   2ブロック構成。base.css は .ec-role / .ec-registerRole の双方へ
   左右20px・max-width:1130px・font-size:16px・color:#525263 を当てるので、
   .ec-registerRole 側だけ padding を外し、左右余白は .ec-role の20px に
   一本化する。これで見出しとフォームの左端が揃い、余白量も
   ゲスト購入者情報入力画面（wrapper16px + 20px = 36px）と一致する。

   この画面には支払方法・決済ボタン・金額表示・プラグイン挿入領域・
   固定CTA・新しい進捗表示を置かない。
   ========================================================================== */

body.gplus-theme.cart_page .gplus-shoppingShippingEdit {
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-role {
  width: auto;
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-registerRole {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
}

/* --- フォーム全体（SPは1カラム） --- */

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__grid {
  display: block;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__grid .ec-off1Grid__cell {
  width: auto;
  min-width: 0;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__defs {
  width: auto;
  margin-bottom: var(--sp-5);
  border-top: 0;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__defs dl {
  margin: 0;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__defs dl:first-child {
  border-top: 1px solid var(--c-border);
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__defs dt {
  min-width: 0;
  margin-bottom: var(--sp-2);
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__defs dd {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

/* 拡張フィールド（auto_render）の style_class が未知でも幅を越えない */
body.gplus-theme.cart_page .gplus-shoppingShippingEdit__defs dd > div {
  min-width: 0;
  max-width: 100%;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-label {
  display: inline-block;
  margin-bottom: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --- 入力欄。44px以上の操作領域。
       拡張フィールドが textarea や number 等を出しても崩れないよう、
       チェックボックス・ラジオを除く入力型を明示して指定する。 --- */

body.gplus-theme.cart_page .gplus-shoppingShippingEdit input[type="text"],
body.gplus-theme.cart_page .gplus-shoppingShippingEdit input[type="email"],
body.gplus-theme.cart_page .gplus-shoppingShippingEdit input[type="tel"],
body.gplus-theme.cart_page .gplus-shoppingShippingEdit input[type="url"],
body.gplus-theme.cart_page .gplus-shoppingShippingEdit input[type="number"],
body.gplus-theme.cart_page .gplus-shoppingShippingEdit input[type="search"],
body.gplus-theme.cart_page .gplus-shoppingShippingEdit input[type="password"],
body.gplus-theme.cart_page .gplus-shoppingShippingEdit input[type="date"],
body.gplus-theme.cart_page .gplus-shoppingShippingEdit select,
body.gplus-theme.cart_page .gplus-shoppingShippingEdit textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--tap-min);
  padding: 0 var(--sp-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit textarea {
  padding: var(--sp-2) var(--sp-3);
  line-height: var(--lh-body);
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-input,
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-select,
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-telInput {
  margin-bottom: var(--sp-3);
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-input:last-child,
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-select:last-child {
  margin-bottom: 0;
}

/* 姓／名など横並び2項目。SPでも折り返して収める */
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-halfInput {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-halfInput input {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  margin: 0;
}

/* 郵便番号。入力と検索リンクを1行に置き、狭い幅では折り返す */
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-zipInput {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  color: var(--c-text-sub);
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-zipInput input {
  flex: 0 1 180px;
  width: auto;
  min-width: 0;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-zipInputHelp {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  margin: 0;
  line-height: 1.5;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-zipInputHelp__icon {
  width: 20px;
  height: 20px;
  background: var(--c-ink);
  border-radius: 0;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-zipInputHelp a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--c-ink);
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
}

/* --- エラー表示。ja/en/ko/zh いずれでも折り返す --- */

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-errorMessage {
  margin: var(--sp-1) 0 var(--sp-2);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .error input,
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .error select,
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .error textarea {
  border-color: var(--c-ink);
}

/* --- 登録・戻る。幅にかかわらず高さ44px以上 --- */

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__actions {
  margin-top: var(--sp-5);
  padding-top: 0;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__actions .ec-off4Grid {
  display: block;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit__actions .ec-off4Grid__cell {
  width: auto;
  margin: 0;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-blockBtn--action,
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-blockBtn--action,
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-blockBtn--action:hover,
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-blockBtn--action:focus {
  margin-bottom: 0;
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-blockBtn--cancel,
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-blockBtn--cancel:hover,
body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-blockBtn--cancel:focus {
  margin-top: var(--sp-3);
  background: var(--c-bg);
  color: var(--c-ink);
}

/* ==========================================================================
   30. お届け先の変更／追加（768px以上）
   中央寄せ・最大幅960px（ゲスト購入者情報入力画面と同じ）。
   1024 / 1280px でも同じ最大幅のまま中央に置き、2カラム化はしない。
   ラベルと入力欄は grid で2列に整列させ、長い翻訳文でも崩れないよう
   ラベル列は固定幅ではなく minmax で伸縮させる。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme.cart_page .gplus-shoppingShippingEdit {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme.cart_page .gplus-shoppingShippingEdit__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme.cart_page .gplus-shoppingShippingEdit__defs dl {
    display: grid;
    grid-template-columns: minmax(140px, 30%) 1fr;
    align-items: start;
    column-gap: var(--sp-5);
    padding: var(--sp-5) 0;
  }

  /* base.css の .ec-borderedDefs dt { width: 30% } / dd { width: 70%; line-height: 3 }
     を解除する。dl を grid にしているため、この割合指定が残っていると
     dt が「ラベル列の30%」、dd が「入力列の70%」へさらに縮み、
     ラベルが不要に改行され入力欄の右に余白が出る。
     幅は grid-template-columns に任せる。折り返しは維持したいので
     white-space: nowrap は付けない。 */
  body.gplus-theme.cart_page .gplus-shoppingShippingEdit__defs dt {
    width: auto;
    min-width: 0;
    margin-bottom: 0;
    padding-top: var(--sp-2);
  }

  body.gplus-theme.cart_page .gplus-shoppingShippingEdit__defs dd {
    width: auto;
    min-width: 0;
    line-height: var(--lh-body);
  }

  body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-zipInput input {
    flex: 0 1 200px;
  }

  /* 登録と戻るを横並びにする */
  body.gplus-theme.cart_page .gplus-shoppingShippingEdit__actions .ec-off4Grid__cell {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
  }

  body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-blockBtn--action,
  body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-blockBtn--cancel {
    flex: 1 1 0;
    min-width: 0;
  }

  body.gplus-theme.cart_page .gplus-shoppingShippingEdit .ec-blockBtn--cancel {
    margin-top: 0;
  }
}

/* ==========================================================================
   31. 複数のお届け先（Shopping/shipping_multiple.twig）
   標準 shipping_multiple.twig は body_class を設定しないため、根は
   body.gplus-theme .gplus-shoppingMultiple に限定する。
   （body_class だけを根にした汎用 .ec-* 上書きはしない）

   base.css が持つ固定幅・table レイアウトを解除するのが主目的。
     .ec-AddAddress               padding: 0 10px / 768px以上で margin: 0 10%
     .ec-AddAddress__item         display: table / background: #f4f4f4
     .ec-AddAddress__itemThumb    display: table-cell / min-width: 160px / width: 20%
     .ec-AddAddress__itemtContent display: table-cell / padding-left: 16px / 16px
     __selectAddress select       min-width: 100%、768px以上で min-width: 350px
     __selectNumber input         display: inline-block / margin-left: 10px / width: 80px
     __selectNumber               768px以上で display: inline-block / margin-left: 30px
     __actions                    768px以上で width: 33.33% / min-width: 250px
   min-width: 350px と 160px は 375px で確実にはみ出すため、
   すべて min-width: 0 + 幅100%（またはgridトラック）へ置き換える。

   行追加（clone）で増える行は初期行と同じ class を持つため、
   ここでは :nth-child 等の位置セレクタを使わず class だけでレイアウトする。
   これで追加行も初期行と同じ配置になる。

   この画面には決済UI・JPYCボタン・プラグイン挿入領域・
   送料／ポイント／合計表示・固定CTA・新しい進捗表示を置かない。
   エラー（.text-danger / .ec-errorMessage）は非表示にしない。
   ========================================================================== */

body.gplus-theme .gplus-shoppingMultiple {
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-shoppingMultiple .ec-role {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.gplus-theme .gplus-shoppingMultiple__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme .gplus-shoppingMultiple__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress {
  margin: 0;
  padding: 0;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__info {
  margin-bottom: var(--sp-5);
  text-align: left;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__info p {
  margin: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* エラー。色は base.css の .text-danger（!important）に任せ、
   折り返しと余白だけを整える。非表示・切り詰めはしない。 */
body.gplus-theme .gplus-shoppingMultiple .text-danger,
body.gplus-theme .gplus-shoppingMultiple .ec-errorMessage {
  margin: var(--sp-1) 0 var(--sp-3);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__new {
  margin-bottom: var(--sp-5);
}

/* --- 商品ごとのブロック --- */

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__add {
  margin-bottom: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding: var(--sp-3);
  background: var(--c-bg-soft);
  border-radius: 0;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__itemThumb {
  display: block;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__itemThumb img {
  display: block;
  width: 100%;
  height: auto;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__itemtContent {
  display: block;
  min-width: 0;
  padding-left: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  vertical-align: baseline;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__itemtTitle {
  margin-bottom: var(--sp-1);
  color: var(--c-ink);
  font-weight: 400;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__itemtSize {
  margin-bottom: var(--sp-1);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__itemtPrice,
body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__itemtNumber {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --- 配送先の行。375pxでは配送先・数量・削除を縦積みにする --- */

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__select {
  display: block;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__selectAddress,
body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__selectNumber {
  display: block;
  min-width: 0;
  margin-left: 0;
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-shoppingMultiple .ec-select,
body.gplus-theme .gplus-shoppingMultiple .ec-input {
  min-width: 0;
  max-width: 100%;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__selectAddress label,
body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__selectNumber label {
  display: block;
  margin-bottom: var(--sp-1);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingMultiple select,
body.gplus-theme .gplus-shoppingMultiple input[type="text"],
body.gplus-theme .gplus-shoppingMultiple input[type="number"],
body.gplus-theme .gplus-shoppingMultiple input[type="tel"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: var(--tap-min);
  padding: 0 var(--sp-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
}

/* base.css の min-width: 100% / 350px を解除する（375pxで押し広げるため） */
body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__selectAddress select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* base.css の width: 80px / margin-left: 10px / inline-block を解除する */
body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__selectNumber input {
  display: block;
  width: 100%;
  max-width: 140px;
  margin-left: 0;
}

/* --- 行内ボタン（削除・お届け先追加・新しいお届け先） --- */

body.gplus-theme .gplus-shoppingMultiple .ec-inlineBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  margin-bottom: 0;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingMultiple .ec-inlineBtn:hover,
body.gplus-theme .gplus-shoppingMultiple .ec-inlineBtn:focus {
  background: var(--c-bg-soft);
  border-color: var(--c-ink);
  color: var(--c-ink);
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__btn {
  margin-top: var(--sp-3);
}

/* --- 戻る／選択したお届け先に送る。
       DOM順は Twig 側で「戻る → 送る」にしてある（order は使わない）。
       SPで両ボタンが接触しないよう gap で間隔を確保する。 --- */

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: auto;
  min-width: 0;
  margin: var(--sp-6) 0 0;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions .ec-blockBtn--action,
body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions .ec-blockBtn--action,
body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions .ec-blockBtn--action:hover,
body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions .ec-blockBtn--action:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions .ec-blockBtn--cancel,
body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions .ec-blockBtn--cancel:hover,
body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions .ec-blockBtn--cancel:focus {
  background: var(--c-bg);
  color: var(--c-ink);
}

/* ==========================================================================
   32. 複数のお届け先（768px以上）
   中央寄せ・最大幅960px。1024 / 1280px でも同じ最大幅のまま中央に置く。
   配送先・数量・削除を1行の grid にする。トラックはすべて minmax(0, …) か
   auto なので、長い住所・商品名・翻訳文が入っても押し広げない。
   clone された行も同じ class を持つため同じ配置になる。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme .gplus-shoppingMultiple {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme .gplus-shoppingMultiple__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress {
    margin: 0;
    padding: 0;
  }

  body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__item {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: var(--sp-4);
    padding: var(--sp-4);
  }

  body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__select {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 140px) auto;
    align-items: end;
    column-gap: var(--sp-3);
  }

  body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__selectAddress,
  body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__selectNumber {
    display: block;
    min-width: 0;
    margin-left: 0;
    margin-bottom: 0;
  }

  body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__selectNumber input {
    max-width: none;
  }

  body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions {
    flex-direction: row;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions .ec-blockBtn--action,
  body.gplus-theme .gplus-shoppingMultiple .ec-AddAddress__actions .ec-blockBtn--cancel {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ==========================================================================
   33. 複数配送先の追加（Shopping/shipping_multiple_edit.twig）
   標準は body_class を設定しないため、根は
   body.gplus-theme .gplus-shoppingMultipleEdit に限定する。
   （body_class は追加していない。cart_page 系の指定には一切依存しない）
   実装済みの .gplus-shoppingShippingEdit は変更せず、同じデザイン言語を
   この専用スコープ内で作り直している。

   標準は .ec-registerRole が見出しとフォームの両方を包む構成。
   base.css は .ec-registerRole へ左右20px・max-width:1130px・
   font-size:16px・color:#525263 を当てるので、幅と色だけ解除して
   左右20pxは残す。これで見出しとフォームの左端が揃い、余白量も
   お届け先変更画面（wrapper16px + 20px = 36px）と一致する。

   .ec-off1Grid は 768px以上で flex + セルへ margin-left:8.33% /
   width:83.33% が入るので中央寄せへ置き換える。
   .ec-registerRole__actions（小文字r）は base.css に
   padding-top:20px / text-align:center があるため、こちらで解除する。

   この画面には進捗表示・決済UI・プラグイン挿入領域・
   送料／ポイント／合計表示・固定CTAを置かない。
   ========================================================================== */

body.gplus-theme .gplus-shoppingMultipleEdit {
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-registerRole {
  width: auto;
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.gplus-theme .gplus-shoppingMultipleEdit__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme .gplus-shoppingMultipleEdit__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
}

/* --- フォーム全体（SPは1カラム） --- */

body.gplus-theme .gplus-shoppingMultipleEdit__grid {
  display: block;
  margin: 0;
}

body.gplus-theme .gplus-shoppingMultipleEdit__grid .ec-off1Grid__cell {
  width: auto;
  min-width: 0;
  margin: 0;
}

body.gplus-theme .gplus-shoppingMultipleEdit__defs {
  width: auto;
  margin-bottom: var(--sp-5);
  border-top: 0;
}

body.gplus-theme .gplus-shoppingMultipleEdit__defs dl {
  margin: 0;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .gplus-shoppingMultipleEdit__defs dl:first-child {
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .gplus-shoppingMultipleEdit__defs dt {
  min-width: 0;
  margin-bottom: var(--sp-2);
}

body.gplus-theme .gplus-shoppingMultipleEdit__defs dd {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

/* 拡張フィールド（auto_render）の style_class が未知でも幅を越えない */
body.gplus-theme .gplus-shoppingMultipleEdit__defs dd > div {
  min-width: 0;
  max-width: 100%;
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-label {
  display: inline-block;
  margin-bottom: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --- 入力欄。44px以上の操作領域。
       拡張フィールドが textarea や number 等を出しても崩れないよう、
       チェックボックス・ラジオを除く入力型を明示して指定する。 --- */

body.gplus-theme .gplus-shoppingMultipleEdit input[type="text"],
body.gplus-theme .gplus-shoppingMultipleEdit input[type="email"],
body.gplus-theme .gplus-shoppingMultipleEdit input[type="tel"],
body.gplus-theme .gplus-shoppingMultipleEdit input[type="url"],
body.gplus-theme .gplus-shoppingMultipleEdit input[type="number"],
body.gplus-theme .gplus-shoppingMultipleEdit input[type="search"],
body.gplus-theme .gplus-shoppingMultipleEdit input[type="password"],
body.gplus-theme .gplus-shoppingMultipleEdit input[type="date"],
body.gplus-theme .gplus-shoppingMultipleEdit select,
body.gplus-theme .gplus-shoppingMultipleEdit textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--tap-min);
  padding: 0 var(--sp-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-shoppingMultipleEdit textarea {
  padding: var(--sp-2) var(--sp-3);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-input,
body.gplus-theme .gplus-shoppingMultipleEdit .ec-select,
body.gplus-theme .gplus-shoppingMultipleEdit .ec-telInput {
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-input:last-child,
body.gplus-theme .gplus-shoppingMultipleEdit .ec-select:last-child {
  margin-bottom: 0;
}

/* 姓／名など横並び2項目。SPでも折り返して収める */
body.gplus-theme .gplus-shoppingMultipleEdit .ec-halfInput {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-halfInput input {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  margin: 0;
}

/* 郵便番号。入力と検索リンクを1行に置き、狭い幅では折り返す */
body.gplus-theme .gplus-shoppingMultipleEdit .ec-zipInput {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  color: var(--c-text-sub);
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-zipInput input {
  flex: 0 1 180px;
  width: auto;
  min-width: 0;
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-zipInputHelp {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  margin: 0;
  line-height: 1.5;
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-zipInputHelp__icon {
  width: 20px;
  height: 20px;
  background: var(--c-ink);
  border-radius: 0;
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-zipInputHelp a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--c-ink);
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
}

/* --- エラー表示。ja/en/ko/zh いずれでも折り返す --- */

body.gplus-theme .gplus-shoppingMultipleEdit .ec-errorMessage {
  margin: var(--sp-1) 0 var(--sp-2);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingMultipleEdit .error input,
body.gplus-theme .gplus-shoppingMultipleEdit .error select,
body.gplus-theme .gplus-shoppingMultipleEdit .error textarea {
  border-color: var(--c-ink);
}

/* --- 戻る／登録。DOM順は Twig 側で「戻る → 登録」にしてあり、
       CSS の order で視覚順だけを入れ替えることはしない。
       SP・PC とも gap で操作間隔を確保する。 --- */

body.gplus-theme .gplus-shoppingMultipleEdit__actions {
  margin-top: var(--sp-5);
  padding-top: 0;
  text-align: left;
}

body.gplus-theme .gplus-shoppingMultipleEdit__actions .ec-off4Grid {
  display: block;
  margin: 0;
}

body.gplus-theme .gplus-shoppingMultipleEdit__actions .ec-off4Grid__cell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: auto;
  margin: 0;
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-blockBtn--action,
body.gplus-theme .gplus-shoppingMultipleEdit .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-blockBtn--action,
body.gplus-theme .gplus-shoppingMultipleEdit .ec-blockBtn--action:hover,
body.gplus-theme .gplus-shoppingMultipleEdit .ec-blockBtn--action:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme .gplus-shoppingMultipleEdit .ec-blockBtn--cancel,
body.gplus-theme .gplus-shoppingMultipleEdit .ec-blockBtn--cancel:hover,
body.gplus-theme .gplus-shoppingMultipleEdit .ec-blockBtn--cancel:focus {
  background: var(--c-bg);
  color: var(--c-ink);
}

/* ==========================================================================
   34. 複数配送先の追加（768px以上）
   中央寄せ・最大幅960px（お届け先変更画面と同じ）。
   1024 / 1280px でも同じ最大幅のまま中央に置き、2カラム化はしない。
   ラベルと入力欄は grid で2列に整列させ、長い翻訳文でも崩れないよう
   ラベル列は固定幅ではなく minmax で伸縮させる。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme .gplus-shoppingMultipleEdit {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme .gplus-shoppingMultipleEdit__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme .gplus-shoppingMultipleEdit__defs dl {
    display: grid;
    grid-template-columns: minmax(140px, 30%) 1fr;
    align-items: start;
    column-gap: var(--sp-5);
    padding: var(--sp-5) 0;
  }

  /* base.css の .ec-borderedDefs dt { width: 30% } / dd { width: 70%; line-height: 3 }
     を解除する。dl を grid にしているため、この割合指定が残っていると
     dt が「ラベル列の30%」、dd が「入力列の70%」へさらに縮み、
     ラベルが不要に改行され入力欄の右に余白が出る。
     幅は grid-template-columns に任せる。折り返しは維持したいので
     white-space: nowrap は付けない。 */
  body.gplus-theme .gplus-shoppingMultipleEdit__defs dt {
    width: auto;
    min-width: 0;
    margin-bottom: 0;
    padding-top: var(--sp-2);
  }

  body.gplus-theme .gplus-shoppingMultipleEdit__defs dd {
    width: auto;
    min-width: 0;
    line-height: var(--lh-body);
  }

  body.gplus-theme .gplus-shoppingMultipleEdit .ec-zipInput input {
    flex: 0 1 200px;
  }

  /* 戻ると登録を横並びにする。DOM順のまま（order は使わない） */
  body.gplus-theme .gplus-shoppingMultipleEdit__actions .ec-off4Grid__cell {
    flex-direction: row;
    align-items: center;
  }

  body.gplus-theme .gplus-shoppingMultipleEdit .ec-blockBtn--action,
  body.gplus-theme .gplus-shoppingMultipleEdit .ec-blockBtn--cancel {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ==========================================================================
   35. お届け先の選択（Shopping/shipping.twig・会員）
   標準は body_class を設定しないため、根は
   body.gplus-theme .gplus-shoppingShippingSelect に限定する。

   base.css が持つ table レイアウトと固定割合を解除するのが主目的。
     .ec-addressList__item     display: table / width: 100% / position: relative
     .ec-addressList__address  display: table-cell / width: 80% / margin-right: 4em
     .ec-addressList__remove   padding: 16px / text-align: center
     .ec-alert-warning         background: #F99（白アイコン前提）
     .ec-addressRole__actions  margin-top: 32px / border-bottom: 1px dotted #ccc
   警告ブロックはカート画面と同じ「淡色地＋罫線＋濃色文字」に統一し、
   白い exclamation-white.svg は brightness(0) で濃色へ転写する。

   住所カードは .ec-addressList__item を position: relative にしたうえで、
   Twig 側で追加した当たり判定用 <label> を四辺いっぱいに広げ、
   カードのどこを押しても radio が選べるようにする。
   キーボード操作時は :focus-within でカード全体に輪郭を出す。
   （fixed は使わない。position: absolute のみ）

   この画面には進捗表示・決済UI・プラグイン挿入領域・
   送料／ポイント／合計表示・固定CTAを置かない。
   ========================================================================== */

body.gplus-theme .gplus-shoppingShippingSelect {
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-role,
body.gplus-theme .gplus-shoppingShippingSelect .ec-registerRole {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.gplus-theme .gplus-shoppingShippingSelect__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme .gplus-shoppingShippingSelect__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
}

body.gplus-theme .gplus-shoppingShippingSelect__grid {
  display: block;
  margin: 0;
}

body.gplus-theme .gplus-shoppingShippingSelect__grid .ec-off1Grid__cell {
  width: auto;
  min-width: 0;
  margin: 0;
}

/* --- 新しいお届け先を追加 / 警告 --- */

body.gplus-theme .gplus-shoppingShippingSelect .ec-addressRole__actions {
  margin-top: 0;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-inlineBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  margin-bottom: 0;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-inlineBtn:hover,
body.gplus-theme .gplus-shoppingShippingSelect .ec-inlineBtn:focus {
  background: var(--c-bg-soft);
  border-color: var(--c-ink);
  color: var(--c-ink);
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-alert-warning {
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border-str);
  text-align: left;
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-alert-warning__inner {
  display: block;
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-alert-warning__inner__item {
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--sp-2);
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-alert-warning__icon {
  flex: 0 0 20px;
  margin-right: 0;
}

/* exclamation-white.svg は白なので、淡色地では見えるよう濃色に転写する */
body.gplus-theme .gplus-shoppingShippingSelect .ec-alert-warning__icon img {
  filter: brightness(0);
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-alert-warning__text {
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  text-align: left;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --- 住所カード --- */

body.gplus-theme .gplus-shoppingShippingSelect__list {
  margin-bottom: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-addressList__item {
  display: flex;
  position: relative;
  align-items: flex-start;
  gap: var(--sp-3);
  width: auto;
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--c-border);
}

/* キーボードで radio にfocusが来たとき、カード全体で位置がわかるようにする */
body.gplus-theme .gplus-shoppingShippingSelect .ec-addressList__item:focus-within {
  outline: 2px solid var(--c-ink);
  outline-offset: -2px;
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-addressList__remove {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0;
  text-align: left;
}

body.gplus-theme .gplus-shoppingShippingSelect input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-addressList__address {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin-right: 0;
  padding: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-addressList__address div:first-child {
  color: var(--c-ink);
}

/* カード全体の当たり判定。Twig 側で追加した空ラベルを四辺へ広げる。
   position: absolute のみで、fixed は使わない。 */
body.gplus-theme .gplus-shoppingShippingSelect__cardHit {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  cursor: pointer;
}

/* --- 戻る／選択したお届け先に送る。
       DOM順は Twig 側で「戻る → 送る」にしてあり、
       CSS の order で視覚順だけを入れ替えることはしない。
       SP・PC とも gap で操作間隔を確保する。 --- */

body.gplus-theme .gplus-shoppingShippingSelect__actions {
  margin-top: var(--sp-5);
  padding-top: 0;
  text-align: left;
}

body.gplus-theme .gplus-shoppingShippingSelect__actions .ec-off4Grid {
  display: block;
  margin: 0;
}

body.gplus-theme .gplus-shoppingShippingSelect__actions .ec-off4Grid__cell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: auto;
  margin: 0;
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-blockBtn--action,
body.gplus-theme .gplus-shoppingShippingSelect .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-blockBtn--action,
body.gplus-theme .gplus-shoppingShippingSelect .ec-blockBtn--action:hover,
body.gplus-theme .gplus-shoppingShippingSelect .ec-blockBtn--action:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme .gplus-shoppingShippingSelect .ec-blockBtn--cancel,
body.gplus-theme .gplus-shoppingShippingSelect .ec-blockBtn--cancel:hover,
body.gplus-theme .gplus-shoppingShippingSelect .ec-blockBtn--cancel:focus {
  background: var(--c-bg);
  color: var(--c-ink);
}

/* ==========================================================================
   36. お届け先の選択（768px以上）
   中央寄せ・最大幅960px。1024 / 1280px でも同じ最大幅のまま中央に置く。
   住所カードは1カラムのまま読み幅だけ整える（固定幅では押し広げない）。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme .gplus-shoppingShippingSelect {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme .gplus-shoppingShippingSelect__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme .gplus-shoppingShippingSelect .ec-addressList__item {
    gap: var(--sp-4);
    padding: var(--sp-5) var(--sp-3);
  }

  /* 戻ると送信を横並びにする。DOM順のまま（order は使わない） */
  body.gplus-theme .gplus-shoppingShippingSelect__actions .ec-off4Grid__cell {
    flex-direction: row;
    align-items: center;
    max-width: 480px;
  }

  body.gplus-theme .gplus-shoppingShippingSelect .ec-blockBtn--action,
  body.gplus-theme .gplus-shoppingShippingSelect .ec-blockBtn--cancel {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ==========================================================================
   37. 購入エラー（Shopping/shopping_error.twig）
   標準は body_class = 'cart_page' を設定するが、カート画面の指定は
   すべて .gplus-cart でスコープされているため干渉しない。
   ここでは専用 wrapper だけを根にする。

   Shopping/alert.twig はテーマ側に置かず標準へフォールバックさせているので、
   その出力（.ec-cartRole__error > .ec-alert-warning > __inner > __inner__item >
   __icon / __text）を wrapper 配下で整える。
   base.css の .ec-alert-warning は background:#F99 と白アイコン前提のため、
   カート画面・お届け先選択画面と同じ「淡色地＋罫線＋濃色文字」に統一し、
   白い exclamation-white.svg は brightness(0) で濃色へ転写する。
   base.css の .ec-alert-warning__text は word-break: break-all なので、
   日本語・韓国語・中国語が不自然に切れないよう normal + anywhere に変える。

   エラー本文は法的・業務上の情報を含みうるため、display:none /
   visibility:hidden / max-height / overflow による非表示・切り詰めはしない。
   固定CTAも置かない。
   ========================================================================== */

body.gplus-theme .gplus-shoppingError {
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-shoppingError .ec-role {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.gplus-theme .gplus-shoppingError__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme .gplus-shoppingError__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
}

/* --- alert.twig（標準テンプレート）の出力 --- */

body.gplus-theme .gplus-shoppingError .ec-cartRole__error {
  width: auto;
  margin-bottom: var(--sp-5);
  text-align: left;
}

body.gplus-theme .gplus-shoppingError .ec-alert-warning {
  display: block;
  width: auto;
  max-width: none;
  margin-bottom: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border-str);
  text-align: left;
}

body.gplus-theme .gplus-shoppingError .ec-alert-warning__inner {
  display: block;
}

body.gplus-theme .gplus-shoppingError .ec-alert-warning__inner__item {
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--sp-2);
}

body.gplus-theme .gplus-shoppingError .ec-alert-warning__icon {
  flex: 0 0 20px;
  margin-right: 0;
}

/* exclamation-white.svg は白なので、淡色地では見えるよう濃色に転写する */
body.gplus-theme .gplus-shoppingError .ec-alert-warning__icon img {
  filter: brightness(0);
}

/* 長い日本語・英語・韓国語・中国語のエラー文を折り返す。
   非表示・切り詰めはしない。 */
body.gplus-theme .gplus-shoppingError .ec-alert-warning__text {
  min-width: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  text-align: left;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --- カートへ戻る --- */

body.gplus-theme .gplus-shoppingError__grid {
  display: block;
  margin: 0;
}

body.gplus-theme .gplus-shoppingError__grid .ec-off3Grid__cell {
  width: auto;
  min-width: 0;
  margin: 0;
}

body.gplus-theme .gplus-shoppingError__actions {
  display: block;
  margin: 0;
}

body.gplus-theme .gplus-shoppingError__actions .ec-off4Grid__cell {
  width: auto;
  margin: 0;
}

body.gplus-theme .gplus-shoppingError .ec-blockBtn--cancel,
body.gplus-theme .gplus-shoppingError .ec-blockBtn--cancel:hover,
body.gplus-theme .gplus-shoppingError .ec-blockBtn--cancel:focus {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   38. 購入エラー（768px以上）
   中央寄せ・最大幅960px。1024 / 1280px でも同じ最大幅のまま中央に置く。
   戻るリンクだけ読みやすい幅に絞って中央へ置く。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme .gplus-shoppingError {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme .gplus-shoppingError__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme .gplus-shoppingError__actions .ec-off4Grid__cell {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   39. 固定ページ（Help/guide・agreement・privacy・tradelaw・about）
   5画面とも body_class を持たないため、根は
   body.gplus-theme .gplus-helpPage に限定する。
   ページ固有の指定だけ .gplus-helpTradelaw を足す
   （.gplus-helpPage と同じ要素に付く gplus 専用 wrapper）。

   GPLUS_THEME_SPEC.md §4-7 の「汎用の1カラムレイアウト」をここで1つ用意し、
   5画面で共有する。

   base.css の解除対象:
     .ec-role       max-width:1130px / 左右20px / font-size:16px / color:#525263
     .ec-off1Grid   768px以上で flex + セルへ margin-left:8.33% / width:83.33%
     .ec-borderedDefs  dt { width:30% } / dd { width:70%; line-height:3 }

   特商法（tradelaw）の dd は管理画面で入力された HTML を |raw で出力する
   法定表示なので、display:none / visibility:hidden / max-height では
   隠さず切り詰めず、はみ出しだけを dd の内側へ封じ込める。
   overflow を指定するのはその dd だけで、祖先には付けない。
   ========================================================================== */

body.gplus-theme .gplus-helpPage {
  display: block;
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-helpPage .ec-role {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.gplus-theme .gplus-helpPage__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme .gplus-helpPage__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-helpPage__grid {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.gplus-theme .gplus-helpPage__grid .ec-off1Grid__cell {
  display: block !important;
  position: static;
  flex: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* 旧公式サイトから移行した本文と、デモ段階の確認注記 */
body.gplus-theme .gplus-helpPage__notice {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  background: var(--c-bg);
  color: var(--c-text-sub);
}

body.gplus-theme .gplus-helpPage__notice p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-helpPage__notice p + p {
  margin-top: var(--sp-2);
}

body.gplus-theme .gplus-helpPage__index {
  margin-bottom: var(--sp-6);
  border: 1px solid var(--c-border);
}

body.gplus-theme .gplus-helpPage__index ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

body.gplus-theme .gplus-helpPage__index li {
  min-width: 0;
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .gplus-helpPage__index li:last-child {
  border-bottom: 0;
}

body.gplus-theme .gplus-helpPage__index li:nth-child(odd) {
  border-right: 1px solid var(--c-border);
}

body.gplus-theme .gplus-helpPage__index li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}

body.gplus-theme .gplus-helpPage__index a {
  display: flex;
  min-height: var(--tap-min);
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  color: var(--c-ink);
  font-size: var(--fs-sm);
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-helpPage__content {
  color: var(--c-text-sub);
}

body.gplus-theme .gplus-helpPage__content > p:first-child {
  margin-top: 0;
}

body.gplus-theme .gplus-helpPage__section {
  margin-top: var(--sp-6);
  scroll-margin-top: calc(var(--header-h-sp) + var(--sp-4));
}

body.gplus-theme .gplus-helpPage__section:first-child {
  margin-top: 0;
}

body.gplus-theme .gplus-helpPage__section h2 {
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-ink);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-helpPage__section h3 {
  margin: var(--sp-4) 0 var(--sp-2);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-helpPage__section p,
body.gplus-theme .gplus-helpPage__section li,
body.gplus-theme .gplus-helpPage__content > p {
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-helpPage__section p {
  margin: var(--sp-3) 0 0;
}

body.gplus-theme .gplus-helpPage__section ol,
body.gplus-theme .gplus-helpPage__section ul {
  margin: var(--sp-3) 0 0;
  padding-left: 1.5em;
}

body.gplus-theme .gplus-helpPage__section li + li {
  margin-top: var(--sp-2);
}

body.gplus-theme .gplus-helpPage__preline {
  white-space: pre-line;
}

body.gplus-theme .gplus-helpPage__tableWrap {
  max-width: 100%;
  margin-top: var(--sp-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.gplus-theme .gplus-helpPage__table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

body.gplus-theme .gplus-helpPage__table caption {
  margin-bottom: var(--sp-2);
  color: var(--c-ink);
  font-weight: 500;
  text-align: left;
}

body.gplus-theme .gplus-helpPage__table th,
body.gplus-theme .gplus-helpPage__table td {
  min-width: 5.5em;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-helpPage__table th {
  background: var(--c-bg);
  color: var(--c-ink);
  font-weight: 500;
}

body.gplus-theme .gplus-helpPage__table td {
  white-space: nowrap;
}

body.gplus-theme .gplus-helpPage__table th:last-child,
body.gplus-theme .gplus-helpPage__table td:last-child {
  width: 8em;
  white-space: nowrap;
}

/* 代引手数料は2列だけなので、横スクロール表の860px最小幅を継承させない。 */
body.gplus-theme .gplus-helpPage__table--compact {
  min-width: 0;
  table-layout: fixed;
}

body.gplus-theme .gplus-helpPage__table--compact th,
body.gplus-theme .gplus-helpPage__table--compact td,
body.gplus-theme .gplus-helpPage__table--compact th:last-child,
body.gplus-theme .gplus-helpPage__table--compact td:last-child {
  min-width: 0;
  white-space: normal;
}

body.gplus-theme .gplus-helpPage__notes {
  margin-top: var(--sp-4);
}

/* --- 定義リスト（特商法・当サイトについて） --- */

body.gplus-theme .gplus-helpPage__defs {
  width: auto;
  margin-bottom: 0;
  border-top: 0;
}

body.gplus-theme .gplus-helpPage__defs dl {
  margin: 0;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .gplus-helpPage__defs dl:first-child {
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .gplus-helpPage__defs dt {
  min-width: 0;
  margin-bottom: var(--sp-2);
}

body.gplus-theme .gplus-helpPage__defs dd {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-helpPage .ec-label {
  display: inline-block;
  margin-bottom: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --- 特商法の管理HTML。非表示・切り詰めはせず、幅だけ封じ込める --- */

body.gplus-theme .gplus-helpTradelaw .gplus-helpPage__defs dd {
  overflow-x: auto;
}

body.gplus-theme .gplus-helpTradelaw .gplus-helpPage__defs dd a {
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-helpTradelaw .gplus-helpPage__defs dd img {
  width: auto;
  max-width: 100%;
  height: auto;
}

body.gplus-theme .gplus-helpTradelaw .gplus-helpPage__defs dd table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

body.gplus-theme .gplus-helpTradelaw .gplus-helpPage__defs dd pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-helpTradelaw .gplus-helpPage__defs dd iframe,
body.gplus-theme .gplus-helpTradelaw .gplus-helpPage__defs dd video,
body.gplus-theme .gplus-helpTradelaw .gplus-helpPage__defs dd object,
body.gplus-theme .gplus-helpTradelaw .gplus-helpPage__defs dd embed,
body.gplus-theme .gplus-helpTradelaw .gplus-helpPage__defs dd svg {
  max-width: 100%;
}

/* ==========================================================================
   40. 固定ページ（768px以上）
   中央寄せ・最大幅1120px。広いPCでは本文・表を十分な幅で表示する。
   定義リストはラベルと内容の2列に整列させ、長い翻訳文でも崩れないよう
   ラベル列は固定幅ではなく minmax で伸縮させる。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme .gplus-helpPage {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme .gplus-helpPage__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme .gplus-helpPage__index ul {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.gplus-theme .gplus-helpPage__index li,
  body.gplus-theme .gplus-helpPage__index li:last-child {
    border-right: 1px solid var(--c-border);
    border-bottom: 0;
  }

  body.gplus-theme .gplus-helpPage__index li:last-child:nth-child(odd) {
    grid-column: auto;
    border-right: 0;
  }

  body.gplus-theme .gplus-helpPage__section {
    scroll-margin-top: calc(var(--header-h-pc) + var(--sp-4));
  }

  body.gplus-theme .gplus-helpPage__defs dl {
    /* PCでは「項目名　値」を同じ行で読む定義リストにする。
       項目列を画面の30%まで広げず、値をすぐ右から始める。 */
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: 100%;
    padding: var(--sp-5) 0;
  }

  /* base.css の .ec-borderedDefs dt { width: 30% } / dd { width: 70%; line-height: 3 }
     を解除する。横並びの定義リストにしているため、この割合指定が残っていると
     ラベルが不要に改行され、内容側の右に余白が出る。
     幅は grid-template-columns に任せる。折り返しは維持したいので
     white-space: nowrap は付けない。 */
  body.gplus-theme .gplus-helpPage__defs dt {
    display: block;
    flex: 0 0 12em;
    width: 12em;
    min-width: 0;
    margin-bottom: 0;
    padding: 0 var(--sp-5) 0 0 !important;
    line-height: var(--lh-body);
  }

  body.gplus-theme .gplus-helpPage__defs dd {
    display: block;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 !important;
    line-height: var(--lh-body);
  }

  body.gplus-theme .gplus-helpPage__defs dt .ec-label {
    line-height: var(--lh-body);
  }
}

@media screen and (min-width: 1024px) {
  body.gplus-theme .gplus-helpPage__table {
    min-width: 0;
  }
}

/* ===========================================================================
   41. お問い合わせ（Contact/index・confirm・complete 共通）
   3画面とも body_class を持たないため、根は
   body.gplus-theme .gplus-contactPage に限定する。
   画面固有の指定だけ .gplus-contactIndex / .gplus-contactConfirm /
   .gplus-contactComplete を足す（いずれも .gplus-contactPage と
   同じ要素に付く gplus 専用 wrapper）。

   base.css の解除対象:
     .ec-contactRole / .ec-contactConfirmRole / .ec-contactCompleteRole
       max-width:1130px / 左右20px / font-size:16px / color:#525263
     .ec-contactRole p                margin: 16px 0
     .ec-off1Grid  768px以上で flex + セルへ margin-left:8.33% / width:83.33%
     .ec-borderedDefs  dt { width:30% } / dd { width:70%; line-height:3 }

   独自Ajax・自動送信・外部APIは足さない。固定CTAも置かない。
   ========================================================================== */

body.gplus-theme .gplus-contactPage {
  display: block;
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-contactPage .ec-role,
body.gplus-theme .gplus-contactPage .ec-contactRole,
body.gplus-theme .gplus-contactPage .ec-contactConfirmRole,
body.gplus-theme .gplus-contactPage .ec-contactCompleteRole {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.gplus-theme .gplus-contactPage__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme .gplus-contactPage__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-contactPage__grid {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.gplus-theme .gplus-contactPage__grid .ec-off1Grid__cell {
  display: block !important;
  position: static;
  flex: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* 案内文・注記 */
body.gplus-theme .gplus-contactPage__notice,
body.gplus-theme .gplus-contactPage__note {
  margin: 0 0 var(--sp-5);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-contactPage__note {
  margin: var(--sp-2) 0 0;
}

/* --- 定義リスト --- */

body.gplus-theme .gplus-contactPage__defs {
  width: auto;
  margin-bottom: var(--sp-5);
  border-top: 0;
}

body.gplus-theme .gplus-contactPage__defs dl {
  margin: 0;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .gplus-contactPage__defs dl:first-child {
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .gplus-contactPage__defs dt {
  min-width: 0;
  margin-bottom: var(--sp-2);
}

body.gplus-theme .gplus-contactPage__defs dd {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 拡張フィールド（auto_render）の style_class が未知でも幅を越えない */
body.gplus-theme .gplus-contactPage__defs dd > div {
  min-width: 0;
  max-width: 100%;
}

body.gplus-theme .gplus-contactPage .ec-label {
  display: inline-block;
  margin-bottom: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --- 入力欄。44px以上の操作領域。
       拡張フィールドが textarea や number 等を出しても崩れないよう、
       チェックボックス・ラジオを除く入力型を明示して指定する。 --- */

body.gplus-theme .gplus-contactPage input[type="text"],
body.gplus-theme .gplus-contactPage input[type="email"],
body.gplus-theme .gplus-contactPage input[type="tel"],
body.gplus-theme .gplus-contactPage input[type="url"],
body.gplus-theme .gplus-contactPage input[type="number"],
body.gplus-theme .gplus-contactPage input[type="search"],
body.gplus-theme .gplus-contactPage input[type="password"],
body.gplus-theme .gplus-contactPage input[type="date"],
body.gplus-theme .gplus-contactPage select,
body.gplus-theme .gplus-contactPage textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--tap-min);
  padding: 0 var(--sp-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-contactPage textarea {
  min-height: calc(var(--tap-min) * 3);
  padding: var(--sp-2) var(--sp-3);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-contactPage .ec-input,
body.gplus-theme .gplus-contactPage .ec-select,
body.gplus-theme .gplus-contactPage .ec-telInput {
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-contactPage .ec-input:last-child,
body.gplus-theme .gplus-contactPage .ec-select:last-child {
  margin-bottom: 0;
}

/* 姓／名など横並び2項目。SPでも折り返して収める */
body.gplus-theme .gplus-contactPage .ec-halfInput {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-contactPage .ec-halfInput input {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  margin: 0;
}

/* 郵便番号。入力と検索リンクを1行に置き、狭い幅では折り返す */
body.gplus-theme .gplus-contactPage .ec-zipInput {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  color: var(--c-text-sub);
}

body.gplus-theme .gplus-contactPage .ec-zipInput input {
  flex: 0 1 180px;
  width: auto;
  min-width: 0;
}

body.gplus-theme .gplus-contactPage .ec-zipInputHelp {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  margin: 0;
  line-height: 1.5;
}

body.gplus-theme .gplus-contactPage .ec-zipInputHelp__icon {
  width: 20px;
  height: 20px;
  background: var(--c-ink);
  border-radius: 0;
}

body.gplus-theme .gplus-contactPage .ec-zipInputHelp a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--c-ink);
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
}

/* --- エラー表示。ja/en/ko/zh いずれでも折り返す --- */

body.gplus-theme .gplus-contactPage .ec-errorMessage {
  margin: var(--sp-1) 0 var(--sp-2);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-contactPage .error input,
body.gplus-theme .gplus-contactPage .error select,
body.gplus-theme .gplus-contactPage .error textarea {
  border-color: var(--c-ink);
}

/* --- 操作ボタン。SP・PC とも gap で間隔を確保する --- */

body.gplus-theme .gplus-contactPage__actions {
  margin-top: var(--sp-5);
  padding-top: 0;
  text-align: left;
}

body.gplus-theme .gplus-contactPage__actions .ec-off4Grid {
  display: block;
  margin: 0;
}

body.gplus-theme .gplus-contactPage__actions .ec-off4Grid__cell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: auto;
  margin: 0;
}

body.gplus-theme .gplus-contactPage .ec-blockBtn--action,
body.gplus-theme .gplus-contactPage .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-contactPage .ec-blockBtn--action,
body.gplus-theme .gplus-contactPage .ec-blockBtn--action:hover,
body.gplus-theme .gplus-contactPage .ec-blockBtn--action:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme .gplus-contactPage .ec-blockBtn--cancel,
body.gplus-theme .gplus-contactPage .ec-blockBtn--cancel:hover,
body.gplus-theme .gplus-contactPage .ec-blockBtn--cancel:focus {
  background: var(--c-bg);
  color: var(--c-ink);
}

/* ==========================================================================
   42. お問い合わせ（768px以上）
   中央寄せ・最大幅960px。1024 / 1280px でも同じ最大幅のまま中央に置く。
   ラベルと入力欄は grid で2列に整列させ、長い翻訳文でも崩れないよう
   ラベル列は固定幅ではなく minmax で伸縮させる。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme .gplus-contactPage {
    width: 100% !important;
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme .gplus-contactPage__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme .gplus-contactPage__defs dl {
    display: grid;
    grid-template-columns: minmax(140px, 30%) 1fr;
    align-items: start;
    column-gap: var(--sp-5);
    padding: var(--sp-5) 0;
  }

  /* base.css の .ec-borderedDefs dt { width: 30% } / dd { width: 70%; line-height: 3 }
     を解除する。dl を grid にしているため、この割合指定が残っていると
     ラベルが不要に改行され、入力欄の右に余白が出る。
     幅は grid-template-columns に任せる。折り返しは維持したいので
     white-space: nowrap は付けない。 */
  body.gplus-theme .gplus-contactPage__defs dt {
    width: auto;
    min-width: 0;
    margin-bottom: 0;
    padding-top: var(--sp-2);
  }

  body.gplus-theme .gplus-contactPage__defs dd {
    width: auto;
    min-width: 0;
    line-height: var(--lh-body);
  }

  body.gplus-theme .gplus-contactPage .ec-zipInput input {
    flex: 0 1 200px;
  }

  body.gplus-theme .gplus-contactPage__actions .ec-off4Grid__cell {
    flex-direction: row;
    align-items: center;
    max-width: 480px;
  }

  body.gplus-theme .gplus-contactPage .ec-blockBtn--action,
  body.gplus-theme .gplus-contactPage .ec-blockBtn--cancel {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ==========================================================================
   43. お問い合わせ（確認）固有
   レイアウトは section 41 / 42 の .gplus-contactPage をそのまま再利用する
   （wrapper に gplus-contactPage と gplus-contactConfirm の両方を付けている）。
   ここに書くのは、入力欄ではなくプレーンテキストが入る dd の見た目だけ。
   ボタンのDOM順は標準のまま（送信 → 戻る）で、order による並べ替えはしない。
   ========================================================================== */

body.gplus-theme .gplus-contactConfirm .gplus-contactPage__defs dd {
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

/* ==========================================================================
   44. お問い合わせ（完了）固有
   レイアウトは section 41 / 42 の .gplus-contactPage をそのまま再利用する
   （wrapper に gplus-contactPage と gplus-contactComplete の両方を付けている）。
   ここに書くのは完了画面固有の見出し・本文・CTAだけ。

   base.css の解除対象:
     .ec-reportHeading      border-top: 1px dotted #ccc / 24px / bold（768px以上で32px）
     .ec-reportDescription  font-size:16px / line-height:1.4
     .ec-off3Grid / .ec-off4Grid  768px以上で flex + セルへ margin-left 25% / 33.3%
   ========================================================================== */

body.gplus-theme .gplus-contactComplete__heading {
  width: auto;
  margin: 0 0 var(--sp-5);
  padding: var(--sp-6) 0 0;
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-xl);
  font-weight: 400;
  text-align: center;
}

body.gplus-theme .gplus-contactComplete__heading h2 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-contactComplete__grid {
  display: block;
  margin: 0;
}

body.gplus-theme .gplus-contactComplete__grid .ec-off3Grid__cell {
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

body.gplus-theme .gplus-contactComplete__description {
  margin: 0 0 var(--sp-6);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-contactComplete__actions {
  display: block;
  margin: 0;
}

body.gplus-theme .gplus-contactComplete__actions .ec-off4Grid__cell {
  width: auto;
  margin: 0;
}

@media screen and (min-width: 768px) {

  body.gplus-theme .gplus-contactComplete__heading h2 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme .gplus-contactComplete__actions .ec-off4Grid__cell {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   45. マイページ共通（body_class = 'mypage'）
   body_class 'mypage' を使うのは標準の Mypage/** 12画面だけなので、
   根を body.gplus-theme.mypage にしても他画面へは波及しない
   （Cart / Shopping / Product / Help / Contact はいずれも別の body_class か
     body_class 無しで、それぞれ専用 wrapper でスコープ済み）。

   各画面は block main の最外に .gplus-mypage を持たせ、ページの余白と
   最大幅はこの wrapper だけで決める。標準テンプレートは block main の中でも
   .ec-layoutRole__main を出す（フレームの <main> と同名classが入れ子になる）ため、
   内側の .ec-layoutRole__main は素通しにして二重の余白を作らない。

   base.css の解除対象:
     .ec-mypageRole / .ec-welcomeMsg   左右16px / font-size:16px / color:#525263
     .ec-role / .ec-registerCompleteRole 等  max-width:1130px / 左右20px
     .ec-off1Grid / .ec-off2Grid / .ec-off3Grid / .ec-off4Grid
       768px以上で flex + セルへ margin-left / width の割合指定
     .ec-navlistRole__item  width:50% 固定 / .active a の色 #DE5D50
     .ec-borderedDefs  dt { width:30% } / dd { width:70%; line-height:3 }

   375pxは1カラム・左右16px、768px以上は中央寄せ・最大960px。
   固定CTAは置かない。CSS の order による並べ替えもしない。
   ========================================================================== */

body.gplus-theme.mypage .gplus-mypage {
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

/* 標準テンプレート側の .ec-layoutRole__main（フレームの <main> と入れ子になる） */
body.gplus-theme.mypage .gplus-mypage .ec-layoutRole__main {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.gplus-theme.mypage .gplus-mypage .ec-role,
body.gplus-theme.mypage .gplus-mypage .ec-mypageRole,
body.gplus-theme.mypage .gplus-mypage .ec-welcomeMsg,
body.gplus-theme.mypage .gplus-mypage .ec-registerCompleteRole {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.gplus-theme.mypage .gplus-mypage .ec-pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme.mypage .gplus-mypage .ec-pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypage .ec-para-normal {
  margin: 0 0 var(--sp-4);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 機能ON/OFFで項目数が変わっても、全セルの罫線と幅を揃える。 */

body.gplus-theme.mypage .gplus-mypageNav {
  margin-bottom: var(--sp-5);
}

body.gplus-theme.mypage .gplus-mypageNav .ec-navlistRole__navlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--c-border);
  border-left: 1px solid var(--c-border);
}

body.gplus-theme.mypage .gplus-mypageNav .ec-navlistRole__item {
  display: flex;
  flex: 1 1 140px;
  min-width: 0;
  width: auto;
  border: 0;
  border-bottom: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
  font-weight: 400;
  text-align: center;
}

body.gplus-theme.mypage .gplus-mypageNav .ec-navlistRole__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--sp-3) var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypageNav .ec-navlistRole__item:hover {
  background: var(--c-bg-soft);
}

body.gplus-theme.mypage .gplus-mypageNav .active a {
  color: var(--c-ink);
  background: var(--c-bg-soft);
}

@media (max-width: 767px) {
  body.gplus-theme.mypage .gplus-mypageNav .ec-navlistRole__navlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.gplus-theme.mypage .gplus-mypageNav__welcome {
  margin: 0 0 var(--sp-5);
}

body.gplus-theme.mypage .gplus-mypageNav__welcome p {
  margin: 0 0 var(--sp-1);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --- 共通のグリッド解除 --- */

body.gplus-theme.mypage .gplus-mypage .ec-off1Grid,
body.gplus-theme.mypage .gplus-mypage .ec-off2Grid,
body.gplus-theme.mypage .gplus-mypage .ec-off3Grid,
body.gplus-theme.mypage .gplus-mypage .ec-off4Grid {
  display: block;
  margin: 0;
}

body.gplus-theme.mypage .gplus-mypage .ec-off1Grid__cell,
body.gplus-theme.mypage .gplus-mypage .ec-off2Grid__cell,
body.gplus-theme.mypage .gplus-mypage .ec-off3Grid__cell,
body.gplus-theme.mypage .gplus-mypage .ec-off4Grid__cell {
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

/* --- 共通のボタン --- */

body.gplus-theme.mypage .gplus-mypage .ec-blockBtn,
body.gplus-theme.mypage .gplus-mypage .ec-blockBtn--action,
body.gplus-theme.mypage .gplus-mypage .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypage .ec-blockBtn,
body.gplus-theme.mypage .gplus-mypage .ec-blockBtn:hover,
body.gplus-theme.mypage .gplus-mypage .ec-blockBtn:focus,
body.gplus-theme.mypage .gplus-mypage .ec-blockBtn--action,
body.gplus-theme.mypage .gplus-mypage .ec-blockBtn--action:hover,
body.gplus-theme.mypage .gplus-mypage .ec-blockBtn--action:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme.mypage .gplus-mypage .ec-blockBtn--cancel,
body.gplus-theme.mypage .gplus-mypage .ec-blockBtn--cancel:hover,
body.gplus-theme.mypage .gplus-mypage .ec-blockBtn--cancel:focus {
  background: var(--c-bg);
  color: var(--c-ink);
}

body.gplus-theme.mypage .gplus-mypage .ec-inlineBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  margin-bottom: 0;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypage .ec-inlineBtn:hover,
body.gplus-theme.mypage .gplus-mypage .ec-inlineBtn:focus {
  background: var(--c-bg-soft);
  border-color: var(--c-ink);
  color: var(--c-ink);
}

body.gplus-theme.mypage .gplus-mypage .ec-errorMessage {
  margin: var(--sp-1) 0 var(--sp-3);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   46. マイページ ログイン（Mypage/login.twig）
   base.css の .ec-login は背景 #F3F4F4 と左右13%のパディングを持つので、
   トークン色と余白へ置き換える。
   ========================================================================== */

body.gplus-theme.mypage .gplus-mypageLogin .ec-login {
  margin: 0;
  padding: var(--sp-5) var(--sp-4);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
}

body.gplus-theme.mypage .gplus-mypageLogin .ec-login .ec-icon img {
  width: 48px;
  height: 48px;
}

body.gplus-theme.mypage .gplus-mypageLogin .ec-login__input {
  margin-bottom: var(--sp-5);
}

body.gplus-theme.mypage .gplus-mypageLogin input[type="text"],
body.gplus-theme.mypage .gplus-mypageLogin input[type="email"],
body.gplus-theme.mypage .gplus-mypageLogin input[type="password"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--tap-min);
  margin-bottom: var(--sp-3);
  padding: 0 var(--sp-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme.mypage .gplus-mypageLogin .ec-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  margin: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
}

body.gplus-theme.mypage .gplus-mypageLogin__flash {
  margin: var(--sp-2) 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* DOM順（ログイン → パスワードを忘れた方 → 新規会員登録）のまま縦に積む。
   order による並べ替えはしない。 */
body.gplus-theme.mypage .gplus-mypageLogin__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0;
}

body.gplus-theme.mypage .gplus-mypageLogin__actions .ec-grid2__cell {
  width: auto;
  min-width: 0;
}

body.gplus-theme.mypage .gplus-mypageLogin .ec-login__actions {
  color: inherit;
}

body.gplus-theme.mypage .gplus-mypageLogin .ec-login__link {
  margin: 0 0 var(--sp-2);
}

body.gplus-theme.mypage .gplus-mypageLogin .ec-login__link .ec-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--c-ink);
  font-size: var(--fs-md);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   47. マイページ共通（768px以上）
   中央寄せ・最大幅960px。1024 / 1280px でも同じ最大幅のまま中央に置く。
   ログイン画面だけは入力欄が少ないので読み幅を 640px に絞る。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme.mypage .gplus-mypage {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme.mypage .gplus-mypage .ec-pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme.mypage .gplus-mypageLogin {
    max-width: 640px;
  }

  body.gplus-theme.mypage .gplus-mypageLogin .ec-login {
    padding: var(--sp-6) var(--sp-6) var(--sp-5);
  }

  body.gplus-theme.mypage .gplus-mypageLogin__actions {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-5);
  }

  body.gplus-theme.mypage .gplus-mypageLogin__actions .ec-grid2__cell {
    flex: 1 1 0;
  }
}

/* ==========================================================================
   48. マイページ 履歴一覧 / 履歴詳細 / お気に入り
   いずれも body_class = 'mypage' なので根は body.gplus-theme.mypage。
   画面固有は .gplus-mypageIndex / .gplus-mypageHistory / .gplus-mypageFavorite
   （どれも .gplus-mypage と同じ要素に付く gplus 専用 wrapper）。

   base.css の解除対象:
     .ec-historyRole__contents  border-top: 1px solid #ccc
     .ec-historyRole__detail    border-top: 1px dotted #ccc
     .ec-favoriteRole__item     width: 47.5%
     .ec-closeBtn--circle       border-radius: 50% / background: #B8BEC4 / 40px
     .ec-orderRole              max-width:1130px、768px以上で detail 66.6% /
                                summary 33.3%
     .ec-orderMail__link a / __close a  色 #0092C4
   ========================================================================== */

/* --- 履歴一覧 --- */

body.gplus-theme.mypage .gplus-mypageIndex__order {
  margin-bottom: var(--sp-5);
}

body.gplus-theme.mypage .gplus-mypage .ec-historyRole__contents {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--c-border);
  color: inherit;
}

body.gplus-theme.mypage .gplus-mypage .ec-historyRole__detail {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-3);
}

body.gplus-theme.mypage .gplus-mypage .ec-historyListHeader__date {
  margin: 0 0 var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme.mypage .gplus-mypage .ec-definitions,
body.gplus-theme.mypage .gplus-mypage .ec-definitions--soft {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-2);
}

body.gplus-theme.mypage .gplus-mypage .ec-definitions dt,
body.gplus-theme.mypage .gplus-mypage .ec-definitions--soft dt {
  min-width: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
}

body.gplus-theme.mypage .gplus-mypage .ec-definitions dd,
body.gplus-theme.mypage .gplus-mypage .ec-definitions--soft dd {
  min-width: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypage .ec-historyListHeader__action {
  margin: var(--sp-3) 0 0;
}

body.gplus-theme.mypage .gplus-mypage .ec-imageGrid {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border: 0;
}

body.gplus-theme.mypage .gplus-mypage .ec-imageGrid__img {
  width: auto;
  min-width: 0;
  padding: 0;
}

body.gplus-theme.mypage .gplus-mypage .ec-imageGrid__img img {
  display: block;
  width: 100%;
  height: auto;
}

body.gplus-theme.mypage .gplus-mypage .ec-imageGrid__content {
  width: auto;
  min-width: 0;
  padding: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypage .ec-historyRole__detailTitle {
  margin: 0 0 var(--sp-1);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypage .ec-historyRole__detailPrice {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-md);
  font-weight: 400;
}

/* --- 定期購入一覧（テキスト明細と停止確認） --- */

body.gplus-theme.mypage .gplus-mypageSubscription .gplus-mypageSubscription__item {
  min-width: 0;
  padding: var(--sp-3) 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypageSubscription .gplus-mypageSubscription__item + .gplus-mypageSubscription__item {
  border-top: 1px solid var(--c-border);
}

body.gplus-theme.mypage .gplus-mypageSubscription .gplus-mypageSubscription__stop {
  min-width: 0;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
}

body.gplus-theme.mypage .gplus-mypageSubscription .gplus-mypageSubscription__confirmation {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  min-width: 0;
  min-height: var(--tap-min);
  margin: 0 0 var(--sp-3);
  padding: var(--sp-2) 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  cursor: pointer;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypageSubscription .gplus-mypageSubscription__confirmation input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

body.gplus-theme.mypage .gplus-mypage .ec-pagerRole {
  margin-top: var(--sp-5);
}

/* --- お気に入り --- */

body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__header {
  margin-bottom: var(--sp-4);
}

body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__header p {
  margin: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__itemList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
}

body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__item {
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  position: relative;
}

body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__item .ec-closeBtn--circle {
  display: flex;
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  min-width: var(--tap-min);
  max-width: var(--tap-min);
  height: var(--tap-min);
  background: var(--c-ink);
  border-radius: 0;
}

body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__item .ec-closeBtn--circle .ec-icon img {
  position: static;
  display: block;
  width: 12px;
  height: 12px;
  margin: 0;
}

body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__itemThumb {
  display: block;
  margin-bottom: var(--sp-2);
}

body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__item-image {
  margin: 0;
  background: var(--c-bg-soft);
}

body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__itemTitle {
  margin: 0 0 var(--sp-1);
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: 1.6;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__itemPrice {
  margin: auto 0 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
}

/* --- 履歴詳細 --- */

body.gplus-theme.mypage .gplus-mypageHistory .ec-orderRole {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-orderRole__detail,
body.gplus-theme.mypage .gplus-mypageHistory .ec-orderRole__summary {
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 0;
}

/* assets/js/function.js は window.innerWidth > 767 のとき
   .ec-orderRole__summary へインラインで margin-top を書き込む。
   768〜1023px は縦積みで sticky を使わないため、その余白は全幅で無効化する
   （インラインスタイルを打ち消せるのは author !important のみ）。
   宣言はここ1箇所だけで、1024px以上のブロックには重複させない。 */
body.gplus-theme.mypage .gplus-mypageHistory .ec-orderRole__summary {
  margin-top: 0 !important;
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-rectHeading {
  margin: var(--sp-5) 0 var(--sp-3);
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-rectHeading h2 {
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: var(--sp-2);
  color: var(--c-ink);
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: 0.04em;
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-orderDelivery__title {
  margin: var(--sp-4) 0 var(--sp-2);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-orderDelivery__address p,
body.gplus-theme.mypage .gplus-mypageHistory .ec-orderPayment p,
body.gplus-theme.mypage .gplus-mypageHistory .ec-orderConfirm p {
  margin: 0 0 var(--sp-1);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-color-accent {
  color: var(--c-ink);
}

/* メール履歴。件名と「閉じる」は button なのでキーボードで操作できる。
   クリックは親要素へバブリングし、function.js のハンドラがそのまま動く。 */
body.gplus-theme.mypage .gplus-mypageHistory .ec-orderMail {
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-orderMail__time {
  margin-bottom: var(--sp-1);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme.mypage .gplus-mypageHistory .gplus-mypageHistory__mailToggle,
body.gplus-theme.mypage .gplus-mypageHistory .gplus-mypageHistory__mailClose {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-orderMail__body {
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-orderMail__close {
  margin: var(--sp-2) 0 0;
}

/* 金額サマリー */
body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox {
  margin: var(--sp-5) 0 0;
  padding: var(--sp-4);
  background: var(--c-bg-soft);
  border-radius: 0;
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox__spec,
body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox__taxRate {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-2);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox__spec dt,
body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox__spec dd,
body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox__taxRate dt,
body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox__taxRate dd {
  min-width: 0;
  margin: 0;
  font-weight: 400;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox__total,
body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox__paymentTotal {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border-str);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox__price {
  margin-left: var(--sp-2);
  color: var(--c-ink);
  font-size: var(--fs-lg);
  font-weight: 400;
}

/* 小さい文字なので、白背景でコントラスト不足の --c-text-mute (2.83:1) は使わず
   --c-text-sub (5.44:1) にする。tokens.css の値そのものは変更していない。 */
body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox__taxLabel {
  margin-left: var(--sp-1);
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
}

body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox .ec-blockBtn--action {
  margin-top: var(--sp-4);
}

body.gplus-theme.mypage .gplus-mypageHistory__back {
  margin-top: var(--sp-6);
}

/* ==========================================================================
   49. マイページ 履歴一覧 / お気に入り（768px以上）
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme.mypage .gplus-mypageFavorite .ec-favoriteRole__itemList {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
  }

  body.gplus-theme.mypage .gplus-mypage .ec-imageGrid {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: var(--sp-4);
  }
}

/* ==========================================================================
   50. マイページ 履歴詳細（1024px以上）
   左に明細、右に320pxのサマリー。768〜1023px は横幅が足りないため縦積みのまま。

   assets/js/function.js が書き込むインラインの margin-top は、768〜1023px も
   1024px以上も不要なので、section 48 の全幅ルール1箇所で
   margin-top: 0 !important として打ち消している（ここでは重複させない）。
   購入手続き画面（section 24 / 25）と同じ安全条件。
   sticky を壊さないよう .ec-orderRole / __detail / __summary には
   overflow を指定していない。
   ========================================================================== */

@media screen and (min-width: 1024px) {

  /* section 48 の
     body.gplus-theme.mypage .gplus-mypageHistory .ec-orderRole { display: block }
     と同じか高い詳細度が必要なので、ここでは .ec-orderRole と
     .gplus-mypageHistory__role の両方を含めて指定する。 */
  body.gplus-theme.mypage .gplus-mypageHistory .ec-orderRole.gplus-mypageHistory__role {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-6);
  }

  body.gplus-theme.mypage .gplus-mypageHistory .gplus-mypageHistory__role .ec-orderRole__detail {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  /* margin-top の打ち消しは全幅ルール側で1回だけ宣言しているので、ここには置かない */
  body.gplus-theme.mypage .gplus-mypageHistory .gplus-mypageHistory__role .ec-orderRole__summary {
    position: sticky;
    top: var(--sp-5);
    flex: 0 0 320px;
    width: 320px;
    max-width: none;
    min-width: 0;
  }

  body.gplus-theme.mypage .gplus-mypageHistory .ec-totalBox {
    margin-top: 0;
  }
}

/* ==========================================================================
   51. マイページ フォーム共通（会員情報編集 / お届け先の追加・変更）
   base.css の .ec-borderedDefs（dt 30% / dd 70%・line-height:3）と
   .ec-birth select（inline-block / 背景 rgb(248,248,248)）を解除する。
   375pxはラベル→入力の縦積み、768px以上は2列。
   ========================================================================== */

body.gplus-theme.mypage .gplus-mypage__defs {
  width: auto;
  margin-bottom: var(--sp-5);
  border-top: 0;
}

body.gplus-theme.mypage .gplus-mypage__defs dl {
  margin: 0;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme.mypage .gplus-mypage__defs dl:first-child {
  border-top: 1px solid var(--c-border);
}

body.gplus-theme.mypage .gplus-mypage__defs dt {
  min-width: 0;
  margin-bottom: var(--sp-2);
}

body.gplus-theme.mypage .gplus-mypage__defs dd {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

/* 拡張フィールド（auto_render）の style_class が未知でも幅を越えない */
body.gplus-theme.mypage .gplus-mypage__defs dd > div {
  min-width: 0;
  max-width: 100%;
}

body.gplus-theme.mypage .gplus-mypage .ec-label {
  display: inline-block;
  margin-bottom: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypage input[type="text"],
body.gplus-theme.mypage .gplus-mypage input[type="email"],
body.gplus-theme.mypage .gplus-mypage input[type="tel"],
body.gplus-theme.mypage .gplus-mypage input[type="url"],
body.gplus-theme.mypage .gplus-mypage input[type="number"],
body.gplus-theme.mypage .gplus-mypage input[type="search"],
body.gplus-theme.mypage .gplus-mypage input[type="password"],
body.gplus-theme.mypage .gplus-mypage input[type="date"],
body.gplus-theme.mypage .gplus-mypage select,
body.gplus-theme.mypage .gplus-mypage textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--tap-min);
  padding: 0 var(--sp-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme.mypage .gplus-mypage textarea {
  padding: var(--sp-2) var(--sp-3);
  line-height: var(--lh-body);
}

body.gplus-theme.mypage .gplus-mypage .ec-input,
body.gplus-theme.mypage .gplus-mypage .ec-select,
body.gplus-theme.mypage .gplus-mypage .ec-telInput {
  margin-bottom: var(--sp-3);
}

body.gplus-theme.mypage .gplus-mypage .ec-input:last-child,
body.gplus-theme.mypage .gplus-mypage .ec-select:last-child {
  margin-bottom: 0;
}

body.gplus-theme.mypage .gplus-mypage .ec-halfInput {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

body.gplus-theme.mypage .gplus-mypage .ec-halfInput input {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  margin: 0;
}

body.gplus-theme.mypage .gplus-mypage .ec-zipInput {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  color: var(--c-text-sub);
}

body.gplus-theme.mypage .gplus-mypage .ec-zipInput input {
  flex: 0 1 180px;
  width: auto;
  min-width: 0;
}

body.gplus-theme.mypage .gplus-mypage .ec-zipInputHelp {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  margin: 0;
  line-height: 1.5;
}

body.gplus-theme.mypage .gplus-mypage .ec-zipInputHelp__icon {
  width: 20px;
  height: 20px;
  background: var(--c-ink);
  border-radius: 0;
}

body.gplus-theme.mypage .gplus-mypage .ec-zipInputHelp a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--c-ink);
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
}

/* 生年月日。年・月・日を折り返し可能に並べる */
body.gplus-theme.mypage .gplus-mypage .ec-birth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

body.gplus-theme.mypage .gplus-mypage .ec-birth select {
  display: block;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  background: var(--c-bg);
}

body.gplus-theme.mypage .gplus-mypage .ec-birth span {
  margin: 0;
  color: var(--c-text-sub);
}

/* 性別のラジオ群 */
body.gplus-theme.mypage .gplus-mypage .ec-radio {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}

body.gplus-theme.mypage .gplus-mypage .ec-radio label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  margin: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
}

body.gplus-theme.mypage .gplus-mypage .ec-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
}

body.gplus-theme.mypage .gplus-mypage .error input,
body.gplus-theme.mypage .gplus-mypage .error select,
body.gplus-theme.mypage .gplus-mypage .error textarea {
  border-color: var(--c-ink);
}

body.gplus-theme.mypage .gplus-mypage__actions {
  margin-top: var(--sp-5);
  padding-top: 0;
  text-align: left;
}

body.gplus-theme.mypage .gplus-mypage__actions .ec-off4Grid__cell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* --- 完了画面（会員情報編集 / 退会）で共通の見出しと本文 --- */

body.gplus-theme.mypage .gplus-mypage__reportHeading {
  width: auto;
  margin: 0 0 var(--sp-5);
  padding: var(--sp-6) 0 0;
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-xl);
  font-weight: 400;
  text-align: center;
}

body.gplus-theme.mypage .gplus-mypage__reportHeading h2 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypage__reportDescription {
  margin: 0 0 var(--sp-6);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypage__completeActions {
  margin: 0;
}

/* ==========================================================================
   52. マイページ フォーム共通（768px以上）
   ラベルと入力欄を2列に整列させる。長い翻訳文でも崩れないよう
   ラベル列は固定幅ではなく minmax で伸縮させる。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme.mypage .gplus-mypage__defs dl {
    display: grid;
    grid-template-columns: minmax(140px, 30%) 1fr;
    align-items: start;
    column-gap: var(--sp-5);
    padding: var(--sp-5) 0;
  }

  /* base.css の .ec-borderedDefs dt { width: 30% } / dd { width: 70%; line-height: 3 }
     を解除する。幅は grid-template-columns に任せる。
     折り返しは維持したいので white-space: nowrap は付けない。 */
  body.gplus-theme.mypage .gplus-mypage__defs dt {
    width: auto;
    min-width: 0;
    margin-bottom: 0;
    padding-top: var(--sp-2);
  }

  body.gplus-theme.mypage .gplus-mypage__defs dd {
    width: auto;
    min-width: 0;
    line-height: var(--lh-body);
  }

  body.gplus-theme.mypage .gplus-mypage .ec-zipInput input {
    flex: 0 1 200px;
  }

  body.gplus-theme.mypage .gplus-mypage__actions .ec-off4Grid__cell,
  body.gplus-theme.mypage .gplus-mypage__completeActions .ec-off4Grid__cell {
    max-width: 320px;
    margin: 0 auto;
  }

  body.gplus-theme.mypage .gplus-mypage__reportHeading h2 {
    font-size: var(--fs-2xl);
  }
}

/* ==========================================================================
   53. マイページ お届け先一覧（Mypage/delivery.twig）
   base.css の .ec-addressList__item は display:table、__address は
   display:table-cell / width:80% / margin-right:4em、__action は
   position:relative / top:27px という固定的な指定なので、
   375pxで折り返せる flex に置き換える。
   削除・変更は44px以上の操作領域にする。
   ========================================================================== */

body.gplus-theme.mypage .gplus-mypageDelivery .ec-addressRole__actions {
  margin: 0 0 var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme.mypage .gplus-mypageDelivery__list {
  border-top: 1px solid var(--c-border);
}

body.gplus-theme.mypage .gplus-mypageDelivery .ec-addressList__item {
  display: flex;
  position: relative;
  align-items: flex-start;
  gap: var(--sp-3);
  width: auto;
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme.mypage .gplus-mypageDelivery .ec-addressList__remove {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  min-width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 1px solid var(--c-border-str);
  border-radius: 0;
}

body.gplus-theme.mypage .gplus-mypageDelivery .ec-addressList__remove .ec-icon img {
  display: block;
  width: 12px;
  height: 12px;
}

body.gplus-theme.mypage .gplus-mypageDelivery .ec-addressList__address {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin-right: 0;
  padding: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypageDelivery .ec-addressList__address div:first-child {
  color: var(--c-ink);
}

body.gplus-theme.mypage .gplus-mypageDelivery .ec-addressList__action {
  position: static;
  flex: 0 0 auto;
  top: auto;
  padding: 0;
  text-align: right;
}

/* ==========================================================================
   54. マイページ お届け先一覧（768px以上）
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme.mypage .gplus-mypageDelivery .ec-addressList__item {
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-5) var(--sp-3);
  }
}

/* ==========================================================================
   55. マイページ 退会（withdraw / withdraw_confirm / withdraw_complete）
   標準は警告アイコンを包む div にインラインの font-size:100px を持たせて
   サイズを決めていた。Twig 側でその見た目専用のインラインstyleを
   .gplus-mypageWithdraw__icon へ置き換えたので、ここでサイズを決める。

   取消と退会実行のDOM順（取消 → 実行）は標準のままで、
   CSS の order による並べ替えはしない。固定CTAも置かない。
   ========================================================================== */

body.gplus-theme.mypage .gplus-mypageWithdraw__icon {
  margin: 0 0 var(--sp-5);
  text-align: center;
}

body.gplus-theme.mypage .gplus-mypageWithdraw__icon .ec-icon {
  display: inline-block;
  margin: 0;
}

body.gplus-theme.mypage .gplus-mypageWithdraw__icon .ec-icon img {
  display: block;
  width: 40px;
  height: 40px;
}

body.gplus-theme.mypage .gplus-mypageWithdraw__title {
  margin: 0 0 var(--sp-3);
  color: var(--c-ink);
  font-size: var(--fs-lg);
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypageWithdraw__description {
  margin: 0 0 var(--sp-6);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.mypage .gplus-mypageWithdraw .ec-withdrawRole,
body.gplus-theme.mypage .gplus-mypageWithdraw .ec-withdrawConfirmRole,
body.gplus-theme.mypage .gplus-mypageWithdrawComplete .ec-withdrawCompleteRole {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* 取消と退会実行。SP・PC とも gap で間隔を確保する（DOM順のまま） */
body.gplus-theme.mypage .gplus-mypage__completeActions .ec-off4Grid__cell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media screen and (min-width: 768px) {

  body.gplus-theme.mypage .gplus-mypageWithdraw__title {
    font-size: var(--fs-xl);
  }
}

/* ==========================================================================
   56. 会員登録・パスワード再発行（Entry/** ・ Forgot/**）
   Entry は body_class = 'registration_page'、Forgot は body_class を持たない。
   共通 wrapper を .gplus-accountPage にして、根は
   body.gplus-theme .gplus-accountPage に限定する。
   画面別は .gplus-entryIndex / .gplus-entryConfirm / .gplus-entryComplete /
   .gplus-entryActivate / .gplus-forgotIndex / .gplus-forgotReset /
   .gplus-forgotComplete（どれも .gplus-accountPage と同じ要素に付く）。

   base.css の解除対象:
     .ec-registerRole / .ec-registerCompleteRole / .ec-forgotRole /
     .ec-forgetCompleteRole / .ec-role
       max-width:1130px / 左右20px / font-size:16px / color:#525263
     .ec-off1Grid / .ec-off3Grid / .ec-off4Grid
       768px以上で flex + セルへ margin-left / width の割合指定
     .ec-borderedDefs  dt { width:30% } / dd { width:70%; line-height:3 }
     .ec-birth select  inline-block / 背景 rgb(248,248,248)
     .ec-registerRole .ec-registerRole__actions  padding-top:20px / text-align:center
     .ec-reportHeading  border-top: 1px dotted #ccc / 24px / bold

   375pxは1カラム・左右16px、768px以上は中央寄せ・最大960px。
   fixed / sticky の CTA は置かない。DOM順の入れ替えに order も使わない。
   小さい文字へ低コントラストの --c-text-mute は使わない。
   ========================================================================== */

body.gplus-theme .gplus-accountPage {
  padding: var(--sp-4) var(--sp-4) var(--sp-7);
  color: var(--c-text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-accountPage .ec-role,
body.gplus-theme .gplus-accountPage .ec-registerRole,
body.gplus-theme .gplus-accountPage .ec-registerCompleteRole,
body.gplus-theme .gplus-accountPage .ec-forgotRole,
body.gplus-theme .gplus-accountPage .ec-forgetCompleteRole {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.gplus-theme .gplus-accountPage__pageHeader {
  margin-bottom: var(--sp-5);
}

body.gplus-theme .gplus-accountPage__pageHeader h1 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-accountPage__notice {
  margin: 0 0 var(--sp-3);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-accountPage .ec-forgotRole__intro {
  margin-bottom: var(--sp-5);
}

/* --- グリッド解除 --- */

body.gplus-theme .gplus-accountPage .ec-off1Grid,
body.gplus-theme .gplus-accountPage .ec-off3Grid,
body.gplus-theme .gplus-accountPage .ec-off4Grid {
  display: block;
  margin: 0;
}

body.gplus-theme .gplus-accountPage .ec-off1Grid__cell,
body.gplus-theme .gplus-accountPage .ec-off3Grid__cell,
body.gplus-theme .gplus-accountPage .ec-off4Grid__cell {
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

/* --- 定義リスト（入力・確認とも共通） --- */

body.gplus-theme .gplus-accountPage__defs {
  width: auto;
  margin-bottom: var(--sp-5);
  border-top: 0;
}

body.gplus-theme .gplus-accountPage__defs dl {
  margin: 0;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

body.gplus-theme .gplus-accountPage__defs dl:first-child {
  border-top: 1px solid var(--c-border);
}

body.gplus-theme .gplus-accountPage__defs dt {
  min-width: 0;
  margin-bottom: var(--sp-2);
}

body.gplus-theme .gplus-accountPage__defs dd {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 拡張フィールド（auto_render）の style_class が未知でも幅を越えない */
body.gplus-theme .gplus-accountPage__defs dd > div {
  min-width: 0;
  max-width: 100%;
}

body.gplus-theme .gplus-accountPage .ec-label {
  display: inline-block;
  margin-bottom: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* --- 入力欄。44px以上の操作領域 --- */

body.gplus-theme .gplus-accountPage input[type="text"],
body.gplus-theme .gplus-accountPage input[type="email"],
body.gplus-theme .gplus-accountPage input[type="tel"],
body.gplus-theme .gplus-accountPage input[type="url"],
body.gplus-theme .gplus-accountPage input[type="number"],
body.gplus-theme .gplus-accountPage input[type="search"],
body.gplus-theme .gplus-accountPage input[type="password"],
body.gplus-theme .gplus-accountPage input[type="date"],
body.gplus-theme .gplus-accountPage select,
body.gplus-theme .gplus-accountPage textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--tap-min);
  padding: 0 var(--sp-3);
  background: var(--c-bg);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  color: var(--c-text);
  font-size: var(--fs-md);
}

body.gplus-theme .gplus-accountPage textarea {
  padding: var(--sp-2) var(--sp-3);
  line-height: var(--lh-body);
}

body.gplus-theme .gplus-accountPage .ec-input,
body.gplus-theme .gplus-accountPage .ec-select,
body.gplus-theme .gplus-accountPage .ec-telInput {
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-accountPage .ec-input:last-child,
body.gplus-theme .gplus-accountPage .ec-select:last-child {
  margin-bottom: 0;
}

body.gplus-theme .gplus-accountPage .ec-halfInput {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-accountPage .ec-halfInput input {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  margin: 0;
}

body.gplus-theme .gplus-accountPage .ec-zipInput {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  color: var(--c-text-sub);
}

body.gplus-theme .gplus-accountPage .ec-zipInput input {
  flex: 0 1 180px;
  width: auto;
  min-width: 0;
}

body.gplus-theme .gplus-accountPage .ec-zipInputHelp {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  margin: 0;
  line-height: 1.5;
}

body.gplus-theme .gplus-accountPage .ec-zipInputHelp__icon {
  width: 20px;
  height: 20px;
  background: var(--c-ink);
  border-radius: 0;
}

body.gplus-theme .gplus-accountPage .ec-zipInputHelp a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--c-ink);
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
}

/* 生年月日。年・月・日を折り返し可能に並べる */
body.gplus-theme .gplus-accountPage .ec-birth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-accountPage .ec-birth select {
  display: block;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  background: var(--c-bg);
}

body.gplus-theme .gplus-accountPage .ec-birth span {
  margin: 0;
  color: var(--c-text-sub);
}

/* 性別のラジオ群 */
body.gplus-theme .gplus-accountPage .ec-radio {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}

body.gplus-theme .gplus-accountPage .ec-radio label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  margin: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  font-weight: 400;
}

body.gplus-theme .gplus-accountPage .ec-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
}

/* --- エラー表示。ja/en/ko/zh いずれでも折り返し、視認できる状態を保つ --- */

body.gplus-theme .gplus-accountPage .ec-errorMessage {
  margin: var(--sp-1) 0 var(--sp-2);
  color: var(--c-error, #a52525);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-accountPage .error input,
body.gplus-theme .gplus-accountPage .error select,
body.gplus-theme .gplus-accountPage .error textarea {
  border-color: var(--c-error, #a52525);
}

/* --- 利用規約の同意（checkbox は label で包まず for で関連付けている） --- */

body.gplus-theme .gplus-accountPage__policy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

body.gplus-theme .gplus-accountPage__policy input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: var(--sp-2) 0 0;
}

/* ラベル文全体がクリック領域になるので、チェックボックス単体が小さくても
   実際の操作領域は44pxを超える */
body.gplus-theme .gplus-accountPage__policyText {
  flex: 1 1 200px;
  min-width: 0;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--sp-2) 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-accountPage__policyText .ec-link {
  color: var(--c-ink);
  overflow-wrap: anywhere;
}

/* --- 操作ボタン。DOM順のまま縦に積み、order では入れ替えない --- */

body.gplus-theme .gplus-accountPage__actions {
  margin-top: var(--sp-5);
  padding-top: 0;
  text-align: left;
}

body.gplus-theme .gplus-accountPage__actions .ec-off4Grid__cell,
body.gplus-theme .gplus-accountPage__completeActions .ec-off4Grid__cell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: auto;
  margin: 0;
}

body.gplus-theme .gplus-accountPage .ec-blockBtn--action,
body.gplus-theme .gplus-accountPage .ec-blockBtn--cancel {
  display: block;
  width: 100%;
  height: auto;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-accountPage .ec-blockBtn--action,
body.gplus-theme .gplus-accountPage .ec-blockBtn--action:hover,
body.gplus-theme .gplus-accountPage .ec-blockBtn--action:focus {
  background: var(--c-ink);
  color: var(--c-bg);
}

body.gplus-theme .gplus-accountPage .ec-blockBtn--cancel,
body.gplus-theme .gplus-accountPage .ec-blockBtn--cancel:hover,
body.gplus-theme .gplus-accountPage .ec-blockBtn--cancel:focus {
  background: var(--c-bg);
  color: var(--c-ink);
}

/* --- 完了系（仮会員登録 / 本会員登録 / メール送信受付） --- */

body.gplus-theme .gplus-accountPage__reportHeading {
  width: auto;
  margin: 0 0 var(--sp-5);
  padding: var(--sp-6) 0 0;
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-xl);
  font-weight: 400;
  text-align: center;
}

body.gplus-theme .gplus-accountPage__reportHeading h2 {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-accountPage__reportDescription {
  margin: 0 0 var(--sp-6);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-accountPage__completeActions {
  margin: 0;
}

/* ==========================================================================
   57. 会員登録・パスワード再発行（768px以上）
   中央寄せ・最大幅960px。1024 / 1280px でも同じ最大幅のまま中央に置く。
   ラベルと入力欄は grid で2列に整列させ、長い翻訳文でも崩れないよう
   ラベル列は固定幅ではなく minmax で伸縮させる。
   ========================================================================== */

@media screen and (min-width: 768px) {

  body.gplus-theme .gplus-accountPage {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-7);
  }

  body.gplus-theme .gplus-accountPage__pageHeader h1 {
    font-size: var(--fs-2xl);
  }

  body.gplus-theme .gplus-accountPage__defs dl {
    display: grid;
    grid-template-columns: minmax(140px, 30%) 1fr;
    align-items: start;
    column-gap: var(--sp-5);
    padding: var(--sp-5) 0;
  }

  /* base.css の .ec-borderedDefs dt { width: 30% } / dd { width: 70%; line-height: 3 }
     を解除する。幅は grid-template-columns に任せる。
     折り返しは維持したいので white-space: nowrap は付けない。 */
  body.gplus-theme .gplus-accountPage__defs dt {
    width: auto;
    min-width: 0;
    margin-bottom: 0;
    padding-top: var(--sp-2);
  }

  body.gplus-theme .gplus-accountPage__defs dd {
    width: auto;
    min-width: 0;
    line-height: var(--lh-body);
  }

  body.gplus-theme .gplus-accountPage .ec-zipInput input {
    flex: 0 1 200px;
  }

  /* 入力系は横並び、完了系は読み幅を絞って中央へ（DOM順のまま） */
  body.gplus-theme .gplus-accountPage__actions .ec-off4Grid__cell {
    flex-direction: row;
    align-items: center;
    max-width: 480px;
  }

  body.gplus-theme .gplus-accountPage__actions .ec-blockBtn--action,
  body.gplus-theme .gplus-accountPage__actions .ec-blockBtn--cancel {
    flex: 1 1 0;
    min-width: 0;
  }

  body.gplus-theme .gplus-accountPage__completeActions .ec-off4Grid__cell {
    max-width: 320px;
    margin: 0 auto;
  }

  body.gplus-theme .gplus-accountPage__reportHeading h2 {
    font-size: var(--fs-2xl);
  }
}

/* ==========================================================================
   58. 共通ヘッダーブロックの実装差分
   ヘッダ・ドロワーの基本レイアウトは section 7 / 8（共通フレーム）で
   すでに確定しているため、ここに足すのは今回のテンプレート変更に伴う分だけ。
   すべて body.gplus-theme 配下で、ヘッダ・ドロワーの要素にだけ効く。

   - 検索の各 control を <label> で包んだので、その label が
     既存の flex レイアウトを壊さないようにする
   - カート内の商品が増えたときにパネル内だけ縦スクロールさせる
   - キーボードで押せるようにした .ec-cartNavi--cancel の focus を見せる
   - カテゴリ名・メニュー名の長い英語／韓国語／中国語を折り返す

   fixed CTA は追加しない。z-index は既存の --z-header のままで、
   overlay（--z-overlay）や drawer（--z-drawer）より上には出さない。
   ========================================================================== */

/* --- 検索（ヘッダ・ドロワー共通）。label は幅を持たせず中の control に委ねる --- */

body.gplus-theme .gplus-headerSearch__label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-weight: 400;
}

body.gplus-theme .ec-headerSearch__category .gplus-headerSearch__label select {
  display: block;
  width: 100%;
}

body.gplus-theme .ec-headerSearch__keyword .gplus-headerSearch__label input {
  display: block;
  width: 100%;
  min-width: 0;
}

/* 送信ボタンの中の視覚非表示テキストがボタン幅を押し広げないようにする */
body.gplus-theme .ec-headerSearch__keywordBtn {
  flex: 0 0 auto;
  position: relative;
}

/* --- カートパネル。商品が増えてもヘッダ内に収め、パネル内だけスクロールさせる --- */

body.gplus-theme .ec-cartNaviIsset {
  max-height: min(70vh, 480px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.gplus-theme .ec-cartNaviIsset__cartContentPrice,
body.gplus-theme .ec-cartNaviIsset__cartContentNumber,
body.gplus-theme .ec-cartNaviNull__message {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 「レジに進む」「キャンセル」はパネル下端に貼り付かないよう通常フローのまま。
   キャンセルは href の無い <a> に role="button" / tabindex="0" を付けたので、
   フォーカス位置が分かるようにする。 */
body.gplus-theme .ec-cartNavi--cancel {
  cursor: pointer;
}

body.gplus-theme .ec-cartNavi:focus-visible,
body.gplus-theme .ec-cartNavi--cancel:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 2px;
}

/* --- カテゴリ・会員メニューの長い文言を折り返す --- */

body.gplus-theme .ec-itemNav__nav a,
body.gplus-theme .ec-headerLink__item span,
body.gplus-theme .ec-headerNav__itemLink {
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .ec-headerLink__item {
  min-width: 0;
}

/* ==========================================================================
   59. エラー画面（error.twig）
   default_frame.twig を継承しない単独ページなので、ヘッダ／フッタの
   スタイルには依存しない。root は body.gplus-theme.gplus-errorPage に限定する。

   base.css の解除対象:
     .ec-404Role            height:100vh / background:#f2f2f2 / font-size:16px /
                            color:#525263
     .ec-404Role__icon img  width:1em / height:1em（親のインラインfont-sizeで
                            サイズを決める前提。Twig側でその指定をclassに置き換えた）
     .ec-404Role__title     font-weight:bold / font-size:25px
     .ec-off4Grid           768px以上で flex + セルへ margin-left:33.3%
   ========================================================================== */

body.gplus-theme.gplus-errorPage {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-base);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

body.gplus-theme.gplus-errorPage .ec-layoutRole {
  display: block;
  min-height: 100vh;
}

body.gplus-theme.gplus-errorPage .ec-404Role {
  width: auto;
  max-width: 720px;
  height: auto;
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-4);
  background: var(--c-bg);
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: center;
}

body.gplus-theme.gplus-errorPage .ec-off4Grid {
  display: block;
  margin: 0;
}

body.gplus-theme.gplus-errorPage .ec-off4Grid__cell {
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

/* Twig 側でインラインの font-size:100px を外した分をここで決める */
body.gplus-theme.gplus-errorPage .gplus-errorPage__icon {
  margin: 0 0 var(--sp-5);
  text-align: center;
}

body.gplus-theme.gplus-errorPage .ec-404Role__icon {
  display: inline-block;
  margin: 0;
}

body.gplus-theme.gplus-errorPage .ec-404Role__icon img {
  display: block;
  width: 48px;
  height: 48px;
}

body.gplus-theme.gplus-errorPage .ec-404Role__title {
  margin: 0 0 var(--sp-4);
  border: 0;
  padding: 0;
  color: var(--c-ink);
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.gplus-errorPage .ec-404Role__description {
  margin: 0 0 var(--sp-6);
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  text-align: left;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme.gplus-errorPage .ec-blockBtn--cancel,
body.gplus-theme.gplus-errorPage .ec-blockBtn--cancel:hover,
body.gplus-theme.gplus-errorPage .ec-blockBtn--cancel:focus {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  min-height: var(--tap-min);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 768px) {

  body.gplus-theme.gplus-errorPage .ec-404Role {
    padding: var(--sp-7) var(--sp-5);
  }

  body.gplus-theme.gplus-errorPage .ec-404Role__title {
    font-size: var(--fs-2xl);
  }
}

/* ==========================================================================
   60. ページャ（pager.twig）
   root は body.gplus-theme .gplus-pager に限定する。
   base.css の .ec-pager は inline-block + padding 5px 1em で操作領域が
   44px に届かないので、flex + min-height で作り直す。

   現在ページは色だけに頼らず、背景・枠線・太さでも区別できるようにする
   （aria-current="page" は Twig 側で出している）。
   ========================================================================== */

body.gplus-theme .gplus-pager {
  margin: var(--sp-5) 0 0;
}

body.gplus-theme .gplus-pager .ec-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

body.gplus-theme .gplus-pager .ec-pager__item,
body.gplus-theme .gplus-pager .ec-pager__item--active {
  display: flex;
  position: static;
  min-width: var(--tap-min);
  max-width: 100%;
  padding: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-md);
  text-align: center;
}

body.gplus-theme .gplus-pager .ec-pager__item a,
body.gplus-theme .gplus-pager .ec-pager__item--active a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border-str);
  border-radius: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: 1.5;
  text-decoration: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-pager .ec-pager__item:hover,
body.gplus-theme .gplus-pager .ec-pager__item--active:hover {
  background: none;
}

body.gplus-theme .gplus-pager .ec-pager__item a:hover,
body.gplus-theme .gplus-pager .ec-pager__item a:focus {
  background: var(--c-bg-soft);
  color: var(--c-ink);
}

/* 現在ページ。色だけでなく塗り・枠・太さの3点で区別する */
body.gplus-theme .gplus-pager .ec-pager__item--active {
  background: none;
}

body.gplus-theme .gplus-pager .ec-pager__item--active a,
body.gplus-theme .gplus-pager .ec-pager__item--active a:hover,
body.gplus-theme .gplus-pager .ec-pager__item--active a:focus {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-bg);
  font-weight: 700;
}

/* 「...」はリンクではないので、高さだけ揃えて枠は付けない */
body.gplus-theme .gplus-pager .ec-pager__item[aria-hidden="true"] {
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  color: var(--c-text-sub);
}

/* Subscription checkout stays inside the standard shopping form. */
body.gplus-theme .gplus-subscriptionCheckout {
  min-width: 0;
}

body.gplus-theme .gplus-subscriptionCheckout__choice,
body.gplus-theme .gplus-subscriptionCheckout__accept {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

body.gplus-theme .gplus-subscriptionCheckout__choice input,
body.gplus-theme .gplus-subscriptionCheckout__accept input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

body.gplus-theme .gplus-subscriptionCheckout__choice label,
body.gplus-theme .gplus-subscriptionCheckout__accept label {
  min-height: 44px;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-subscriptionCheckout__help,
body.gplus-theme .gplus-subscriptionCheckout__terms,
body.gplus-theme .gplus-subscriptionCheckout__summary,
body.gplus-theme .gplus-subscriptionCheckout__summaryList {
  margin-top: 12px;
  overflow-wrap: anywhere;
}

body.gplus-theme .gplus-subscriptionCheckout__terms ul {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

body.gplus-theme .gplus-subscriptionCheckout__summaryList {
  display: grid;
  grid-template-columns: minmax(7em, auto) minmax(0, 1fr);
  gap: 8px 16px;
}

body.gplus-theme .gplus-subscriptionCheckout__summaryList dt {
  font-weight: 700;
}

/* Customer-owned referral coupons and a single subscription delivery reservation. */
.gplus-theme .gplus-benefits__panel{padding:28px;margin:24px 0;border:1px solid #deddd8;background:#fff;border-radius:8px;}
.gplus-theme .gplus-benefits__panel h2{margin:0 0 16px;font-size:22px;line-height:1.5;}
.gplus-theme .gplus-benefits__panel p{line-height:1.8;}
.gplus-theme .gplus-benefits__code{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:10px 0;}
.gplus-theme .gplus-benefits__code input{max-width:100%;min-width:0;flex:1 1 220px;padding:12px;border:1px solid #999;border-radius:4px;font:inherit;letter-spacing:.08em;}
.gplus-theme .gplus-benefits__note{color:#555;font-size:14px;margin-top:20px;}
.gplus-theme .gplus-benefits__coupons{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin:20px 0;}
.gplus-theme .gplus-benefits__coupon{padding:20px;background:#f7f7f3;border:1px solid #deddd8;border-radius:6px;min-width:0;}
.gplus-theme .gplus-benefits__coupon h3{font-size:24px;margin:0 0 12px;}
.gplus-theme .gplus-benefits__couponCode{font-family:monospace;letter-spacing:.08em;overflow-wrap:anywhere;}
.gplus-theme .gplus-benefits__field{margin:24px 0;}
.gplus-theme .gplus-benefits__field label{display:block;margin-bottom:8px;}
.gplus-theme .gplus-benefits__field input[type=text],.gplus-theme .gplus-benefits__field input[type=number],.gplus-theme .gplus-benefits__field select{width:100%;max-width:100%;padding:12px;border:1px solid #999;border-radius:4px;background:#fff;font:inherit;}
.gplus-theme .gplus-benefits__field input[type=number]{max-width:220px;}
.gplus-theme .gplus-benefits__actions{display:grid;gap:12px;max-width:360px;margin:28px auto 0;}
.gplus-theme .gplus-benefits__summary{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:10px 20px;margin:24px 0;}
.gplus-theme .gplus-benefits__summary dd{margin:0;overflow-wrap:anywhere;}
.gplus-theme .gplus-benefits__release,.gplus-theme .gplus-benefits__entry{margin-top:20px;}
.gplus-theme .gplus-benefits button:focus-visible,.gplus-theme .gplus-benefits a:focus-visible,.gplus-theme .gplus-benefits input:focus-visible,.gplus-theme .gplus-benefits select:focus-visible{outline:3px solid #16449A;outline-offset:3px;}
@media(max-width:575px){.gplus-theme .gplus-benefits__panel{padding:20px 16px;}.gplus-theme .gplus-benefits__summary{grid-template-columns:1fr;gap:4px;}.gplus-theme .gplus-benefits__summary dd{margin-bottom:12px;}.gplus-theme .gplus-benefits .ec-inlineBtn{white-space:normal;height:auto;min-height:40px;}}

.gplus-theme .gplus-benefits__success{padding:16px;border:1px solid #16449A;color:#16449A;background:#f5f8ff;}

/* Coupon selection stays in the current checkout document. */
.gplus-theme .gplus-couponDialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  border: 1px solid var(--gplus-color-border, #d9dde0);
  border-radius: 8px;
  color: var(--gplus-color-text, #172b3a);
  background: #fff;
  overflow-y: auto;
}
.gplus-couponDialog::backdrop { background: rgb(12 26 37 / 45%); }
.gplus-couponDialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.gplus-couponDialog__header h2 { margin: 0; font-size: 20px; }
.gplus-couponDialog [data-coupon-error], [data-coupon-checkout-error] { color: #a32222; }
.gplus-couponDialog [data-coupon-content] { min-height: 100px; }
.gplus-couponDialog[aria-busy="true"] { cursor: progress; }
.gplus-couponDialog .gplus-benefits__panel { margin: 0; }
@media (max-width: 575px) { .gplus-theme .gplus-couponDialog { padding: 16px; } }

/* Product story and homepage content presentation, using existing verified photos. */
body.gplus-theme .gplus-productDetail__storyCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:28px}
body.gplus-theme .gplus-productDetail__storyCards .gplus-productDetail__legacySection{margin:0;padding:24px;background:#f4f8fb;border:1px solid #e4ecf2;border-radius:10px}
body.gplus-theme .gplus-productDetail__storyCards .gplus-productDetail__legacyHeading{margin:0 0 16px;font-size:19px;line-height:1.7}
body.gplus-theme .gplus-productDetail__storyCards .gplus-productDetail__legacyDescription{margin:0;font-size:15px;line-height:2}
@media(max-width:767px){
 body.gplus-theme .gplus-productDetail__storyCards{grid-template-columns:1fr;gap:12px;margin-top:20px}
 body.gplus-theme .gplus-productDetail__storyCards .gplus-productDetail__legacySection{padding:20px}
}

/* Actual product photography: keep primary catalogue images and native purchase controls. */
body.gplus-theme .gplus-productDetail__photos{margin:44px 0;padding:32px;border:1px solid #e4ecf2;border-radius:12px}
body.gplus-theme .gplus-productDetail__photoGrid{display:flex;justify-content:center;flex-wrap:wrap;gap:24px;margin-top:24px}
body.gplus-theme .gplus-productDetail__photoGrid figure{margin:0;flex:0 1 340px;max-width:100%}
body.gplus-theme .gplus-productDetail__photoGrid img{display:block;width:100%;height:auto;border-radius:6px}
body.gplus-theme .gplus-productDetail__photoGrid figcaption{text-align:center;color:#5c7183;font-size:12px;margin-top:10px}
@media(max-width:767px){body.gplus-theme .gplus-productDetail__photos{margin:28px 0;padding:20px}body.gplus-theme .gplus-productDetail__photoGrid{gap:20px}body.gplus-theme .gplus-productDetail__photoGrid figure{flex-basis:280px}}

/* Client TOP originals: shared width, intrinsic section heights and native store typography. */

/* Shared control shape for account, cart and purchase pages; store CSS may override tokens. */
body.gplus-theme :is(.ec-blockBtn--action,.ec-blockBtn--cancel,.ec-inlineBtn,.ec-inlineBtn--action,.ec-btn,.ec-btn--action),
body.gplus-theme :is(.ec-input,.ec-halfInput,.ec-zipInput,.ec-telInput,.ec-select) :is(input,select,textarea) {
  border-radius: var(--radius-control);
}

/* Required fields retain their text label; color is shared by customer forms. */
body.gplus-theme .ec-required { color: var(--c-error, #a52525); }

/* Assigned product variants: aligned labels and responsive one/two-column controls. */
body.gplus-theme .gplus-productDetail__actions,
body.gplus-theme .gplus-productList__cartActions { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px; }
body.gplus-theme .gplus-productDetail__actions .ec-select,
body.gplus-theme .gplus-productList__cartActions .ec-select { min-width:0;margin:0; }
body.gplus-theme .gplus-productVariants__label { display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:8px;overflow-wrap:anywhere; }
body.gplus-theme .gplus-productVariants__label label,
body.gplus-theme .gplus-productVariants__label .ec-required { margin:0; }
body.gplus-theme .gplus-productDetail__actions .ec-select select,
body.gplus-theme .gplus-productList__cartActions .ec-select select { display:block;max-width:100%;min-width:0;padding-right:36px; }
body.gplus-theme .gplus-productDetail__actions .ec-numberInput,
body.gplus-theme .gplus-productList__cartActions .ec-numberInput { grid-column:1/-1; }

/* Store news, navigation and current product photos. Uses the existing store theme. */
body.gplus-theme .gplus-siteNav{order:10;flex:0 0 100%;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 24px;padding:10px 16px;border-top:1px solid var(--c-border,#dce4ef);font-size:14px;line-height:1.5}
body.gplus-theme .gplus-siteNav a{display:flex;align-items:center;min-height:40px;color:var(--c-ink);overflow-wrap:anywhere}
body.gplus-theme .gplus-categoryMenu,body.gplus-theme .gplus-categoryMenu ul{list-style:none;margin:0;padding:0}
body.gplus-theme .gplus-categoryMenu{display:flex;gap:16px}
body.gplus-theme .gplus-categoryMenu>li{position:relative}
body.gplus-theme .gplus-categoryMenu summary{cursor:pointer;min-height:44px;padding:10px 4px;font-weight:500;white-space:nowrap}
body.gplus-theme .gplus-categoryMenu__panel{position:absolute;top:100%;left:0;z-index:100;width:min(480px,65vw);max-height:65vh;overflow:auto;padding:16px;background:#fff;border:1px solid var(--c-border,#dce4ef);border-radius:6px;box-shadow:0 8px 24px #172b3a20}
body.gplus-theme .gplus-categoryMenu__panel a{display:block;padding:10px 8px;line-height:1.5;overflow-wrap:anywhere;min-height:42px;color:var(--c-ink)}
body.gplus-theme .gplus-categoryMenu__panel>ul>li{border-top:1px solid var(--c-border,#dce4ef);padding-top:6px;margin-top:6px}
body.gplus-theme .gplus-categoryMenu__panel>ul>li>a{font-weight:500}
body.gplus-theme .gplus-categoryMenu__panel ul ul{position:static;display:block;border:0;padding-left:16px}
body.gplus-theme .gplus-categoryMenu a:hover,body.gplus-theme .gplus-categoryMenu a:focus-visible{background:var(--c-bg-sub,#f3f6f9);text-decoration:underline}
body.gplus-theme .gplus-productReturn{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:720px;margin:40px auto;padding:0 16px}
body.gplus-theme .gplus-productReturn a{display:flex;align-items:center;justify-content:center;min-height:52px;height:auto;padding:12px 16px;line-height:1.5;overflow-wrap:anywhere;text-align:center}
body.gplus-theme .gplus-productPhotos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0;width:100%}
body.gplus-theme .gplus-productPhotos a{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;padding:12px;background:#fff;border:1px solid var(--c-border,#dce4ef);border-radius:8px;color:var(--c-ink);font-size:12px;line-height:1.6;text-align:center}
body.gplus-theme .gplus-productPhotos img{width:100%;height:160px;object-fit:contain;display:block}
body.gplus-theme .gplus-productPhotos span{margin-top:8px;overflow-wrap:anywhere}
body.gplus-theme .gplus-storeNews{margin:0 0 32px;padding:20px 24px;background:var(--c-bg-sub,#f3f6f9);border:1px solid var(--c-border,#dce4ef);border-radius:8px}
body.gplus-theme .gplus-storeNews h2{font-size:18px;font-weight:500;margin:0 0 12px}
body.gplus-theme .gplus-storeNews__empty{margin:0;font-size:14px}
body.gplus-theme .gplus-storeNews__item{border-top:1px solid var(--c-border,#dce4ef)}
body.gplus-theme .gplus-storeNews summary{padding:14px 0;cursor:pointer;line-height:1.7;overflow-wrap:anywhere}
body.gplus-theme .gplus-storeNews time{font-size:13px;margin-right:20px;white-space:nowrap}
body.gplus-theme .gplus-storeNews__body{padding:0 0 16px;line-height:1.8;overflow-wrap:anywhere;font-size:14px}
body.gplus-theme .gplus-homeReferral{border:2px solid var(--c-ink);border-radius:12px;background:#f3f6f9;padding:32px;gap:32px;margin:40px 0}
body.gplus-theme .gplus-homeReferral__title{font-size:clamp(22px,2.3vw,30px);line-height:1.5;font-weight:500}
body.gplus-theme .gplus-homeReferral__benefits dd{font-size:clamp(23px,2.5vw,32px);font-weight:500;color:var(--c-ink)}
body.gplus-theme .gplus-homeReferral__action a{min-height:48px;padding:12px 20px;display:inline-flex;align-items:center;justify-content:center;line-height:1.5}
body.gplus-theme :is(#store-news,#store-referral,#gplus-homeOrigin-title){scroll-margin-top:150px}
@media(max-width:767px){
body.gplus-theme .gplus-siteNav{gap:2px 16px;padding:8px 16px;font-size:12px}
body.gplus-theme .gplus-siteNav a{min-height:36px}
body.gplus-theme .gplus-productReturn{grid-template-columns:1fr;gap:12px;margin:28px auto}
body.gplus-theme .gplus-productPhotos{gap:10px}
body.gplus-theme .gplus-productPhotos img{height:120px}
body.gplus-theme .gplus-homeReferral{padding:20px 16px;margin:28px 0;gap:24px}
body.gplus-theme .gplus-storeNews{padding:16px;margin-bottom:24px}
body.gplus-theme .gplus-storeNews time{display:block;margin:0;font-size:12px}
}
/* Quantity labels and subscription guidance must remain readable in every locale. */
body.gplus-theme :is(.gplus-productList__cartActions,.gplus-productDetail) .ec-numberInput{flex-wrap:wrap}
body.gplus-theme .ec-numberInput>:is(label,span:not(.gplus-subscriptionQuantityLimit)){white-space:nowrap;flex-shrink:0}
body.gplus-theme .ec-numberInput>input{flex-shrink:0}
body.gplus-theme .ec-numberInput>.gplus-subscriptionQuantityLimit{flex:0 0 100%;min-width:0;overflow-wrap:anywhere}

/* Product-owned supplementary rich text stays within the existing content column. */
body.gplus-theme .gplus-productDetail__overview {overflow-wrap:anywhere;min-width:0}
body.gplus-theme .gplus-productDetail__overview p {margin:0 0 .65em}
body.gplus-theme .gplus-productDetail__overview :is(ul,ol) {margin:0 0 .65em;padding-left:1.5em;list-style-position:outside}
body.gplus-theme .gplus-productDetail__overview ul {list-style-type:disc}
body.gplus-theme .gplus-productDetail__overview ol {list-style-type:decimal}
body.gplus-theme .gplus-productDetail__overview li {display:list-item;list-style-type:inherit;margin:.2em 0}
body.gplus-theme .gplus-productDetail__overview a {text-decoration:underline;overflow-wrap:anywhere}
body.gplus-theme :is(.gplus-productDetail__lead,.gplus-productList__desc) strong {font-weight:700}
body.gplus-theme :is(.gplus-productDetail__lead,.gplus-productList__desc) em {font-style:italic}
body.gplus-theme .gplus-productDetail__overview > :last-child {margin-bottom:0}

/* Shared member-page components: bookings, benefits, availability notices and care. */
.um-account { color:var(--c-ink); }
.um-body { margin:32px 0 56px; font-size:14px; line-height:1.85; }
.um-body *, .um-body *::before, .um-body *::after { box-sizing:border-box; }
.um-body h2 { font-size:21px; font-weight:700; line-height:1.5; margin:0 0 8px; }
.um-body h3 { font-size:17px; font-weight:700; line-height:1.65; margin:0 0 12px; }
.um-body p { margin:8px 0 14px; }
.um-section + .um-section { margin-top:40px; }
.um-section__heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.um-section__heading p { color:var(--c-text-sub); margin-bottom:0; }
.um-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.um-stack { display:grid; gap:20px; }
.um-card { min-width:0; padding:24px; border:1px solid var(--c-border-str); background:var(--c-bg); border-radius:var(--radius-control); overflow-wrap:anywhere; }
.um-card--soft, .um-empty { background:var(--c-bg-soft); }
.um-card .um-section__heading { margin-bottom:12px; }
.um-empty { padding:32px 24px; border:1px solid var(--c-border-str); border-radius:var(--radius-control); text-align:center; }
.um-empty p:last-child { margin-bottom:0; color:var(--c-text-sub); }
.um-actions { display:flex; gap:12px; flex-wrap:wrap; margin:20px 0 0; }
.um-actions:empty { display:none; }
.um-body .um-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; max-width:100%; padding:11px 20px; border:1px solid var(--c-ink); border-radius:var(--radius-control); background:var(--c-bg); color:var(--c-ink); font:inherit; font-weight:600; line-height:1.6; text-decoration:none; text-align:center; cursor:pointer; }
.um-body .um-button--primary, .um-body .um-button--primary:visited { background:var(--c-ink); color:var(--c-bg); }
.um-body .um-button:hover { background:var(--c-bg-soft); color:var(--c-ink); }
.um-body .um-button--primary:hover { background:var(--c-ink); color:var(--c-bg); opacity:.88; }
.um-body :focus-visible { outline:3px solid var(--c-accent); outline-offset:3px; }
.um-body .um-muted { color:var(--c-text-sub); font-size:13px; }
.um-label { font-size:12px; font-weight:600; color:var(--c-text-sub); }
.um-badge { display:inline-flex; max-width:100%; padding:4px 10px; background:var(--c-bg-soft); color:var(--c-ink); border:1px solid var(--c-border-str); border-radius:var(--radius-control); font-size:12px; }
.um-balance { display:flex; align-items:baseline; gap:8px; }
.um-balance strong { font-size:36px; font-weight:700; line-height:1.4; }
.um-progress { display:block; width:100%; height:10px; accent-color:var(--c-ink); }
.um-stamps { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.um-stamps span { display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--c-border-str); border-radius:50%; font-size:12px; background:var(--c-bg); color:var(--c-text-sub); }
.um-stamps .is-earned { background:var(--c-ink); border-color:var(--c-ink); color:var(--c-bg); font-size:18px; }
.um-date { font-size:19px; font-weight:600; }
.um-facts { margin:20px 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:18px 0; border-block:1px solid var(--c-border); }
.um-facts div { min-width:0; }
.um-facts dt { color:var(--c-text-sub); font-size:12px; font-weight:400; margin-bottom:5px; }
.um-facts dd { margin:0; }
.um-details { margin-top:22px; border-top:1px solid var(--c-border); padding-top:18px; }
.um-details summary { cursor:pointer; font-weight:600; min-height:32px; }
.um-details[open] summary { margin-bottom:16px; }
.um-form { margin-top:24px; }
.um-field { display:flex; flex-direction:column; gap:8px; min-width:0; font-weight:600; margin:0; }
.um-field input, .um-field select { width:100%; min-width:0; min-height:48px; background:var(--c-bg); color:var(--c-ink); border:1px solid var(--c-border-str); border-radius:var(--radius-control); padding:10px 12px; font:inherit; font-weight:400; }
.um-plan-select { display:flex; align-items:end; flex-wrap:wrap; gap:12px; }
.um-plan-select .um-field { flex:1 1 260px; }
.um-plan-select .um-button { min-height:48px; }
.um-days { border:0; margin:22px 0; padding:0; }
.um-days legend { border:0; margin:0 0 12px; font-size:14px; font-weight:600; }
.um-days__options { display:flex; flex-wrap:wrap; gap:8px; }
.um-days__options label { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; border:1px solid var(--c-border-str); background:var(--c-bg); border-radius:var(--radius-control); cursor:pointer; }
.um-days input, .um-check input { accent-color:var(--c-ink); width:18px; height:18px; flex-shrink:0; }
.um-check { display:flex; gap:10px; align-items:center; margin:12px 0; }
.um-notice { padding:16px 20px; background:var(--c-bg-soft); border-left:3px solid var(--c-accent); }
.um-qr { text-align:center; max-width:620px; margin-inline:auto; }
.um-qr img { display:block; max-width:100%; width:280px; height:auto; margin:24px auto; padding:16px; background:white; }
.um-qr .um-actions { justify-content:center; }
.um-account .ue-auto-switch { display:flex; gap:12px; align-items:flex-start; padding-block:8px; cursor:pointer; }
.um-account .ue-auto-switch input { appearance:none; width:46px; height:26px; flex-shrink:0; background:var(--c-text-sub); border:1px solid var(--c-text-sub); border-radius:20px; position:relative; margin:0; cursor:pointer; }
.um-account .ue-auto-switch input:before { content:""; position:absolute; width:20px; height:20px; background:var(--c-bg); border-radius:50%; top:2px; left:2px; }
.um-account .ue-auto-switch input:checked { background:var(--c-ink); border-color:var(--c-ink); }
.um-account .ue-auto-switch input:checked:before { transform:translateX(20px); }
@media(max-width:767px) {
  .um-body { margin-top:24px; margin-bottom:36px; }
  .um-body h2 { font-size:19px; }
  .um-grid { grid-template-columns:1fr; gap:16px; }
  .um-card, .um-empty { padding:20px 16px; }
  .um-section + .um-section { margin-top:32px; }
  .um-section__heading { gap:12px; }
  .um-section__heading > .um-button { width:100%; }
  .um-actions { flex-direction:column; }
  .um-actions .um-button { width:100%; }
  .um-facts { grid-template-columns:1fr 1fr; }
  .um-date { font-size:17px; }
}
