/* SA Shop（/shop/）。色と線はサイトの変数（css/lower-2026.css）を使う */
.sa-shop{ --s-brand: var(--sa-c-brand, #ff5a00); --s-brand-d: var(--sa-c-brand-dark, #e04e00); --s-ink: var(--sa-c-ink, #333436); --s-ink2: var(--sa-c-ink-2, #5f6165); --s-line: var(--sa-c-line, #e3e3e1); --s-soft: var(--sa-c-line-soft, #efefec); --s-bg2: var(--sa-c-surface-2, #faf9f7); max-width: 1080px; margin: 0 auto 48px; color: var(--s-ink); }
.sa-shop img{ max-width: 100%; height: auto; display: block; }
.sa-shop h3{ margin: 32px 0 12px; font-size: 1.15em; font-weight: 700; }
.sa-shop-note{ margin: 12px 0; padding: 10px 14px; background: var(--s-bg2); border: 1px solid var(--s-line); border-radius: 6px; font-size: 14px; }
.sa-shop-small{ font-size: 13px; color: var(--s-ink2); }
.sa-shop-cartlink{ text-align: right; margin: 8px 0; }
.sa-shop-nav{ display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.sa-shop-nav a{ padding: 6px 14px; border: 1px solid var(--s-line); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--s-ink); background: #fff; }
.sa-shop-nav a:hover{ border-color: var(--s-brand); color: var(--s-brand-d); }
.sa-shop-group{ scroll-margin-top: 90px; padding-bottom: 8px; border-bottom: 2px solid var(--s-brand); }
.sa-shop-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin: 16px 0 0; padding: 0; list-style: none; }
.sa-shop-card{ display: flex; flex-direction: column; list-style: none; margin: 0; padding: 12px; border: 1px solid var(--s-soft); border-radius: 10px; background: #fff; }
.sa-shop-card__link{ display: block; text-decoration: none; color: inherit; flex: 1; }
.sa-shop-card__img{ display: flex; align-items: center; justify-content: center; height: 170px; margin: 0 0 10px; background: var(--s-bg2); border-radius: 6px; overflow: hidden; }
.sa-shop-card__img img{ max-height: 170px; width: auto; object-fit: contain; }
.sa-shop-card__name{ display: block; font-size: 14px; font-weight: 700; line-height: 1.5; margin: 0 0 8px; }
.sa-shop-card__link:hover .sa-shop-card__name{ color: var(--s-brand-d); }
.sa-shop-price{ margin: 0 0 8px; }
.sa-shop-price__row{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; font-size: 13px; color: var(--s-ink2); }
.sa-shop-price__row b{ font-size: 15px; font-weight: 700; }
.sa-shop-price__row.is-on b{ color: var(--s-brand-d); font-size: 17px; }
.sa-shop-price__row small{ font-size: 11px; }
.sa-shop-soldout{ display: inline-block; padding: 4px 12px; border-radius: 4px; background: #f0f0f1; color: #50575e; font-size: 13px; font-weight: 700; }
.sa-shop-btn{ display: inline-block; padding: 12px 28px; border: 2px solid var(--s-brand); border-radius: 6px; background: var(--s-brand); color: #fff !important; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.4; }
.sa-shop-btn:hover{ background: var(--s-brand-d); border-color: var(--s-brand-d); }
.sa-shop-btn--sub{ background: #fff; color: var(--s-brand-d) !important; }
.sa-shop-btn--sub:hover{ background: #fff6f0; }
.sa-shop-link{ border: 0; background: none; padding: 0; color: var(--s-ink2); font-size: 13px; text-decoration: underline; cursor: pointer; }
.sa-shop-buy{ display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.sa-shop-qty select{ padding: 8px; font-size: 16px; }
.sa-shop-back{ margin: 16px 0; font-size: 14px; }
.sa-shop-single__head{ display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; margin: 0 0 32px; }
.sa-shop-single__img img{ margin: 0 auto; max-height: 420px; width: auto; }
.sa-shop-single__title{ margin: 0 0 16px; font-size: 1.5em; font-weight: 700; line-height: 1.4; }
.sa-shop-single__body{ padding-top: 24px; border-top: 1px solid var(--s-line); line-height: 1.9; }
.sa-shop-table{ width: 100%; margin: 12px 0; border-collapse: collapse; background: #fff; }
.sa-shop-table th, .sa-shop-table td{ padding: 12px 8px; border-bottom: 1px solid var(--s-soft); text-align: left; vertical-align: middle; }
.sa-shop-table thead th{ font-size: 13px; color: var(--s-ink2); white-space: nowrap; }
.sa-shop-table tfoot th{ text-align: right; }
.sa-shop-table tfoot b{ color: var(--s-brand-d); font-size: 1.2em; white-space: nowrap; }
.sa-shop-actions{ display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin: 24px 0; }
.sa-shop-form{ max-width: 720px; margin: 0 auto; }
.sa-shop-field{ margin: 0 0 16px; }
.sa-shop-field label{ display: block; margin: 0 0 6px; font-weight: 700; }
.sa-shop-field input[type="text"], .sa-shop-field input[type="email"], .sa-shop-field input[type="tel"]{ width: 100%; padding: 10px 12px; font-size: 16px; border: 1px solid var(--s-line); border-radius: 4px; box-sizing: border-box; }
.sa-shop-agree label{ font-weight: 400; }
.sa-shop-agree input{ margin-right: 6px; }
.sa-shop-req{ display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: var(--s-brand); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.sa-shop-hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sa-shop-err{ margin: 12px 0; padding: 12px 16px; border: 1px solid #d63638; border-radius: 6px; background: #fcf0f1; }
.sa-shop-err ul{ margin: 0; padding-left: 1.2em; }
.sa-shop-err li{ list-style: disc; }
.sa-shop-terms{ width: 100%; border-collapse: collapse; font-size: 14px; }
.sa-shop-terms th, .sa-shop-terms td{ padding: 10px 8px; border-bottom: 1px solid var(--s-soft); text-align: left; vertical-align: top; line-height: 1.7; }
.sa-shop-terms th{ width: 7em; white-space: nowrap; }
@media (max-width: 640px){
	.sa-shop-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.sa-shop-card__img{ height: 130px; }
	.sa-shop-card__img img{ max-height: 130px; }
	.sa-shop-single__head{ grid-template-columns: minmax(0, 1fr); gap: 16px; }
	/* 表のままだと、ブロックにした行が1列目の幅に押し込まれる */
	.sa-shop-table, .sa-shop-table tbody, .sa-shop-table tfoot{ display: block; }
	.sa-shop-table tfoot tr{ display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 12px; }
	.sa-shop-table tfoot th, .sa-shop-table tfoot td{ padding: 12px 0; border: 0; }
	.sa-shop-table thead{ display: none; }
	.sa-shop-table tbody tr{ display: block; padding: 8px 0; border-bottom: 1px solid var(--s-line); }
	.sa-shop-table tbody td{ display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; }
	.sa-shop-table tbody td[data-label]::before{ content: attr(data-label); color: var(--s-ink2); font-size: 13px; white-space: nowrap; }
	.sa-shop-actions{ justify-content: stretch; }
	.sa-shop-actions .sa-shop-btn{ flex: 1; text-align: center; }
	.sa-shop-terms th, .sa-shop-terms td{ display: block; width: auto; border: 0; padding: 4px 0; }
	.sa-shop-terms tr{ display: block; padding: 8px 0; border-bottom: 1px solid var(--s-soft); }
}
/* 商品の画像を親テーマが見出しの上にも出すので消す */
.single-sa_shop_product .single-featured-image-header{ display: none; }
/* 直販：倶楽部に入会して会員価格で買う（includes/join.php。2026-11-28） */
.sa-shop-join{ margin: 20px 0; padding: 16px 18px; border: 2px solid var(--s-brand); border-radius: 10px; background: #fff8f3; }
.sa-shop-join p{ margin: 0 0 10px; }
.sa-shop-join .sa-shop-terms{ margin: 8px 0 12px; background: #fff; }
.sa-shop-join .sa-shop-actions{ margin: 12px 0 0; }
.sa-shop-join form{ margin: 0; }
.sa-shop-join--on{ border-color: var(--s-line); background: var(--s-bg2); }
.sa-shop-join__save{ display: inline-block; margin-top: 4px; color: var(--s-brand-d); font-weight: 700; }
@media (max-width: 600px){
	.sa-shop-join .sa-shop-actions{ flex-direction: column; }
	.sa-shop-join form, .sa-shop-join form .sa-shop-btn{ display: block; width: 100%; }
}
