:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: #d2d2d7;
  --gray: #f5f5f7;
  --white: #ffffff;
  --black: #000000;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --link-dark: #2997ff;
  --green: #1d8a3a;
  --amber: #b25e00;
  --red: #c9302c;
  --radius: 18px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.47; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }
.wrap { width: min(var(--wrap), calc(100% - 44px)); margin: 0 auto; }
.muted, .muted-text { color: var(--ink-3); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); color: #f5f5f7; }
.topbar-inner { width: min(var(--wrap), calc(100% - 44px)); margin: 0 auto; height: 48px; display: flex; align-items: center; gap: 24px; }
.brand { color: #f5f5f7; font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand:hover { text-decoration: none; opacity: 0.85; }
.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topnav a, .topnav button { color: #d2d2d7; font-size: 13px; background: none; border: 0; padding: 8px 10px; border-radius: var(--radius-sm); }
.topnav a:hover, .topnav button:hover { color: #fff; text-decoration: none; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 20px; }
.icon-button:hover { background: rgba(127, 127, 127, 0.16); }
.nav-toggle { display: none; margin-left: auto; }
.announcement { background: var(--gray); color: var(--ink-2); font-size: 14px; text-align: center; padding: 10px 22px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px; border-radius: 980px; border: 1px solid transparent; font-size: 17px; line-height: 1; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease; }
.btn:hover { text-decoration: none; }
.btn svg { font-size: 15px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e8e8ed; }
.btn-ghost { background: var(--gray); color: var(--ink); }
.btn-ghost:hover { background: #e8e8ed; }
.btn-link { background: none; color: var(--link); padding: 0 6px; }
.btn-link:hover { text-decoration: underline; }
.btn-link-light { background: none; color: var(--link-dark); padding: 0 6px; }
.btn-link-light:hover { text-decoration: underline; }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-disabled, .btn:disabled { background: #e8e8ed; color: #86868b; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { background: var(--black); color: #f5f5f7; text-align: center; padding: 88px 22px 0; overflow: hidden; min-height: min(760px, calc(100svh - 48px)); display: flex; flex-direction: column; }
.hero h1 { margin: 0; font-size: 64px; line-height: 1.07; font-weight: 600; }
.hero-sub { margin: 16px auto 0; max-width: 640px; color: #a1a1a6; font-size: 21px; line-height: 1.38; }
.hero-actions { margin-top: 28px; display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-stage { position: relative; flex: 1; min-height: 300px; margin: 48px auto 0; width: min(880px, 100%); }
.stage-item { position: absolute; bottom: -40px; transition: transform 0.6s ease; }
.stage-item .art { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.stage-0 { left: 50%; transform: translateX(-50%); z-index: 3; bottom: -20px; }
.stage-1 { left: 6%; transform: rotate(-8deg) scale(0.86); z-index: 2; }
.stage-2 { right: 6%; transform: rotate(8deg) scale(0.86); z-index: 1; }

/* ---------- product art ---------- */
.art { --accent: #2f6fed; position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1.586; border-radius: 14px; padding: 1em 1.15em; color: #fff; background: var(--accent); overflow: hidden; text-align: left; isolation: isolate; }
.art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, 0.28)); }
.art-family { font-size: 0.82em; font-weight: 500; opacity: 0.86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-mark { font-size: 1.7em; font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
.art-image { padding: 0; background: var(--gray); }
.art-image::after { display: none; }
.art-image img { width: 100%; height: 100%; object-fit: cover; }
.art-sm { width: 76px; font-size: 7px; border-radius: 8px; flex: none; }
.art-md { width: 100%; max-width: 240px; font-size: 15px; }
.art-lg { width: 300px; font-size: 20px; }

/* ---------- sections ---------- */
.band { padding: 96px 0; }
.band-gray { background: var(--gray); }
.band-white { background: var(--white); }
.section-title { margin: 0 0 40px; font-size: 40px; line-height: 1.1; font-weight: 600; }
.section-title .muted { margin-left: 0.3em; }
.eyebrow { display: block; color: var(--amber); font-size: 12px; font-weight: 600; line-height: 1.4; min-height: 17px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan { background: var(--white); border-radius: var(--radius); padding: 28px 24px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.plan .art { margin: 14px 0 22px; max-width: 200px; }
.plan h3 { margin: 0; font-size: 24px; line-height: 1.17; font-weight: 600; }
.plan-summary { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; min-height: 44px; }
.price { margin: 14px 0 0; font-size: 15px; color: var(--ink-3); }
.price strong { color: var(--ink); font-size: 21px; font-weight: 600; }
.price-lg strong { font-size: 28px; }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); text-align: left; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks svg { color: var(--green); margin-top: 3px; }
.stock { margin: auto 0 0; padding-top: 18px; font-size: 13px; color: var(--green); }
.stock.is-out { color: var(--ink-3); }
.plan-actions { margin-top: 16px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* promo */
.promo { --accent: #c96442; background: #111; color: #f5f5f7; text-align: center; padding: 104px 22px; position: relative; overflow: hidden; }
.promo::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--accent); }
.promo-inner { max-width: 760px; margin: 0 auto; }
.promo-kicker { margin: 0; color: var(--accent); font-size: 17px; font-weight: 600; filter: brightness(1.35); }
.promo h2 { margin: 8px 0 0; font-size: 72px; line-height: 1.05; font-weight: 600; }
.promo-sub { margin: 12px 0 0; font-size: 24px; color: #d2d2d7; }
.promo-price { margin: 22px 0 0; color: #a1a1a6; }
.promo-price strong { color: #fff; font-size: 28px; font-weight: 600; }
.promo-actions { margin-top: 24px; display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.promo-note { margin: 28px auto 0; max-width: 560px; font-size: 13px; color: #86868b; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--gray); border-radius: var(--radius); padding: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 200px); gap: 24px; align-items: center; min-height: 280px; }
.tile h3 { margin: 0; font-size: 28px; line-height: 1.14; font-weight: 600; }
.tile-summary { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.tile-note { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.tile-actions { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tile-actions .btn-link { padding-left: 0; }

/* store */
.store-tools { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 980px; padding: 6px 16px; font-size: 14px; color: var(--ink); }
.chip:hover { border-color: #86868b; }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 980px; padding: 0 14px; height: 38px; width: min(260px, 100%); color: var(--ink-3); }
.search:focus-within { border-color: var(--blue); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; color: var(--ink); }
.store-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row { background: var(--white); border-radius: var(--radius); display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; min-width: 0; }
.row.is-out { opacity: 0.7; }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; background: none; border: 0; padding: 0; text-align: left; }
.row-text { min-width: 0; display: grid; gap: 1px; }
.row-name { font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.row-main:hover .row-name { color: var(--link); }
.row-sub { font-size: 13px; line-height: 1.4; color: var(--ink-3); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.row-stock { font-size: 12px; color: var(--green); }
.row-stock.is-low { color: var(--amber); }
.row.is-out .row-stock { color: var(--ink-3); }
.row-side { display: grid; justify-items: end; gap: 6px; flex: none; }
.row-price { font-size: 17px; font-weight: 600; white-space: nowrap; }
.row-price small { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 0; margin: 0; }
.soldout-toggle { margin: 24px auto 0; display: flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--link); font-size: 15px; padding: 8px 12px; }
.soldout-toggle:hover { text-decoration: underline; }
.soldout-list { margin-top: 12px; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-item { background: var(--gray); border: 0; border-radius: var(--radius); padding: 30px 28px; text-align: left; color: var(--ink); font-size: inherit; }
.why-item > svg { font-size: 30px; color: var(--blue); }
.why-item h3 { margin: 16px 0 6px; font-size: 21px; font-weight: 600; }
.why-item p { margin: 0; color: var(--ink-2); font-size: 15px; }
button.why-item:hover { background: #ebebf0; }

/* footer */
.footer { background: var(--gray); color: var(--ink-3); font-size: 12px; padding: 22px 0 28px; border-top: 1px solid var(--line); }
.footnotes { margin: 0 0 12px; padding-left: 16px; display: grid; gap: 8px; line-height: 1.5; }
.footer-note { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h3 { margin: 0 0 8px; color: var(--ink); font-size: 12px; font-weight: 600; }
.footer-cols a, .footer-cols button, .footer-link { display: block; background: none; border: 0; padding: 3px 0; color: var(--ink-2); font-size: 12px; text-align: left; }
.footer-cols a:hover, .footer-cols button:hover { color: var(--ink); text-decoration: underline; }
.footer-link strong { font-weight: 400; }
.copyright { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- dialogs ---------- */
.sheet { width: min(480px, calc(100% - 24px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: var(--radius); color: var(--ink); background: var(--white); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.48); }
.sheet[open] { animation: rise 0.2s ease-out; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 0 24px; }
.sheet-head h2 { margin: 0; font-size: 21px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sheet-body { padding: 16px 24px 24px; display: grid; gap: 16px; }
.detail-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.detail-head .price { margin-top: 4px; }
.detail-head .stock { padding-top: 6px; }
.detail-summary { margin: 0; color: var(--ink-2); }
.notice { margin: 0; display: flex; gap: 10px; align-items: flex-start; background: var(--gray); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.notice svg { margin-top: 3px; color: var(--blue); }
.summary-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.summary-list dt { color: var(--ink-3); }
.summary-list dd { margin: 0; text-align: right; font-weight: 500; }
.contact-list { display: grid; gap: 8px; }
.contact { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-align: left; }
.contact:hover { border-color: #86868b; text-decoration: none; }
.contact > svg:first-child { font-size: 20px; color: var(--blue); }
.contact > svg:last-child { margin-left: auto; color: var(--ink-3); }
.contact span { display: grid; min-width: 0; }
.contact strong { font-weight: 600; font-size: 15px; }
.contact small { color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.field input { height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; color: var(--ink); }
.field input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: rgba(29, 29, 31, 0.92); color: #fff; padding: 10px 18px; border-radius: 980px; font-size: 14px; transition: opacity 0.2s, transform 0.2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .art-lg { width: 230px; font-size: 16px; }
  .stage-1 { left: -2%; }
  .stage-2 { right: -2%; }
}

@media (max-width: 734px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-grid; }
  .topnav { position: absolute; top: 48px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(0, 0, 0, 0.94); padding: 8px 22px 18px; display: none; }
  .nav-open .topnav { display: flex; }
  .topnav a, .topnav button { font-size: 17px; padding: 12px 0; text-align: left; border-bottom: 1px solid #333; border-radius: 0; }
  .hero { padding-top: 60px; min-height: 0; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .hero-stage { min-height: 210px; margin-top: 36px; }
  .art-lg { width: 170px; font-size: 12px; }
  .stage-1 { left: -6%; }
  .stage-2 { right: -6%; }
  .band { padding: 64px 0; }
  .section-title { font-size: 28px; margin-bottom: 28px; }
  .section-title .muted { display: block; margin-left: 0; }
  .promo { padding: 72px 22px; }
  .promo h2 { font-size: 44px; }
  .promo-sub { font-size: 19px; }
  .tile { grid-template-columns: 1fr; padding: 28px 24px; min-height: 0; }
  .tile .art { max-width: 180px; order: -1; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .search { width: 100%; }
  .detail-head { grid-template-columns: 110px minmax(0, 1fr); }
  .row { padding: 12px 14px 12px 12px; }
  .art-sm { width: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
