/* AZRION BRAND EC — storefront styles.
   Design master: the Muse artifact EC (theme.css). Monochrome, cool
   only: white / off-white, ink black, cool grays. No blue, no warm
   beige, no colorful blocks. The only color on the page is the
   products' own. Dark scheme mirrors in cool charcoal. */

:root {
  color-scheme: light;
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #e7e7ea;
  --text: #111113;
  --dim: #3f3f46;
  --faint: #68696f;
  --border: #c6c6cc;
  --border-soft: #dedee2;
  --ink: #111113;
  --on-accent: #ffffff;
  --accent: #111113;
  --danger: #b42318;
  --header-bg: #111113;
  --header-text: #f4f4f5;
  --header-dim: #b9babe;
  --header-faint: #8e8f96;
  --stage: #1a1a1c;
  --stage-2: #121214;
  --stage-line: rgb(235 235 240 / 0.14);
  --stage-text: #f4f4f5;
  --stage-dim: #a1a1aa;
  --radius: 14px;
  --font-display: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e0e10;
    --surface: #17171a;
    --surface-2: #222226;
    --text: #f4f4f5;
    --dim: #cfd0d4;
    --faint: #a7a8ae;
    --border: #4a4a52;
    --border-soft: #2e2e34;
    --ink: #f4f4f5;
    --on-accent: #111113;
    --accent: #e8e8ea;
    --danger: #f08a7d;
    --header-bg: #0a0a0b;
    --header-text: #f4f4f5;
    --header-dim: #b9babe;
    --header-faint: #8e8f96;
    --stage: #131315;
    --stage-2: #0c0c0e;
    --stage-line: rgb(235 235 240 / 0.12);
    --stage-text: #f4f4f5;
    --stage-dim: #a1a1aa;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; overflow-anchor: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-anchor: none;
  /* Safety net only (the real fixes are structural): clip — not
     hidden — so no unforeseen wide element can ever stretch the page
     sideways, while position: sticky keeps working. */
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
input, select { font-family: inherit; }
.font-display { font-family: var(--font-display); }
.wrap { max-width: 1152px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 640px) { .wrap { padding-left: 32px; padding-right: 32px; } }
[hidden] { display: none !important; }

/* ---------- Motion system (from the master theme.css) ---------- */
@keyframes riseIn { from { opacity: 0.85; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes viewIn { from { opacity: 0.85; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0.85; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0.85; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes welcomeLogoIn { from { opacity: 0.85; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes logoWriteIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.btn-primary { transition: opacity 0.25s ease, transform 0.25s ease; }
.btn-primary:hover { opacity: 0.88; }
.btn-primary:active { transform: scale(0.99); }
.tap-soft { transition: transform 0.2s ease, opacity 0.2s ease; }
.tap-soft:active { transform: scale(0.97); }

@media (prefers-reduced-motion: no-preference) {
  .header-logo-img { animation: logoWriteIn 1.25s cubic-bezier(0.65, 0, 0.35, 1) both; }
  .rise { animation: riseIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .view-enter { animation: viewIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .fade-enter { animation: fadeIn 0.5s ease both; }
  .panel-enter { animation: panelIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .welcome-overlay { animation: fadeIn 0.5s ease both; }
  .welcome-logo { animation: welcomeLogoIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .welcome-line { animation: riseIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .reveal.is-visible { animation: riseIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Header (black band, white script logo) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg); color: var(--header-text);
  border-bottom: 1px solid rgb(0 0 0 / 0.6);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.35);
}
.header-inner {
  max-width: 1152px; margin: 0 auto;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 16px;
}
@media (min-width: 640px) { .header-inner { padding-left: 32px; padding-right: 32px; } }
.brand { display: block; min-width: 0; flex-shrink: 1; text-align: left; white-space: nowrap; text-decoration: none; }
.header-logo-img { display: block; height: 20px; width: auto; max-width: 38vw; object-fit: contain; object-position: left center; }
@media (min-width: 640px) { .header-logo-img { height: 26px; max-width: 160px; } }
.header-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; flex-shrink: 0; }
@media (min-width: 640px) { .header-nav { gap: 6px; } }
.hnav-btn {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 8px 6px; color: var(--header-text); font-size: 12px; white-space: nowrap;
  text-decoration: none;
}
@media (min-width: 640px) { .hnav-btn { padding-left: 8px; padding-right: 8px; font-size: 13px; } }
.hnav-btn.dim { color: var(--header-dim); }
.hnav-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.hnav-btn .hnav-label { display: none; }
@media (min-width: 640px) { .hnav-btn .hnav-label { display: inline; } }
.hnav-btn.bag svg { width: 22px; height: 22px; }
.hnav-badge {
  position: absolute; top: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  height: 18px; min-width: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--header-text); color: var(--header-bg);
  font-size: 10px; font-weight: 700;
}
.hnav-register {
  margin-left: 4px; border-radius: 999px; background: var(--header-text); color: var(--header-bg);
  padding: 8px 14px; font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none;
}
@media (min-width: 640px) { .hnav-register { padding-left: 16px; padding-right: 16px; font-size: 13px; } }
/* Very narrow phones (≤359px): the guest header (search / favorites /
   login / register / bag + logo) computed to within ~6px of the full
   width, so trim its horizontal padding to give it real slack. */
@media (max-width: 359px) {
  .header-inner { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .hnav-btn { padding-left: 5px; padding-right: 5px; }
  .hnav-register { margin-left: 2px; padding-left: 10px; padding-right: 10px; }
}

/* ---------- Welcome overlay (full-screen film, tap to enter) ---------- */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* The film's own poster is the overlay's background too: if the
     welcome film cannot paint (slow network, decode failure), the
     poster image — not a blank — is what fills the screen. */
  background: #111113 url("/assets/welcome-aoi-poster.jpg") center 24% / cover no-repeat;
  color: #fff; padding: 0; overflow: hidden; cursor: pointer;
}
.welcome-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; background: #111113; }
/* Both films autoplay muted on a loop — never show a play button. */
.welcome-video::-webkit-media-controls-start-playback-button,
.hero-media::-webkit-media-controls-start-playback-button,
.welcome-video::-webkit-media-controls-overlay-play-button,
.hero-media::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
}
/* Hide every native control surface too: iOS paints its start-playback
   glyph through the media-controls shadow DOM while a film has not
   started yet. */
.welcome-video::-webkit-media-controls,
.hero-media::-webkit-media-controls,
.welcome-video::-webkit-media-controls-enclosure,
.hero-media::-webkit-media-controls-enclosure,
.welcome-video::-webkit-media-controls-panel,
.hero-media::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
}
/* Returning visitors skip the welcome film. The .is-welcomed class is
   set on <html> by an inline script in <head> before first paint, so a
   first visit never starts the overlay inside display:none — iOS
   refuses to autoplay media born in a display:none subtree and shows
   its native play glyph instead. */
html.is-welcomed .welcome-overlay { display: none; }
.welcome-shade {
  pointer-events: none; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.6), rgb(0 0 0 / 0) 45%, rgb(0 0 0 / 0.2));
}
.welcome-logo { position: relative; width: min(84vw, 380px); }
.welcome-logo img { width: 100%; height: auto; display: block; }
@keyframes welcomePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.welcome-tap {
  position: absolute; left: 0; right: 0; bottom: max(52px, env(safe-area-inset-bottom));
  margin: 0; text-align: center; color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: 0.3em; text-indent: 0.3em;
  animation: welcomePulse 2.2s ease-in-out infinite;
}
.welcome-tap-sub {
  display: block; margin-top: 8px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.42em; text-indent: 0.42em;
  color: rgb(255 255 255 / 0.65);
}

/* ---------- Hero film ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 92svh; max-height: 920px; min-height: 540px;
  background: #111113; color: #f4f4f5;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; background: #111113; }
.hero-shade { pointer-events: none; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 45%, rgb(0 0 0 / 0.15)); }
.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 20px 44px;
}
@media (min-width: 640px) { .hero-bottom { padding-bottom: 56px; } }
.hero-name { margin: 0; padding-left: 0.42em; font-size: 13px; font-weight: 600; letter-spacing: 0.42em; }
@media (min-width: 640px) { .hero-name { font-size: 14px; } }
.hero-cta {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; background: #fff; color: #111113;
  padding: 14px 36px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-decoration: none;
}
.hero-cta svg { width: 16px; height: 16px; }
.hero-note { position: absolute; bottom: 12px; left: 20px; margin: 0; font-size: 11px; font-weight: 300; letter-spacing: 0.04em; color: rgb(255 255 255 / 0.55); }

/* ---------- Welcome strip ---------- */
.welcome-strip { border-bottom: 1px solid var(--border-soft); }
.welcome-strip .wrap { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 32px; row-gap: 8px; padding-top: 24px; padding-bottom: 24px; }
.strip-eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.28em; color: var(--dim); }
.strip-main { margin: 0; font-size: 16px; font-weight: 500; }
.strip-sub { margin: 0; font-size: 13px; line-height: 1.7; color: var(--dim); }

/* ---------- Section heads ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sec-title { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1.2; }
@media (min-width: 640px) { .sec-title { font-size: 36px; } }
.sec-sub { margin: 0; font-size: 13px; font-weight: 300; color: var(--dim); }
.sec-note { margin: 12px 0 0; max-width: 36em; font-size: 12px; line-height: 1.7; font-weight: 300; color: var(--faint); }

/* ---------- Shop toolbar + grid ---------- */
.shop-section { padding-top: 64px; padding-bottom: 24px; scroll-margin-top: 80px; }
@media (min-width: 640px) { .shop-section { padding-top: 80px; } }
.shop-toolbar { margin-top: 32px; }
.shop-search-wrap { position: relative; }
.shop-search-wrap > svg { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); pointer-events: none; }
.shop-search {
  width: 100%; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  padding: 14px 16px 14px 48px; font-size: 15px;
}
.shop-search::placeholder { color: var(--faint); }
.shop-chips { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; border: 1px solid var(--border); color: var(--dim);
  padding: 8px 16px; font-size: 13px; text-decoration: none; background: transparent;
}
.chip svg { width: 16px; height: 16px; }
.chip.is-on { border-color: var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; }
.sort-label { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.sort-select { border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 8px 14px; font-size: 13px; }
.shop-count { margin: 12px 0 0; font-size: 12px; color: var(--faint); }
.shop-count button { text-decoration: underline; text-underline-offset: 4px; margin-left: 12px; font-size: 12px; color: var(--faint); }
.shop-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 40px; }
@media (min-width: 640px) { .shop-grid { column-gap: 24px; row-gap: 48px; } }
@media (min-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid > *:nth-child(3n + 2) { margin-top: 40px; }
}
.shop-empty { padding: 56px 0; text-align: center; color: var(--dim); }
.shop-empty .btn-ghost { margin-top: 20px; }

/* ---------- Product card (ShopCard) ---------- */
.look-card { transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
.look-card:hover { transform: translateY(-4px); }
.look-card:active { transform: scale(0.99); }
.collection-card { transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
.collection-card:hover { transform: translateY(-4px); }
.card-media { position: relative; }
.card-img-link { display: block; width: 100%; text-align: left; text-decoration: none; }
.card-img-wrap { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.card-img-wrap img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; }
.badge-worn {
  position: absolute; top: 10px; left: 10px;
  border-radius: 999px; background: rgb(0 0 0 / 0.55); color: #fff;
  padding: 4px 10px; font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  backdrop-filter: blur(4px);
}
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: rgb(255 255 255 / 0.75); color: #111113; backdrop-filter: blur(4px);
}
.fav-btn.is-fav { background: var(--ink); color: var(--bg); }
.fav-btn svg { width: 20px; height: 20px; }
.card-body-link { display: block; margin-top: 14px; width: 100%; text-align: left; text-decoration: none; }
.card-cat { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; color: var(--dim); }
.card-name { display: block; margin-top: 4px; font-size: 17px; line-height: 1.45; font-weight: 500; }
@media (min-width: 640px) { .card-name { font-size: 18px; } }
.card-price { display: block; margin-top: 4px; font-size: 18px; font-weight: 700; }
.card-price .tax { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--dim); }
.card-material { display: block; margin-top: 2px; font-size: 12px; font-weight: 300; color: var(--faint); }

/* ---------- Recently viewed ---------- */
.recent-section { padding-top: 40px; padding-bottom: 8px; }
.recent-rail { margin-top: 24px; display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; -ms-overflow-style: none; scrollbar-width: none; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.recent-rail::-webkit-scrollbar { display: none; }
.recent-rail > * { scroll-snap-align: center; }
.recent-item { width: 168px; flex-shrink: 0; }
@media (min-width: 640px) { .recent-item { width: 200px; } }

/* ---------- Locker-room rack stage (from the master theme.css) ---------- */
.rack-stage {
  background:
    repeating-linear-gradient(to right, transparent 0, transparent calc(25% - 1px), var(--stage-line) calc(25% - 1px), var(--stage-line) 25%),
    repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgb(255 255 255 / 0.012) 3px, rgb(255 255 255 / 0.012) 4px),
    linear-gradient(to bottom, var(--stage) 0%, var(--stage-2) 100%);
  color: var(--stage-text);
  position: relative;
}
.rack-rod { height: 5px; border-radius: 999px; background: linear-gradient(to bottom, #d6d6da, #71717a 55%, #3f3f46); box-shadow: 0 2px 6px rgb(0 0 0 / 0.55); }
.rail-scroll { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.rail-scroll > * { scroll-snap-align: center; }
.rack-item { transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.4s ease; }
.rack-item[data-active="true"] { transform: translateY(-8px) scale(1.06); opacity: 1; }
.rack-item[data-active="false"] { transform: translateY(8px) scale(0.93); opacity: 0.55; }
.rack-item .rack-card { transition: box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.55); }
.rack-item[data-active="true"] .rack-card { box-shadow: 0 28px 44px -16px rgb(0 0 0 / 0.65); }
.rack-zoom-img { transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
.rack-hanger { display: block; width: 1px; height: 26px; margin: 0 auto; background: var(--stage-dim); opacity: 0.7; }
.rack-section-inner { padding-top: 48px; padding-bottom: 56px; }
.rack-title { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 500; }
@media (min-width: 640px) { .rack-title { font-size: 30px; } }
.rack-head-sub { margin: 4px 0 0; font-size: 12px; font-weight: 300; color: var(--stage-dim); }
.rack-nav { display: flex; align-items: center; gap: 12px; }
.rack-nav-hint { font-size: 13px; font-weight: 300; color: var(--stage-dim); }
@media (max-width: 639px) { .rack-nav-hint { display: none; } }
.rack-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--stage-line); color: var(--stage-text);
  transition: opacity 0.3s ease;
}
.rack-arrow:disabled { opacity: 0.35; }
.rack-arrow svg { width: 20px; height: 20px; }
.rack-rail {
  display: flex; overflow-x: auto;
  padding: 4px calc(50% - 104px) 16px; -ms-overflow-style: none; scrollbar-width: none;
}
@media (min-width: 640px) { .rack-rail { padding-left: calc(50% - 124px); padding-right: calc(50% - 124px); } }
.rack-rail::-webkit-scrollbar { display: none; }
.rack-unit { margin: 0 10px; width: 188px; flex-shrink: 0; text-align: left; display: block; }
@media (min-width: 640px) { .rack-unit { margin: 0 12px; width: 224px; } }
.rack-card { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); padding: 6px; }
.rack-card img { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: calc(var(--radius) - 6px); background: #fff; object-fit: contain; }
.rack-unit-name { display: block; margin-top: 14px; padding: 0 2px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--stage-text); }
.rack-unit-price { display: block; margin-top: 2px; padding: 0 2px; font-size: 13px; font-weight: 300; color: var(--stage-dim); }
.rack-unit[data-active="true"] .rack-unit-price { font-weight: 600; color: var(--stage-text); }
.rack-dots { margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rack-dot { display: flex; align-items: center; height: 24px; padding: 0 2px; }
.rack-dot i { display: block; height: 8px; border-radius: 999px; transition: all 0.3s ease; width: 8px; background: var(--stage-line); }
.rack-dot.is-on i { width: 22px; background: var(--stage-text); }
.rack-panel {
  margin: 32px auto 0; max-width: 896px; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); color: var(--text);
  box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.6);
}
.rack-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-soft); background: var(--surface-2);
  padding: 12px 24px; color: var(--dim);
}
@media (min-width: 640px) { .rack-panel-head { padding-left: 32px; padding-right: 32px; } }
.rack-panel-head span { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; }
.rack-panel-grid { display: grid; gap: 28px; padding: 24px; }
@media (min-width: 640px) { .rack-panel-grid { grid-template-columns: 1.02fr 1fr; gap: 36px; padding: 32px; } }
.rack-stage-box { position: relative; overflow: hidden; border-radius: calc(var(--radius) - 2px); background: var(--surface-2); }
.rack-stage-box img { display: block; width: 100%; aspect-ratio: 3 / 4; }
.rack-stage-box img.worn { object-fit: cover; }
.rack-stage-box img.flat { background: #fff; object-fit: contain; }
.rack-stage-zoom { position: absolute; inset: 0; width: 100%; height: 100%; }
.rack-stage-tag {
  pointer-events: none; position: absolute; top: 12px; left: 12px; z-index: 2;
  border-radius: 999px; background: rgb(0 0 0 / 0.55); color: #fff;
  padding: 4px 10px; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; backdrop-filter: blur(4px);
}
.rack-stage-hint { top: auto; left: auto; bottom: 12px; right: 12px; }
.rack-cut-row { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.rack-cut {
  flex-shrink: 0; border-radius: 8px; border: 1px solid var(--border); padding: 4px; opacity: 0.7;
  transition: opacity 0.3s ease; background: transparent; color: var(--text);
}
.rack-cut.is-on { border-color: var(--accent); opacity: 1; }
.rack-cut img { display: block; width: 48px; height: 64px; border-radius: 6px; }
@media (min-width: 640px) { .rack-cut img { width: 54px; height: 72px; } }
.rack-cut img.worn { object-fit: cover; }
.rack-cut img.flat { background: #fff; object-fit: contain; }
.rack-cut span { display: block; margin-top: 4px; text-align: center; font-size: 10px; font-weight: 300; }
.rack-cut.is-on span { font-weight: 600; }
.rack-note { margin: 8px 0 0; font-size: 11px; font-weight: 300; color: var(--faint); }
.rack-panel-name { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1.3; }
@media (min-width: 640px) { .rack-panel-name { font-size: 32px; } }
.rack-panel-desc { margin: 12px 0 0; font-size: 15px; line-height: 1.9; font-weight: 300; color: var(--dim); }
.rack-panel-price { margin: 20px 0 0; font-size: 23px; font-weight: 700; }
.rack-panel-price .tax { margin-left: 6px; font-size: 13px; font-weight: 300; color: var(--dim); }
.rack-detail-btn {
  margin-top: 24px; display: block; width: 100%; text-align: center;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  padding: 16px; font-size: 15px; font-weight: 600; text-decoration: none;
  transition: opacity 0.3s ease;
}
.rack-detail-btn:hover { opacity: 0.9; }
.rack-ship-note { margin: 20px 0 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 300; color: var(--faint); }
.rack-ship-note svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn-ink {
  display: block; width: 100%; text-align: center;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  padding: 16px; font-size: 15px; font-weight: 600; text-decoration: none; border: none;
}
.btn-ink.inline { display: inline-block; width: auto; padding-left: 32px; padding-right: 32px; }
.btn-ghost {
  display: inline-block; text-align: center;
  border-radius: 999px; border: 1px solid var(--border); color: var(--text);
  padding: 10px 24px; font-size: 13px; text-decoration: none; background: transparent;
}
.btn-ghost.block { display: block; width: 100%; padding-top: 14px; padding-bottom: 14px; font-size: 14px; }

/* ---------- Dress Up ---------- */
.dressup-section { border-bottom: 1px solid var(--border-soft); }
.dressup-inner { padding-top: 48px; padding-bottom: 48px; }
.dress-grid { margin-top: 32px; display: grid; gap: 32px; }
@media (min-width: 768px) { .dress-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.dress-stage {
  position: relative; margin: 0 auto; max-width: 420px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2);
}
.dress-stage img { display: block; width: 100%; height: auto; }
.dress-stage .badge-worn { top: 12px; left: 12px; }
.dress-stage .badge-model { left: auto; right: 12px; }
.dress-group-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--dim); }
.dress-group-label.spaced { margin-top: 24px; }
.dress-chips { margin-top: 10px; display: grid; gap: 8px; }
.dress-chip {
  display: flex; align-items: center; gap: 12px; text-align: left;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  padding: 10px 12px; opacity: 0.7; width: 100%;
}
.dress-chip.is-on { border-color: var(--ink); opacity: 1; }
.dress-chip img { width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; background: #fff; object-fit: contain; }
.dress-chip .dc-main { min-width: 0; flex: 1; }
.dress-chip .dc-name { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dress-chip .dc-price { display: block; font-size: 12px; color: var(--dim); }
.dress-chip svg { width: 16px; height: 16px; flex-shrink: 0; }
.dress-size-row { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dress-size-row .ds-label { width: 80px; flex-shrink: 0; font-size: 12px; color: var(--dim); }
.size-pill {
  min-width: 40px; border-radius: 999px; border: 1px solid var(--border); color: var(--dim);
  padding: 6px 12px; font-size: 13px; background: transparent;
}
.size-pill.is-on { border-color: var(--ink); background: var(--ink); color: var(--bg); font-weight: 700; }
.dress-summary {
  margin-top: 24px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); padding: 20px; font-size: 14px;
}
.dress-summary .ds-title { margin: 0; font-weight: 500; }
.dress-summary ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--dim); }
.dress-summary li { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.dress-total { margin-top: 12px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; font-size: 18px; font-weight: 700; color: var(--text); }
.dress-note { margin: 6px 0 0; font-size: 12px; color: var(--dim); line-height: 1.7; }
.dress-add { margin-top: 16px; }
.dress-add:disabled { opacity: 0.4; }
.dress-added { margin-top: 12px; text-align: center; font-size: 13px; }
.dress-added a { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--dim); text-decoration: underline; text-underline-offset: 4px; }
.dress-fixed { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; font-size: 12px; line-height: 1.7; color: var(--dim); }
.dress-fixed a { text-decoration: underline; text-underline-offset: 4px; color: inherit; }

/* ---------- Scenes ---------- */
.scenes { background: var(--surface-2); }
.scenes-inner { padding-top: 64px; padding-bottom: 80px; }
@media (min-width: 640px) { .scenes-inner { padding-top: 80px; } }
.scene-count { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; }
.scene-row {
  display: grid; align-items: center; gap: 28px;
  border-bottom: 1px solid var(--border); padding: 56px 0;
}
.scene-row:last-child { border-bottom: none; }
@media (min-width: 640px) { .scene-row { padding: 64px 0; } }
@media (min-width: 768px) { .scene-row { grid-template-columns: 1fr 1fr; gap: 48px; } }
.scene-visual {
  overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); padding: 6px;
  box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.35);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.scene-visual img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: calc(var(--radius) - 6px); }
@media (min-width: 640px) { .scene-visual img { aspect-ratio: 3 / 4; } }
.scene-visual img.flat { background: #fff; object-fit: contain; }
.scene-body { transition: transform 0.5s ease-out; }
.scene-cat { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; color: var(--dim); }
.scene-name { margin: 12px 0 0; font-family: var(--font-display); font-size: 34px; line-height: 1.25; font-weight: 500; }
@media (min-width: 640px) { .scene-name { font-size: 44px; } }
.scene-desc { margin: 16px 0 0; max-width: 28em; font-size: 15px; line-height: 1.9; color: var(--dim); }
.scene-price { margin: 20px 0 0; font-size: 24px; font-weight: 700; }
.scene-price .tax { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--dim); }
.scene-btn { margin-top: 24px; }
@media (min-width: 640px) { .scene-btn { display: inline-block; width: auto; padding-left: 48px; padding-right: 48px; } }
.scene-note { margin: 16px 0 0; font-size: 12px; color: var(--dim); }

/* ---------- Product detail ---------- */
.pd { padding-top: 32px; padding-bottom: 48px; }
@media (min-width: 640px) { .pd { padding-top: 48px; } }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 300; letter-spacing: 0.04em; color: var(--dim); text-decoration: none; transition: color 0.3s ease; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }
.pd-grid { margin-top: 24px; display: grid; gap: 32px; }
@media (min-width: 768px) { .pd-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.pd-main {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); padding: 6px;
}
.pd-main img { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: calc(var(--radius) - 6px); touch-action: pan-y; }
.pd-main img.worn { object-fit: cover; object-position: center 20%; }
/* Tall 9:16 cuts (full-body studio shots): cropping them into the 3:4
   frame cut the model's feet out of the "全身・正面" lead image, so
   they are shown whole on a studio-gray ground sampled from the
   photos' own backdrop (#b3–#d1 range) — no part of the shot is lost. */
.pd-main img.tall { object-fit: contain; object-position: center; background: #c3c4c8; }
/* Real product photos are square (1200×1200): give them a square frame
   so the frame is the photo, not a tall box with dead bands above and
   below it (the azrionchief gallery leads with these). */
.pd-main img.flat { background: #fff; object-fit: contain; aspect-ratio: 1 / 1; }
/* On phones the full-width 3:4 gallery (≈448px tall at 390px wide,
   plus thumbs) filled the whole first screen and squeezed everything
   else out. Cap the gallery column so the photo breathes and the
   name / price / buy area reach the first screen sooner. */
@media (max-width: 767px) {
  .pd-gallery { max-width: 300px; margin-left: auto; margin-right: auto; }
}
.pd-main .badge-worn { top: 16px; left: 16px; }
.pd-cut-label { margin: 12px 0 0; font-size: 12px; font-weight: 300; color: var(--dim); }
.pd-cut-label .pd-cut-count { margin-left: 8px; color: var(--faint); }
.pd-thumbs { margin-top: 12px; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumb {
  width: 68px; flex-shrink: 0; overflow: hidden; border-radius: 8px;
  border: 2px solid transparent; opacity: 0.55; padding: 0; transition: opacity 0.3s ease;
}
.pd-thumb:hover { opacity: 0.9; }
.pd-thumb.is-on { border-color: var(--ink); opacity: 1; }
.pd-thumb img { display: block; width: 100%; aspect-ratio: 3 / 4; }
.pd-thumb img.worn { object-fit: cover; object-position: center 20%; }
.pd-thumb img.tall { object-fit: contain; object-position: center; background: #c3c4c8; }
.pd-thumb img.flat { background: #fff; object-fit: contain; }
.pd-note { margin: 12px 0 0; font-size: 11px; line-height: 1.7; font-weight: 300; color: var(--faint); }
.pd-cat { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--dim); }
.pd-name { margin: 10px 0 0; font-family: var(--font-display); font-size: 38px; line-height: 1.3; font-weight: 500; overflow-wrap: break-word; }
/* The coordinate-set names are long; at 38px they wrapped into 4 lines
   on phones and crowded the buy area. 30px keeps them to ~3 lines. */
@media (max-width: 639px) { .pd-name { font-size: 30px; } }
.pd-price { margin: 14px 0 0; font-size: 28px; font-weight: 600; }
.pd-price .tax { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--dim); }
.pd-material { margin: 6px 0 0; font-size: 13px; font-weight: 300; color: var(--faint); }
.breakdown {
  margin-top: 20px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); padding: 16px; font-size: 14px;
}
.breakdown .bd-title { margin: 0; font-weight: 500; }
.breakdown ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--dim); }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.breakdown .bd-total { margin-top: 10px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 10px; font-weight: 600; }
.breakdown .bd-note { margin: 6px 0 0; font-size: 12px; color: var(--dim); }
.pd-desc { margin: 20px 0 0; font-size: 16px; line-height: 1.9; }
.pd-detail { margin: 12px 0 0; font-size: 14px; line-height: 1.9; color: var(--dim); }
.pd-fieldset { margin: 24px 0 0; border: none; padding: 0; }
.pd-fieldset legend { font-size: 13px; font-weight: 500; padding: 0; }
.size-row { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 48px; border-radius: 999px; border: 1px solid var(--border); color: var(--dim);
  padding: 10px 16px; font-size: 14px; background: transparent;
}
.size-btn.is-on { border-color: var(--ink); background: var(--ink); color: var(--bg); font-weight: 700; }
.fit-note { margin-top: 16px; border-radius: 12px; background: var(--surface-2); padding: 12px 16px; }
.fit-note summary { cursor: pointer; font-size: 13px; font-weight: 500; }
.fit-note p { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--dim); }
.fit-note .fit-sub { font-size: 12px; color: var(--faint); }
.pd-thumb[hidden] { display: none; }
/* Size guide (SHEIN-style sheet: product/body tabs + cm/in toggle) */
.sg-open-row { margin-top: 16px; }
.sg-open {
  border: 1px solid var(--border); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.sg-overlay {
  position: fixed; inset: 0; background: rgba(10, 10, 12, .45); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
}
.sg-overlay[hidden] { display: none; }
.sg-sheet {
  background: var(--bg); color: var(--ink); width: min(680px, 100%);
  max-height: 88dvh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 20px 18px 28px;
}
@media (min-width: 720px) {
  .sg-overlay { align-items: center; }
  .sg-sheet { border-radius: 20px; }
}
.sg-head { display: flex; align-items: center; justify-content: space-between; }
.sg-head h2 { font-size: 17px; font-weight: 700; margin: 0; }
.sg-close { border: none; background: transparent; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; padding: 6px; }
.sg-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.sg-tabs { display: flex; gap: 18px; }
.sg-tab {
  border: none; background: transparent; padding: 6px 2px; font-size: 14px;
  color: var(--dim); border-bottom: 2px solid transparent; cursor: pointer;
}
.sg-tab.is-on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.sg-unit { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.sg-unit-btn { border: none; background: transparent; padding: 6px 14px; font-size: 13px; color: var(--dim); cursor: pointer; }
.sg-unit-btn.is-on { background: var(--ink); color: var(--bg); font-weight: 700; }
.sg-table-wrap { margin-top: 14px; overflow-x: auto; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.sg-table th, .sg-table td { border: 1px solid var(--border); padding: 9px 10px; text-align: center; }
.sg-table thead th { background: var(--surface-2); font-weight: 600; }
.sg-table tbody th { background: var(--surface-2); font-weight: 600; }
.sg-note { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--faint); }
.pd-buy-row { margin-top: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-buy-row .qty-label { font-size: 13px; font-weight: 500; }
.qty-stepper { display: flex; align-items: center; border-radius: 999px; border: 1px solid var(--border); }
.qty-stepper button { padding: 8px 16px; font-size: 18px; line-height: 1; }
.qty-stepper .qty-val { width: 32px; text-align: center; font-size: 15px; background: transparent; border: none; color: var(--text); }
.pd-line-total { margin: 0 0 0 8px; font-size: 14px; }
.pd-line-total b { margin-left: 8px; font-weight: 600; }
.pd-ship-note { margin: 6px 0 0; font-size: 12px; color: var(--dim); }
.form-error { margin: 12px 0 0; font-size: 13px; color: var(--danger); }
.pd-actions { margin-top: 20px; display: flex; gap: 10px; }
.pd-add { flex: 1; border-radius: 999px; background: var(--accent); color: var(--on-accent); padding: 16px; font-size: 16px; font-weight: 600; }
.pd-fav {
  display: flex; align-items: center; justify-content: center; width: 52px; flex-shrink: 0;
  border-radius: 999px; border: 1px solid var(--border); color: var(--dim); background: transparent;
}
.pd-fav.is-fav { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pd-fav svg { width: 20px; height: 20px; }
.pd-points { margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.8; color: var(--dim); }
.related { margin-top: 64px; border-top: 1px solid var(--border-soft); padding-top: 40px; }
.related-title { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 500; }
@media (min-width: 640px) { .related-title { font-size: 28px; } }

/* ---------- Ship progress ---------- */
.ship-progress-text { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.ship-progress-text svg { width: 16px; height: 16px; flex-shrink: 0; }
.ship-progress-text b { font-weight: 600; }
.ship-progress-text .sp-dim { color: var(--dim); }
.ship-progress-note { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--dim); }
.ship-bar { margin-top: 8px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.ship-progress-fill { height: 100%; border-radius: 999px; background: var(--ink); transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }

/* ---------- Cart ---------- */
.cart-wrap { max-width: 768px; margin: 0 auto; padding: 32px 16px 48px; }
@media (min-width: 640px) { .cart-wrap { padding-left: 24px; padding-right: 24px; } }
.page-title { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.page-title svg { width: 24px; height: 24px; }
.page-sub { margin: 8px 0 0; font-size: 13px; font-weight: 300; color: var(--dim); }
.cart-empty-box { margin-top: 40px; text-align: center; color: var(--dim); }
.cart-empty-box .btn-ink { margin: 20px auto 0; width: auto; display: inline-block; padding-left: 32px; padding-right: 32px; font-size: 14px; }
.cart-lines { margin: 24px 0 0; padding: 0; list-style: none; }
.cart-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line:first-child { border-top: 1px solid var(--border); }
.cart-line-img { flex-shrink: 0; display: block; }
.cart-line-img img { width: 72px; height: 96px; border-radius: 8px; object-fit: cover; object-position: center 20%; display: block; }
.cart-line-main { min-width: 0; flex: 1; }
.cart-line-name { margin: 0; font-weight: 500; font-size: 15px; }
.set-chip {
  margin-left: 8px; border-radius: 999px; background: var(--surface-2);
  padding: 2px 8px; vertical-align: middle; font-size: 11px; font-weight: 500; color: var(--dim);
  white-space: nowrap;
}
.cart-line-meta { margin: 2px 0 0; font-size: 13px; color: var(--dim); }
.cart-line-controls { margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.qty-stepper.sm button { padding: 6px 12px; font-size: 16px; }
.qty-stepper.sm .qty-val { width: 24px; font-size: 14px; }
.remove-btn { font-size: 13px; color: var(--dim); text-decoration: underline; text-underline-offset: 4px; }
.cart-line-total { font-weight: 700; white-space: nowrap; font-size: 16px; }
.set-subtotal-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2); padding: 10px 16px; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.set-subtotal-row b { font-weight: 600; }
.cart-summary-box {
  margin-top: 24px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); padding: 20px; font-size: 14px;
}
.cart-summary-box .sum-row { display: flex; justify-content: space-between; margin-top: 12px; }
.cart-summary-box .sum-row .k { color: var(--dim); }
.cart-summary-box .sum-row.total { border-top: 1px solid var(--border); padding-top: 12px; font-size: 19px; font-weight: 700; }
.checkout-box { margin-top: 20px; }
.checkout-box label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.checkout-box input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); padding: 14px 16px; font-size: 16px; margin-bottom: 12px;
}
.checkout-box .addr-grid input, .checkout-box .addr-grid select { margin-bottom: 0; }
.checkout-title { margin: 0 0 12px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.co-member-note { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: var(--dim); }
.co-addr-list { display: grid; gap: 10px; margin-bottom: 14px; }
.co-addr-list .co-addr-card {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  background: var(--surface); cursor: pointer; font-weight: 400;
}
.co-addr-card:has(input:checked) { border-color: var(--ink); }
.co-addr-card input[type="radio"] { width: 16px; height: 16px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.co-addr-main { display: block; min-width: 0; }
.co-addr-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.co-addr-body { display: block; font-size: 13px; line-height: 1.7; color: var(--dim); }
.checkout-box .co-save-row {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 12px;
  font-size: 13px; font-weight: 400; cursor: pointer;
}
.co-save-row input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }
#checkout-btn { margin-top: 16px; }
.checkout-note { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: var(--dim); text-align: center; }
.checkout-error { margin: 10px 0 0; font-size: 13px; color: var(--danger); text-align: center; }
.continue-link { display: block; margin-top: 12px; width: 100%; padding: 8px; text-align: center; font-size: 13px; color: var(--dim); text-decoration: none; }
.more-section { margin-top: 48px; }
.more-title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; }

/* ---------- Favorites / simple pages ---------- */
.page-wrap { padding-top: 40px; padding-bottom: 48px; }

/* ---------- Auth / My page ---------- */
.auth-wrap { max-width: 448px; margin: 0 auto; padding: 40px 20px 56px; }
.auth-eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.3em; color: var(--dim); }
.auth-title { margin: 10px 0 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.logo-on-dark {
  display: inline-flex; align-items: center; background: var(--header-bg);
  border-radius: 10px; padding: 8px 14px; margin-top: 20px;
}
.logo-on-dark img { height: 16px; width: auto; display: block; }
.auth-form { margin-top: 28px; display: grid; gap: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.auth-input {
  width: 100%; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); padding: 14px 16px; font-size: 16px;
}
.auth-input::placeholder { color: var(--faint); }
.auth-alt { margin-top: 20px; text-align: center; font-size: 13px; color: var(--dim); }
.auth-alt a, .auth-alt button { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.auth-forgot { margin: 16px 0 0; text-align: center; font-size: 13px; }
.auth-forgot a { color: var(--dim); text-decoration: underline; text-underline-offset: 4px; }
.auth-note { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--dim); }
.auth-note a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.reset-code-input { letter-spacing: 0.35em; font-variant-numeric: tabular-nums; }
.auth-done { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 20px; display: grid; gap: 12px; }
.auth-done[hidden] { display: none; }
.auth-done-title { margin: 0; font-size: 15px; font-weight: 600; }
.auth-done-actions { margin: 4px 0 0; }
.auth-done-actions .btn-primary { display: inline-block; width: auto; padding: 12px 28px; font-size: 14px; }
.auth-terms { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.6; }
.auth-terms input[type="checkbox"] { width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); cursor: pointer; }
.auth-terms label { cursor: pointer; }
.auth-terms a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.auth-form button[type="submit"][disabled] { opacity: 0.45; cursor: not-allowed; }
.mypage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mypage-sec { margin-top: 40px; }
.mypage-sec-title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; }

/* ---------- Password field UI (strength meter + eye toggle) ---------- */
.pw-wrap { position: relative; }
.pw-wrap .auth-input { padding-right: 52px; }
.pw-eye {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; color: var(--faint);
}
.pw-eye svg { width: 20px; height: 20px; }
.pw-meter { margin-top: 8px; }
.pw-meter-bar { height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.pw-meter-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--border); transition: width 0.3s ease, background-color 0.3s ease; }
.pw-meter-fill.pw-weak { background: #d92d20; }
.pw-meter-fill.pw-mid { background: #e6a817; }
.pw-meter-fill.pw-strong { background: #1f9d55; }
.pw-meter-label { margin: 6px 0 0; font-size: 12px; font-weight: 600; }
.pw-meter-label.pw-weak { color: var(--danger); }
.pw-meter-label.pw-mid { color: #8a6108; }
.pw-meter-label.pw-strong { color: #14713c; }
.pw-guide { margin: 4px 0 0; font-size: 11px; line-height: 1.6; color: var(--faint); }

/* ---------- Address forms + address book ---------- */
.addr-grid { display: grid; gap: 12px; }
.addr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
select.auth-input { appearance: auto; }
.addr-fieldset {
  margin: 0; padding: 16px; display: grid; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.addr-fieldset legend { padding: 0 6px; font-size: 13px; font-weight: 600; }
.addr-note { margin: 0; font-size: 12px; line-height: 1.7; color: var(--dim); }
.addr-label { font-size: 12px; font-weight: 600; color: var(--text); }
.addr-default-badge {
  border-radius: 999px; background: var(--ink); color: var(--bg);
  padding: 2px 8px; font-size: 10px; font-weight: 700; white-space: nowrap;
}
.addr-card {
  margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 16px;
}
.addr-card-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.addr-card-body { margin: 8px 0 0; font-size: 14px; line-height: 1.8; color: var(--dim); }
.addr-card-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.addr-edit-slot { display: grid; gap: 12px; }
.addr-edit-slot:not(:empty) { margin-top: 16px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.addr-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.addr-add-box {
  margin-top: 20px; padding: 16px; display: grid; gap: 12px;
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.addr-add-title { margin: 0; font-size: 14px; font-weight: 600; }
.addr-done {
  margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 16px; display: grid; gap: 12px;
}
.addr-done-text { margin: 0; font-size: 14px; font-weight: 600; }
.addr-done-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.addr-form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.addr-form-actions .btn-ink { flex: 1 1 180px; width: auto; }

/* ---------- Order history ---------- */
.order-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 16px; -webkit-overflow-scrolling: touch; }
.order-tab {
  flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--dim); padding: 8px 16px; font-size: 13px;
}
.order-tab.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.order-card {
  margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 16px;
}
.order-card-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.order-no { font-size: 13px; font-weight: 600; }
.order-status {
  border-radius: 999px; background: var(--ink); color: var(--bg);
  padding: 2px 10px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.order-date { margin: 6px 0 0; font-size: 12px; color: var(--faint); }
/* Order progress stepper: 支払済み→準備中→発送済み→配達完了.
   Done = filled ink dot, current = ringed dot with the label in
   ink, upcoming = quiet warm gray. Dates sit tiny under labels. */
.order-steps {
  display: flex; align-items: flex-start; margin: 14px 0 4px;
}
.ostep {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 0 0 auto; width: 52px; text-align: center;
}
.ostep-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border); box-sizing: border-box;
}
.ostep.is-done .ostep-dot { background: var(--ink); }
.ostep.is-now .ostep-dot {
  background: var(--bg); border: 2px solid var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 23, 26, .08);
}
.ostep-label { font-size: 11px; color: var(--faint); white-space: nowrap; }
.ostep.is-done .ostep-label { color: var(--dim); }
.ostep.is-now .ostep-label { color: var(--ink); font-weight: 700; }
.ostep-date { font-size: 10px; color: var(--faint); white-space: nowrap; min-height: 12px; }
.ostep-line {
  flex: 1 1 auto; height: 2px; margin-top: 4px;
  background: var(--border); border-radius: 2px; min-width: 8px;
}
.ostep-line.is-done { background: var(--ink); }
.order-tracking { margin: 6px 0 0; font-size: 12px; color: var(--dim); }
/* Profile form (NTJ EC と同型): one purpose, stacked fields. */
.profile-form { display: grid; gap: 12px; margin-top: 16px; max-width: 520px; }
.order-item { margin: 8px 0 0; font-size: 14px; }
.order-total { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.order-ship { font-size: 12px; font-weight: 400; color: var(--dim); }

/* ---------- Notices / payment methods ---------- */
.notice-card {
  margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 16px;
}
.notice-card p { margin: 0; font-size: 14px; line-height: 1.8; }
.pm-add-row { margin-top: 16px; }

/* ---------- My Page settings ---------- */
.settings-list { margin-top: 16px; border-top: 1px solid var(--border-soft); }
.settings-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 15px 2px; border: none; border-bottom: 1px solid var(--border-soft);
  background: transparent; color: var(--text); font-size: 14px;
  text-align: left; text-decoration: none; cursor: pointer;
  font-family: inherit; box-sizing: border-box;
}
.settings-row.is-static { cursor: default; }
.settings-label { flex: 1 1 auto; }
.settings-value { font-size: 13px; color: var(--dim); white-space: nowrap; }
.settings-chev { font-size: 16px; color: var(--faint); line-height: 1; }
.settings-panel {
  display: grid; gap: 12px; padding: 16px 2px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.settings-panel .page-sub { margin: 0; }
.settings-link-row { margin: 0; font-size: 14px; }
.settings-link-row a { color: var(--text); text-underline-offset: 4px; }
.settings-ok { margin: 0; font-size: 13px; color: #14713c; }
.settings-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); cursor: pointer; }
.settings-toggle input { width: 18px; height: 18px; accent-color: var(--ink); }
.legal-prose { margin-top: 24px; }
.legal-prose h2 { margin: 28px 0 0; font-size: 15px; font-weight: 600; }
.legal-prose p { margin: 8px 0 0; font-size: 14px; line-height: 1.9; color: var(--dim); }

/* ---------- Legal ---------- */
.legal-wrap { max-width: 768px; margin: 0 auto; padding: 32px 16px 56px; }
@media (min-width: 640px) { .legal-wrap { padding-left: 24px; padding-right: 24px; } }
.legal-horse-box { margin-top: 24px; }
.legal-horse-clip { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.legal-horse { width: 132px; margin-top: -26px; margin-bottom: -26px; display: block; }
@media (min-width: 640px) { .legal-horse { width: 152px; margin-top: -30px; margin-bottom: -30px; } }
.legal-hq { margin: 8px 0 0; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; color: var(--dim); }
.legal-title { margin: 20px 0 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.4; }
.legal-intro { margin: 12px 0 0; font-size: 14px; line-height: 1.8; color: var(--dim); }
.legal-table { margin-top: 32px; }
.legal-table > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.legal-table > div:first-child { border-top: 1px solid var(--border-soft); }
@media (min-width: 640px) { .legal-table > div { grid-template-columns: 180px 1fr; gap: 16px; } }
.legal-table dt { font-size: 13px; font-weight: 500; color: var(--dim); margin: 0; }
.legal-table dd { font-size: 14px; margin: 0; line-height: 1.8; }

/* ---------- Result pages ---------- */
.result-wrap { max-width: 640px; margin: 0 auto; padding: 64px 20px 80px; text-align: center; }
.result-wrap h1 { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: 0; }
.result-wrap p { color: var(--dim); line-height: 1.9; font-size: 15px; }
.result-wrap .btn-ink { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--stage-2); color: var(--stage-text); }
.footer-inner { padding-top: 48px; padding-bottom: 48px; }
.footer-brand { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; }
.footer-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--stage-dim); }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-note { margin: 24px 0 0; font-size: 13px; color: var(--stage-dim); }

/* ---------- Admin (kept compatible with the existing admin page) ---------- */
.admin-page { max-width: 1080px; margin: 0 auto; padding: 32px 20px 64px; font-family: var(--font-sans); }
.admin-page h1 { font-size: 24px; margin: 0 0 20px; }
.admin-page #admin-passcode {
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text); padding: 10px 44px 10px 14px; font-size: 15px; width: 100%;
}
.admin-page .pw-wrap { max-width: 340px; margin-bottom: 8px; }
.admin-page .pw-meter { max-width: 340px; margin-bottom: 12px; }
.btn-secondary {
  border: 1px solid var(--border); border-radius: 999px; background: transparent;
  color: var(--text); padding: 10px 20px; font-size: 14px;
}
.btn-inline { display: inline-block; width: auto; padding: 10px 22px; font-size: 14px; }
.admin-page .btn-primary {
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  padding: 10px 22px; font-size: 14px; font-weight: 600; border: none;
}
.orders-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 16px; }
.orders-table th, .orders-table td { border-bottom: 1px solid var(--border-soft); padding: 8px; text-align: left; vertical-align: top; }
.orders-table select { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); padding: 4px 8px; }
.admin-page .checkout-error { text-align: left; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; font-size: 13px; }
.admin-toolbar input[type="date"] { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); padding: 5px 8px; }
.orders-table tr.order-detail > td { background: #f5f5f7; padding: 12px; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.detail-table th { text-align: left; width: 130px; padding: 5px 8px; background: rgba(0, 0, 0, 0.03); border: 1px solid var(--border-soft); white-space: nowrap; vertical-align: top; }
.detail-table td { padding: 5px 8px; border: 1px solid var(--border-soft); word-break: break-all; }
.detail-table ul { margin: 0; padding-left: 18px; }
.detail-note-link { margin: 10px 0 2px; font-size: 13px; }
.admin-resets { margin-top: 44px; }
.admin-resets-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.admin-sec-title { margin: 0; font-size: 19px; font-weight: 600; }
.admin-sec-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--dim); max-width: 760px; }
.reset-code-box {
  margin-top: 16px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--surface); padding: 18px 20px; max-width: 560px;
}
.reset-code-box[hidden] { display: none; }
.reset-code-label { margin: 0; font-size: 12px; font-weight: 600; color: var(--dim); }
.reset-code-value {
  margin: 8px 0 0; font-size: 34px; font-weight: 700; letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.reset-code-meta { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--dim); }
.reset-code-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.reset-status { white-space: nowrap; }

/* ---------- VERSO: login <-> register blade switch ---------- */
.auth-wrap.has-verso { position: relative; overflow: hidden; }
.verso-blade {
  position: absolute; top: -6%; bottom: -6%; left: 0;
  width: 160%; z-index: 5;
  background: #131316;
  border-right: 1px solid rgba(226, 216, 203, 0.45);
  box-shadow: 18px 0 44px rgba(19, 19, 22, 0.18);
  display: flex; align-items: center; justify-content: center;
  transform: translateX(-125%) skewX(-9deg);
  transition: transform 0.52s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.verso-blade.is-in { transform: translateX(-26%) skewX(-9deg); }
.verso-blade.is-cover { transition: none; transform: translateX(-26%) skewX(-9deg); }
.verso-blade.is-out { transform: translateX(78%) skewX(-9deg); }
.verso-logo {
  transform: skewX(9deg);
  opacity: 0; transition: opacity 0.25s ease;
}
.verso-logo img { height: 22px; width: auto; display: block; }
.verso-blade.is-in .verso-logo, .verso-blade.is-cover .verso-logo { opacity: 1; transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .verso-blade { display: none; }
}

/* ---------- Aguante: hold-to-confirm checkout button ---------- */
.ag-btn {
  position: relative; overflow: hidden; height: 54px; padding: 0;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--ink);
  --ag-p: 0;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none; -webkit-user-select: none;
}
.ag-btn:disabled { opacity: 0.8; }
.ag-fill {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: calc(var(--ag-p) * 100%);
  background: var(--ink);
  visibility: hidden;
}
.ag-btn.is-holding .ag-fill, .ag-btn.is-done .ag-fill { visibility: visible; }
.ag-fill::before {
  content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 5px;
  background: var(--ink);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='5' viewBox='0 0 48 5'><path d='M0 3 Q 6 0.6 12 3 T 24 3 T 36 3 T 48 3 V5 H0 Z' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='5' viewBox='0 0 48 5'><path d='M0 3 Q 6 0.6 12 3 T 24 3 T 36 3 T 48 3 V5 H0 Z' fill='black'/></svg>");
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 48px 5px; mask-size: 48px 5px;
  animation: ag-drift 2.8s linear infinite;
}
@keyframes ag-drift {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to { -webkit-mask-position: 48px 0; mask-position: 48px 0; }
}
.ag-face {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; font-size: 15px; font-weight: 600;
}
.ag-face-top {
  z-index: 2; color: var(--on-accent);
  clip-path: inset(calc((1 - var(--ag-p)) * 100%) 0 0 0);
}
.ag-pct {
  position: absolute; right: 20px; min-width: 38px; text-align: right;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.ag-hint { margin: 10px 0 0; font-size: 12px; color: var(--dim); text-align: center; }
.ag-tap {
  display: block; margin: 6px auto 0; padding: 8px 12px;
  background: none; border: none; cursor: pointer;
  color: var(--dim); font-size: 12.5px;
  text-decoration: underline; text-underline-offset: 4px;
}
.ag-tap:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .ag-fill::before { animation: none; }
}

/* ================================================================
   My Page — soft neumorphism-inspired texture (owner request,
   2026-10-28; same treatment as the NFC TAG JAPAN EC, in the brand
   palette: white / ink / warm neutrals, no blue): profile card at
   the top, sections as softly raised cards, settings rows grouped
   in a quietly recessed well, a real ON/OFF switch for the notice
   toggle, primary actions as one ink pill. Partial application
   only — labels and values keep full ink colors, tap targets stay
   >= 44px. Scoped to the account page (.mypage-neu) so the
   storefront and checkout are untouched.
   ================================================================ */
body.mypage-neu-bg { background: #edeae5; }

.mypage-neu .profile-card {
  background: linear-gradient(150deg, #ffffff 0%, #f3f0eb 100%);
  border: 1px solid #ffffff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 10px 12px 24px rgba(176, 166, 150, 0.35), -8px -8px 18px rgba(255, 255, 255, 0.85);
}
.mypage-neu .profile-card-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mypage-neu .profile-avatar {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #333338, #111113);
  color: #ffffff; font-size: 24px; font-weight: 700;
  box-shadow: 0 8px 16px rgba(17, 17, 19, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.mypage-neu .profile-card .auth-eyebrow { color: #5d574e; }
.mypage-neu .profile-card-name { margin-top: 2px; font-size: 21px; overflow-wrap: anywhere; }
.mypage-neu .profile-card .page-sub { margin-top: 2px; color: #4a463f; overflow-wrap: anywhere; }
.mypage-neu #account-logout {
  background: #f0ede8; border: 1px solid #d9d4cb; color: var(--text);
  box-shadow: 3px 3px 7px rgba(176, 166, 150, 0.30), -3px -3px 7px rgba(255, 255, 255, 0.80);
}

.mypage-neu .mypage-sec {
  margin-top: 22px;
  background: linear-gradient(160deg, #fcfbf9 0%, #f3f1ec 100%);
  border: 1px solid #ffffff;
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 8px 10px 20px rgba(176, 166, 150, 0.30), -6px -6px 16px rgba(255, 255, 255, 0.80);
}
.mypage-neu .mypage-sec > .page-sub { color: #4a463f; }

/* Quietly recessed inputs (password / address forms) */
.mypage-neu .auth-input {
  background: #eae7e1;
  border: 1px solid #d5d0c6;
  border-radius: 14px;
  box-shadow: inset 3px 3px 7px rgba(176, 166, 150, 0.35), inset -3px -3px 7px rgba(255, 255, 255, 0.90);
  color: var(--text);
}
.mypage-neu .auth-input:focus {
  background: #ffffff; border-color: var(--ink);
  outline: 2px solid rgba(17, 17, 19, 0.40); outline-offset: 0;
  box-shadow: none;
}
.mypage-neu .auth-field label { color: var(--text); font-weight: 600; }

/* Primary actions: one ink color, pill shape, soft lift */
.mypage-neu .btn-ink {
  box-shadow: 0 8px 16px rgba(17, 17, 19, 0.22);
}
.mypage-neu .btn-ghost {
  background: #f0ede8; border: 1px solid #d9d4cb; color: var(--text);
  box-shadow: 2px 2px 5px rgba(176, 166, 150, 0.25);
}
.mypage-neu #pm-add-btn {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  font-weight: 700; padding: 12px 24px;
  box-shadow: 0 8px 16px rgba(17, 17, 19, 0.24);
}

/* Order history: pill tabs, active = ink; cards raised on white */
.mypage-neu .order-tab {
  background: #eae7e1; border-color: #d9d4cb; color: #403c35; font-weight: 600;
  padding: 9px 16px;
  box-shadow: inset 2px 2px 5px rgba(176, 166, 150, 0.25), inset -2px -2px 5px rgba(255, 255, 255, 0.70);
}
.mypage-neu .order-tab.is-active {
  background: var(--ink); border-color: var(--ink); color: var(--bg);
  box-shadow: 0 6px 12px rgba(17, 17, 19, 0.26);
}
.mypage-neu .order-card {
  border-color: #e3ded4; border-radius: 16px;
  box-shadow: 4px 5px 12px rgba(176, 166, 150, 0.22);
}
.mypage-neu .order-date { color: #6b655b; }

/* Notices: quietly recessed panel */
.mypage-neu .notice-card {
  background: #eae7e1; border-color: #d9d4cb; border-radius: 16px;
  box-shadow: inset 3px 3px 7px rgba(176, 166, 150, 0.28), inset -3px -3px 7px rgba(255, 255, 255, 0.85);
}

/* Address / saved-card cards: soft white raise */
.mypage-neu .addr-card {
  border-color: #e3ded4; border-radius: 16px;
  box-shadow: 4px 5px 12px rgba(176, 166, 150, 0.22);
}
.mypage-neu .addr-done {
  border-color: #ffffff; border-radius: 16px;
  background: linear-gradient(150deg, #ffffff, #f3f0eb);
  box-shadow: 6px 7px 14px rgba(176, 166, 150, 0.28);
}
.mypage-neu .addr-add-box { border-color: #d5d0c6; border-radius: 16px; }

/* Settings: rows grouped in a quietly recessed well */
.mypage-neu .settings-list {
  margin-top: 14px; padding: 2px 14px;
  background: #eae7e1; border: 1px solid #d9d4cb; border-radius: 16px;
  box-shadow: inset 3px 3px 8px rgba(176, 166, 150, 0.25), inset -3px -3px 8px rgba(255, 255, 255, 0.85);
}
.mypage-neu .settings-row { border-bottom-color: #d5d0c6; min-height: 52px; }
.mypage-neu .settings-list .settings-row:last-child { border-bottom: none; }
.mypage-neu .settings-label { font-weight: 600; }
.mypage-neu .settings-value { color: #4a463f; }
.mypage-neu .settings-chev { color: #7d766b; }
.mypage-neu .settings-panel {
  background: #ffffff; border: 1px solid #e3ded4; border-radius: 14px;
  padding: 16px; margin: 4px 0 14px;
  box-shadow: 4px 5px 12px rgba(176, 166, 150, 0.20);
}

/* Notification toggle: a real switch — ink + knob right is ON,
   warm gray + knob left is OFF, readable at a glance. */
.mypage-neu .settings-toggle { gap: 10px; font-size: 14px; font-weight: 500; color: var(--text); }
.mypage-neu .settings-toggle input {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 52px; height: 30px; margin: 0;
  border-radius: 999px; border: 1px solid #b3aca1;
  background: #c9c3ba; cursor: pointer; position: relative;
  box-shadow: inset 2px 2px 5px rgba(105, 96, 84, 0.30);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.mypage-neu .settings-toggle input::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 2px 5px rgba(40, 35, 28, 0.35);
  transition: left 0.25s ease;
}
.mypage-neu .settings-toggle input:checked { background: var(--ink); border-color: var(--ink); }
.mypage-neu .settings-toggle input:checked::after { left: 24px; }
.mypage-neu .settings-toggle input:focus-visible { outline: 2px solid rgba(17, 17, 19, 0.55); outline-offset: 2px; }

/* Password meter track reads as a recessed groove */
.mypage-neu .pw-meter-bar {
  background: #dcd7ce;
  box-shadow: inset 1px 1px 3px rgba(176, 166, 150, 0.45);
}

/* Dark scheme: same structure, deep warm surfaces */
@media (prefers-color-scheme: dark) {
  body.mypage-neu-bg { background: #101012; }
  .mypage-neu .profile-card,
  .mypage-neu .mypage-sec {
    background: linear-gradient(160deg, #1e1e21 0%, #17171a 100%);
    border-color: #26262b;
    box-shadow: 8px 10px 20px rgba(0, 0, 0, 0.45), -6px -6px 16px rgba(255, 255, 255, 0.03);
  }
  .mypage-neu .profile-card .auth-eyebrow { color: var(--header-dim); }
  .mypage-neu .profile-card .page-sub,
  .mypage-neu .mypage-sec > .page-sub,
  .mypage-neu .settings-value { color: var(--dim); }
  .mypage-neu #account-logout,
  .mypage-neu .btn-ghost {
    background: #1b1b1e; border-color: #2c2c31;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.40);
  }
  .mypage-neu .auth-input {
    background: #121214; border-color: #2c2c31; color: var(--text);
    box-shadow: inset 3px 3px 7px rgba(0, 0, 0, 0.50), inset -3px -3px 7px rgba(255, 255, 255, 0.04);
  }
  .mypage-neu .auth-input:focus {
    background: #17171a; border-color: var(--accent);
    outline: 2px solid rgba(244, 244, 245, 0.40); box-shadow: none;
  }
  .mypage-neu .btn-ink { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45); }
  .mypage-neu #pm-add-btn { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45); }
  .mypage-neu .order-tab {
    background: #17171a; border-color: #2c2c31; color: var(--dim);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.40);
  }
  .mypage-neu .order-tab.is-active {
    background: var(--ink); border-color: var(--ink); color: var(--bg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
  }
  .mypage-neu .order-card,
  .mypage-neu .addr-card { border-color: #2a2a2f; box-shadow: 4px 5px 12px rgba(0, 0, 0, 0.35); }
  .mypage-neu .order-date { color: var(--faint); }
  .mypage-neu .notice-card,
  .mypage-neu .settings-list {
    background: #121214; border-color: #2a2a2f;
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.50), inset -3px -3px 8px rgba(255, 255, 255, 0.03);
  }
  .mypage-neu .addr-done {
    border-color: #26262b;
    background: linear-gradient(150deg, #1e1e21, #17171a);
    box-shadow: 6px 7px 14px rgba(0, 0, 0, 0.40);
  }
  .mypage-neu .addr-add-box { border-color: #2c2c31; }
  .mypage-neu .settings-row { border-bottom-color: #2a2a2f; }
  .mypage-neu .settings-chev { color: var(--faint); }
  .mypage-neu .settings-panel {
    background: #1e1e21; border-color: #2a2a2f;
    box-shadow: 4px 5px 12px rgba(0, 0, 0, 0.35);
  }
  .mypage-neu .settings-toggle input {
    background: #3b3b41; border-color: #4a4a52;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.45);
  }
  .mypage-neu .settings-toggle input:checked { background: #e8e8ea; border-color: #e8e8ea; }
  .mypage-neu .settings-toggle input:checked::after { background: #17171a; }
  .mypage-neu .settings-toggle input:focus-visible { outline-color: rgba(244, 244, 245, 0.55); }
  .mypage-neu .pw-meter-bar { background: #26262b; box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.55); }
}

/* Web Push 設定ボックス（初回オンボーディング共通パターン / マイページ） */
.azpush{margin-top:10px}
.azpush-state{font-size:14px;font-weight:700;margin:0 0 4px}
.azpush-btns{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px}
.azpush-btns .btn-primary{padding:10px 18px;font-size:13px}

/* 読み込みプログレス線（全アプリ共通作法 / progress.js）:
   押した瞬間に画面上端へ細い線がスーッと伸び、終わると消える。
   点滅なし、色は基調のインクに溶ける濃さ。入口フライトの
   スクロール自体には付かない（読み込みではないため）。 */
.az-progress{position:fixed;top:0;left:0;right:0;height:2px;z-index:300;pointer-events:none;opacity:0;transition:opacity .35s ease}
.az-progress.is-on{opacity:1}
.az-progress i{display:block;height:100%;width:100%;background:#17171a;transform:scaleX(0);transform-origin:0 50%}
@media (prefers-reduced-motion: reduce){.az-progress{transition:none}}
