.noto-sans-regular, .btn-green {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
}

.noto-sans-medium, .inner .title, .item-row .slant {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
}

.noto-sans-bold {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 700;
}

.noto-sans-black {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 900;
}

.noto-serif-regular {
  font-family: "Noto Serif TC", sans-serif;
  font-weight: 300;
}

.noto-serif-medium {
  font-family: "Noto Serif TC", sans-serif;
  font-weight: 500;
}

.noto-serif-semibold {
  font-family: "Noto Serif TC", sans-serif;
  font-weight: 600;
}

.noto-serif-bold {
  font-family: "Noto Serif TC", sans-serif;
  font-weight: 700;
}

.playball {
  font-family: "Playball", cursive;
}

.crimson, .input-control input {
  font-family: "Crimson Text", serif;
}

.pt-serif {
  font-family: "PT Serif", serif;
}

.fade {
  -webkit-transition: all linear .2s;
  transition: all linear .2s;
}

.fade:hover {
  -webkit-transition: all linear .2s;
  transition: all linear .2s;
}

@-webkit-keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fadeOutAnimation {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeOutAnimation {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@-webkit-keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
            transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
            transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
  }
}

@-webkit-keyframes fadeOutUp {
  0% {
    opacity: 1;
  }
  to {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
            transform: translate3d(0, -100%, 0);
  }
}

@keyframes fadeOutUp {
  0% {
    opacity: 1;
  }
  to {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
            transform: translate3d(0, -100%, 0);
  }
}

.checkbox-group {
  display: block;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  color: #808080;
  padding-left: 3vmin;
  font-size: 2vmin;
  -webkit-transition: .2s;
  transition: .2s;
}

.checkbox-group input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-group:hover {
  color: #6d7228;
}

.checkbox-group input:checked ~ .checkmark {
  background-color: #c8c176;
}

.checkbox-group input:checked ~ .checkmark:after {
  display: block;
  border-color: #fff;
}

.checkbox-group span {
  display: inline-block;
  vertical-align: middle;
}

.checkbox-group .checkmark {
  position: absolute;
  left: 0;
  top: calc((100% - 2vmin) / 2);
  height: 2vmin;
  width: 2vmin;
  border: 1px solid #c8c176;
  border-radius: .3vmin;
}

.checkbox-group .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 0.5vmin;
  top: -0.1vmin;
  width: 0.5vmin;
  height: 1.2vmin;
  border: 1px solid #fff;
  border-width: 0 .3vmin .3vmin 0;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

@media (max-width: 480px), (orientation: landscape) and (max-height: 550px) {
  .checkbox-group {
    padding-left: 20px;
    font-size: 15px;
  }
  .checkbox-group .checkmark {
    top: calc((100% - 15px) / 2);
    width: 15px;
    height: 15px;
  }
  .checkbox-group .checkmark:after {
    left: 3.5px;
    top: 1px;
    width: 4px;
    height: 7px;
    border-width: 0 3px 3px 0;
  }
}

:root {
  --eighteen-logo-top: 50vmin;
}

.bg {
  position: absolute;
  width: 100%;
  height: 100%;
}

.bg img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.bg::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(200, 193, 118, 0.8);
}

.bg-logo {
  position: absolute;
  left: 0;
  height: 100%;
  background-image: url(../images/over18/logo-bg.webp);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center 19vmin;
  width: 100vw;
  height: 100%;
}

.bg-logo::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: calc(100vh - (100vw * 450 / 1920) - 19vmin);
  background-color: #fff;
}

.bg-logo .inner {
  margin-top: var(--eighteen-logo-top);
  position: relative;
  z-index: 1;
  padding-bottom: 15px;
}

.bg-logo .logo {
  position: absolute;
  top: calc(19vmin - 4.5vmin);
  width: 29.6vmin;
  height: 29.6vmin;
  left: calc((100vw - 29.6vmin) / 2);
}

.inner {
  text-align: center;
}

.inner .title {
  color: #c8c176;
  font-size: 3.3vmin;
  letter-spacing: .4vmin;
}

.inner .statement {
  display: inline-block;
  padding: 2vmin 5vmin;
  max-width: 90%;
  background-color: rgba(200, 193, 118, 0.2);
  border-radius: 1vmin;
  font-size: 1.7vmin;
  color: #6d7228;
}

.inner .statement p {
  line-height: 1.5;
}

.inner .statement p:last-of-type {
  margin-top: 1vmin;
}

.item-row {
  margin: 4.5vmin 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #c8c176;
}

.item-row .input-control {
  border: 1px solid #c8c176;
  border-radius: 1vmin;
  width: 13.5vmin;
  line-height: 5vmin;
}

.item-row .slant {
  margin: 0 4vmin;
  font-size: 3.4vmin;
}

.input-control input {
  width: 100%;
  height: 100%;
  border: none;
  background-color: transparent;
  text-align: center;
  font-style: italic;
  font-size: 2.5vmin;
  letter-spacing: .2vmin;
  color: #6d7228;
}

.input-control input::-webkit-input-placeholder {
  color: rgba(200, 193, 118, 0.5);
  opacity: 1;
}

.input-control input:-ms-input-placeholder {
  color: rgba(200, 193, 118, 0.5);
  opacity: 1;
}

.input-control input::-ms-input-placeholder {
  color: rgba(200, 193, 118, 0.5);
  opacity: 1;
}

.input-control input::placeholder {
  color: rgba(200, 193, 118, 0.5);
  opacity: 1;
}

.input-control input::-webkit-input-placeholder {
  color: rgba(200, 193, 118, 0.5);
}

.input-control input::-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  background: none !important;
}

.input-control input::-ms-input-placeholder {
  color: rgba(200, 193, 118, 0.5);
}

.input-control input::-moz-placeholder {
  color: rgba(200, 193, 118, 0.5);
  opacity: 1;
}

.checkbox-row {
  margin: 2.5vmin 0 2vmin 0;
}

.checkbox-row .checkbox-group {
  display: inline-block;
  font-weight: bold;
}

.btn-green {
  padding: 1.2vmin;
  min-width: 20vmin;
  font-size: 2.2vmin;
  letter-spacing: .3vmin;
}

@media (max-width: 1600px) {
  .inner .statement {
    font-size: 14px;
  }
  .inner .statement p {
    line-height: 1.4;
  }
}

@media (max-width: 767px) {
  :root {
    --eighteen-logo-top: 38vmin;
  }
  .bg-logo {
    background-size: 920px auto;
    background-position: center 17vmin;
  }
  .bg-logo .logo {
    top: calc(17vmin - 2.5vmin);
    width: 20vmin;
    height: 20vmin;
    left: calc((100vw - 20vmin) / 2);
  }
  .item-row {
    margin: 3vmin 0;
  }
}

@media (max-width: 480px) {
  :root {
    --eighteen-logo-top: calc(34vmin + 150px);
  }
  .inner .statement {
    padding: 4vw;
  }
  .inner .title {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .bg-logo {
    background-position: center 34vmin;
  }
  .bg-logo::before {
    width: 100%;
    height: calc(100vh - (920px * 450 / 1920) - 34vmin + 1px);
  }
  .bg-logo .logo {
    top: calc(34vmin - 24px);
    width: 153px;
    height: 153px;
    left: calc((100vw - 153px) / 2);
  }
  .item-row {
    margin: 6vw 0;
  }
  .item-row .input-control {
    width: 70px;
    line-height: 35px;
    border-radius: 5px;
  }
  .item-row .slant {
    margin: 0 6vw;
    font-size: 18px;
  }
  .input-control input {
    font-size: 18px;
  }
  .checkbox-row {
    margin: 10px 0;
  }
  .btn-green {
    padding: 6px;
    min-width: 130px;
    font-size: 15px;
    letter-spacing: 2px;
  }
}

@media (max-width: 320px) {
  .item-row .slant {
    margin: 0 10px;
  }
  .item-row .input-control {
    width: 55px;
  }
}

@media (orientation: landscape) and (max-height: 550px) {
  :root {
    --eighteen-logo-top: 32vh;
  }
  .inner {
    padding-bottom: 10vh;
  }
  .inner .statement {
    padding: 3vh;
  }
  .inner .title {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .bg-logo {
    background-size: 920px auto;
    background-position: center 10vh;
  }
  .bg-logo::before {
    width: 100%;
    height: calc(100vh - (920px * 450 / 1920) - 10vh + 1px);
  }
  .bg-logo .logo {
    top: calc(10vh - 24px);
    width: 25vh;
    height: 25vh;
    left: calc((100vw - 25vh) / 2);
  }
  .item-row {
    margin: 4vh 0;
  }
  .item-row .input-control {
    width: 70px;
    line-height: 35px;
    border-radius: 5px;
  }
  .item-row .slant {
    margin: 0 4vh;
    font-size: 18px;
  }
  .input-control input {
    font-size: 18px;
  }
  .checkbox-row {
    margin: 10px 0;
  }
  .btn-green {
    padding: 6px;
    min-width: 130px;
    font-size: 15px;
    letter-spacing: 2px;
  }
}
