@charset "UTF-8";
/*リセットcss */
body, div, dl, dt, dd, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td, ul {
  margin: 0;
  padding: 0;
}

* {
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
}

*:before, *:after {
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
}

/*リセットcss ここまで */

a.btn_4 {
    color: #fff;
    display: inline-block;
    width: 365px;
    height: 37px;
    position: relative;
    background: #242D43;
    transition: 0.3s;
	margin-top: 20px;
}

a.btn_4::before {
    content: "";
    position: absolute;
    background-color: #242D43;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: all 0.5s ease-out;
}

a.btn_4::after {
  content: "";
  position: absolute;
  background-color: #242D43;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  transition: all 0.5s ease-out;
}
a.btn_4 > span {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
a.btn_4 > span::before {
    content: "";
    position: absolute;
    background-color: #242D43;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    transition: all 0.5s ease-out;
}

a.btn_4 > span::after {
    content: "";
    position: absolute;
    background-color: #242D43;
    bottom: 0;
    right: 0;
    width: 2px;
    height: 0;
    transition: all 0.4s ease-out;
}

a.btn_4 > span > span {
    display: inline-block;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    margin: 0;
    right: 0;
}

a.btn_4:hover {
  color: #242D43;
  background: #fff;
}
a.btn_4:hover::before, a.btn_4:hover::after {
  width: 100%;
}
a.btn_4:hover > span::before, a.btn_4:hover > span::after {
  height: 100%;
}