#service {
  position: relative;
  text-align: center;
  padding: 100px 0 80px 0;
}
#service header {
  background: var(--gp-navy);
  color: #fff;
  width: 90%;
  padding: 50px 0 100px 0;
  z-index: 1;
  margin: 0 auto;
}
#service header h2 {
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  letter-spacing: 0.1em;
}
#service header p {
  margin: 0 0 30px 0;
}
#service header p br {
  display: none;
}
#service .service-area {
  background: #fff;
  padding: 70px;
  width: 70%;
  max-width: 960px;
  position: relative;
  top: -50px;
  left: auto;
  margin-left: auto;
  margin-right: auto;
  z-index: 2;
  box-shadow: 0 12px 40px rgba(30, 107, 158, 0.11);
}
#service .service-area ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  transform: translate3d(0, 0, 0);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
#service .gp-service-two ul li {
  width: 42%;
  min-width: 260px;
  max-width: 420px;
  padding: 0 0 30px 0;
  opacity: 1;
}
.btnlinestretches {
  position: relative;
  color: var(--gp-text);
  border: 1px solid var(--gp-text);
  padding: 30px 16px;
  display: block;
  text-decoration: none;
  outline: none;
  transition: all 0.3s ease-in-out;
  text-align: center;
  line-height: 1.5;
}
.btnlinestretches:hover {
  background: var(--gp-text);
  color: #fff;
  border-color: transparent;
}
.btnlinestretches::before,
.btnlinestretches::after {
  content: "";
  position: absolute;
  border: solid var(--gp-text);
  width: 10px;
  height: 10px;
  transition: all 0.3s ease-in-out;
}
.btnlinestretches::before {
  top: -6px;
  left: -6px;
  border-width: 1px 0 0 1px;
}
.btnlinestretches::after {
  bottom: -6px;
  right: -6px;
  border-width: 0 1px 1px 0;
}
.btnlinestretches:hover::before,
.btnlinestretches:hover::after {
  width: calc(100% + 11px);
  height: calc(100% + 11px);
  border-color: #666;
}
@media screen and (max-width: 960px) {
  #service header {
    width: 100%;
  }
  #service .service-area {
    width: 80%;
    left: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 80px 20px 30px 20px;
  }
  #service .service-area ul li {
    width: 40%;
  }
  #service header p br {
    display: block;
  }
}
@media screen and (max-width: 768px) {
  #service {
    padding: 120px 0 60px 0;
  }
  #service .gp-service-two ul li {
    width: 100%;
  }
}
@media screen and (max-width: 550px) {
  #service .service-area {
    width: 90%;
    left: auto;
    margin-left: auto;
    margin-right: auto;
  }
}
@media screen and (max-width: 400px) {
  #service .service-area {
    width: 100%;
    max-width: none;
    left: 0;
    margin-left: 0;
    margin-right: 0;
    font-size: 0.9rem;
  }
}

#message {
  position: relative;
  padding: 0 70px 80px;
}
#message > h2.heading {
  position: absolute;
  right: 45%;
  z-index: 2;
}
.message-area {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}
.message-img,
.gp-message-visual {
  height: 50vh;
  width: 48%;
  background: linear-gradient(
    160deg,
    var(--gp-navy) 0%,
    var(--gp-navy-mid) 50%,
    rgba(125, 211, 252, 0.42) 100%
  );
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.gp-message-visual--has-image {
  background-color: var(--gp-navy-deep);
}
.message-content {
  display: flex;
  justify-content: center;
  padding: 150px 0 0 0;
  width: 45%;
}
.message-box {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
}
.message-content h3,
.message-content p,
.message-content .message-btn {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  text-orientation: upright;
  height: 20em;
  letter-spacing: 0.1em;
}
.message-content h3 {
  font-size: 1.5rem;
  line-height: 2.5;
  margin: 0;
}
.message-content p {
  line-height: 3.5;
  margin: 0 0 0 50px;
}
@media screen and (max-width: 1280px) {
  .message-content h3 {
    line-height: 2;
    margin: 0 0 0 10px;
  }
  .message-content p {
    line-height: 3;
    margin: 0 0 0 20px;
  }
}
@media screen and (max-width: 1000px) {
  .message-content p {
    line-height: 2;
  }
}
@media screen and (max-width: 768px) {
  #message {
    padding: 0 30px 60px;
  }
  #message > h2.heading {
    position: relative;
    right: auto;
    top: 40px;
    margin-bottom: 1rem;
  }
  .message-img,
  .gp-message-visual,
  .message-content {
    width: 100%;
  }
  .message-img,
  .gp-message-visual {
    height: 40vh;
  }
  .message-content {
    padding: 50px 0 0 0;
  }
  .message-content h3,
  .message-content p,
  .message-content .message-btn {
    writing-mode: horizontal-tb;
    -webkit-writing-mode: horizontal-tb;
    height: auto;
    margin: 0 0 50px 0;
  }
  .message-box {
    display: block;
  }
  .message-content h3 {
    text-align: center;
    font-size: 1.2rem;
  }
  .message-box .btn {
    padding: 10px;
    display: inline-block;
  }
}
@media screen and (max-width: 430px) {
  .message-img,
  .gp-message-visual {
    height: 22vh;
  }
}

.btn {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  border: 1px solid #333;
  padding: 40px 8px;
  text-align: center;
  outline: none;
  transition: ease 0.2s;
}
.btn.bgcenterout {
  border: 1px solid #fff;
  padding: 8px 40px;
}
.btn span {
  position: relative;
  z-index: 3;
  color: #333;
}
.btn:hover span {
  color: #fff;
}
.btn.bgcenterout span {
  color: #fff;
}
.btn.bgcenterout:hover span {
  color: #333;
}
.bgcenterx::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: #333;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.8, 0, 0.2, 1) 0s;
  transform: scale(0, 1);
  transform-origin: top;
}
.bgcenterx:hover::before {
  transform: scale(1, 1);
}
.bgcenterout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: #fff;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.8, 0, 0.2, 1) 0s;
  transform: scale(0, 0);
  transform-origin: center;
}
.bgcenterout:hover::before {
  transform: scale(1, 1);
}
