@charset "UTF-8";

/* btn style */
.c-btn {
  position: relative;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  margin: 0 auto;
}

.c-btn:before,
.c-btn:after {
  content: "";
  background: #65a9c5;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
}
.c-btn:before {
  top: 0;
}
.c-btn:after {
  bottom: 0;
}
.c-btn:hover:before,
.c-btn:hover:after {
  transform: scaleX(0);
  opacity: 0;
  animation-name: linelefttoright;
  animation-duration: 0.3s;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}
.c-btn:hover:before {
  transform-origin: left;
}
.c-btn:hover:after {
  transform-origin: right;
}
@keyframes linelefttoright {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.c-btn span:before,
.c-btn span:after {
  content: "";
  background: #65a9c5;
  position: absolute;
  width: 1px;
  height: 100%;
}
.c-btn span:before {
  top: 0;
  left: 0;
}
.c-btn span:after {
  bottom: 0;
  right: 0;
}

.c-btn span span:before,
.c-btn span span:after {
  content: none;
}

.c-btn span:hover:before,
.c-btn span:hover:after {
  transform: scaleY(0);
  opacity: 0;
  animation-name: linetoptobottom;
  animation-duration: 0.3s;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}
.c-btn span:hover:before {
  transform-origin: top;
}
.c-btn span:hover:after {
  transform-origin: bottom;
}
@keyframes linetoptobottom {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.c-btn__text {
  text-decoration: none;
  display: inline-block;
  padding: 18px 40px 18px 30px;
  font-size: 1.4rem;
  position: relative;
  transition: 0.3s ease;
  z-index: 2;
  color: #65a9c5;
}
.c-btn__text:after {
  content: "";
  position: absolute;
  top: 42%;
  right: 20px;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 1px solid #65a9c5;
  border-right: 1px solid #65a9c5;
  transform: rotate(135deg);
  transition: 0.3s ease;
}

.c-btn:hover .c-btn__text:after {
  right: 25px;
}
.c-btn__text[target="_blank"]:after {
  font-family: "Font Awesome 6 Free";
  margin: 0 3px 5px;
  content: "\f35d";
  font-weight: 900;
  display: inline-block;
  font-size: 1.4rem;
  border-top: 0;
  border-right: 0;
  transform: rotate(0deg) translateY(-60%);
}
.c-btn:hover .c-btn__text[target="_blank"]:after {
  right: 30px;
}

/* お知らせ用ボタン */
#p-top .s-newslist .c-btn {
  position: relative;
}
#p-top .s-newslist .c-btn .c-btn__text {
  text-decoration: none;
  display: inline-block;
  padding: 18px 100px 18px 0px;
  font-size: 1.4rem;
  position: relative;
  transition: 0.3s ease;
  z-index: 2;
  color: #000;
  font-weight: bold;
}
#p-top .s-newslist .c-btn span::before,
#p-top .s-newslist .c-btn span::after {
  content: none;
}
#p-top .s-newslist .c-btn .c-btn__text:after {
  content: none;
  position: absolute;
  top: 43%;
  right: 20px;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 1px solid #65a9c5;
  border-right: 1px solid #65a9c5;
  transform: rotate(135deg);
  transition: 0.3s ease;
}
#p-top .s-newslist .c-btn .u-arrow-button {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: #65a9c5;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: inline-grid;
  margin-right: 0;
  margin-left: auto;
}
#p-top .s-newslist .c-btn .u-arrow-icon {
  color: #fff;
  font-size: 15px;
  text-align: center;
}
