/* =====================================================================
   ショップ（2026-10-27）function/glw-shop.php が読み込む
   色・書体は add.css の GRANDLINE-WORKS 変数（--g-*）をそのまま使う。角は立てる（丸めない）。
   ===================================================================== */

/* ---------- 共通 ---------- */
.gs-sec { padding: clamp(56px, 7vw, 110px) 0; text-align: left; }
.gs-sec * { text-align: left; }
.gs-sec--paper { background: var(--g-paper-2); }
.gs-head { margin: 0 0 clamp(24px, 3vw, 40px); }
.gs-head .glw-eyebrow { margin-bottom: 12px; }
.gs-head__ttl { font-family: var(--g-jp); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: 0.06em; line-height: 1.45; color: var(--g-ink); margin: 0; }
.gs-head__lead { margin: 12px 0 0; font-size: 14px; line-height: 2; color: var(--g-ink-2); font-weight: 500; }
.gs-head__foot { margin-top: clamp(32px, 4vw, 48px); }
.gs-group + .gs-group { margin-top: clamp(56px, 7vw, 96px); }
.gs-empty { padding: 40px 0; color: var(--g-muted); }

.gs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--g-accent); background: var(--g-accent);
  color: #fff !important; font-family: var(--g-jp); font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  cursor: pointer; text-decoration: none !important; transition: background-color .25s, border-color .25s, color .25s;
}
.gs-btn:hover { background: var(--g-ink); border-color: var(--g-ink); }
.gs-btn:disabled, .gs-btn[disabled] { background: var(--g-line); border-color: var(--g-line); color: var(--g-muted) !important; cursor: not-allowed; }
.gs-btn--line { background: #fff; color: var(--g-ink) !important; border-color: var(--g-ink); }
.gs-btn--line:hover { background: var(--g-ink); color: #fff !important; }
.gs-btn--line i { width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.gs-btn--block { width: 100%; }

/* 価格 */
.gs-price { display: inline-flex; align-items: baseline; gap: 2px; color: var(--g-ink); white-space: nowrap; }
.gs-price b { font-family: var(--g-display); font-weight: 600; font-size: 26px; line-height: 1; letter-spacing: 0.01em; }
.gs-price__yen { font-weight: 700; font-size: 13px; }
.gs-price__from { font-weight: 700; font-size: 13px; }
.gs-price__tax { font-size: 11px; color: var(--g-muted); font-weight: 500; margin-left: 2px; }
.gs-price--ask { font-size: 13px; font-weight: 700; color: var(--g-ink-2); }

/* ---------- 商品カード ---------- */
.gs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.gs-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--g-line-2); min-width: 0; }
.gs-card__fig { display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--g-line); overflow: hidden; }
.gs-card__img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .5s ease; }
.gs-card__fig:hover .gs-card__img { transform: scale(1.04); }
.gs-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.gs-card__en { font-family: var(--g-label); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; color: var(--g-accent); margin: 0 0 4px; line-height: 1.3; overflow-wrap: anywhere; }
.gs-card__ttl { font-family: var(--g-jp); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; line-height: 1.5; margin: 0 0 10px; }
.gs-card__ttl a { color: var(--g-ink) !important; text-decoration: none !important; }
.gs-card__ttl a:hover { color: var(--g-accent) !important; }
.gs-card__meta, .gs-detail__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--g-line); }
.gs-card__pack { font-size: 12px; font-weight: 500; color: var(--g-ink-2); }

/* カラー選択・数量・ボタン */
.gs-buy { margin-top: auto; }
.gs-colors { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.gs-chip { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.gs-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gs-chip__dot { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); outline: 1px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.gs-chip__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gs-chip input:checked + .gs-chip__dot { outline: 2px solid var(--g-ink); }
.gs-chip input:focus-visible + .gs-chip__dot { outline: 2px solid var(--g-accent); }
.gs-chip.is-off .gs-chip__dot { opacity: .45; background-image: linear-gradient(135deg, transparent 46%, rgba(255,255,255,.95) 46%, rgba(255,255,255,.95) 54%, transparent 54%); }
.gs-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.gs-status__color { font-weight: 700; color: var(--g-ink); }
.gs-status__stock { font-size: 12px; font-weight: 700; padding: 1px 8px; border: 1px solid currentColor; color: var(--g-accent); }
.gs-status__stock:empty { display: none; }
.gs-urgent { margin: -4px 0 12px; font-size: 12px; line-height: 1.6; color: var(--g-ink); }
.gs-urgent[hidden] { display: none; }
.gs-urgent a { font-weight: 700; color: inherit; white-space: nowrap; }
.gs-nowrap { white-space: nowrap; }
.gs-buy__row { display: flex; gap: 8px; }
.gs-buy__row .gs-btn { flex: 1; min-width: 0; padding: 0 12px; }
.gs-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--g-line-2); background: #fff; flex: none; }
.gs-qty__btn { width: 30px; border: 0; background: transparent; font-size: 16px; color: var(--g-ink); cursor: pointer; padding: 0; }
.gs-qty__btn:hover { background: var(--g-paper-2); }
.gs-qty__input { width: 34px; border: 0 !important; text-align: center !important; font-weight: 700; font-size: 15px; padding: 0 !important; background: transparent; -moz-appearance: textfield; appearance: textfield; box-shadow: none !important; }
.gs-qty__input::-webkit-outer-spin-button, .gs-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gs-qty--sm .gs-qty__btn { width: 26px; height: 30px; }
.gs-qty--sm .gs-qty__input { width: 30px; font-size: 14px; }
.gs-buy--ask .gs-btn { width: 100%; }

/* ---------- 詳細ページ ---------- */
.gs-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.gs-detail__main { margin: 0; aspect-ratio: 1 / 1; border: 1px solid var(--g-line-2); background: #fff; }
.gs-detail__img { width: 100%; height: 100%; object-fit: contain; padding: 5%; }
.gs-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.gs-thumb { display: block; width: 100%; padding: 0; border: 1px solid var(--g-line-2); background: #fff; cursor: pointer; }
.gs-thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gs-thumb span { display: block; padding: 3px 2px; font-size: 10px; line-height: 1.3; color: var(--g-ink-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--g-line); }
.gs-thumb.is-active { border-color: var(--g-ink); box-shadow: inset 0 0 0 1px var(--g-ink); }
.gs-detail__info { position: sticky; top: 120px; }
.gs-detail__brand { display: inline-block; font-family: var(--g-label); font-weight: 700; font-size: 12px; letter-spacing: 0.24em; color: #fff !important; background: var(--g-ink); padding: 3px 10px; margin-bottom: 14px; text-decoration: none !important; }
.gs-detail__en { font-family: var(--g-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; color: var(--g-ink); margin: 0 0 6px; overflow-wrap: anywhere; }
.gs-detail__ttl { font-family: var(--g-jp); font-weight: 700; font-size: 17px; letter-spacing: 0.06em; line-height: 1.5; color: var(--g-ink-2); margin: 0 0 18px; }
.gs-detail__ttl::before, .gs-detail__ttl::after { content: none !important; }
.gs-detail__meta .gs-price b { font-size: 38px; }
.gs-detail__note { margin: -4px 0 14px; font-size: 13px; font-weight: 700; color: #a3361f; }
.gs-detail .gs-colors { gap: 8px 10px; }
.gs-detail .gs-chip__dot { width: 32px; height: 32px; }
.gs-detail .gs-buy__row .gs-btn { min-height: 54px; font-size: 15px; }
.gs-detail .gs-qty__btn { width: 38px; }
.gs-detail .gs-qty__input { width: 42px; }
.gs-detail__guide { list-style: none; margin: 22px 0 0; padding: 16px 18px; background: var(--g-paper-2); font-size: 12.5px; line-height: 1.9; color: var(--g-ink-2); font-weight: 500; }
.gs-detail__guide li { position: relative; padding-left: 14px; }
.gs-detail__guide li::before { content: ""; position: absolute; left: 0; top: .85em; width: 6px; height: 1px; background: var(--g-ink-2); }
.gs-detail__guide a { color: var(--g-accent); text-decoration: underline; }
.gs-detail__body { margin-top: 24px; font-size: 14px; line-height: 2; }

/* ブランドの絞り込み */
.gs-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(32px, 4vw, 48px); }
.gs-filter__item { padding: 8px 18px; border: 1px solid var(--g-line-2); color: var(--g-ink) !important; font-weight: 700; font-size: 13px; text-decoration: none !important; }
.gs-filter__item.is-current, .gs-filter__item:hover { background: var(--g-ink); border-color: var(--g-ink); color: #fff !important; }

/* ---------- カートのボタン・カート ---------- */
.gs-cartbtn {
  position: fixed; right: 20px; bottom: 24px; z-index: 1040;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 16px;
  border: 0; background: var(--g-ink); color: #fff; font-family: var(--g-jp); font-weight: 700; font-size: 14px; letter-spacing: .08em;
  box-shadow: 0 10px 24px rgba(16,18,16,.25); cursor: pointer;
}
.gs-cartbtn[hidden] { display: none; }
.gs-cartbtn:hover { background: var(--g-accent); }
.gs-cartbtn__icon { width: 20px; height: 16px; border: 2px solid currentColor; border-top-width: 0; position: relative; margin-top: 4px; }
.gs-cartbtn__icon::before { content: ""; position: absolute; left: 3px; right: 3px; top: -7px; height: 8px; border: 2px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }
.gs-cartbtn__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--g-ink); font-size: 12px; line-height: 22px; text-align: center; }
.gs-cartbtn.has-items .gs-cartbtn__count { background: var(--g-accent-on-dark); }
.gs-cartbtn.is-bump { animation: gs-bump .45s ease; }
@keyframes gs-bump { 30% { transform: scale(1.08); } 60% { transform: scale(.97); } }

html.gs-lock, html.gs-lock body { overflow: hidden; }
.gs-cart { position: fixed; inset: 0; z-index: 10050; visibility: hidden; pointer-events: none; }
.gs-cart.is-open { visibility: visible; pointer-events: auto; }
.gs-cart__overlay { position: absolute; inset: 0; background: rgba(16,18,16,.5); opacity: 0; transition: opacity .3s; }
.gs-cart.is-open .gs-cart__overlay { opacity: 1; }
.gs-cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: #fff; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.3,1);
  text-align: left;
}
.gs-cart__panel * { text-align: left; }
.gs-cart.is-open .gs-cart__panel { transform: none; }
.gs-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--g-line); }
.gs-cart__ttl { margin: 0; display: flex; align-items: baseline; gap: 12px; font-weight: 700; font-size: 15px; color: var(--g-ink); }
.gs-cart__ttl span { font-family: var(--g-display); font-weight: 600; font-size: 24px; letter-spacing: .04em; }
.gs-cart__close { position: relative; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.gs-cart__close::before, .gs-cart__close::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--g-ink); }
.gs-cart__close::before { transform: rotate(45deg); }
.gs-cart__close::after { transform: rotate(-45deg); }
.gs-cart__body { flex: 1; overflow-y: auto; padding: 4px 20px; transition: opacity .2s; }
.gs-cart__body.is-loading { opacity: .5; }
.gs-cart__empty { padding: 48px 0; color: var(--g-muted); font-size: 14px; }
.gs-lines { list-style: none; margin: 0; padding: 0; }
.gs-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--g-line); }
.gs-line__fig { display: block; width: 72px; height: 72px; border: 1px solid var(--g-line); background: #fff; }
.gs-line__fig img { width: 100%; height: 100%; object-fit: contain; }
.gs-line__ttl { display: block; font-weight: 700; font-size: 14px; line-height: 1.5; color: var(--g-ink) !important; text-decoration: none !important; }
.gs-line__sub { margin: 2px 0 0; font-size: 12px; color: var(--g-ink-2); font-weight: 500; }
.gs-line__price { margin: 4px 0 0; font-size: 13px; color: var(--g-ink-2); }
.gs-line__order { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: var(--g-accent); }
.gs-line__warn { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: #a3361f; }
.gs-line.is-off .gs-line__fig { opacity: .5; }
.gs-line__ops { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.gs-line__del { border: 0; background: transparent; padding: 0; font-size: 12px; color: var(--g-muted); text-decoration: underline; cursor: pointer; }
.gs-line__subtotal { margin: 0; font-family: var(--g-display); font-weight: 600; font-size: 17px; color: var(--g-ink); white-space: nowrap; }
.gs-cart__foot { padding: 18px 20px 22px; border-top: 1px solid var(--g-line-2); background: var(--g-paper-2); }
.gs-cart__foot[hidden] { display: none; }
.gs-cart__sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 16px; font-size: 13px; }
.gs-cart__sum dt { font-weight: 700; color: var(--g-ink-2); }
.gs-cart__sum dd { margin: 0; text-align: right !important; font-weight: 700; color: var(--g-ink); }
.gs-cart__sum dd:first-of-type { font-family: var(--g-display); font-weight: 600; font-size: 22px; line-height: 1; }
.gs-cart__ship { font-size: 12px; color: var(--g-ink-2) !important; font-weight: 500 !important; }
.gs-cart__help { margin: 12px 0 0; font-size: 12px; color: var(--g-ink-2); }
.gs-cart__help a { color: var(--g-accent); text-decoration: underline; }

.gs-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 10040; transform: translate(-50%, 20px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; width: max-content; max-width: calc(100% - 32px);
  padding: 14px 18px; background: var(--g-ink); color: #fff; font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.gs-toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gs-toast b { color: var(--g-accent-on-dark); }
.gs-toast__open { border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; font-weight: 700; font-size: 12px; padding: 6px 12px; cursor: pointer; }
.gs-toast__open:hover { background: #fff; color: var(--g-ink); }

@media screen and (max-width: 1199px) {
  .gs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 991px) {
  .gs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-detail { grid-template-columns: 1fr; }
  .gs-detail__info { position: static; }
}
@media screen and (max-width: 767px) {
  /* スマホは下に電話・相談の固定バーがあるので、その上に出す */
  .gs-cartbtn { right: 12px; bottom: 76px; height: 46px; padding: 0 14px 0 12px; font-size: 13px; }
  .gs-toast { bottom: 132px; }
  .gs-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media screen and (max-width: 575px) {
  .gs-grid { gap: 10px; }
  .gs-card__body { padding: 12px 10px 12px; }
  .gs-card__ttl { font-size: 13.5px; }
  .gs-price b { font-size: 21px; }
  .gs-buy__row { flex-direction: column; }
  .gs-qty { align-self: flex-start; }
  .gs-buy__row .gs-btn { min-height: 42px; font-size: 13px; }
  .gs-chip__dot { width: 22px; height: 22px; }
}

/* =====================================================================
   Tmat ブランドページ（page/tmat.php）
   ===================================================================== */
.tm-intro { padding: clamp(56px, 7vw, 110px) 0; text-align: left; }
.tm-intro * { text-align: left; }
.tm-intro__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.tm-intro__logo { margin: 0 0 24px; }
.tm-intro__logo img { width: min(300px, 70%); height: auto; }
.tm-intro__ttl { font-family: var(--g-jp); font-weight: 700; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.35; letter-spacing: .04em; color: var(--g-ink); margin: 0 0 10px; }
.tm-intro__ttl::before, .tm-intro__ttl::after { content: none !important; }
.tm-intro__sub { font-weight: 700; font-size: 15px; letter-spacing: .16em; color: var(--g-accent); margin: 0 0 28px; }
.tm-intro__txt { font-size: 14px; line-height: 2.1; color: var(--g-ink-2); margin: 0 0 14px; font-weight: 500; }
.tm-intro__btns { margin-top: 28px; }
.tm-intro__fig { margin: 0; aspect-ratio: 4 / 4.4; overflow: hidden; }
.tm-intro__fig img { width: 100%; height: 100%; object-fit: cover; }

.tm-ba__fig { position: relative; margin: 0; }
.tm-ba__fig img { width: 100%; height: auto; display: block; }
.tm-ba__fig figcaption { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; }
.tm-ba__fig figcaption span { padding: 14px 18px; font-family: var(--g-label); font-weight: 700; font-size: 14px; letter-spacing: .3em; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

.tm-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); list-style: none; margin: 0; padding: 0; }
.tm-colors__item figure { margin: 0 0 12px; background: #fff; border: 1px solid var(--g-line); aspect-ratio: 1 / 1; overflow: hidden; }
.tm-colors__item img { width: 100%; height: 100%; object-fit: cover; }
.tm-colors__item p { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; font-size: 15px; letter-spacing: .08em; }
.tm-colors__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }

.tm-guide__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--g-line-2); border-left: 1px solid var(--g-line-2); }
.tm-guide__list li { padding: clamp(24px, 2.6vw, 36px); border-right: 1px solid var(--g-line-2); border-bottom: 1px solid var(--g-line-2); }
.tm-guide__en { font-family: var(--g-label); font-weight: 700; font-size: 12px; letter-spacing: .3em; color: var(--g-accent); margin: 0 0 8px; }
.tm-guide__ttl { font-family: var(--g-jp); font-weight: 700; font-size: 18px; letter-spacing: .06em; margin: 0 0 12px; color: var(--g-ink); }
.tm-guide__ttl::before, .tm-guide__ttl::after { content: none !important; }
.tm-guide__txt { margin: 0; font-size: 13.5px; line-height: 2; color: var(--g-ink-2); font-weight: 500; }
.tm-guide__contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(32px, 4vw, 48px); padding: clamp(22px, 2.6vw, 32px); background: var(--g-paper-2); }
.tm-guide__shop { margin: 0 0 4px; font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.tm-guide__tel { margin: 0; font-family: var(--g-display); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: .04em; color: var(--g-ink); }

@media screen and (max-width: 991px) {
  .tm-intro__in { grid-template-columns: 1fr; }
  .tm-intro__fig { aspect-ratio: 4 / 3; }
  .tm-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-guide__list { grid-template-columns: 1fr; }
}

/* パネルは5種類なので広い画面では1列に並べる */
@media screen and (min-width: 1200px) {
  .gs-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gs-grid--5 .gs-buy__row { flex-direction: column; }
  .gs-grid--5 .gs-qty { align-self: flex-start; }
}
.gs-price--ask { white-space: normal; }
@media screen and (max-width: 575px) {
  .gs-buy--ask .gs-btn { padding: 0 10px; font-size: 13px; white-space: nowrap; }
}

/* ---------- 送料・お支払い（2026-10-28） ---------- */
.gs-cart__sum dt label { margin: 0; font-weight: 700; }
.gs-cart__sum dt, .gs-cart__sum dd { align-self: center; }
.gs-pref { min-width: 0; width: 11em; height: 34px; padding: 0 8px !important; border: 1px solid var(--g-line-2) !important; background: #fff; font-size: 13px; font-weight: 700; color: var(--g-ink); }
.gs-cart__ship small { display: block; margin-top: 2px; font-size: 11px; color: var(--g-accent); font-weight: 700; }
.gs-cart__sum dt.gs-cart__grand { padding-top: 10px; border-top: 1px solid var(--g-line-2); color: var(--g-ink); }
.gs-cart__sum dd.gs-cart__grand { padding-top: 10px; border-top: 1px solid var(--g-line-2); font-family: var(--g-display); font-weight: 600; font-size: 22px; line-height: 1; }
.gs-cart__msg { margin: 0 0 12px; padding: 8px 10px; border: 1px solid #b32d2e; background: #fff; color: #b32d2e; font-size: 12px; font-weight: 700; }
.gs-cart__msg[hidden] { display: none; }

.gs-thanks { max-width: 760px; }
.gs-thanks__ttl { font-family: var(--g-jp); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.06em; margin: 10px 0 20px; color: var(--g-ink); }
.gs-thanks__test { display: inline-block; margin: 0 0 16px; padding: 4px 10px; border: 1px solid #b26200; color: #b26200; font-size: 12px; font-weight: 700; }
.gs-thanks__sum { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0 0 20px; padding: 18px 20px; background: var(--g-paper-2); font-size: 14px; }
.gs-thanks__sum dt { font-weight: 700; color: var(--g-ink-2); }
.gs-thanks__sum dd { margin: 0; font-weight: 700; color: var(--g-ink); }
.gs-thanks__txt { font-size: 15px; line-height: 2; margin: 0 0 12px; }
.gs-thanks__note { font-size: 12px; line-height: 1.9; color: var(--g-ink-2); margin: 0 0 28px; }
.gs-thanks__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- カートのボタン：商品が入ったら合計と「ご購入手続きへ」（2026-10-28） ---------- */
.gs-cartbtn__sum, .gs-cartbtn__go { display: none; }
.gs-cartbtn.has-items { background: var(--g-accent); padding-right: 14px; }
.gs-cartbtn.has-items:hover { background: var(--g-ink); }
.gs-cartbtn.has-items .gs-cartbtn__count { background: #fff; color: var(--g-accent); }
.gs-cartbtn.has-items .gs-cartbtn__sum { display: inline; font-family: var(--g-display); font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.gs-cartbtn.has-items .gs-cartbtn__sum:empty { display: none; }
.gs-cartbtn.has-items .gs-cartbtn__go { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.35); height: 26px; }
.gs-cartbtn.has-items .gs-cartbtn__go::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* 「カートに入れました」 */
.gs-added { position: fixed; inset: 0; z-index: 10060; display: flex; align-items: center; justify-content: center; padding: 16px; visibility: hidden; pointer-events: none; }
.gs-added.is-open { visibility: visible; pointer-events: auto; }
.gs-added__overlay { position: absolute; inset: 0; background: rgba(16,18,16,.5); opacity: 0; transition: opacity .25s; }
.gs-added.is-open .gs-added__overlay { opacity: 1; }
.gs-added__box { position: relative; width: min(440px, 100%); padding: 24px; background: #fff; text-align: left; box-shadow: 0 20px 50px rgba(0,0,0,.3); transform: translateY(12px); opacity: 0; transition: transform .25s, opacity .25s; }
.gs-added__box * { text-align: left; }
.gs-added.is-open .gs-added__box { transform: none; opacity: 1; }
.gs-added__ttl { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-weight: 700; font-size: 17px; color: var(--g-ink); }
.gs-added__ttl::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--g-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6'/%3E%3C/svg%3E") center / 16px no-repeat; flex: none; }
.gs-added__item { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); margin-bottom: 18px; }
.gs-added__img { width: 80px; height: 80px; object-fit: contain; border: 1px solid var(--g-line); background: #fff; }
.gs-added__name { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.5; color: var(--g-ink); }
.gs-added__sub { margin: 4px 0 0; font-size: 13px; color: var(--g-ink-2); }
.gs-added__btns { display: grid; gap: 10px; }
.gs-added__btns .gs-btn { width: 100%; }

/* キット */
.gs-kit { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--g-line-2); background: var(--g-paper-2); }
.gs-kit__ttl { margin: 0 0 10px; font-weight: 700; font-size: 14px; color: var(--g-ink); }
.gs-kit__list { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.6; }
.gs-kit__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; padding: 7px 0; border-bottom: 1px dashed var(--g-line-2); }
.gs-kit__list a { color: var(--g-ink) !important; font-weight: 700; text-decoration: underline; }
.gs-kit__pack { font-size: 12px; color: var(--g-ink-2); }
.gs-kit__list b { margin-left: auto; font-family: var(--g-display); font-weight: 600; font-size: 16px; }
.gs-kit__note { margin: 10px 0 0; font-size: 12px; color: var(--g-ink-2); }
.gs-layout { margin-top: clamp(40px, 5vw, 64px); }
.gs-layout__ttl { font-family: var(--g-jp); font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: .06em; margin: 0 0 16px; color: var(--g-ink); }
.gs-layout__fig { margin: 0; max-width: 900px; border: 1px solid var(--g-line-2); background: #fff; }
.gs-layout__fig img { display: block; width: 100%; height: auto; }

@media screen and (max-width: 767px) {
  /* スマホ：商品が入ったら、電話・相談の固定バーのすぐ上に横いっぱいの帯 */
  .gs-cartbtn.has-items { left: 0; right: 0; bottom: var(--gs-fixbar, 50px); width: 100%; height: 54px; padding: 0 16px; gap: 8px; box-shadow: 0 -6px 18px rgba(16,18,16,.18); }
  .gs-cartbtn.has-items .gs-cartbtn__label { display: none; }
  .gs-cartbtn.has-items .gs-cartbtn__go { margin-left: auto; font-size: 14px; }
  html.gs-has-cart .gs-toast { bottom: calc(var(--gs-fixbar, 50px) + 66px); }
  .gs-added { align-items: flex-end; padding: 0; }
  .gs-added__box { width: 100%; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); }
}
@media screen and (max-width: 767px) {
  html.gs-has-cart body { padding-bottom: 54px; } /* 帯の分だけ下を空けて、ページの一番下が隠れないように */
}

/* ページの先頭へ戻るボタン（テーマの .g-pagetop）とカートのボタンが重ならないように */
html.gs-cartbtn-on .g-pagetop a { bottom: 96px !important; }
@media screen and (max-width: 767px) {
  html.gs-cartbtn-on .g-pagetop a { bottom: 132px !important; }
  html.gs-has-cart .g-pagetop a { bottom: calc(var(--gs-fixbar, 50px) + 66px) !important; }
}

/* 1回の注文は1点まで（入れ替えの確認） */
.gs-added__btns--replace, .gs-added.is-replace .gs-added__btns--normal { display: none; }
.gs-added.is-replace .gs-added__btns--replace { display: grid; }
.gs-added.is-replace .gs-added__ttl::before { background: #b26200 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v8M12 17v2' fill='none' stroke='%23fff' stroke-width='2.6'/%3E%3C/svg%3E") center / 16px no-repeat; }
.gs-added__msg { margin: -6px 0 14px; font-size: 13px; line-height: 1.8; color: var(--g-ink-2); }
.gs-added__msg[hidden] { display: none; }
.gs-added.is-replace .gs-added__sub { display: none; }
.gs-added__cancel { justify-self: center; border: 0; background: transparent; padding: 6px 12px; font-size: 13px; color: var(--g-muted); text-decoration: underline; cursor: pointer; }

/* 特定商取引法に基づく表記 */
.gs-law { max-width: 960px; }
.gs-law * { text-align: left; }
.gs-law__ttl { font-family: var(--g-jp); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .06em; margin: 10px 0 28px; color: var(--g-ink); }
.gs-law__table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--g-line-2); font-size: 14px; line-height: 1.9; }
.gs-law__table th, .gs-law__table td { padding: 16px 18px; border-bottom: 1px solid var(--g-line-2); vertical-align: top; }
.gs-law__table th { width: 15em; background: var(--g-paper-2); font-weight: 700; color: var(--g-ink); }
.gs-law__table td { color: var(--g-ink-2); }
.gs-law__table mark { background: #fff3c4; color: #8a5a00; padding: 0 4px; font-weight: 700; }
.gs-law__foot { margin-top: 24px; font-size: 13px; }
.gs-law__foot a, .gs-cart__law a { color: var(--g-accent); text-decoration: underline; }
.gs-cart__law { margin: 8px 0 0; font-size: 11px; }
@media screen and (max-width: 767px) {
  .gs-law__table th, .gs-law__table td { display: block; width: auto; padding: 10px 12px; }
  .gs-law__table th { border-bottom: 0; }
}

/* ---------- ヘッダーのカート（function/glw-shop-crm.php・2026-10-29） ----------
 * PCだけ。ショップのページと、カートに何か入っているときに出る。
 * ヘッダーにカートがあるときは、右下のボタンは「何か入っているとき」だけ出す（空のカートボタンが2つ並ばないように） */
.gs-hdcart { display: none; align-items: center; gap: 6px; margin: 0 4px 0 12px; padding: 8px 12px; border: 1px solid #d7d9d5; border-radius: 5px; background: #fff; color: #1c1f1b; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; transition: border-color .2s, color .2s; }
.gs-hdcart:hover { border-color: var(--g-accent, #1f3d1a); color: var(--g-accent, #1f3d1a); }
.gs-hdcart__icon { width: 16px; height: 13px; border: 2px solid currentColor; border-top-width: 0; position: relative; margin-top: 4px; }
.gs-hdcart__icon::before { content: ""; position: absolute; left: 2px; right: 2px; top: -6px; height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.gs-hdcart__count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #8a8f87; color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
html.gs-has-cart .gs-hdcart__count { background: #b3261e; }
@media screen and (min-width: 992px) {
  html.gs-hdcart-on .gs-hdcart { display: inline-flex; }
  html.gs-hdcart-on .gs-cartbtn:not(.has-items) { display: none !important; }
}
/* Tmatページの見出し帯だけ写真を差し替え（2026-10-30）。戻す＝このブロックを消す */
body.glw-lower2.page-id-7273 .lsh::before {
  background: linear-gradient(90deg, rgba(16,18,16,0.92) 0%, rgba(16,18,16,0.7) 45%, rgba(16,18,16,0.3) 100%),
              url("/cms/wp-content/uploads/2026/10/d922176a996141a6729fe60069a8331d.jpg") center 12% / cover no-repeat;
}
