/* Keep the existing fragment URL, but land above the heading and product grid.
   The fixed header is 68px tall with a 1px border; leave another 24px of space. */
body[data-page-key="index"] #allProducts {
  scroll-margin-top: 93px;
}

/* Homepage only: neutral split layout; existing artwork and links are unchanged. */
body[data-page-key="index"] .hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas: "copy media";
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  min-height: 0;
  padding: 132px max(24px, calc((100vw - 1200px) / 2)) 64px;
  background: #fafafa;
  border-bottom: 1px solid #ececec;
}

body[data-page-key="index"] .hero-bg {
  grid-area: media;
  position: relative;
  inset: auto;
  min-width: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  border-radius: 24px;
  background: #f3f3f3;
}

/* Fill the entire frame; differing image ratios are cropped at the edges. */
body[data-page-key="index"] .hero-bg-img {
  object-fit: cover;
  object-position: center;
}

body[data-page-key="index"] .hero > .container {
  grid-area: copy;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

body[data-page-key="index"] .hero-content--actions-only {
  padding: 0;
}

body[data-page-key="index"] .hero-brand {
  margin: 0 0 20px;
  color: #1a1a1a;
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

body[data-page-key="index"] .hero-brand span {
  display: block;
  margin-top: 8px;
  color: #737373;
  font-weight: 300;
}

body[data-page-key="index"] .hero-kicker {
  margin: 0 0 18px;
  color: #737373;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

body[data-page-key="index"] .hero-intro {
  max-width: 420px;
  margin: 0 0 28px;
  color: #666;
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}

/* Neutral support contact, using the site's existing LINE destination. */
body[data-page-key="index"] .hero-support-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  min-height: 48px;
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-decoration: none;
}

body[data-page-key="index"] .hero-support-link:hover {
  border-color: #737373;
  background: #f3f3f3;
}

body[data-page-key="index"] .hero-support-link:focus-visible {
  outline: 2px solid #333;
  outline-offset: 4px;
}

body[data-page-key="index"] .hero-help-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  margin-top: 20px;
  font-size: 0.8125rem;
  line-height: 1.6;
}

body[data-page-key="index"] .hero-help-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #666;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #ccc;
}

body[data-page-key="index"] .hero-help-links a:hover {
  color: #1a1a1a;
  text-decoration-color: currentColor;
}

body[data-page-key="index"] .hero-help-links a:focus-visible {
  outline: 2px solid #333;
  outline-offset: 4px;
}

body[data-page-key="index"] .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 420px;
  margin: 0;
  opacity: 1;
  transform: none;
  transition: none;
}

body[data-page-key="index"] .hero-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: normal;
  text-align: center;
  border-radius: 10px;
}

body[data-page-key="index"] .hero-actions .btn-outline {
  background: transparent;
  border-color: #cfcfcf;
  color: #1a1a1a;
}

body[data-page-key="index"] .hero-actions .btn:focus-visible {
  outline: 2px solid #333;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  body[data-page-key="index"] .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "media";
    gap: 28px;
    padding: 104px 20px 36px;
  }

  body[data-page-key="index"] .hero-brand {
    margin-bottom: 24px;
    font-size: clamp(48px, 11vw, 72px);
    letter-spacing: -0.05em;
  }

  body[data-page-key="index"] .hero-brand span {
    display: inline;
    margin: 0 0 0 0.08em;
  }

  body[data-page-key="index"] .hero-bg {
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  body[data-page-key="index"] .hero-actions {
    gap: 10px;
  }

  body[data-page-key="index"] .hero-actions .btn {
    padding: 11px 10px;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page-key="index"] .hero-actions .btn {
    transition: none;
    transform: none;
  }
}
