@charset "utf-8";

:root {
  --text: #3c2d1f;
  --price-red: #ef2b17;
  --cta-red: #e5160d;
  --cta-red-deep: #c90e07;
  --navy: #15345f;
  --page-width: min(1000px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 221, 156, 0.42), transparent 34%),
    linear-gradient(180deg, #fff8ee 0%, #fbf6ed 40%, #f8f1e7 100%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: var(--page-width);
  margin: 0 auto;
  padding: 0 0 80px;
}

.site-header {
  margin-bottom: 140px;
}

.site-header__link {
  display: block;
}

.site-header__picture,
.site-header__picture img {
  display: block;
  width: 100%;
}

.hero {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero__banner {
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero__banner img {
  width: 100%;
  max-width: none;
  height: auto;
}

.sections {
  display: grid;
  gap: 42px;
  margin-top: 32px;
}

.sale-section {
  padding: 0;
}

.sale-section__title {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 120px 0 40px;
  color: #4d2d14;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: center;
}

.sale-section__title::after {
  content: "";
  width: min(320px, 58vw);
  height: 9px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(-60deg, #ff8e2c 0 4px, transparent 4px 8px),
    linear-gradient(180deg, rgba(255, 163, 72, 0.22) 0%, rgba(255, 143, 30, 0.4) 100%);
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 2px solid #efd58e;
  border-radius: 30px;
  background: #fffdf8;
  box-shadow: 0 18px 36px rgba(92, 58, 16, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card--discount {
  border-color: #efc760;
  box-shadow:
    0 20px 40px rgba(92, 58, 16, 0.14),
    0 0 0 4px rgba(255, 245, 212, 0.72);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #e3b847;
  box-shadow: 0 26px 46px rgba(92, 58, 16, 0.18);
}

.product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, #fffefb 0%, #fff6e8 100%);
}

.product-card__image--placeholder {
  padding: 20px;
  background: linear-gradient(180deg, #fff7e7 0%, #ffe5aa 100%);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.product-card__image-note {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(176, 112, 25, 0.34);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  color: #9a6420;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(180deg, #ffca27 0%, #f5b112 100%);
  text-align: left;
}

.product-card--discount .product-card__body {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.44), transparent 28%),
    linear-gradient(180deg, #ffcb26 0%, #f1ad0b 100%);
}

.product-card__badges {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 251, 240, 0.92);
  color: #915112;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(137, 80, 7, 0.08);
}

.product-card__badge--fresh,
.product-card__badge--limited {
  background: rgba(255, 245, 212, 0.96);
}

.product-card__badge--shipping {
  min-width: 144px;
  color: var(--price-red);
  background: #fff8f4;
  border-color: #ffd1cb;
}

.product-card__badge--sale {
  color: #fff;
  background: linear-gradient(180deg, #ff7865 0%, #ee1f12 100%);
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 22px rgba(208, 33, 18, 0.18);
}

.product-card__name {
  order: 2;
  margin: 0;
  color: var(--navy);
  font-size: clamp(19px, 1.85vw, 25px);
  font-weight: 900;
  line-height: 1.26;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

.product-card__body > .product-card__name:first-child {
  margin-top: 64px;
}

.product-card__description {
  order: 3;
  margin: 0;
  min-height: 3.4em;
  color: rgba(46, 32, 15, 0.82);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.72;
  text-align: center;
}

.product-card__pricing {
  order: 4;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.product-card__price-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  min-height: 72px;
  margin: 0;
}

.product-card__price-before {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-right: auto;
  white-space: nowrap;
}

.product-card--discount .product-card__price-line {
  display: grid;
  align-items: end;
  justify-items: end;
  gap: 8px;
  min-height: auto;
}

.product-card--discount .product-card__price-before {
  justify-content: flex-end;
  margin-right: 0;
}

.product-card__price-before-label {
  color: rgba(99, 62, 16, 0.82);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.product-card__price-before-value {
  color: rgba(99, 62, 16, 0.9);
  font-size: clamp(26px, 2.25vw, 34px);
  font-weight: 900;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-color: rgba(164, 63, 21, 0.78);
  text-decoration-thickness: 3px;
}

.product-card__price-before-tax {
  color: rgba(99, 62, 16, 0.82);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.product-card__price-current {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  white-space: nowrap;
}

.product-card--discount .product-card__price-current {
  margin-left: 0;
}

.product-card__price-after {
  display: inline-flex;
  align-items: flex-end;
  color: var(--price-red);
  font-size: clamp(42px, 4vw, 60px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.product-card__price-tax {
  padding-bottom: 6px;
  color: rgba(112, 69, 20, 0.9);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-align: right;
}

.product-card__cta {
  order: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  margin-top: 2px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--cta-red) 0%, var(--cta-red-deep) 100%);
  color: #fff;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 24px rgba(180, 25, 10, 0.18);
}

@media (max-width: 960px) {
  .hero {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 1000px);
    padding: 0 0 64px;
  }

  .site-header {
    margin-bottom: 0;
  }

  .hero {
    padding: 0;
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card__body {
    padding: 18px 16px;
  }

  .product-card__image-note {
    font-size: 18px;
  }

  .product-card__name {
    font-size: 19px;
  }

  .product-card__body > .product-card__name:first-child {
    margin-top: 58px;
  }

  .product-card__description {
    font-size: 14px;
  }

  .product-card__badge {
    min-height: 42px;
    padding: 8px 16px;
    font-size: 15px;
  }

  .sale-section__title {
    gap: 12px;
    margin-bottom: 22px;
    font-size: 32px;
    margin-top: 40px;
  }

  .product-card__pricing {
    padding-top: 4px;
  }

  .product-card__price-line {
    gap: 8px;
    min-height: 64px;
  }

  .product-card--discount .product-card__price-line {
    gap: 6px;
    min-height: auto;
  }

  .product-card__price-before-label {
    font-size: 13px;
  }

  .product-card__price-before-value {
    font-size: 22px;
  }

  .product-card__price-before-tax {
    font-size: 13px;
  }

  .product-card__price-after {
    font-size: 40px;
  }

  .product-card__price-tax {
    font-size: 18px;
  }

  .product-card__cta {
    min-height: 56px;
    font-size: 20px;
  }
}
