:root {
  --color-text: #313131;
  --color-heading: #cd7e9a;
  --color-card-border: #e8d0d0;
  --color-background: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  font-family: "Noto Sans JP", sans-serif;
}

img {
  max-width: 100%;
}

.online-shop {
  width: 100%;
  min-height: 100vh;
  padding: 44px 15px 40px;
  background: var(--color-background);
}

.online-shop__inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.online-shop__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 49px;
  margin: 0 0 12px;
  padding: 12px;
  color: #ffffff;
  background: var(--color-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shop-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  background: #ffffff;
}

.shop-card:focus-visible {
  outline: 3px solid #5c4c31;
  outline-offset: 3px;
}

.shop-card__image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .shop-card:hover .shop-card__image {
    transform: scale(1.06);
  }
}

@media (min-width: 750px) {
  .online-shop {
    padding: clamp(56px, 32.67px + 3.11vw, 70px) 20px clamp(80px, 46.67px + 4.44vw, 100px);
  }

  .online-shop__inner {
    max-width: clamp(960px, 560px + 53.33vw, 1200px);
  }

  .online-shop__heading {
    min-height: 57px;
    margin-bottom: clamp(15px, 8.75px + 0.83vw, 18.75px);
    padding: clamp(10px, 5.83px + 0.56vw, 12.5px) clamp(12px, 7px + 0.67vw, 15px);
    font-size: clamp(16px, 9.33px + 0.89vw, 20px);
    line-height: 1.6;
  }

  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 11.67px + 1.11vw, 25px);
  }

  .shop-card {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 400 / 130;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-card__image {
    transition: none;
  }
}
