/* =============================================
   shop.css — hamupata box ユーザー側スタイル
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black:   #1a1a1a;
  --white:   #ffffff;
  --gray-50: #f8f8f6;
  --gray-100:#f1f1f1;
  --gray-200:#e8e8e8;
  --gray-400:#aaaaaa;
  --gray-600:#666666;
  --accent:  #e79494;
  --blue:    #2563eb;
  --radius:  4px;
  --font:    'Helvetica Neue', Arial, -apple-system, sans-serif;
  --serif:   Georgia, 'Times New Roman', serif;
}
html { font-size: 14px; }
body { font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── HEADER ─── */
.site-hdr { display: flex; align-items: center; justify-content: space-between; padding: 12px 32px; border-bottom: 1px solid #ebebeb; background: #fff; position: sticky; top: 0; z-index: 100; }
.logo { text-align: center; }
.logo-sub { display: block; font-size: 8px; letter-spacing: 2.5px; color: #aaa; margin-bottom: 2px; }
.logo-main { display: block; font-size: 20px; color: #555; font-family: var(--serif); font-style: italic; font-weight: 300; }
.hdr-right { display: flex; gap: 16px; align-items: center; }
.hdr-right a { font-size: 11px; color: #888; letter-spacing: .5px; }
.hdr-right a:hover { color: #222; }

/* ─── HERO ─── */
.hero { position: relative; padding: 60px 32px 52px; text-align: center; overflow: hidden; background: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(184,216,240,.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 80% 30%, rgba(244,192,204,.35) 0%, transparent 70%),
    radial-gradient(ellipse 55% 40% at 55% 80%, rgba(244,228,160,.3) 0%, transparent 70%); }
.hero-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.hero-sub { font-size: 9px; letter-spacing: 2.5px; color: #bbb; margin-bottom: 4px; }
.hero-logo { font-size: 36px; font-weight: 300; color: #555; font-family: var(--serif); font-style: italic; margin-bottom: 16px; }
.hero-tagline { font-size: 13px; color: #888; margin-bottom: 18px; }
.hero-search { display: flex; max-width: 480px; margin: 0 auto 16px; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; background: #fff; }
.hero-search input { flex: 1; height: 44px; border: none; padding: 0 14px; font-size: 13px; color: #333; outline: none; }
.hero-search button { width: 44px; height: 44px; background: #222; border: none; cursor: pointer; color: #fff; }
.hero-search button:hover { background: #444; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.hero-tag { padding: 4px 12px; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 11px; color: #777; background: rgba(255,255,255,.8); transition: all .15s; }
.hero-tag:hover { border-color: #aaa; color: #333; }

/* ─── SECTION ─── */
.section { padding: 40px 0; }
.section-inner { max-width: 1060px; margin: 0 auto; padding: 0 32px; }
.section-hdr { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-title { font-size: 10px; letter-spacing: 2px; color: #aaa; text-transform: uppercase; }
.section-more { font-size: 11px; color: #aaa; text-decoration: underline; }
.section-more:hover { color: #555; }

/* ─── PRODUCT GRID ─── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.product-card { display: block; cursor: pointer; }
.product-card:hover .prod-img-wrap { opacity: .9; }
.prod-img-wrap { position: relative; width: 100%; aspect-ratio: 1/1; background: #f5f5f5; border-radius: 3px; overflow: hidden; transition: opacity .15s; }
.prod-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
/* ウォーターマーク共通 */
/* 一覧サムネイル（.prod-img-wrap）では非表示。詳細・ライトボックスのみ有効 */
.prod-img-wrap .watermark { display: none; }
.watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  opacity: 0;           /* デフォルト非表示。JS が wm-ready クラスを付与して表示 */
}
.watermark.wm-ready { opacity: 1; }
.watermark-text {
  /* 中央基点で配置してから回転 → どの向き・比率でも均等に広がる */
  position: absolute;
  top: 50%;
  left: 50%;
  /* 回転後の対角線をカバーするため 200% × 200% 以上が必要 */
  width: 220%;
  height: 220%;
  transform: translate(-50%, -50%) rotate(-22deg);
  /* word-break で自然折り返し・行間と字間で密度調整 */
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(100, 100, 100, 0.13);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.6em;
  word-spacing: 3.5em;
  line-height: 4.8;
  text-align: center;
  white-space: normal;
  word-break: break-all;
  overflow: hidden;
}
.no-img-wrap::after {
  content: 'no image';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #ccc;
  letter-spacing: .5px; font-family: monospace;
}
.prod-info { padding: 8px 0 4px; }
.prod-title { font-size: 11px; color: #444; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.prod-price { font-size: 12px; color: #333; font-weight: 500; }

/* ─── LIST PAGE ─── */
.list-layout { display: flex; gap: 24px; align-items: flex-start; }
.list-sidebar { width: 190px; flex-shrink: 0; }
.list-main { flex: 1; min-width: 0; }
.list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.list-count { font-size: 12px; color: #666; }
.sort-sel { height: 28px; border: 1px solid #e0e0e0; border-radius: 4px; padding: 0 22px 0 8px; font-size: 11px; color: #555; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23bbb'/%3E%3C/svg%3E") no-repeat right 7px center / 8px; -webkit-appearance: none; appearance: none; cursor: pointer; }

/* sidebar */
.sb-section { margin-bottom: 20px; }
.sb-title { font-size: 9px; letter-spacing: 1.5px; color: #aaa; text-transform: uppercase; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #f0f0f0; }
.sb-search { display: flex; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; }
.sb-search input { flex: 1; height: 34px; border: none; padding: 0 10px; font-size: 12px; outline: none; min-width: 0; }
.sb-search button { width: 34px; height: 34px; background: #222; border: none; cursor: pointer; color: #fff; flex-shrink: 0; }
/* cat accordion */
.cat-hdr { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; cursor: pointer; border-bottom: 1px solid #f0f0f0; user-select: none; }
.cat-hdr:hover { background: #fafafa; }
.cat-hdr span { font-size: 12px; color: #444; font-weight: 500; pointer-events: none; }
.cat-arrow { font-size: 9px; color: #ccc; transition: transform .2s; flex-shrink: 0; margin-left: 6px; }
.cat-hdr.open .cat-arrow { transform: rotate(180deg); }
.cat-children { display: none; padding: 4px 0 4px 4px; }
.cat-hdr.open + .cat-children { display: block; }
.cat-child { display: flex; align-items: center; gap: 7px; padding: 5px 0 5px 8px; cursor: pointer; border-left: 2px solid transparent; transition: border-color .12s; margin-left: 4px; }
.cat-child:hover { border-left-color: #bbb; background: #fafafa; }
.cat-child label { font-size: 11px; color: #666; cursor: pointer; }
/* tags */
.sb-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sb-tag { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid #e8e8e8; border-radius: 20px; font-size: 10px; color: #777; cursor: pointer; transition: all .12s; background: #fff; text-decoration: none; }
.sb-tag:hover { border-color: #aaa; color: #333; }
.sb-tag.active { background: #222; color: #fff; border-color: #222; }

/* ─── BREADCRUMB ─── */
.bc { padding: 9px 32px; font-size: 10px; color: #bbb; border-bottom: 1px solid #f5f5f5; }
.bc a { color: #aaa; }
.bc a:hover { color: #333; }

/* ─── DETAIL PAGE ─── */
.detail-wrap { max-width: 1000px; margin: 0 auto; padding: 32px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 700px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-img-wrap { position: relative; width: 100%; aspect-ratio: 1/1; background: #f5f5f5; border-radius: 4px; overflow: hidden; }
.detail-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
/* detail-img-wrap のウォーターマークはJS（shop.js）で制御 */
.detail-no { font-size: 10px; color: #bbb; font-family: monospace; margin-bottom: 6px; }
.detail-title { font-size: 18px; font-weight: 300; color: #222; line-height: 1.5; margin-bottom: 12px; }
.detail-price { font-size: 22px; color: #222; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 16px; }
.spec-table td { padding: 6px 0; border-bottom: 1px solid #f5f5f5; }
.spec-table td:first-child { color: #aaa; width: 110px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-link { padding: 3px 9px; border: 1px solid #e8e8e8; border-radius: 20px; font-size: 11px; color: #666; }
.tag-link:hover { border-color: #aaa; color: #333; }
.license-box { background: #f8f8f6; border: 1px solid #ebebeb; border-radius: 6px; padding: 14px 16px; font-size: 11px; color: #777; line-height: 1.8; margin-top: 16px; }

/* ─── EMPTY STATE ─── */
.empty { text-align: center; padding: 60px 20px; color: #bbb; font-size: 13px; }

/* ─── FOOTER ─── */
.site-footer { border-top: 1px solid #ebebeb; padding: 24px 32px; margin-top: 40px; background: #fff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { font-size: 10px; color: #bbb; letter-spacing: .5px; }
.footer-links a:hover { color: #555; }
.footer-copy { font-size: 10px; color: #ccc; }

/* ─── UNDER CONSTRUCTION ─── */
.uc-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; background: #f8f8f6; }
.uc-logo-sub { font-size: 9px; letter-spacing: 2.5px; color: #bbb; margin-bottom: 4px; }
.uc-logo-main { font-size: 26px; color: #888; font-family: var(--serif); font-style: italic; font-weight: 300; margin-bottom: 20px; }
.uc-blob { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg,rgba(184,216,240,.4),rgba(244,192,204,.4)); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 18px; }
.uc-title { font-size: 20px; font-weight: 300; color: #333; margin-bottom: 8px; }
.uc-desc { font-size: 12px; color: #aaa; line-height: 1.9; margin-bottom: 24px; max-width: 340px; }
.uc-pw-form { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 300px; }
.uc-pw-label { font-size: 11px; color: #aaa; align-self: flex-start; }
.uc-pw-row { display: flex; gap: 6px; width: 100%; }
.uc-pw-input { flex: 1; height: 38px; border: 1px solid #e0e0e0; border-radius: 4px; padding: 0 12px; font-size: 13px; outline: none; }
.uc-pw-btn { height: 38px; padding: 0 16px; background: #222; color: #fff; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.uc-pw-btn:hover { background: #444; }
.uc-error { font-size: 11px; color: #c44; display: none; }
.uc-error.show { display: block; }

/* ─── PAGINATION (products.php) ─── */
.pagination { display:flex;gap:4px;justify-content:center;margin-top:28px;flex-wrap:wrap; }
.page-btn { width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:1px solid #e0e0e0;border-radius:6px;font-size:12px;color:#666;background:#fff;transition:all .12s; }
.page-btn:hover { border-color:#aaa;color:#333; }
.page-btn.active { background:#1a1a1a;color:#fff;border-color:#1a1a1a; }

/* ─── SORT SELECT ─── */
.sort-sel:focus { outline:none;border-color:#aaa; }

/* ─── SECTION INNER MAX WIDTH ─── */
.section-inner { max-width:1060px;margin:0 auto;padding:0 32px; }

/* ─── HEADER CART & USER ─── */
.hdr-left { width: 90px; display: flex; align-items: center; }
.hdr-link { font-size: 11px; color: #888; letter-spacing: .5px; }
.hdr-link:hover { color: #222; }
.hdr-link svg { vertical-align: middle; }
.hdr-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: #222; border-radius: 3px; color: #fff; }
.hdr-cart:hover { background: #444; }
.cart-badge { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; background: #e79494; border-radius: 50%; font-size: 9px; color: #fff; display: flex; align-items: center; justify-content: center; border: 1.5px solid #fff; }

/* ─── FOOTER SNS ─── */
.footer-sns { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-sns-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e8e8e8; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #aaa; transition: all .15s; }
.footer-sns-btn:hover { border-color: #aaa; color: #555; }

/* ─── AUTH FORMS ─── */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 36px 32px; width: 100%; max-width: 400px; box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.auth-title { font-size: 18px; font-weight: 300; color: #333; text-align: center; margin-bottom: 6px; }
.auth-sub { font-size: 12px; color: #aaa; text-align: center; margin-bottom: 24px; }
.auth-input { width: 100%; height: 42px; border: 1px solid #e0e0e0; border-radius: 8px; padding: 0 12px; font-size: 13px; color: #333; outline: none; transition: border-color .15s; box-sizing: border-box; margin-bottom: 14px; }
.auth-input:focus { border-color: #888; }
.auth-btn { width: 100%; height: 44px; background: #1a1a1a; color: #fff; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; font-weight: 500; transition: background .15s; margin-top: 4px; }
.auth-btn:hover { background: #333; }
.auth-btn:disabled { background: #aaa; cursor: not-allowed; }
.auth-notice { padding: 10px 14px; border-radius: 8px; font-size: 12px; margin-bottom: 16px; }
.auth-notice.ok  { background: #e8f5e2; color: #3a7a1a; border: 1px solid #c0e0b0; }
.auth-notice.err { background: #fff0f0; color: #c44; border: 1px solid #e8c0c0; }
.auth-notice.info{ background: #f0f4ff; color: #446; border: 1px solid #c0d0f0; }
.auth-link { font-size: 11px; color: #aaa; text-align: center; margin-top: 14px; }
.auth-link a { color: #555; text-decoration: underline; }

/* ─── CART ─── */
.cart-wrap { max-width: 800px; margin: 0 auto; padding: 32px; }
.cart-title { font-size: 20px; font-weight: 300; color: #222; margin-bottom: 20px; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #f5f5f5; }
.cart-item-img { width: 70px; height: 70px; background: #f5f5f5; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 13px; color: #333; margin-bottom: 4px; }
.cart-item-no { font-size: 10px; color: #bbb; font-family: monospace; }
.cart-item-price { font-size: 14px; font-weight: 500; color: #333; white-space: nowrap; }
.cart-item-del { font-size: 18px; color: #ccc; cursor: pointer; padding: 4px; line-height: 1; flex-shrink: 0; }
.cart-item-del:hover { color: #c44; }
.cart-summary { margin-top: 20px; padding: 20px; background: #f8f8f6; border-radius: 8px; }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 500; color: #222; margin-bottom: 16px; }
.cart-checkout-btn { width: 100%; height: 48px; background: #1a1a1a; color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; font-weight: 500; letter-spacing: .5px; transition: background .15s; }
.cart-checkout-btn:hover { background: #333; }
.cart-checkout-btn:disabled { background: #aaa; cursor: not-allowed; }
.cart-terms-check { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: #777; margin-bottom: 14px; }
.cart-empty { text-align: center; padding: 60px 20px; color: #bbb; font-size: 13px; }

/* ─── MYPAGE ─── */
.mypage-layout { display: flex; gap: 24px; align-items: flex-start; max-width: 1000px; margin: 0 auto; padding: 32px; }
.mypage-nav { width: 190px; flex-shrink: 0; }
.mypage-nav-item { display: block; padding: 10px 14px; font-size: 12px; color: #666; border-radius: 8px; margin-bottom: 2px; transition: all .12s; }
.mypage-nav-item:hover { background: #f5f5f5; color: #222; }
.mypage-nav-item.active { background: #f0f0f0; color: #222; font-weight: 500; }
.mypage-main { flex: 1; min-width: 0; }
.mypage-section-title { font-size: 14px; font-weight: 500; color: #222; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }

/* 購入履歴 */
.order-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.order-card-hdr { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fafafa; border-bottom: 1px solid #f0f0f0; }
.order-no { font-size: 12px; font-family: monospace; color: #333; font-weight: 500; }
.order-date { font-size: 11px; color: #aaa; }
.order-total { font-size: 12px; color: #333; font-weight: 500; margin-left: auto; }
.order-items { padding: 14px 18px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f8f8f8; }
.order-item:last-child { border-bottom: none; }
.order-item-img { width: 48px; height: 48px; background: #f5f5f5; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.order-item-img img { width: 100%; height: 100%; object-fit: contain; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-title { font-size: 12px; color: #333; }
.order-item-price { font-size: 11px; color: #888; margin-top: 2px; }
.download-btn { padding: 6px 14px; background: #2563eb; color: #fff; border: none; border-radius: 4px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.download-btn:hover { background: #1d4ed8; }

/* ─── PURCHASE COMPLETE ─── */
.complete-wrap { text-align: center; padding: 60px 32px; max-width: 600px; margin: 0 auto; }
.complete-icon { font-size: 48px; margin-bottom: 16px; }
.complete-title { font-size: 22px; font-weight: 300; color: #222; margin-bottom: 8px; }
.complete-sub { font-size: 12px; color: #888; line-height: 1.9; margin-bottom: 24px; }
.complete-btn { display: inline-block; padding: 12px 28px; background: #2563eb; color: #fff; border-radius: 4px; font-size: 13px; font-weight: 500; }
.complete-btn:hover { background: #1d4ed8; }

/* ─── CONTACT ─── */
.contact-wrap { max-width: 640px; margin: 0 auto; padding: 32px; }
.contact-title { font-size: 20px; font-weight: 300; color: #222; margin-bottom: 6px; }
.contact-sub { font-size: 12px; color: #aaa; margin-bottom: 24px; line-height: 1.8; }
.form-field { margin-bottom: 18px; }
.form-label { display: block; font-size: 11px; color: #666; margin-bottom: 5px; }
.form-required { color: #c44; font-size: 10px; margin-left: 3px; }
.form-input-text { width: 100%; height: 40px; border: 1px solid #e0e0e0; border-radius: 6px; padding: 0 12px; font-size: 13px; outline: none; transition: border-color .15s; box-sizing: border-box; }
.form-input-text:focus { border-color: #888; }
.form-select-box { width: 100%; height: 40px; border: 1px solid #e0e0e0; border-radius: 6px; padding: 0 12px; font-size: 13px; outline: none; background: #fff; }
.form-textarea { width: 100%; border: 1px solid #e0e0e0; border-radius: 6px; padding: 10px 12px; font-size: 13px; min-height: 140px; resize: vertical; outline: none; line-height: 1.7; font-family: inherit; transition: border-color .15s; box-sizing: border-box; }
.form-textarea:focus { border-color: #888; }
.form-submit-btn { width: 100%; height: 46px; background: #1a1a1a; color: #fff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; font-weight: 500; transition: background .15s; }
.form-submit-btn:hover { background: #333; }

/* ─── STATIC PAGES ─── */
.static-wrap { max-width: 760px; margin: 0 auto; padding: 32px; }
.static-title { font-size: 22px; font-weight: 300; color: #222; margin-bottom: 24px; }
.static-body { font-size: 13px; color: #444; line-height: 2; }
.static-body h2 { font-size: 15px; font-weight: 500; color: #222; margin: 28px 0 10px; }
.static-body h3 { font-size: 13px; font-weight: 500; color: #333; margin: 20px 0 8px; }
.static-body p { margin-bottom: 12px; }
.static-body ul { padding-left: 20px; margin-bottom: 12px; }
.static-body ul li { margin-bottom: 6px; }

/* ─── NOTICE ─── */
.notice-ok  { background:#e8f5e2;color:#3a7a1a;border:1px solid #c0e0b0;border-radius:8px;padding:10px 14px;font-size:12px;margin-bottom:14px; }
.notice-err { background:#fff0f0;color:#c44;border:1px solid #e8c0c0;border-radius:8px;padding:10px 14px;font-size:12px;margin-bottom:14px; }

/* ─── LIGHTBOX ─── */
.lb-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.82);
  align-items: center; justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
.lb-overlay.open { display: flex; }
.lb-inner {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  cursor: default;
}
.lb-inner img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
}
/* ライトボックスWMは JS（shop.js）が body 直下に position:fixed で生成・配置する */
/* lb-wm-wrap / lb-wm-text の CSS 定義は不要 */
.lb-close {
  position: fixed; top: 16px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 9001;
}
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-trigger {
  display: inline-block;
  font-size: 10px; color: #bbb;
  text-decoration: none; cursor: zoom-in;
  margin-top: 8px;
}
.lb-trigger:hover { color: #555; }
