:root {
  color-scheme: light;
  --ink: #762a4a;
  --muted: #835269;
  --action: #d72e79;
  --action-hover: #b72062;
  --line: #efdce5;
  --paper: #fff;
  --cart-bg: #ffffff;
  --cart-line: #efdce5;
  --cart-muted: #835269;
  font-family: "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #3382c7; outline-offset: 3px; }
svg { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }
.shop-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px max(24px, calc((100vw - 1120px) / 2)); background: linear-gradient(110deg, #fbd4ea 0%, #fff5fb 18%, #fff 32%, #fff 78%, #f8e4f0 90%, #f5daed 100%); border-bottom: 1px solid var(--line); }
.shop-header img { display: block; width: 186px; max-height: 48px; object-fit: contain; }
.shop-main { width: min(1120px, calc(100% - 48px)); margin: auto; padding: 28px 0 24px; }
.shop-intro h1 { margin: 0 0 20px; font-size: 26px; color: var(--action); }
.shop-account { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.shop-account-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.shop-account-copy { display: grid; gap: 3px; min-width: 0; }
.shop-account strong { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.shop-account-copy > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.shop-account-name { color: #772ce8; font-weight: 700; }
.shop-account-avatar { display: block; width: 36px; height: 36px; flex: none; object-fit: cover; border-radius: 50%; border: 1px solid #d8c7ec; }
.shop-account-avatar.is-fallback { display: grid; place-items: center; background: #f0e8fa; color: #772ce8; font-size: 16px; font-weight: 700; }
.shop-account.is-linked #shopAccountTitle::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 2px; background: #22875c; border-radius: 50%; }
.shop-account a { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 36px; padding: 7px 13px; border: 1px solid #dad0e8; border-radius: 6px; color: #772ce8; background: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.shop-account a:hover { border-color: #772ce8; background: #f8f4ff; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 254px; gap: 28px; align-items: start; }
.shop-cart { position: sticky; top: 18px; min-width: 0; min-height: 380px; padding: 0 0 18px 24px; border: 0; border-left: 1px solid var(--cart-line); border-radius: 0; background: var(--cart-bg); color: var(--ink); }
.cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.cart-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 16px; font-weight: 700; }
.cart-heading h2 svg { color: var(--action); width: 20px; height: 20px; }
#cartCount { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid var(--cart-line); border-radius: 50%; color: var(--action-hover); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid var(--cart-line); animation: cart-item-in 180ms ease-out; }
.cart-thumb { display: grid; place-items: center; width: 36px; height: 40px; border-radius: 5px; background: #fff2f7; }
.cart-thumb img { width: 28px; height: 28px; object-fit: contain; }
.cart-thumb.is-bundle svg { color: var(--action); }
.cart-item h3 { margin: 0 0 4px; font-size: 13px; line-height: 1.5; }
.cart-item p { margin: 0; color: var(--cart-muted); font-size: 12px; }
.cart-subtotal { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; color: var(--cart-muted); font-size: 11px; }
.cart-subtotal strong { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-remove { display: grid; place-items: center; width: 24px; height: 28px; padding: 0; border: 0; border-radius: 4px; color: var(--cart-muted); background: transparent; }
.cart-remove svg { width: 16px; height: 16px; }
.cart-remove:hover { color: var(--action-hover); background: #fff2f7; }
.cart-empty { display: grid; justify-items: center; padding: 22px 0 30px; color: var(--cart-muted); text-align: center; }
.cart-empty > svg { width: 36px; height: 36px; color: #b67a98; stroke-width: 1.3; margin-bottom: 8px; }
.cart-empty p { margin: 8px 0 5px; font-size: 13px; color: var(--ink); }
.cart-checkout-area { margin-top: 22px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 16px; padding: 18px 0; border-top: 1px solid var(--cart-line); border-bottom: 1px solid var(--cart-line); font-size: 12px; }
.cart-total small { margin-left: 4px; font-size: 10px; color: var(--cart-muted); }
.cart-total strong { font-size: 26px; line-height: 1; color: var(--action-hover); font-variant-numeric: tabular-nums; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 18px; border: 1px solid var(--action); border-radius: 6px; color: #fff; background: var(--action); font-size: 13px; font-weight: 700; }
.primary-button:hover:not(:disabled) { background: var(--action-hover); border-color: var(--action-hover); }
.primary-button:disabled { background: #f4e2eb; border-color: #f4e2eb; color: #946379; }
#cartCheckout { width: 100%; justify-content: space-between; }
.cart-note { display: flex; align-items: center; gap: 5px; margin: 11px 0 0; color: var(--cart-muted); font-size: 10px; line-height: 1.7; }
.cart-note svg { width: 12px; height: 12px; }
.shop-status { margin: 0; color: var(--action-hover); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.shop-status:not(:empty) { margin-top: 14px; }
.shop-status.is-error { color: #b42318; }
.shop-catalog, .shop-payment { min-width: 0; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 1px 0 16px; min-height: 24px; }
.catalog-heading h2 { margin: 0; font-size: 18px; font-weight: 700; }
.product-perks { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.product-perks span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; white-space: nowrap; }
.product-perks svg { width: 13px; height: 13px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card { position: relative; min-width: 0; padding: 0 0 12px; border: 1px solid transparent; border-radius: 0; background: #fff; display: flex; flex-direction: column; transition: border-color 150ms; }
.product-card:hover { border-color: #e2abc4; }
.product-art { position: relative; display: grid; place-items: center; height: 126px; border-radius: 0; background: #fff2f7; overflow: hidden; }
[data-tone="gold"] .product-art, .pack-art[data-tone="gold"] { background: #fff5e4; }
[data-tone="sky"] .product-art, .pack-art[data-tone="sky"] { background: #edf5fb; }
[data-tone="rose"] .product-art, .pack-art[data-tone="rose"] { background: #fff0f4; }
.effect-preview { position: relative; display: block; width: 150px; height: 118px; max-width: 100%; overflow: hidden; }
.product-copy { padding: 11px 8px 0; min-width: 0; flex: 1; }
.product-card h2 { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 700; }
.product-card p { margin: 4px 0 0; min-height: 36px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.product-price { display: flex; align-items: baseline; gap: 5px; margin: 9px 8px 10px; }
.product-price strong { font-size: 21px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-price small { font-size: 9px; color: var(--muted); }
.add-to-cart { display: inline-flex; align-items: center; justify-content: center; gap: 5px; align-self: start; width: calc(100% - 16px); max-width: 180px; margin-inline: 8px; min-height: 38px; padding: 7px 8px; border: 1px solid #e6bdcf; border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.add-to-cart svg { width: 14px; height: 14px; }
.add-to-cart:hover:not(:disabled) { border-color: var(--action); color: var(--action); background: #fff2f7; }
.product-card.is-in-cart { border-color: var(--action); box-shadow: none; }
.product-card.is-in-cart .add-to-cart { border-color: var(--action); background: var(--action); color: #ffffff; }
.product-card.is-owned .add-to-cart { border-color: #d6e6dc; background: #f4faf6; color: #257349; }
.is-pack { grid-column: 1 / -1; display: grid; grid-template-columns: 160px minmax(0, 1fr) 145px; align-items: center; gap: 16px; min-height: 126px; padding: 14px; border-color: var(--line); }
.pack-preview { display: flex; align-items: center; width: 160px; height: 88px; }
.pack-art { display: block; width: 62px; height: 78px; border: 3px solid #fff; border-radius: 6px; overflow: hidden; transform: rotate(-8deg); flex: none; }
.pack-art:nth-child(2) { margin-left: -13px; transform: translateY(-6px); z-index: 1; }
.pack-art:nth-child(3) { margin-left: -13px; transform: rotate(8deg); }
.pack-art .effect-preview { width: 56px; height: 72px; }
.is-pack .product-copy { padding: 0; }
.is-pack h2 { font-size: 17px; }
.is-pack p { min-height: 0; font-size: 11px; }
.pack-label { display: inline-flex; align-items: center; gap: 5px; color: var(--action); font-size: 10px; margin-bottom: 5px; }
.pack-label svg { width: 13px; height: 13px; }
.pack-purchase .product-price { margin: 0 0 11px; }
.pack-purchase .add-to-cart { width: 100%; max-width: 145px; margin-inline: 0; }
.purchase-note { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.purchase-note svg { margin-top: 1px; width: 13px; height: 13px; }
.purchase-note p { margin: 0; font-size: 10px; line-height: 1.7; }
.back-to-cart { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--action); font-size: 12px; }
.wallet-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 220px; min-height: 40px; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }
.wallet-button svg { width: 14px; height: 14px; }
.wallet-button:hover:not(:disabled) { border-color: var(--action); }
.wallet-pending { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.wallet-pending svg { width: 32px; height: 32px; }
.shop-complete { padding: 72px 16px; text-align: center; }
.shop-complete > svg { width: 44px; height: 44px; color: #22875c; }
.shop-complete h2 { font-size: 22px; }
.shop-complete p { margin-bottom: 24px; color: var(--muted); font-size: 13px; }
footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; padding: 22px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; background: #fff; }
footer a { text-decoration: none; }
footer a:hover { color: var(--action); }
.mobile-cart-bar { display: none; }
body.is-paying .mobile-cart-bar { display: none; }
body.has-cart-in-view .mobile-cart-bar { visibility: hidden; }
body.is-embedded .shop-header, body.is-embedded footer, body.is-embedded .shop-intro { display: none; }
body.is-embedded .shop-main { width: calc(100% - 40px); padding: 20px 0; }
body.is-embedded .shop-layout { grid-template-columns: minmax(0, 1fr) 232px; gap: 24px; }
@keyframes cart-item-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1200px) {
  .product-art { height: 160px; }
  .effect-preview { height: 150px; width: 180px; }
  .product-card h2 { font-size: 17px; }
  .product-card p { font-size: 12px; min-height: 38px; }
  .add-to-cart { font-size: 12px; min-height: 40px; }
}
@media (max-width: 840px) and (min-width: 641px) {
  .shop-layout, body.is-embedded .shop-layout { grid-template-columns: minmax(0, 1fr) 208px; gap: 18px; }
  .shop-cart { padding: 0 0 18px 18px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card:nth-child(3):not(.is-pack) { grid-column: auto; }
  .is-pack { grid-template-columns: 1fr; grid-column: auto; gap: 10px; }
  .pack-preview { justify-content: center; width: 100%; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
}
@media (max-width: 640px) {
  body { padding-bottom: 74px; }
  .shop-header { min-height: 62px; padding: 12px 16px; gap: 12px; }
  .shop-header img { width: 142px; }
  .shop-main, body.is-embedded .shop-main { width: calc(100% - 28px); padding: 18px 0 22px; }
  .shop-intro h1 { font-size: 22px; margin-bottom: 18px; }
  .shop-account { min-height: 52px; gap: 10px; padding-bottom: 15px; margin-bottom: 18px; }
  .shop-account strong { font-size: 11px; }
  .shop-account-copy > span { font-size: 9px; }
  .shop-account-avatar { width: 30px; height: 30px; }
  .shop-account a { max-width: 112px; padding: 7px 9px; min-height: 38px; font-size: 10px; text-align: center; }
  .shop-layout, body.is-embedded .shop-layout { grid-template-columns: 1fr; gap: 24px; }
  .shop-catalog { order: 0; }
  .shop-cart { order: 1; position: static; min-height: 0; padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
  .cart-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cart-item { grid-template-columns: minmax(0, 1fr) 24px; }
  .cart-thumb { display: none; }
  .cart-subtotal { grid-column: 1 / -1; }
  .cart-checkout-area { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; }
  .cart-total { margin: 0; flex-wrap: wrap; gap: 5px 12px; }
  #cartCheckout { width: 156px; }
  .cart-note { grid-column: 1 / -1; margin: 0; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 7px; margin-bottom: 14px; }
  .catalog-heading h2 { font-size: 17px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { padding: 0 0 10px; }
  .product-art { height: 118px; }
  .effect-preview { height: 108px; width: 140px; }
  .product-card h2 { font-size: 14px; }
  .product-copy { padding-top: 9px; padding-inline: 6px; }
  .product-card p { font-size: 11px; min-height: 36px; }
  .product-price strong { font-size: 20px; }
  .add-to-cart { min-height: 40px; font-size: 11px; padding: 7px 4px; gap: 3px; }
  .is-pack { grid-column: auto; grid-template-columns: 1fr; align-content: start; gap: 0; }
  .pack-preview { width: 100%; height: 118px; justify-content: center; }
  .pack-art { width: 49px; height: 70px; }
  .pack-art .effect-preview { width: 43px; height: 64px; }
  .pack-art:nth-child(2), .pack-art:nth-child(3) { margin-left: -10px; }
  .pack-label { display: none; }
  .is-pack .product-copy { padding: 9px 2px 0; }
  .is-pack h2 { font-size: 14px; }
  .is-pack p { min-height: 32px; }
  .pack-purchase .product-price { margin: 9px 8px 10px; }
  .pack-purchase .add-to-cart { width: calc(100% - 16px); max-width: 180px; margin-inline: 8px; }
  .purchase-note { margin-top: 22px; }
  .mobile-cart-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
  .mobile-cart-bar > div { display: flex; align-items: baseline; gap: 12px; }
  .mobile-cart-bar span { font-size: 11px; color: var(--muted); }
  .mobile-cart-bar b { font-weight: 600; }
  .mobile-cart-bar strong { font-size: 20px; font-variant-numeric: tabular-nums; }
  .mobile-cart-bar button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 13px; border: 1px solid var(--action); border-radius: 5px; background: var(--action); color: #fff; font-size: 11px; font-weight: 700; }
  .mobile-cart-bar button svg { width: 15px; height: 15px; }
  .shop-complete { padding: 40px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cart-item { animation: none; }
  .product-card { transition: none; }
}
@media (max-width: 360px) {
  .pack-art { width: 43px; height: 70px; }
  .pack-art .effect-preview { width: 37px; height: 64px; }
  #cartCheckout { width: 132px; font-size: 12px; padding-inline: 12px; }
}
