/* ================================
   Amazon Design Page
================================ */

/* .amazon-design-page .container {
  width: min(calc(100% - (var(--side) * 2)), 1120px);
} */

.ad-hero {
  padding-block: clamp(120px, 15vw, 198px) clamp(92px, 12vw, 170px);
}

.ad-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(42px, 8vw, 104px);
  align-items: end;
}

.ad-hero h1 {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(58px, 8.6vw, 130px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: Bold;
}

.ad-hero p {
  /* margin: 0 0 24px; */
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.5;
  letter-spacing: -0.05em;
  font-weight: medium;
}

.ad-services {
  padding-block: clamp(86px, 10vw, 122px) clamp(80px, 10vw, 112px);
  background: #fff;
}

.ad-services h2,
.ad-process h2 {
  margin: 0;
  font-size: clamp(27px, 4.2vw, 55px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: bold;
}

.ad-services__lead {
  margin: 28px 0 clamp(48px, 6vw, 74px);
  font-size: clamp(15px, 1.25vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.055em;
  font-weight: medium;
}

.ad-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
}

.ad-card {
  min-height: 284px;
  padding: clamp(28px, 3vw, 38px) clamp(22px, 2.6vw, 32px) clamp(30px, 3vw, 38px);
  background: #fff;
  box-shadow: 8px 12px 22px rgba(0, 0, 0, 0.09);
}

.ad-card strong {
  display: block;
  margin-bottom: 34px;
  font-family: var(--font-en);
  font-size: clamp(52px, 5.4vw, 68px);
  line-height: 0.9;
  font-style: italic;
  font-weight: 100;
  letter-spacing: -0.01em;
}

.ad-card h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.ad-card p {
  margin: 25px 0 0;
  font-size: clamp(12px, 0.95vw, 16px);
  line-height: 1.75;
  letter-spacing: -0.01em;
  font-weight: normal;
}

.ad-card .ad-card__en {
  margin-top: 0;
  font-family: var(--font-en);
  font-size: clamp(10px, 0.85vw, 14px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.ad-process {
  padding-block: clamp(86px, 10vw, 122px) clamp(92px, 12vw, 152px);
  background: #f6f6f6;
}

.ad-step-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 40px;
  margin: clamp(76px, 9vw, 96px) auto 42px;
  background: transparent;
  overflow: visible;
}

.ad-step-track span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(16px, 2vw, 28px);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: clamp(14px, 0.95vw, 20px);
  line-height: 1;
  color: #6f6f6f;
  font-weight: 500;
  background: transparent;
  z-index: 1;
}

.ad-step-track span::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #eeeeee;
  z-index: -1;
}
.ad-step-track span:nth-child(1)::before {
  background: #eeeeee;
}

.ad-step-track span:nth-child(2)::before {
  background: #e2e2e2;
}

.ad-step-track span:nth-child(3)::before {
  background: #d6d6d6;
}

.ad-step-track span:nth-child(4)::before {
  background: #c9c9c9;
}

.ad-step-track span:nth-child(5)::before {
  background: #b8b8b8;
}

.ad-step-track span:not(:first-child)::before {
  left: -30px;
}

.ad-step-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding-top: 50px;
}

.ad-step-grid article {
  min-height: 128px;
  padding: 0 clamp(16px, 2vw, 30px);
  border-left: 1px solid #c8c8c8;
}

.ad-step-grid h3 {
  margin: 0 0 24px;
  font-size: clamp(13px, 1.15vw, 20px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-weight: bold;
}

.ad-step-grid p {
  margin: 0;
  font-size: clamp(10px, 0.9vw, 18px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-weight: normal;
}

.view-works {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: fit-content;
  margin: clamp(72px, 8vw, 92px) auto 0;
  font-family: var(--font-en);
  font-size: clamp(26px, 3.1vw, 36px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 400;
}

.view-works i {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #000;
}

.view-works i::before,
.view-works i::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
}

.view-works i::before {
  top: 9px;
  width: 3px;
  height: 17px;
}

.view-works i::after {
  top: 12px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: transparent;
  transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 960px) {
  .ad-step-track {
    display: none;
  }

  .ad-step-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 36px;
  }

  .ad-step-grid article,
  .ad-step-grid article:last-child {
    position: relative;
    min-height: 165px;
    padding: 46px 16px 18px;
    border-left: 0;
    border-right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  }

  .ad-step-grid article::before {
    position: absolute;
    top: 18px;
    left: 16px;
    font-family: var(--font-en);
    font-size: 12px;
    line-height: 1;
    color: #8a8a8a;
    font-weight: 500;
  }

  .ad-step-grid article:nth-child(1)::before {
    content: 'Step 01';
  }

  .ad-step-grid article:nth-child(2)::before {
    content: 'Step 02';
  }

  .ad-step-grid article:nth-child(3)::before {
    content: 'Step 03';
  }

  .ad-step-grid article:nth-child(4)::before {
    content: 'Step 04';
  }

  .ad-step-grid article:nth-child(5)::before {
    content: 'Step 05';
  }

  .ad-step-grid h3 {
    margin: 0 0 24px;
    font-size: 20px;
    line-height: 1.35;
  }

  .ad-step-grid p {
    font-size: 18px;
    line-height: 1.7;
  }
  .ad-hero__inner {
    display: block;
  }

  .ad-hero p {
    max-width: 360px;
    margin-top: 70px;
    margin-bottom: 0;
  }
}

@media (max-width: 960px) and (min-width: 761px) {
  .ad-step-grid h3 br {
    display: none;
  }

  .ad-step-grid h3 {
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .ad-hero {
    padding-block: 92px 86px;
  }

  .ad-step-track {
    display: none;
  }

  .ad-hero h1 {
    font-size: clamp(54px, 15vw, 68px);
  }



  .ad-card-grid {
    grid-template-columns: 1fr;
  }

  .ad-card {
    min-height: auto;
  }

  .ad-card strong {
    margin-bottom: 26px;
  }

  .ad-step-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 36px;
  }

  .ad-step-grid article,
  .ad-step-grid article:last-child {
    position: relative;
    min-height: 165px;
    padding: 44px 16px 18px;
    border-left: 0;
    border-right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  }

  .ad-step-grid article::before {
    position: absolute;
    top: 18px;
    left: 16px;
    font-family: var(--font-en);
    font-size: 11px;
    line-height: 1;
    color: #8a8a8a;
    font-weight: 500;
  }

  .ad-step-grid article:nth-child(1)::before {
    content: 'Step 01';
  }

  .ad-step-grid article:nth-child(2)::before {
    content: 'Step 02';
  }

  .ad-step-grid article:nth-child(3)::before {
    content: 'Step 03';
  }

  .ad-step-grid article:nth-child(4)::before {
    content: 'Step 04';
  }

  .ad-step-grid article:nth-child(5)::before {
    content: 'Step 05';
  }

  .ad-step-grid h3 {
    margin: 0 0 24px;
    font-size: 20px;
    line-height: 1.35;
  }

  .ad-step-grid p {
    font-size: 14px;
    line-height: 1.55;
  }
}
