.image-upload-dropzone,
.image-upload-dropzone *,
.image-upload-examples,
.image-upload-examples * {
  box-sizing: border-box;
}

.image-upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  min-height: 382px;
  margin-top: 17px;
  padding-bottom: 24px;
  color: #000;
  background: #f7eeee;
  border: 1px solid #b31f19;
  border-radius: 4px;
}

.image-upload-dropzone.is-dragging {
  background: #f4e6e6;
  box-shadow: inset 0 0 0 1px #b31f19;
}

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

.image-upload-dropzone__prompt {
  margin-top: 84px;
  font-size: 14px;
  font-weight: 700;
  line-height: 27px;
  letter-spacing: 0.08em;
  text-align: center;
}

.image-upload-dropzone__prompt p {
  margin: 0;
}

.image-upload-dropzone__file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  width: calc(100% - 22px);
  max-width: 412px;
  margin-top: 15px;
  padding: 10px 11px 10px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  background: #fff;
}

.image-upload-dropzone__file[hidden] {
  display: none;
}

.image-upload-dropzone__filename {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.image-upload-dropzone__delete {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 5px;
  min-height: 24px;
  margin: -2px 0 0;
  padding: 2px 0 2px 4px;
  color: #b31f19;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.image-upload-dropzone__delete:focus-visible {
  outline: 2px solid #11335e;
  outline-offset: 2px;
}

.image-upload-dropzone__delete-icon {
  display: block;
  flex: none;
  width: 16px;
  height: auto;
}

.image-upload-dropzone__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 22px);
  max-width: 412px;
  height: 45px;
  margin-top: 15px;
  padding: 0 45px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  background: #b31f19;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.image-upload-dropzone__button:focus-visible {
  outline: 2px solid #11335e;
  outline-offset: 2px;
}

.image-upload-dropzone__button-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  display: block;
  width: 25px;
  height: auto;
  transform: translateY(-50%);
}

.image-upload-dropzone__notice {
  margin: 25px 8px 0;
  color: #b31f19;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

.image-upload-dropzone__sp-break {
  display: none;
}

/* プレビューは白枠内のファイル名の下に置く */
.image-upload-dropzone__preview {
  grid-column: 1 / -1;
  min-width: 0;
}

.image-upload-dropzone__preview:not(:empty) {
  margin-top: 12px;
}

.image-upload-dropzone__preview img {
  display: block;
  max-width: 100%;
  height: auto;
}

.image-upload-examples {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 13px;
  width: 100%;
  margin: 13px 0 17px;
  padding: 23px 12px 16px;
  color: #000;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.75;
  background: #f9f8f2;
  border-radius: 4px;
}

.image-upload-examples__item {
  min-width: 0;
}

.image-upload-examples__image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 152 / 111;
  background: #fff;
  border-radius: 3px;
}

.image-upload-examples__item--ok .image-upload-examples__image-frame {
  border: 1px solid #d22d26;
}

.image-upload-examples__item--ng .image-upload-examples__image-frame {
  border: 1px solid #11335e;
}

.image-upload-examples__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 86%;
  object-fit: contain;
}

.image-upload-examples__mark {
  position: absolute;
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
}

.image-upload-examples__item--ok .image-upload-examples__mark {
  top: -1px;
  left: -1px;
  width: 34px;
  height: 34px;
}

.image-upload-examples__item--ng .image-upload-examples__mark {
  top: -2px;
  left: -2px;
  width: 25px;
  height: 25px;
}

.image-upload-examples__description {
  margin-top: 9px;
}

.image-upload-examples__description p {
  margin: 0;
}

.image-upload-examples__heading {
  margin-bottom: 2px !important;
  font-weight: 700;
}

.image-upload-examples__emphasis {
  color: #de2823;
}

.image-upload-examples__continuation {
  display: inline-block;
  padding-left: 1em;
}

@media (max-width: 1100px) {
  .image-upload-dropzone {
    min-height: 381px;
    margin-top: 16px;
  }

  .image-upload-dropzone__button {
    max-width: 320px;
    height: 44px;
  }

  .image-upload-dropzone__file {
    max-width: 320px;
  }

  .image-upload-dropzone__pc-space {
    display: none;
  }

  .image-upload-dropzone__sp-break {
    display: inline;
  }

  .image-upload-examples {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
    margin-top: 28px;
    margin-bottom: 40px;
    padding: 14px 6px 26px 11px;
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0;
  }

  .image-upload-examples__item {
    display: grid;
    grid-template-columns: 47% minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
  }

  .image-upload-examples__image-frame {
    aspect-ratio: 1.43 / 1;
  }

  .image-upload-examples__item--ok + .image-upload-examples__item--ng {
    margin-top: 12px;
  }

  .image-upload-examples__description {
    margin-top: 0;
  }

  .image-upload-examples__pc-break {
    display: none;
  }
}
