/* shop3 — list 1 by default on phone; No opening opacity/visibility overrides: the existing reveal owns those. */
#p3shop-pick {
  position: fixed; z-index: 2147483001;
  left: calc(env(safe-area-inset-left, 0px) + 14px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: flex; flex-direction: column; gap: 6px;
  font: 12px/1 -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  touch-action: manipulation;
}
#p3shop-pick.p3shop-above-lay { bottom: calc(env(safe-area-inset-bottom, 0px) + 198px); }
#p3shop-pick button {
  appearance: none; min-width: 44px; min-height: 44px; margin: 0; padding: 0 12px;
  border: 1px solid #67686c; border-radius: 22px; background: #0c0d10; color: #eceef2; font: inherit; cursor: pointer;
}
#p3shop-pick button[aria-pressed="true"] { background: #eceef2; color: #0b0c10; }
#p3shop-pick button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

html.p3shop-modal {
  --shop-bg: #d9d9d3; --shop-stage: #e6e6e0; --shop-ink: #0b0b0c; --shop-line: #111;
  --shop-sub: #55564f; --shop-cta: #0b0b0c; --shop-cta-ink: #e6e6e0; --shop-stripe: #0000000a;
}
html.p3shop-modal-b, html.p3shop-modal-c {
  --shop-bg: #16171b; --shop-stage: #2f3137; --shop-ink: #ecece6; --shop-line: #d0d0ca;
  --shop-sub: #b4b5ba; --shop-cta: #ecece6; --shop-cta-ink: #0b0b0c; --shop-stripe: #ffffff08;
}
html.p3shop-modal body .product-modal[data-shop-tone] {
  align-items: center !important; padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)) !important;
}
html.p3shop-modal body .product-modal[data-shop-tone] .modal-overlay { background: #0009; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.p3shop-modal body .product-modal[data-shop-tone]::before, html.p3shop-modal body .product-modal[data-shop-tone] .product-detail::before,
html.p3shop-modal body .product-modal[data-shop-tone] .product-purchase-dock::before { display: none !important; }
html.p3shop-modal body .product-modal[data-shop-tone] .product-detail.glass-card {
  width: min(560px, 100%) !important; max-width: 560px !important;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  margin: 0; padding: 0; border: 1px solid var(--shop-line); border-radius: 0;
  background: var(--shop-bg) !important;
  background-image: repeating-linear-gradient(0deg, transparent 0 2px, var(--shop-stripe) 2px 3px) !important;
  color: var(--shop-ink); box-shadow: 2px 2px 0 var(--shop-line);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.p3shop-modal body .product-modal[data-shop-tone] .product-detail-inner {
  display: flex; flex-direction: column; gap: 0; align-items: stretch;
  overflow-x: hidden; overflow-y: auto; scrollbar-color: var(--shop-line) var(--shop-bg);
}
html.p3shop-modal body .product-modal[data-shop-tone] .p3shop-titlebar {
  flex: 0 0 44px; display: grid; grid-template-columns: 44px 1fr auto 1fr; align-items: center;
  gap: 8px; padding: 0 8px 0 0; border-bottom: 1px solid var(--shop-line); min-width: 0;
}
html.p3shop-modal .p3shop-titlebar b { font: 600 12px/1.2 -apple-system, sans-serif; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.p3shop-modal .p3shop-titlebar i { height: 11px; background: repeating-linear-gradient(0deg, var(--shop-line) 0 1px, transparent 1px 3px); }
html.p3shop-modal body .product-modal[data-shop-tone] .product-close-btn {
  position: relative; inset: auto; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent !important; color: var(--shop-ink) !important; font-size: 0; box-shadow: none;
}
html.p3shop-modal .product-close-btn::before {
  content: ""; width: 12px; height: 12px; border: 1px solid var(--shop-line);
  background: linear-gradient(45deg, transparent 45%, var(--shop-line) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--shop-line) 45% 55%, transparent 55%);
}
html.p3shop-modal body .product-modal[data-shop-tone] .product-image-wrap {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
  flex: 0 0 auto; width: 100%; height: auto !important; min-height: 0 !important; max-height: none !important;
  aspect-ratio: auto !important; padding: 36px 0 12px !important; border: 0; border-bottom: 1px solid var(--shop-line); border-radius: 0;
  background: var(--shop-stage); box-sizing: border-box;
}
html.p3shop-modal-a body .product-modal[data-shop-tone="light"] .product-image-wrap { background: #cfcfc9; }
html.p3shop-modal .p3shop-photo { position: relative; width: 88%; margin: 0 auto; overflow: hidden; flex: 0 0 auto; }
html.p3shop-modal body .product-modal[data-shop-tone] .p3shop-photo .product-detail-img {
  display: block; position: relative; width: 100% !important; height: auto !important;
  max-width: none !important; max-height: none !important; margin: 0; padding: 0; border-radius: 0;
  object-fit: contain; filter: none !important;
}
html.p3shop-modal body .product-modal[data-shop-tone] .p3shop-photo.p3shop-cropped .product-detail-img {
  position: absolute; width: var(--shop-photo-w) !important; left: var(--shop-photo-x); top: var(--shop-photo-y);
}
html.p3shop-modal .p3shop-count { position: absolute; left: 10px; top: 12px; color: var(--shop-sub); font: 10px/1.2 ui-monospace, monospace; letter-spacing: .1em; }
html.p3shop-modal body .product-modal[data-shop-tone] .product-info-wrap { display: flex; flex-direction: column; padding: 14px; gap: 10px; color: var(--shop-ink); }
html.p3shop-modal .p3shop-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
html.p3shop-modal body .product-modal[data-shop-tone] .product-title { margin: 0; padding: 0; font-size: 30px !important; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; color: var(--shop-ink); overflow-wrap: anywhere; }
html.p3shop-modal .p3shop-status { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--shop-line); font: 600 11px/1.2 -apple-system, sans-serif; white-space: nowrap; }
html.p3shop-modal body .product-modal[data-shop-tone] .type-switch {
  position: static; transform: none; display: flex; flex-wrap: wrap; gap: 4px 18px; max-width: none; margin: -6px 0;
}
html.p3shop-modal body .product-modal[data-shop-tone] .size-btn.type-btn {
  display: inline-flex; align-items: center; gap: 7px; width: auto; min-width: 44px; min-height: 44px; height: auto;
  padding: 4px 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: var(--shop-ink);
  font: 500 13px/1.2 -apple-system, sans-serif;
}
html.p3shop-modal .type-btn::before { content: ""; width: 13px; height: 13px; flex: 0 0 13px; border: 1px solid var(--shop-line); border-radius: 50%; box-sizing: border-box; }
html.p3shop-modal .type-btn.selected::before { background: radial-gradient(circle, var(--shop-ink) 0 3px, transparent 3.5px); }
html.p3shop-modal .product-head-meta { display: none; }
html.p3shop-modal body .product-modal[data-shop-tone] .product-purchase-dock { background: transparent !important; position: static !important; padding: 0; margin: 0; border: 0; box-shadow: none; }
html.p3shop-modal .notify-slot .inn-box { align-items: stretch; margin: 3px; gap: 14px; }
html.p3shop-modal body .product-modal[data-shop-tone] .inn-open, html.p3shop-modal body .product-modal[data-shop-tone] .add-to-cart-btn {
  width: 100%; min-height: 52px; padding: 16px; margin: 0; border: 1px solid var(--shop-cta); border-radius: 9px;
  outline: 2px solid var(--shop-cta); outline-offset: 2px; background: var(--shop-cta); color: var(--shop-cta-ink);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; font: 700 15px/1.2 -apple-system, sans-serif !important; letter-spacing: .04em !important;
}
html.p3shop-modal .product-purchase-dock:has(#pm-cart) { margin: 3px !important; }
html.p3shop-modal .product-modal[data-shop-tone] .inn-form { max-width: none; }
html.p3shop-modal .product-modal[data-shop-tone] .inn-in, html.p3shop-modal .product-modal[data-shop-tone] .inn-send {
  min-height: 44px; color: var(--shop-ink); background: var(--shop-stage); border: 1px solid var(--shop-line); border-radius: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.p3shop-modal .product-modal[data-shop-tone] .inn-in::placeholder, html.p3shop-modal .product-modal[data-shop-tone] .inn-note,
html.p3shop-modal .product-modal[data-shop-tone] .inn-msg, html.p3shop-modal .product-modal[data-shop-tone] .inn-msg[data-kind="err"] { color: var(--shop-sub); }
html.p3shop-modal .p3shop-secondary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 8px; }
html.p3shop-modal .p3shop-secondary button, html.p3shop-modal .product-modal[data-shop-tone] .ms-watch-product {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px;
  margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: var(--shop-sub); font-size: 12px; cursor: pointer;
}
html.p3shop-modal .p3shop-info { text-decoration: underline; text-underline-offset: 3px; }
html.p3shop-modal .product-modal[data-shop-tone] .ms-product-status:empty, html.p3shop-modal .product-modal[data-shop-tone] .product-desc:empty,
html.p3shop-modal .product-modal[data-shop-tone] .product-specs:empty, html.p3shop-modal .product-modal[data-shop-tone] .product-price-tag:empty { display: none; }
html.p3shop-modal .product-modal[data-shop-tone] .product-price-tag, html.p3shop-modal .product-modal[data-shop-tone] .product-color,
html.p3shop-modal .product-modal[data-shop-tone] .product-desc, html.p3shop-modal .product-modal[data-shop-tone] .product-specs,
html.p3shop-modal .product-modal[data-shop-tone] .size-label, html.p3shop-modal .product-modal[data-shop-tone] .product-assurance,
html.p3shop-modal .product-modal[data-shop-tone] .product-shipping-info, html.p3shop-modal .product-modal[data-shop-tone] .size-guide-toggle,
html.p3shop-modal .product-modal[data-shop-tone] .size-guide-note, html.p3shop-modal .product-modal[data-shop-tone] .ms-product-status,
html.p3shop-modal .product-modal[data-shop-tone] .stripe-badge { color: var(--shop-sub); }
html.p3shop-modal .product-modal[data-shop-tone] .size-btn[data-size] { color: var(--shop-ink); border-color: var(--shop-line); }
html.p3shop-modal .product-modal[data-shop-tone] .size-btn[data-size].selected { color: var(--shop-cta-ink); background: var(--shop-cta); box-shadow: none; }
html.p3shop-modal .product-modal[data-shop-tone] .product-shipping-info a, html.p3shop-modal .product-modal[data-shop-tone] .size-guide-toggle,
html.p3shop-modal .product-modal[data-shop-tone] .size-guide-table a, html.p3shop-modal .p3shop-details summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
html.p3shop-modal .product-modal[data-shop-tone] .product-shipping-info a { margin-right: 12px; }
html.p3shop-modal .p3shop-details { color: var(--shop-sub); font-size: 12px; }
html.p3shop-modal .p3shop-details[open] { display: grid; gap: 8px; }
html.p3shop-modal .p3shop-details > :not(summary) { margin-block: 8px; }
html.p3shop-modal .product-modal[data-shop-tone].p3shop-has-notify #pm-notify { min-height: 44px; border: 0; padding: 4px 0; margin: 0; color: var(--shop-sub); background: transparent; font-size: 12px; letter-spacing: .02em; }
html.p3shop-modal .product-modal[data-shop-tone] button:focus-visible, html.p3shop-modal .product-modal[data-shop-tone] a:focus-visible,
html.p3shop-modal .product-modal[data-shop-tone] input:focus-visible, html.p3shop-modal .p3shop-details summary:focus-visible {
  outline: 2px solid var(--shop-ink) !important; outline-offset: 3px; box-shadow: none !important;
}

/* C: same controls and photo crop, with an edge-to-edge shot. */
html.p3shop-modal-c body .product-modal[data-shop-tone] .product-detail.glass-card {
  background: #17181c !important; border: 0; box-shadow: none;
}
html.p3shop-modal-c .p3shop-titlebar { flex-basis: 0 !important; height: 0; padding: 0 !important; border: 0 !important; z-index: 12; }
html.p3shop-modal-c .p3shop-titlebar > :not(button) { display: none; }
html.p3shop-modal-c body .product-modal[data-shop-tone] .product-close-btn { position: absolute; top: 6px; right: 6px; font-size: 26px; }
html.p3shop-modal-c .product-close-btn::before { display: none; }
html.p3shop-modal-c body .product-modal[data-shop-tone] .product-image-wrap { background: linear-gradient(180deg, #3d3f45 0%, #2a2c31 62%, #17181c 100%); border: 0; padding: 48px 0 8px !important; }
html.p3shop-modal-c .p3shop-photo { width: 118%; max-width: none; margin-left: -9%; }
html.p3shop-modal-c .product-modal[data-shop-tone] .p3shop-count { top: 18px; left: 14px; color: #c9cad0; }
html.p3shop-modal-c body .product-modal[data-shop-tone] .product-info-wrap { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
html.p3shop-modal-c .product-info-wrap > * { grid-column: 1 / -1; }
html.p3shop-modal-c .p3shop-heading { display: contents; }
html.p3shop-modal-c body .product-modal[data-shop-tone] .product-title { font-size: 34px !important; grid-column: 1 / -1; }
html.p3shop-modal-c .p3shop-status { grid-column: 1; align-self: center; }
html.p3shop-modal-c body .product-modal[data-shop-tone] .type-switch { grid-column: 2; margin: 0; gap: 10px; }
html.p3shop-modal-c body .product-modal[data-shop-tone] .inn-open, html.p3shop-modal-c body .product-modal[data-shop-tone] .add-to-cart-btn { outline: 0; border-radius: 0; }

@media (max-width: 768px) {
/* List: one composited filter on the FRONT dark garment, including its curved strips. */
/* 実画面の調整: .84 / 1.55 だと黒い服が灰色の服に見えた (色をうそにしない)。黒のまま布が読める所まで */
html.p3shop #store-grid .carousel-item.carousel-front[data-shop-tone="dark"] .product-card-img,
html.p3shop #store-grid .carousel-front + .carousel-item[data-shop-tone="dark"] .product-card-img,
html.p3shop #store-grid .carousel-front + .carousel-item + .carousel-item[data-shop-tone="dark"] .product-card-img { filter: contrast(.9) brightness(1.35) !important; }
html.p3shop #store-grid .carousel-item[data-shop-tone="dark"]:has(+ .carousel-front) .product-card-img,
html.p3shop #store-grid .carousel-item[data-shop-tone="dark"]:has(+ .carousel-item + .carousel-front) .product-card-img { filter: contrast(.9) brightness(1.35) !important; }
/* shopfix1: めくって正面が替わっても、明るさが 0.6 秒かけて遅れて変わらない (残像に見えた)。
   filter は「正面とその両隣 2 着ずつ (見えている服だけ)」にかけ、正面が替わっても見えている服の filter は変わらない。
   棚の全部にはかけない (重い)。filter だけを transition から外す (他の動きは p3_design1.css のまま) */
@media (prefers-reduced-motion: no-preference) {   /* 動きを減らす設定の人は p3_design1.css の transition: none のまま */
html.p3shop body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item[data-shop-tone="dark"] .product-card-img {
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), scale .62s cubic-bezier(.32, .72, 0, 1), translate .62s cubic-bezier(.32, .72, 0, 1);
}
}
html.p3shop body #root.phase-3 #store-grid .carousel-item .product-card-name { font-size: 30px !important; line-height: 1.05 !important; font-weight: 800; letter-spacing: -.01em !important; margin: 0 !important; max-width: 100% !important; white-space: normal !important; overflow-wrap: anywhere; text-wrap: balance; }   /* 実画面: 長い名前が隣の服の所まではみ出し、画面の端に字が見えた → 服の幅の中で折り返す */
html.p3shop body #root.phase-3 #store-grid .carousel-item .product-card-status { border: 1px solid #ecece6; padding: 4px 8px !important; margin-top: 8px !important; font-size: 11px !important; line-height: 1.2 !important; letter-spacing: .02em !important; }
html.p3shop .carousel-mobile-dots .carousel-mobile-dot { display: none !important; }
html.p3shop .carousel-mobile-dots .carousel-position-sr {
  position: static !important; width: auto !important; height: auto !important; overflow: visible !important;
  clip: auto !important; clip-path: none !important; font: 11px/20px ui-monospace, monospace; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: #b4b5ba;
}
html.p3shop #store-grid .product-showcase::before, html.p3shop #store-grid .product-card-img::before,
html.p3shop #store-grid .product-card-img::after, html.p3shop #store-grid .product-showcase-frame,
html.p3shop #store-grid .product-showcase-glow, html.p3shop #store-grid .product-showcase-aurora,
html.p3shop #store-grid .product-showcase-orbit, html.p3shop #store-grid .product-showcase-pedestal { display: none !important; }

html.p3shop #store-grid .notify-open { backdrop-filter: none; -webkit-backdrop-filter: none; margin: 0 !important; }

/* Only list selections own these ratios. p3lay keeps all of its geometry, including INFO. */
html.p3shop-1 { --shop-garment-k: 1.10; --shop-egg-k: 1.00; --shop-info-k: 1.15; }
html.p3shop-2 { --shop-garment-k: 1.05; --shop-egg-k: 1.15; --shop-info-k: 1.30; }
html.p3shop-3 { --shop-garment-k: 1.00; --shop-egg-k: 1.30; --shop-info-k: 1.45; }
html.p3shop:not(.p3lay) #root.phase-3 #contact-toggle.info-entry {
  grid-template-columns: calc(28px * var(--shop-info-k)) auto;
  column-gap: calc(10px * var(--shop-info-k)); min-width: 44px; min-height: 44px;
}
html.p3shop:not(.p3lay) #root.phase-3 #contact-toggle .info-entry-icon {
  width: calc(28px * var(--shop-info-k)); height: calc(28px * var(--shop-info-k));
}
html.p3shop:not(.p3lay) #root.phase-3 #contact-toggle .info-entry-name { font-size: calc(11px * var(--shop-info-k)); }

@media (max-width: 768px) and (orientation: portrait) and (min-height: 601px) {
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .singularity-content {
    /* Match production infobig1 / infospace1 before applying the chosen egg ratio. */
    --shop-egg-base: clamp(68px, min(34vw, calc((100dvh - 342px - env(safe-area-inset-top, 0px) - .88 * var(--mobile-garment-height, 250px)) / 1.42)), 150px);
    --shop-egg: calc(var(--shop-egg-k) * var(--shop-egg-base));
    --shop-info-h: max(52px, calc(28px * var(--shop-info-k) + 12px));
    /* Two name lines + status tag + existing 44px notify control. Price adds a separate row. */
    --shop-meta: 144px;
    --shop-img: max(0px, min(calc(var(--shop-garment-k) * 1.3 * var(--p3-garment-k, 1.15) * min(76vw, 330px, var(--mobile-garment-height, 330px))), calc((100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px - 40px - 8px - 1.684 * var(--shop-egg) - 8px - var(--shop-meta) - 4px - 20px - 12px - var(--shop-info-h) - 11px) / .66)));
    --l2-img: var(--shop-img); --l2-box: calc(var(--shop-img) * .66);
    grid-template-rows: auto auto 0px 0px !important; align-content: start !important;
    padding-top: calc(32px + env(safe-area-inset-top, 0px)) !important;
  }
  html.p3shop.info-space:not(.p3lay) body.p3-mobile-ui #root.phase-3 .singularity-content {
    --shop-egg-base: clamp(68px, min(27vw, calc((100dvh - 342px - env(safe-area-inset-top, 0px) - .88 * var(--mobile-garment-height, 250px)) / 1.42)), 116px);
  }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .singularity-content:has(.product-card-price:not(:empty)) { --shop-meta: 168px; }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .hologram-logo { gap: calc(8px + .2 * var(--shop-egg)) !important; margin-top: 0 !important; }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .logo-holo-wrap { width: var(--shop-egg) !important; }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .item-grid { margin-top: calc(8px + .064 * var(--shop-egg)) !important; margin-bottom: 0 !important; gap: 0 !important; }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .carousel-scene { height: calc(var(--l2-box) + var(--shop-meta) + 4px) !important; padding-bottom: 0 !important; }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .carousel-item .product-showcase,
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .carousel-item .product-card-img { height: var(--l2-box) !important; }
  /* --shop-img already includes garment1; do not apply it twice to curves or flat photos. */
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .garment-curve { --curve-w: var(--shop-img); left: 50%; right: auto; width: var(--shop-img); margin-left: calc(var(--shop-img) / -2); scale: 1; }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .garment-strip { background-size: var(--curve-w) auto !important; }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .carousel-item .product-card-img img {
    position: absolute; left: 50%; top: 50%; width: var(--shop-img) !important; height: auto !important; max-width: none !important; max-height: none !important;
    transform: translate(-50%, -50%); scale: 1;
  }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-info { min-height: var(--shop-meta); margin-top: 0 !important; padding: 0 8px !important; }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 #store-grid .product-card-new { display: none; }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 .carousel-mobile-dots { height: 20px; flex: 0 0 20px; align-items: center; justify-content: center; margin: 0 !important; }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 #contact-form { position: absolute !important; left: 50% !important; top: auto !important; bottom: calc(env(safe-area-inset-bottom, 0px) + 11px) !important; margin: 0 !important; translate: -50% 0; }
  html.p3shop:not(.p3lay) body.p3-mobile-ui #root.phase-3 #contact-toggle.info-entry { height: var(--shop-info-h); padding: 6px 14px !important; }
}
@media (max-width: 768px) and (orientation: portrait) and (min-height: 601px) and (max-height: 800px) {
  html.p3shop.info-space:not(.p3lay) body.p3-mobile-ui #root.phase-3 .singularity-content {
    --shop-egg-base: clamp(68px, min(27vw, calc((100dvh - 362px - env(safe-area-inset-top, 0px) - .88 * var(--mobile-garment-height, 250px)) / 1.42)), 116px);
  }
}
} /* shop3: PC width keeps the previous list, including INFO. */

/* ── 実画面の調整 (2026-11-21 Claude) ── */
/* 商品の画面を開いている間は、サイトのロゴとメニューを隠す (窓のタイトルバー・閉じるボタンと重なっていた) */
html.p3shop-modal body.product-modal-open .brand-name,
html.p3shop-modal body.product-modal-open #p3-menu-toggle { opacity: 0 !important; pointer-events: none !important; }
/* 比べる板: 商品の画面では横 1 列にして下の端へ。中身を隠さないよう、その分だけ下に余白 */
#p3shop-pick:is(body.product-modal-open *) { flex-direction: row; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
html.p3shop-modal:has(#p3shop-pick) body.product-modal-open .product-modal .product-detail { padding-bottom: 68px !important; }
/* 実画面の調整 2: 選んでいる種類 (.selected) に前の見た目 (暗い地・薄い文字) が残り、文字が読めなかった */
html.p3shop-modal body .product-modal[data-shop-tone] .size-btn.type-btn,
html.p3shop-modal body .product-modal[data-shop-tone] .size-btn.type-btn.selected {
  background: transparent !important; color: var(--shop-ink) !important; border-color: transparent !important; box-shadow: none !important; opacity: 1 !important;
  font-family: Inter, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif !important; letter-spacing: 0 !important;   /* 「T」だけ等幅の字になっていた */
}
/* 窓の閉じる箱が点にしか見えなかった (::before が箱の形になっていなかった) */
html.p3shop-modal:not(.p3shop-modal-c) body .product-modal[data-shop-tone] .product-close-btn { display: grid !important; place-items: center; }
html.p3shop-modal:not(.p3shop-modal-c) body .product-modal[data-shop-tone] .product-close-btn::before { display: block !important; position: static !important; transform: none !important; box-sizing: border-box; background-color: var(--shop-bg, transparent); }
html.p3shop-modal:not(.p3shop-modal-c) body .product-modal[data-shop-tone] .product-close-btn::after { display: none !important; }

/* 実画面の調整 3 (2026-11-22): 隣の服の箱は画面の端に 25px 入り込む。名前を 30px にしたら、長い名前 (HELLO WORLD TEE など) の端の字がそこに見えた → 正面でない服の名前の箱だけ、左右 28px を切る */
@media (max-width: 768px) {
  html.p3shop:not(.p3lay) body #root.phase-3 #store-grid .carousel-item:not(.carousel-front) .product-card-info { clip-path: inset(0 28px); }
}
