.photo {
  position: relative;
}

.photo_sec {
  display: none;
}

.photo_sec.is_show {
  display: block;
}

.btn {
  margin-bottom: 5.33333vw;
  padding: 0 8vw;
}

.btn a, .btn button, .btn label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80px;
  position: relative;
  margin: 0 auto;
  padding: 0 5.33333vw;
  background-color: #0cc251;
  border-radius: 40px;
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.6;
}

.btn.type02 a span, .btn.type02 button span, .btn.type02 label span {
  display: inline-block;
  position: relative;
  padding-left: 30px;
}

.btn.type02 a span:before, .btn.type02 button span:before, .btn.type02 label span:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  background: url(../img/icn_download.svg) 0 0/100% no-repeat;
  transform: translateY(-50%);
}

input[type="file"] {
  display: none;
}

.link_back span {
  position: relative;
  padding-left: 16px;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: bold;
}

.link_back span:before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  position: absolute;
  top: .15em;
  left: 0;
  border-left: 2px solid #222222;
  border-bottom: 2px solid #222222;
  transform: rotate(45deg);
}

.link_back span:hover {
  opacity: .7;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
}

.select_list {
  padding: 0 16vw;
}

.select_list li {
  position: relative;
}

.select_list li + li {
  margin-top: 6.66667vw;
}

.select_list li label {
  display: inline-block;
  background-color: #fff;
  box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.select_list li label img {
  display: block;
  width: 100%;
  pointer-events: none;
}

.select_list li input {
  display: none;
}

.select_list li input[type="radio"]:checked + label {
  border: 8px solid #ff8502;
  border-radius: 4px;
}

.select_list li input[type="radio"]:checked + label:before {
  content: "";
  width: 53.86667vw;
  height: 16.8vw;
  position: absolute;
  top: -16.8vw;
  left: 50%;
  background: url(../img/bg_balloon01.png) 0 0/100% no-repeat;
  transform: translateX(-50%);
}

.select_list li input[type="radio"]:checked + label:after {
  content: "選擇這個相框！";
  width: 40vw;
  position: absolute;
  top: -14vw;
  left: 50%;
  color: #fff;
  font-size: 4vw;
  font-weight: bold;
  transform: translateX(-50%);
}

.canvas_area {
  width: 280px;
  height: 280px;
  margin: auto;
  background-color: #b5b5b5;
  padding: 0;
}

.canvas_area .canvas01 {
  z-index: 10;
}

.canvas_area .canvas02_area {
  width: 0;
  height: 0;
  overflow: hidden;
}

.canvas_area .canvas02 {
  width: 840px;
  height: 840px;
}

.canvas_control {
  display: flex;
  justify-content: space-around;
  max-width: 240px;
  margin: 8vw auto;
}

.canvas_control .control_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.canvas_control .control_btn span {
  display: block;
  width: 60px;
  height: 60px;
  position: relative;
  border-color: #00ae42;
  border-width: 4px;
  border-style: solid;
  border-radius: 50%;
}

.canvas_control .control_btn span:before {
  content: "";
  display: block;
  width: 30px;
  height: 4px;
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #00ae42;
  transform: translate(-50%, -50%);
}

.canvas_control .control_btn.type01 span:after {
  content: "";
  display: block;
  width: 4px;
  height: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #00ae42;
}

.share_img {
  padding: 0 8vw;
}

.share_img + .btn {
  margin-top: 13.33333vw;
}

#loading {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
}

.loader {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 -25px 0 -10px #fff, 0 0 0 20px #bbb;
  animation: loader 1s infinite linear;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (min-width: 769px) {

  .btn {
    margin-bottom: 20px;
  }

  .btn a, .btn button, .btn label {
    height: 96px;
    padding: 0 40px;
    border-radius: 48px;
    cursor: pointer;
    font-size: 2.2rem;
    transition: box-shadow .3s ease-out, transform .3s ease-out;
  }

  .btn a:hover, .btn button:hover, .btn label:hover {
    box-shadow: none;
    transform: translate(6px, 6px);
  }

  .btn.type01 a, .btn.type01 button, .btn.type01 label {
    max-width: 400px;
  }

  .btn.type02 a, .btn.type02 button, .btn.type02 label {
    max-width: 480px;
  }

  .btn.type02 a span, .btn.type02 button span, .btn.type02 label span {
    padding-left: 40px;
  }

  .btn.type02 a span:before, .btn.type02 button span:before, .btn.type02 label span:before {
    width: 30px;
    height: 30px;
  }

  .link_back span {
    font-size: 2rem;
    transition: opacity .3s ease-out;
  }

  .link_back span:before {
    width: 12px;
    height: 12px;
    top: .3em;
  }

  .select_list {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 70px;
    padding: 0;
  }

  .select_list li {
    width: calc((100% - 90px) / 3);
  }

  .select_list li + li {
    margin-top: 0;
  }

  .select_list li label {
    box-shadow: 8px 8px 16px 0 rgba(0, 0, 0, 0.2);
  }

  .select_list li input[type="radio"]:checked + label {
    border-width: 10px;
  }

  .select_list li input[type="radio"]:checked + label:before {
    width: 202px;
    height: 63px;
    top: -65px;
  }

  .select_list li input[type="radio"]:checked + label:after {
    width: 202px;
    top: -53px;
    font-size: 1.4rem;
  }

  .canvas_control {
    margin: 30px auto 40px;
  }

  .canvas_control .control_btn {
    transition: background-color .3s ease-out, box-shadow .3s ease-out, transform .3s ease-out;
  }

  .canvas_control .control_btn:hover {
    background-color: #fff20a;
    box-shadow: none;
    transform: translate(3px, 3px);
  }

  .share_img {
    width: 290px;
    margin: 0 auto;
    padding: 0;
  }

  .share_img + .btn {
    margin-top: 70px;
  }
}
