:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0066cc;
  --button: #0071e3;
  --surface: #f5f5f7;
  --line: #d2d2d7;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.shop-name {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.badge {
  flex-shrink: 0;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.intro { padding: 104px 0 72px; text-align: center; }
.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 {
  margin: 0 0 28px;
  font-size: clamp(36px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}
.intro-copy { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.notice {
  padding: 20px 28px;
  border: 1px solid #e5e5e7;
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.notice strong { color: var(--ink); font-weight: 600; }
.notice p { margin: 4px 0 0; }

.catalog { padding: 72px 0 88px; }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.04em; }
.section-heading span { color: var(--muted); font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card {
  min-width: 0;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.035);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.product-visual {
  display: grid;
  place-items: center;
  min-height: 210px;
  border-radius: 18px;
  background: var(--surface);
  font-size: 88px;
  line-height: 1;
}
.product-details { padding: 24px 10px 12px; flex: 1; display: flex; flex-direction: column; }
h3 { margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.6; letter-spacing: -0.025em; }
.product-description { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.product-price { margin: auto 0 20px; font-size: 18px; font-weight: 600; letter-spacing: -0.025em; }
.button {
  display: block;
  padding: 12px 20px;
  border-radius: 980px;
  background: var(--button);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: background-color 180ms ease;
}
.button:hover { background: #0066cc; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.quantity-note { margin: 32px 0 0; color: var(--muted); text-align: center; font-size: 12px; }

.site-footer {
  margin-top: auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.site-footer p { margin: 4px 0; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 8px 16px;
  border-radius: 12px;
  background: #fff;
}
.skip-link:focus { transform: translateY(0); }

body:has(.thanks-main) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.thanks-main { padding-block: 88px; }
.thanks-card {
  max-width: 800px;
  margin: auto;
  padding: 64px 48px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.035);
}
.thanks-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-size: 36px;
}
.thanks-card h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.35; }
.thanks-card > p { color: var(--muted); font-size: 16px; }
.thanks-card > .eyebrow { color: var(--accent); font-size: 14px; }
.thanks-card .notice { margin-block: 32px; background: var(--surface); border-color: transparent; }
.thanks-card .button { max-width: 260px; margin-inline: auto; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07); }
}
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .product-visual { min-height: 240px; font-size: 100px; }
  .product-details { padding-inline: 16px; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 8px; }
  .shop-name { font-size: 17px; }
  .badge { padding: 4px 9px; font-size: 10px; }
  .intro { padding: 72px 0 48px; }
  .eyebrow { font-size: 12px; margin-bottom: 20px; }
  .intro-copy { font-size: 14px; }
  .intro-copy br { display: none; }
  .notice { padding: 18px 16px; font-size: 12px; }
  .catalog { padding: 48px 0 56px; }
  h2 { font-size: 24px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product-visual { min-height: 240px; }
  .product-details { padding: 24px 16px 16px; }
  .thanks-main { padding-block: 40px; }
  .thanks-card { padding: 36px 20px; border-radius: 24px; }
  .thanks-card > p { font-size: 14px; }
  .thanks-card .notice { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .button { transition: none; }
}


/* Navigation remains expanded and in normal flow until its handlers are ready. */
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
[id] { scroll-margin-top: 150px; }
.announcement { padding: 9px 16px; background: #fff; color: var(--muted); text-align: center; font-size: 12px; }
.header-inner { flex-wrap: wrap; padding-block: 12px; }
.site-nav { display: flex; gap: 16px; margin-left: auto; }
.nav-group { position: relative; min-width: 0; }
.nav-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.nav-menu { margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.nav-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: 13px; overflow-wrap: anywhere; border-radius: 10px; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--surface); }
.nav-ready .nav-menu { position: absolute; top: 100%; right: 0; width: 285px; max-width: calc(100vw - 32px); box-shadow: 0 16px 40px #00000012; }
.nav-ready .nav-menu[hidden] { display: none; }
.nav-ready .nav-menu:not([hidden]) { animation: menu-in 180ms ease both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.header-cta { min-height: 44px; padding-inline: 22px; }
.site-header::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: 0 6px 24px #00000012; background: #ffffff22; opacity: 0; z-index: -1; }
.site-header.is-scrolled::after { opacity: 1; }
.hero-visual { width: 120px; margin: 0 auto 24px; font-size: 72px; line-height: 1.3; }
.showcase { padding-block: 64px; }
.showcase-pin { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; min-height: 75svh; }
.showcase-art { display: grid; place-items: center; min-height: 360px; border-radius: 32px; background: #fff; overflow: hidden; }
.showcase-emoji { display: block; font-size: clamp(120px, 18vw, 220px); line-height: 1.5; }
.showcase-copy { min-width: 0; }
.showcase-copy h2 { font-size: clamp(26px, 3.5vw, 44px); line-height: 1.4; }
.showcase-copy .button { max-width: 200px; margin-top: 24px; }
.showcase-lines { margin-top: 24px; color: var(--muted); font-size: 18px; }
.showcase-lines p { margin: 0 0 12px; }
.motion-ready .showcase { min-height: 210svh; }
.motion-ready .showcase-pin { position: sticky; top: 110px; min-height: calc(100svh - 130px); }
.motion-ready .showcase-lines { display: grid; min-height: 100px; }
.motion-ready .showcase-lines p { grid-area: 1 / 1; align-self: center; }
.highlights { padding: 88px 0 112px; }
.highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.highlight-grid article { padding: 32px; background: #fff; border-radius: 24px; }
.highlight-grid span { display: block; color: var(--accent); font-size: 30px; margin-bottom: 24px; }
.highlight-grid h3 { margin: 0; font-size: 20px; }
.dark-section { background: #000; color: #fff; border-radius: 32px; padding: 100px 40px; margin-bottom: 88px; text-align: center; }
.dark-section h2 { font-size: clamp(32px, 5vw, 58px); line-height: 1.35; }
.dark-section .eyebrow, .dark-section a { color: #83c4ff; }
.dark-section p:not(.eyebrow) { color: #b5b5bb; margin-block: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.3fr 1fr 1fr; gap: 32px; padding-block: 32px 48px; }
.footer-grid > * { min-width: 0; }
.footer-grid h2 { font-size: 13px; color: var(--ink); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid a:not(.shop-name) { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-about p { margin-top: 16px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; }
/* A CSS completion fallback reveals pending content even if the observer fails. */
.reveal-pending { animation: reveal-in 750ms 5s both; }
.reveal-visible { animation: reveal-in 750ms var(--reveal-delay, 0ms) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.product-card { transition: transform 240ms ease; }
.button { transition: none; }
@media (max-width: 800px) {
 .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .header-inner { gap: 8px 12px; }
 .shop-name { margin-right: auto; }
 .site-nav { margin-left: 0; gap: 4px; }
 .highlight-grid { gap: 14px; }
 .highlight-grid article { padding: 22px; }
 .showcase-pin { gap: 24px; }
}
@media (max-width: 600px) {
 .header-inner .shop-name { flex: 1; }
 .site-nav { order: 3; flex: 1; }
 .header-cta { order: 4; font-size: 12px; padding-inline: 18px; }
 .nav-ready .nav-menu { left: 0; right: auto; width: 270px; }
 .nav-ready #guide-menu { left: -78px; }
 .showcase-pin { grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: center; }
 .showcase-art { min-height: 180px; }
 .showcase-emoji { font-size: 120px; }
 .showcase-copy h2 { font-size: 24px; }
 .showcase-copy .eyebrow { margin-bottom: 12px; }
 .showcase-lines { font-size: 15px; margin-top: 12px; }
 .motion-ready .showcase { min-height: 165svh; }
 .motion-ready .showcase-pin { top: 130px; min-height: calc(100svh - 150px); }
 .motion-ready .showcase-lines { min-height: 60px; }
 .highlight-grid { grid-template-columns: minmax(0, 1fr); }
 .highlights { padding-block: 64px; }
 .dark-section { padding: 64px 20px; margin-bottom: 56px; }
 .dark-section br { display: none; }
 .footer-grid { gap: 28px 20px; }
 .footer-about { grid-column: 1 / -1; }
}
@media (max-height: 680px) {
 .motion-ready .showcase { min-height: auto; }
 .motion-ready .showcase-pin { position: static; }
 .motion-ready .showcase-lines { display: block; }
 .motion-ready .showcase-lines p { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
 .showcase-lines p, .showcase-emoji, .hero-visual { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 600px) {
 .header-inner .shop-name { flex: 1 0 calc(100% - 100px); white-space: nowrap; }
 .site-nav { flex: 1 0 100%; min-width: 0; }
 .nav-ready .site-nav { flex-basis: calc(100% - 100px); }
 html:not(.nav-ready) .site-nav { flex-direction: column; }
 .nav-ready #guide-menu { left: -57px; }
}
