body {
  margin: 0;
}
img {
  width: 100%;
  height: auto;
}
* {
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
}

header {
  width: min(100%, 750px);
  margin: 0 auto;
}
.container {
  width: min(100%, 750px);
  position: relative;
  margin: 0 auto;
}

/* 読み取りカメラ */
#quagga {
  width: 100%;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}
#quagga video,
#quagga canvas {
  width: auto;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* カメラに重なる部分 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px;
}

/* 戻るボタン */
.c-button-circle.__backPage {
  width: min(5.3vw, 40px);
  height: min(5.3vw, 40px);
}

.overlay_caution {
  position: absolute;
  bottom: 19%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background-color: #e10d0d;
  border-radius: 5px;
  width: 80%;
  color: #fff;
  font-weight: normal;
  font-size: 12px;
  letter-spacing: -0.05em;
  padding: 8px;
}

/* フォーム読み込めない方はこちらボタン */
.form-button {
  position: absolute;
  width: 70%;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}

/* 結果 */
.result {
  display: none;
  min-height: 100svh;
  padding-top: 50px;
  background-image: url(../images/barcode/result-bg.jpg);
  background-size: cover;
  background-repeat: repeat;
}
.result_product {
  color: #004224;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
}
.result_product span {
  font-size: 12px;
}

.result_productImg {
  width: 60%;
  margin: 0 auto;
  margin-top: min(5.3vw, 20px);
  position: relative;
  border-radius: 5px;
}

.result-heading {
  width: 87%;
  margin: 0 auto;
}

.deco-leaf {
  position: absolute;
  width: 20%;
  top: 0%;
  right: -12%;
}

.deco-beans {
  position: absolute;
  width: 30%;
  bottom: -10%;
  left: -16%;
}

.result_productName {
  width: 87%;
  margin: 0 auto;
  margin-top: min(5.4vw, 20px);
}

/* ボタン */
.button_group {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: min(8vw, 20px);
  padding-bottom: min(8vw, 20px);
}
.button_group button {
  border-radius: 100px;
  width: 65%;
  height: 50px;
  font-size: clamp(13px, 3.2vw, 16px);
}

.c-button._arrowRight._bgWhite {
  background-color: white;
  color: #004212;
}

.c-button._arrowRight._bgWhite::after {
  background: url(../common/images/btn_arrow_green.png) no-repeat;
  background-size: 6px auto;
}
.c-button._arrowRight._yellow::after {
  background-image: url(../common/images/btn_arrow_green.png);
}

/* レコメンドモーダル */
.recommend-modal {
  position: fixed;
  display: none;
  width: 90%;
  max-width: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
}
.rcommend-modal img {
  width: 100%;
  height: 100%;
}

.recommend-modalWrap {
  position: relative;
}

.recommend-modal._js-open {
  display: block;
  z-index: 99999;
}

.close-btn {
  width: 12.5%;
  position: absolute;
  top: -3%;
  right: -3%;
}
.close-btn._recommend {
  width: 11.5%;
  top: -7%;
  right: -3%;
}
