/* 公式サイト限定 500 円クーポン modal. Artwork drives the layout; the claim
   button is a transparent overlay aligned to the artwork's pink pill. */
.enoradiy-coupon500 {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: inherit;
}
.enoradiy-coupon500[hidden] { display: none; }

.enoradiy-coupon500__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 30, 30, 0.62);
  animation: enoradiy-coupon500-fade 240ms ease-out both;
}

.enoradiy-coupon500__panel {
  position: relative;
  width: min(92vw, 620px);
  max-height: calc(100vh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 4px;
  background: #fdf5f3;
  box-shadow: 0 24px 70px rgba(40, 20, 20, 0.35);
  animation: enoradiy-coupon500-rise 280ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

/* The claim hit area is positioned against the artwork itself, not the panel,
   so it stays aligned even when a short viewport makes the panel scrollable. */
.enoradiy-coupon500__art {
  position: relative;
}

.enoradiy-coupon500__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Artwork is 1536x1024; the pink pill spans x 349-1203, y 723-870. */
.enoradiy-coupon500__claim {
  position: absolute;
  left: 22.5%;
  top: 70.2%;
  width: 56%;
  height: 15.2%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.enoradiy-coupon500__claim:hover,
.enoradiy-coupon500__claim:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 6px 20px rgba(140, 60, 60, 0.28);
  transform: translateY(-1px);
  outline: none;
}
.enoradiy-coupon500__claim:disabled { cursor: default; }

.enoradiy-coupon500__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #8d4b45;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.enoradiy-coupon500__close:hover,
.enoradiy-coupon500__close:focus-visible {
  background: #fff;
  outline: 2px solid #b76d67;
  outline-offset: 1px;
}

.enoradiy-coupon500__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4%;
  background: rgba(253, 245, 243, 0.28);
  color: #8d4b45;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.enoradiy-coupon500__loading[hidden] { display: none; }
.enoradiy-coupon500__loading span {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(120, 60, 60, 0.18);
}

.enoradiy-coupon500__feedback {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 5%;
  margin: 0;
  padding: 12px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 28px rgba(120, 60, 60, 0.22);
  color: #8d4b45;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.enoradiy-coupon500__feedback[hidden] { display: none; }

.enoradiy-coupon500__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes enoradiy-coupon500-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes enoradiy-coupon500-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .enoradiy-coupon500 { padding: 12px; }
  .enoradiy-coupon500__panel { max-height: calc(100vh - 24px); }
  .enoradiy-coupon500__feedback { font-size: 12px; padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .enoradiy-coupon500__backdrop,
  .enoradiy-coupon500__panel,
  .enoradiy-coupon500__claim { animation: none; transition: none; }
}
