*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #faf8f4;
  color: #1c1c1c;
  font-family: "Noto Sans JP", sans-serif;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid #245fc9;
  outline-offset: 3px;
}
.ec-store-hero__inner {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
.ec-store-hero {
  --scroll-top: 63.92%;
  position: relative;
  background: #faf8f4;
  color: #1c1c1c;
  height: clamp(540px, calc(100svh - var(--store-header-height, 68px)), 860px);
}
@media (min-width: 768px) {
  .ec-store-hero {
    /* The desktop artwork spans 800px above the hero bottom at 1050px wide. */
    max-height: min(58.56vw, 800px);
  }
}
.ec-store-hero__inner {
  position: relative;
  height: 100%;
  z-index: 1;
}
.ec-store-hero__art {
  position: absolute;
  pointer-events: none;
  right: 0;
  width: min(76.87%, 1050px);
  /* The last row extends from the hero into the tag section in the artwork. */
  top: 100%;
  transform: translateY(-84.21%);
  z-index: 1;
}
.ec-store-hero__art img {
  display: block;
  width: 100%;
  height: auto;
}
.ec-store-hero__copy {
  height: var(--scroll-top);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-inline-start: 4%;
}
.ec-store-hero__copy p {
  margin: 0 0 14px;
  color: #467fea;
  font-size: clamp(18px, 1.76vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.1em;
}
@supports (background-clip: text) {
  .ec-store-hero__copy p {
    color: transparent;
    background-image: linear-gradient(90deg, #df82df 15%, #3f72d2 43%, #3daeb8);
    background-clip: text;
  }
}
.ec-store-hero__copy h1 {
  margin: 0;
  font:
    400 clamp(42px, 4.69vw, 64px) / 1.36 Manrope,
    Arial,
    sans-serif;
  letter-spacing: 0.02em;
}
.ec-store-hero__scroll {
  position: absolute;
  left: 0;
  top: var(--scroll-top);
  width: 120px;
  height: 120px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font:
    400 14px/1 Manrope,
    Arial,
    sans-serif;
  text-decoration: none;
  color: inherit;
}
.ec-store-hero__scroll span:first-child {
  transform: rotate(90deg);
  text-align: left;
}
.ec-store-hero__scroll span:last-child {
  position: absolute;
  bottom: 10px;
  font-size: 15px;
}
@media (max-width: 767px) {
  .ec-store-hero {
    --scroll-top: 56.53%;
    height: clamp(540px, calc(100svh - 68px), 820px);
  }
  .ec-store-hero__art {
    width: min(100%, 450px);
    transform: translateY(-85.714%);
  }
  .ec-store-hero__copy {
    padding-inline: 0;
  }
  .ec-store-hero__copy p {
    font-size: clamp(16px, 5.33vw, 20px);
  }
  .ec-store-hero__copy h1 {
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: 0.02em;
  }
  .ec-store-hero__copy h1 span {
    display: block;
  }
  .ec-store-hero__scroll {
    width: 106px;
    height: 106px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.ec-store-hero) {
    scroll-behavior: smooth;
  }
}

/* Product sections share the desktop content gutter and their carousel controls. */
.ec-showcase,
.ec-product-section {
  --edge: max(24px, (100% - 1200px) / 2);
  --button-size: 64px;
  background-color: #faf8f4;
  color: #1c1c1c;
  position: relative;
  isolation: isolate;
}
.ec-product-heading {
  margin: 0 var(--edge);
  font-weight: 400;
  color: inherit;
}
.ec-product-heading span,
.ec-product-heading small {
  display: block;
}
.ec-product-heading span,
.ec-product-price,
.ec-showcase-counter,
.ec-showcase-caption small,
.ec-rank-number {
  font-family: Manrope, Arial, sans-serif;
}
.ec-product-heading span {
  font-size: 32px;
  line-height: 44px;
  letter-spacing: 0;
}
.ec-product-heading small {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 350;
  line-height: 1;
  letter-spacing: 0.1em;
}
.ec-step {
  position: absolute;
  z-index: 2;
  top: 50%;
  margin: 0;
  padding: 0;
  border: 0;
  width: var(--button-size);
  height: var(--button-size);
  border-radius: 50%;
  background: transparent url("images/ec-top/rec-arrow1.svg") center / 100%
    no-repeat;
  cursor: pointer;
  transform: translateY(-50%);
}
.ec-step--prev {
  transform: translateY(-50%) scaleX(-1);
}
.ec-step[hidden],
.ec-product-section[hidden],
.ec-showcase[hidden] {
  display: none;
}
.ec-showcase {
  --major: 420px;
  --minor: 240px;
  --gap: 16px;
  --center-gap: 64px;
  --scale: 0.57142857;
  --near: calc((var(--major) + var(--minor)) / 2 + var(--center-gap));
  --far: calc(var(--near) + var(--minor) + var(--gap));
  overflow: clip;
  padding: 80px 0;
  background-image: url("images/ec-top/rec-union1.svg"),
    url("images/ec-top/rec-union.svg");
  /* The desktop design places the ornament 82px to the left of the heading. */
  background-position:
    max(0px, calc(50vw - 600px - 82px)) top,
    right max(0px, calc((100% - 1368px) / 2)) bottom 0;
  background-size: 300px auto;
  background-repeat: no-repeat;
}
.ec-showcase .ec-product-heading {
  position: absolute;
  z-index: 1;
  top: 80px;
  pointer-events: none;
}
.ec-showcase-stage {
  position: relative;
  height: calc(var(--major) * 1.25);
  touch-action: pan-y;
  background: url("images/ec-top/rec-gradient-pc.webp") center bottom 32px /
    var(--major) auto no-repeat;
}
.ec-showcase-stage .ec-step--prev {
  right: calc(50% + var(--major) / 2 - 16px);
}
.ec-showcase-stage .ec-step--next {
  left: calc(50% + var(--major) / 2 - 16px);
}
.ec-showcase-item {
  --offset: calc(var(--far) + var(--minor) + var(--gap));
  position: absolute;
  left: calc(50% - var(--major) / 2);
  bottom: 0;
  width: var(--major);
  height: 100%;
  transform: translateX(var(--offset)) scale(var(--scale));
  transform-origin: center bottom;
  user-select: none;
}
.ec-showcase-item img,
.ec-product-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ec-showcase-item[data-slot^="-"] {
  --offset: calc(-1 * (var(--far) + var(--minor) + var(--gap)));
}
.ec-showcase-item.ec-outside {
  opacity: 0;
  pointer-events: none;
}
.ec-showcase-item[data-slot="0"] {
  --offset: 0px;
  --scale: 1;
}
.ec-showcase-item[data-slot="1"] {
  --offset: var(--near);
}
.ec-showcase-item[data-slot="-1"] {
  --offset: calc(-1 * var(--near));
}
.ec-showcase-item[data-slot="2"] {
  --offset: var(--far);
}
.ec-showcase-item[data-slot="-2"] {
  --offset: calc(-1 * var(--far));
}
@media (prefers-reduced-motion: no-preference) {
  .ec-showcase-item:not(.ec-jump) {
    transition: transform 1022ms cubic-bezier(0.16, 1, 0.3, 1), opacity 650ms ease;
  }
}
.ec-showcase-caption {
  display: block;
  position: relative;
  min-height: 88px;
  width: min(var(--major), calc(100% - 48px));
  margin: 16px auto 0;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
.ec-showcase-caption > .ec-product-name {
  display: block;
}
.ec-showcase-caption small {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 22px;
}
.ec-showcase-counter {
  position: absolute;
  top: 91px;
  right: var(--edge);
  margin: 0;
  line-height: 1.4;
}
.ec-showcase-counter strong {
  font-weight: 400;
  font-size: 32px;
}
.ec-showcase-counter span {
  margin-left: 8px;
  font-size: 24px;
  opacity: 0.4;
}
.ec-product-section {
  padding: 80px 0;
}
.ec-product-carousel {
  position: relative;
  margin-top: 48px;
}
.ec-product-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 var(--edge);
  scroll-padding-inline: var(--edge);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.ec-product-track {
  user-select: none;
}
.ec-product-track.ec-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}
.ec-product-track.ec-dragging a {
  cursor: grabbing;
}
.ec-product-track::-webkit-scrollbar {
  display: none;
}
.ec-product-track > li {
  flex: none;
  scroll-snap-align: start;
  list-style: none;
}
.ec-product-carousel .ec-step--prev {
  left: var(--edge);
}
.ec-product-carousel .ec-step--next {
  right: var(--edge);
}
.ec-product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
}
.ec-product-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
.ec-product-name {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.1em;
}
.ec-product-series {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.ec-product-price {
  margin-top: 4px;
  font-size: 16px;
  line-height: 22px;
}
.ec-ranking .ec-product-track > li {
  width: 360px;
}
.ec-ranking .ec-product-card {
  height: 552px;
  padding: 16px;
  border-left: 1px solid #777;
  background:
    var(--pattern) left top / 200px auto no-repeat,
    linear-gradient(123deg, var(--tint, #ffffff80), transparent 44%);
}
.ec-ranking li:nth-child(1) {
  --tint: #fa91fa80;
  --pattern: url("images/ec-top/rank-pattern3.svg");
}
.ec-ranking li:nth-child(2) {
  --tint: #467fea80;
  --pattern: url("images/ec-top/rank-pattern2.svg");
}
.ec-ranking li:nth-child(3) {
  --tint: #b3f1d980;
  --pattern: url("images/ec-top/rank-pattern1.svg");
}
.ec-ranking li:nth-child(4) {
  --pattern: url("images/ec-top/rank-pattern.svg");
}
.ec-ranking li:nth-child(5) {
  --pattern: url("images/ec-top/rank5-pattern.svg");
}
.ec-ranking li:nth-child(n + 6) {
  --pattern: url("images/ec-top/rank6-pattern.svg");
}
.ec-rank-number {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: #2e3339;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 16px;
}
.ec-rank-number small {
  margin-top: 8px;
  font-size: 12px;
}
.ec-ranking .ec-product-card img {
  position: absolute;
  bottom: 0;
  align-self: center;
  width: 280px;
  height: 350px;
}
.ec-rank-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 115px;
  margin: 32px var(--edge) 0;
  font:
    14px/15px Manrope,
    Arial,
    sans-serif;
}
.ec-rank-progress i {
  flex: 1;
  height: 1px;
  background: linear-gradient(#1c1c1c, #1c1c1c) var(--progress-position, 0%) /
    60% 100% no-repeat;
}
.ec-history {
  --pattern-size: 150px;
  padding-bottom: 120px;
  background-image: url("images/ec-top/history-ellipse453.svg"),
    url("images/ec-top/history-ellipse458.svg");
  background-size: var(--pattern-size) auto;
  background-position:
    left top,
    left top var(--pattern-size);
  background-repeat: no-repeat;
}
.ec-history::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: var(--pattern-size);
  width: var(--pattern-size);
  height: var(--pattern-size);
  background: url("images/ec-top/history-ellipse456.svg") left top / contain
    no-repeat;
  transform: rotate(-90deg);
}
.ec-history .ec-product-carousel {
  margin-top: 64px;
}
.ec-history .ec-product-track {
  gap: 48px;
}
.ec-history .ec-product-card {
  width: 200px;
}
.ec-history .ec-product-name,
.ec-history .ec-product-price {
  opacity: 0.8;
}
.ec-history .ec-product-card img {
  width: 200px;
  height: 250px;
  margin-bottom: 8px;
}
@media (max-width: 767px) {
  .ec-showcase,
  .ec-product-section {
    --edge: 24px;
    --button-size: 48px;
  }
  .ec-showcase {
    --major: 240px;
    --minor: 160px;
    --gap: 8px;
    --center-gap: 8px;
    --scale: 0.66666667;
    padding: 64px 0;
    background-image: url("images/ec-top/rec-sp-pattern1.svg"),
      url("images/ec-top/rec-sp-pattern.svg");
    background-size: 128px auto;
  }
  .ec-showcase .ec-product-heading {
    position: static;
    text-align: center;
  }
  .ec-showcase .ec-product-heading small {
    margin-top: 4px;
  }
  .ec-showcase-stage {
    margin-top: 32px;
    background: url("images/ec-top/rec-gradient.webp") center bottom 8px /
      var(--major) auto no-repeat;
  }
  .ec-showcase-stage .ec-step--prev {
    right: auto;
    left: var(--edge);
  }
  .ec-showcase-stage .ec-step--next {
    left: auto;
    right: var(--edge);
  }
  .ec-showcase-caption {
    min-height: 75px;
    width: min(420px, calc(100% - 48px));
  }
  .ec-showcase-caption small {
    margin-top: 4px;
    font-size: 14px;
    line-height: 19px;
  }
  .ec-showcase-counter {
    position: static;
    margin-top: 16px;
    text-align: center;
  }
  .ec-showcase-counter strong {
    font-size: 24px;
  }
  .ec-showcase-counter span {
    margin-left: 6px;
    font-size: 18px;
  }
  .ec-product-section {
    padding: 64px 0;
  }
  .ec-product-carousel,
  .ec-history .ec-product-carousel {
    margin-top: 32px;
  }
  .ec-product-carousel .ec-step {
    display: none;
  }
  .ec-ranking .ec-product-track > li {
    width: 288px;
  }
  .ec-ranking .ec-product-card {
    height: 512px;
    background-size:
      128px auto,
      auto;
  }
  .ec-rank-number {
    font-size: 32px;
  }
  .ec-ranking .ec-product-card img {
    width: 256px;
    height: 320px;
  }
  .ec-rank-progress {
    margin-top: 24px;
  }
  .ec-history {
    --pattern-size: 64px;
  }
  .ec-history .ec-product-track {
    gap: 24px;
  }
}

/* EC top: Tags, Category, and Footer. The graphics are static Figma exports. */
.ec-top-other-container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
.ec-top-tags,
.ec-top-category {
  box-sizing: border-box;
  color: #1c1c1c;
  font-family: "Noto Sans JP", sans-serif;
}
.ec-top-tags *,
.ec-top-category * {
  box-sizing: border-box;
}
.ec-top-tags ul,
.ec-top-category ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.ec-top-tags p,
.ec-top-category p,
.ec-top-tags h2,
.ec-top-category h2,
.ec-top-category h3 {
  margin: 0;
  font-weight: 400;
}
.ec-top-tags a,
.ec-top-category a {
  color: inherit;
  text-decoration: none;
}
.ec-top-tags a:focus-visible,
.ec-top-category a:focus-visible {
  outline: 2px solid #3387c2;
  outline-offset: 5px;
}
.ec-top-other-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ec-top-other-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  line-height: 44px;
  letter-spacing: 0;
}
.ec-top-other-heading p {
  font-size: 14px;
  font-weight: 350;
  line-height: 14px;
  letter-spacing: 1.4px;
}
.ec-top-tags {
  background: #faf8f4;
  padding-block: 64px;
  scroll-margin-top: 96px;
}
.ec-top-tags .ec-top-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.ec-top-tags__list a {
  display: block;
  border: 1px solid #1c1c1c;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 350;
  line-height: 14px;
  letter-spacing: 1.4px;
  white-space: nowrap;
}
.ec-top-category {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #faf8f4;
  padding-block: 64px;
}
.ec-top-category__decoration {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ec-top-category__gradient {
  position: absolute;
  display: block;
}
.ec-top-category__gradient img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}
.ec-top-category__gradient--top {
  left: 0;
  top: 0;
  width: 291px;
  height: 104px;
}
.ec-top-category__gradient--bottom {
  left: 0;
  bottom: 0;
  width: 374px;
  height: 97.5px;
}
.ec-top-category__gradient--side {
  right: 1px;
  bottom: 0;
  width: 120px;
  height: 475.75px;
}
.ec-top-category__groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}
.ec-top-category .ec-top-category__subtitle {
  padding-bottom: 8px;
  border-bottom: 1px solid #838a90;
  color: #2e3339;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  line-height: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.ec-top-category .ec-top-category__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.ec-top-category__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  min-height: 150px;
  height: 100%;
  padding: 16px;
  border: 1px solid #1c1c1c;
  background: #f9f8f4;
}
.ec-top-category__card img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.ec-top-category__card span {
  font-size: 14px;
  font-weight: 350;
  line-height: 1.25;
  letter-spacing: 1.4px;
  overflow-wrap: anywhere;
}
.ec-top-category .ec-top-category__all {
  display: block;
  position: relative;
  width: 160px;
  min-height: 26px;
  padding-bottom: 7px;
  margin-left: auto;
  margin-top: 32px;
  border-bottom: 1px solid #838a90;
  font:
    400 14px/18px "Manrope",
    sans-serif;
  letter-spacing: 0;
}
.ec-top-category__all::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 13px;
  height: 1px;
  background: #838a90;
  transform: rotate(45deg);
  transform-origin: right center;
}

@media (min-width: 768px) {
  .ec-top-tags {
    padding-block: 80px 120px;
  }
  .ec-top-tags .ec-top-tags__list {
    margin-top: 40px;
  }
  .ec-top-category {
    padding-block: 80px;
  }
  .ec-top-category__groups {
    gap: 16px;
    margin-top: 40px;
  }
  .ec-top-category .ec-top-category__cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .ec-top-category__group--items .ec-top-category__cards {
    padding-bottom: 18px;
  }
  .ec-top-category__card {
    min-height: 132px;
  }
  .ec-top-category .ec-top-category__all {
    margin-top: 40px;
  }
  .ec-top-category__gradient--top {
    left: 0;
    top: 0;
    width: 610px;
    height: 177px;
  }
  .ec-top-category__gradient--bottom {
    left: calc(50% + 15px);
    bottom: 0;
    width: 667px;
    height: 154px;
  }
  .ec-top-category__gradient--side {
    right: 2px;
    top: 140px;
    bottom: auto;
    width: 148px;
    height: 562px;
  }
}
@media (hover: hover) {
  .ec-top-tags__list a,
  .ec-top-category__card,
  .ec-top-category__all {
    transition: opacity 0.2s ease-in-out;
  }
  .ec-top-tags__list a:hover,
  .ec-top-category__card:hover,
  .ec-top-category__all:hover {
    opacity: 0.65;
  }
}

/* Reserve space for the fixed shared header. */
body { padding-top: 68px; }
@media (min-width: 1240px) { body { --store-header-height: 80px; padding-top: 80px; } }
