/**
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    contenteditable attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that are clearfixed.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.cf:before,
.cf:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.cf:after {
  clear: both;
}

/**
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
  *zoom: 1;
}

main .service {
  background-color: #fff;
  background-image: url("../../img/bg3.jpeg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-size: cover;
}
main .service {
  text-align: center;
}
main .service h2 {
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}
main .service h3 {
  color: #ff6634;
}
main .service h3:after {
  display: block;
  width: 40px;
  height: 2px;
  content: '';
  background-color: #ff6634;
}
main .service p span {
  font-size: 0.4666em;
  display: block;
  margin-top: 20px;
}
main .service a {
  font-size: 0.5em;
  position: relative;
  display: block;
  width: 200px;
  padding: 15px 10px;
  text-align: center;
  border-radius: 3px;
  -moz-transition: 0.3s;
  -o-transition: 0.3s;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  background-color: #ff6634;
  color: #fff;
}
main .service a::after {
  position: absolute;
  top: 20px;
  right: 10px;
  right: 20px;
  width: 5px;
  height: 5px;
  content: '';
  -moz-transition: 0.3s;
  -o-transition: 0.3s;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
main .service a:hover::after {
  right: 13px;
}

@media screen and (min-width: 960px) {
  .inner {
    width: 960px;
    margin: 0 auto;
  }

  .service {
    padding: 60px 0;
    text-align: center;
  }
  .service h2 {
    font-size: 1em;
    text-align: center;
  }
  .service h3 {
    font-size: 0.6em;
    text-align: center;
  }
  .service h3:after {
    margin: 40px auto 0;
  }
  .service p {
    text-align: left;
  }
  .service a {
    margin: 50px 0;
  }

  .content {
    margin: 100px 0;
  }
  .content .box01,
  .content .box02,
  .content .box03,
  .content .box04 {
    width: 45%;
  }
  .content .box01 h4,
  .content .box02 h4,
  .content .box03 h4,
  .content .box04 h4 {
    color: #222;
    letter-spacing: 0.05em;
    font-size: 0.6em;
    font-weight: lighter;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
  }
  .content .box01 p,
  .content .box02 p,
  .content .box03 p,
  .content .box04 p {
    color: #555;
    letter-spacing: 0.02em;
    margin-top: 20px;
    font-size: 0.4666em;
    line-height: 2em;
  }
  .content .box01,
  .content .box03 {
    float: left;
  }
  .content .box02,
  .content .box04 {
    float: right;
  }
  .content .box03 {
    clear: both;
  }
  .content .box03,
  .content .box04 {
    padding-top: 80px;
  }
}
@media screen and (max-width: 959px) {
  .service {
    padding: 60px 0 60px 0;
    text-align: center;
  }
  .service h2 {
    font-size: 0.7em;
    text-align: center;
  }
  .service h3 {
    font-size: 0.5em;
    text-align: center;
  }
  .service h3:after {
    margin: 40px auto 0;
  }
  .service p {
    text-align: center;
  }
  .service a {
    margin: 50px auto;
  }

  .inner {
    width: 90%;
    margin: auto;
  }

  .content {
    width: 90%;
    margin: 70px auto 30px;
  }
  .content .box01 h4,
  .content .box02 h4,
  .content .box03 h4,
  .content .box04 h4 {
    color: #222;
    letter-spacing: 0.05em;
    font-size: 0.4666em;
    font-weight: lighter;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
  }
  .content .box01 p,
  .content .box02 p,
  .content .box03 p,
  .content .box04 p {
    color: #555;
    letter-spacing: 0.01em;
    margin-top: 15px;
    font-size: 0.4em;
    line-height: 2em;
    padding-bottom: 50px;
  }
}
@media screen and (max-width: 767px) {
  .service {
    padding: 80px 0 40px 0;
    text-align: center;
  }
  .service h2 {
    font-size: 0.6em;
    text-align: center;
  }
  .service h3 {
    font-size: 0.4333em;
    text-align: center;
  }
  .service h3:after {
    margin: 40px auto 0;
  }
  .service p {
    font-size: 0.8em;
    text-align: center;
  }
  .service a {
    margin: 50px auto;
  }
}
