/* :root {
  --gap-x: 20px;
  --gap-y: 20px;
} */

.scanerror-form {
  background-color: #eaeda6;
  padding: clamp(20px, 8vw, 40px) 0;
}

.explanation {
  font-size: min(3.6vw, 18px);
  text-align: left;
}

.step {
  margin-top: clamp(20px, 8vw, 40px);
}

.flavor-serelect {
  display: grid;
  margin-top: clamp(15px, 6vw, 30px);
  column-gap: var(--gap-x);
  row-gap: var(--gap-y);
  grid-template-columns: repeat(3, calc((100% - (2 * var(--gap-x))) / 3));
  grid-template-rows: repeat(6, calc((100% - (5 * var(--gap-y))) / 6));
}

.radio-input {
  display: none;
}
.radio-input:checked + .flavor-item {
  display: none;
}

.radio-check-wrap {
  position: relative;
}
.radio-check {
  position: absolute;
  top: -9%;
  left: -12%;
  width: 23%;
}

.step-title {
  color: #004212;
  font-size: min(5.2vw, 26px);
  font-weight: 700;
  text-align: left;
  line-height: 1;
}
.step-note {
  font-size: min(2.4vw, 12px);
  text-align: left;
  padding-top: clamp(10px, 2.6vw, 13px);
  text-indent: -1em;
  margin-left: 1em;
}
.step-note span {
  display: block;
}
.img-up-text {
  font-size: min(2.5vw, 20px);
  text-align: left;
  color: #d9271c;
  display: none;
  text-align: center;
}
.img-up-text.__active {
  display: block;
}

.flavor-item._js-active {
  border: solid 4px #004212;
}

.flavor-item {
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 7px 7px 12px 0px rgba(0, 0, 0, 0.18);
  position: relative;
  aspect-ratio: 180 / 240;
  border: solid 4px transparent;
}
.flavor-item-img {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
}

.arrow {
  width: 23.8%;
  margin: clamp(14px, 5.2vw, 26px) auto 0;
}

/* step 2 & 3 */

.c-btn._l._fullview,
.c-btn._l._receipt {
  margin-top: clamp(14px, 5.2vw, 26px);
  width: 80%;
}
.c-btn._l._barcode {
  margin-top: clamp(10px, 4vw, 20px);
  width: 80%;
}

/* step 4 */
.form-group {
  width: 100%;
  margin-top: clamp(20px, 8vw, 40px);
}
.form-group._first {
  margin-top: clamp(10px, 4vw, 20px);
}

.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  padding: 1.4rem;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: min(4.2vw, 21px);
  font-weight: 700;
  color: #004212;
  transition: all 0.3s ease;
  text-align: left;
}

.required {
  color: #d9271c;
  font-size: min(3.2vw, 16px);
  font-weight: 700;
}

.select-arrow {
  display: inline-block;
  vertical-align: middle;
  color: #004212;
  line-height: 1;
  width: 0.5em;
  height: 0.5em;
  border: 0.1em solid currentColor;
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateY(-25%) rotate(135deg);
  transition: all 0.3s ease;
}
.select-trigger.__active .select-arrow {
  transform: rotate(315deg);
}

.select-options {
  background-color: #fff;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  visibility: visible;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.select-options.__show {
  display: block;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  padding: 1.6rem;
  cursor: pointer;
  font-size: min(3.6vw, 18px);
  color: #000;
  transition: background-color 0.2s ease;
  border-bottom: solid 1px #eaeda6;
}
.select-option:first-child {
  border-top: solid 1px #eaeda6;
}
.select-option:last-child {
  border: none;
}
.select-option:hover {
  background-color: #ffffffaa;
}
.select-option.selected {
  background-color: #eaeda6;
}

/* フォーム送信用input */
.hidden-input {
  display: none;
}

/* その他フォーム */
.others-form {
  width: 100%;
  background-color: #fffcf5;
  padding: 1.4rem;
  text-align: left;
  margin-top: 5.8%;
  display: none;
}
.others-form.__show {
  display: block;
}

.others-text {
  color: #004212;
  font-size: min(4.2vw, 21px);
  font-weight: 700;
}

.others-input {
  width: 85%;
  display: block;
  margin: clamp(10px, 4vw, 20px) auto 0;
}

.others-input input {
  width: 100%;
  padding: 1.4rem;
  background-color: #fff;
  font-size: min(3.2vw, 16px);
  color: #000;
  border: solid 1px #d2d2d2;
  border-radius: 2px;
}

.others-input input:focus {
  outline: none;
}

.c-btn._l._confirm {
  margin-top: 8%;
}

/* モーダル */
.c-modal-wrap._scanerror {
  height: 90svh;
}

.flavor-name {
  font-size: min(2.6vw, 13px);
  width: 38%;
  text-align: center;
  line-height: 1.2;
}

.flavor-img-wrap {
  width: 38%;
  background-color: #fffcf5;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.upload-img-wrap {
  display: flex;
  justify-content: center;
  gap: 8.3%;
}
.upload-img {
  width: 50%;
}

.modal-text {
  font-size: min(2.6vw, 13px);
  line-height: 2;
}
.modal-text._l {
  font-size: min(3.2vw, 16px);
}

.upload-img {
  width: 40%;
}

.c-button._confirmBtn {
  margin-top: clamp(20px, 8vw, 40px);
  padding: 1.25rem;
  font-size: min(4vw, 24px);
  margin-inline: auto;
}
.c-button._next {
  font-size: min(4.2vw, 21px);
  padding: 1.4rem;
}
.c-button._back {
  font-size: min(4.2vw, 21px);
  padding: 1.1rem;
  margin-top: clamp(10px, 4vw, 20px);
}
.c-button._mypage-back {
  margin-top: clamp(29px, 11vw, 58px);
  margin-inline: auto;
}
.c-button._mypage-back a {
  color: #fff;
}

/* フォーム送信完了画面 */
.formcomplete {
  background-image: url(../images/scanerror_form/bg.jpg);
  background-size: cover;
  padding-top: 1rem;
  padding-bottom: clamp(20px, 8vw, 40px);
  display: none;
}

.thanks-register {
  padding-top: clamp(28px, 11vw, 56px);
}

.formcomplete-text {
  font-size: min(3.2vw, 16px);
  width: 83%;
  margin: 0 auto;
  padding-top: clamp(14px, 5.3vw, 26px);
}
