@import url("var.css");
@import url("nav.css");

/* CSS Document */
html {
}
body {
  font-size: var(--bodyTxt);
  line-height: 1.8;
  color: #333;
  font-family: var(--cn);
  font-weight: 400;
  letter-spacing: 0.1em;
  padding-top: var(--headerH);
}

hr {
  border-color: #ccc;
}

.en {
  font-family: var(--en);
}

.tip {
  background: var(--org);
  color: #fff;
  display: inline-block;
  padding: 0.5em 2em;
  font-size: 15px;
  border-radius: 2em;
}

.org {
  color: var(--org);
}

.grayBg {
  background: #f9f9f9;
}

/* wrapper */
.wrapper {
}

.txtAll {
  text-align: center;
  padding: 50px 0;
}

.txtAll figure {
  margin-bottom: 50px;
}

.txtAll figure:last-child {
  margin-bottom: 0;
}

.txtAll h2 {
  color: var(--blue);
  font-weight: 700;
  font-size: var(--h2Txt);
  margin-bottom: 1em;
}

.txtAll h3 {
  font-size: var(--h3Txt);
  margin-bottom: 0.5em;
}

.txtAll h4 {
  font-size: var(--h4Txt);
  margin-bottom: 0.5em;
}

.txtAll p {
  margin-bottom: 2em;
}

.txtAll ol {
  text-align: left;
  font-size: var(--sTxt);
  max-width: 800px;
  margin: auto;
  /* margin-left: 1.5em; */
  margin-bottom: 30px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.3);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 999;
  height: var(--headerH);
  padding: 0 30px;
}
header .logo {
  width: 200px;
}

/* footer */
footer {
  text-align: center;
  padding: 1em 0;
  letter-spacing: 0;
  font-size: 15px;
}

footer img {
  margin-bottom: 10px;
}

/* 按鈕們 */
.buttons {
  text-align: center;
  margin: 70px auto 20px;
}

.btn {
  border-radius: 3em;
  font-size: 18px;
  min-width: 300px;
  color: #fff;
  background: var(--green);
  padding: 0.5em 2em;
  margin: 1em auto;
  position: relative;
}

.btn:after {
  content: "";
  background: no-repeat center center;
  background-size: contain;
  background-image: url(../images/ico/arrow-r.svg);
  position: absolute;
  width: 30px;
  height: 20px;
  right: 20px;
  display: block;
  top: calc(50% - 10px);

  animation-name: rightToLeft;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-duration: 0.5s;
}

.btn:hover {
  color: #fff;
  background: var(--green2);
}

.btn:hover:after {
  transform: translateX(5px);
}

.btnOrg {
  background: var(--org);
}

.btnPurple {
  background: var(--purple);
}

@keyframes rightToLeft {
  0% {
    transform: translateX(5%);
  }
  100% {
    transform: translateX(-15%);
  }
}

/* 行動版天地 */

/* PC */
@media (max-width: 1024px) {
  header .logo {
    width: 150px;
  }

  /* var */
  :root {
    --kvTitle: 40px;

    --h2Txt: 30px;
    --h3Txt: 25px;
    --h4Txt: 17px;
    --bodyTxt: 15px;
    --sTxt: 13px;
  }
}

/* IPAD */
@media (max-width: 960px) {
  :root {
    --headerH: 90px;
  }

  header {
    padding: 0 15px;
  }

  header .logo {
    width: 250px;
  }

  .socialNav {
    right: 10px;
    position: absolute;
  }

  footer img {
    width: 150px;
  }
}

/* 手機尺吋 */
@media (max-width: 767px) {
  :root {
    --headerH: 70px;

    --kvTitle: 28px;

    --h2Txt: 30px;
    --h3Txt: 25px;
    --h4Txt: 20px;
    --sTxt: 13px;
  }

  header {
    padding-left: 80px;
  }
  header .logo {
    flex: 1;
  }
  header .logo img {
    width: 150px;
  }

  .buttons {
    margin: 20px auto;
  }

  .socialNav img {
    margin: 0 2px;
    width: 30px;
  }

  .txtAll > div {
    padding: 0 30px;
  }
  .txtAll p {
    text-align: left;
  }
  .txtAll p br {
    display: none;
  }

  footer {
    font-size: 13px;
  }

  /* mobile End */
}

@supports (-webkit-overflow-scrolling: touch) and (max-width: 767px) {
}
