@import 'https://fonts.googleapis.com/css?family=Comfortaa:300,400,700&subset=cyrillic,cyrillic-ext,latin-ext';

.animate_btn {color:#454545;background:transparent;border-width:2px;border-style: solid;border-color: #454545;position:relative;margin:1em;display:inline-block;padding:0.5em 1em;transition:all 0.3s ease-in-out;text-align:center;
font-weight:bold}
.animate_btn:before, .animate_btn:after {content:'';display:block;position:absolute;border-color:#454545;box-sizing:border-box;border-style:solid;width:1em;height:1em;transition:all 0.3s ease-in-out}
.animate_btn:before {top:-6px;left:-6px;border-width:2px 0 0 2px;z-index:5;}
.animate_btn:after {bottom:-6px;right:-6px;border-width:0 2px 2px 0;}
.animate_btn:hover:before, .animate_btn:hover:after {width:calc(100% + 12px);
  height:calc(100% + 12px);border-color:#fff}
.animate_btn:hover {color:#353535;background-color:#fff;border-color:#fff}
.panel {max-width:960px;text-align:center;position:relative;margin:auto;}

.sub1 .animate_btn {color:gray;border-color:gray}
.sub1 .animate_btn:before, .sub1 .animate_btn:after  {border-color:gray}
.sub1 .animate_btn:hover:before, .sub1 .animate_btn:hover:after {border-color:gray;}
.sub1 .animate_btn:hover {color:#fff;background-color:gray;border-color:gray;}
.sub1 .panel {max-width:960px;text-align:center;position:relative;margin:auto;}


.sub2 .animate_btn {color:rgb(100,100,100);border-color:rgb(100,100,100)}
.sub2 .animate_btn:before, .sub2 .animate_btn:after  {border-color:rgb(100,100,100)}
.sub2 .animate_btn:hover:before, .sub2 .animate_btn:hover:after {width:calc(100% + 12px);
  height:calc(100% + 12px);border-color:rgb(100,100,100);transform:rotateY(180deg)}
.sub2 .animate_btn:hover {color:rgb(100,100,100);background-color:transparent;border-color:rgb(100,100,100)}
.sub2 .panel {max-width:960px;text-align:center;position:relative;margin:auto;}

.sub3 .animate_btn {color:rgb(30,30,30);border-color:rgb(30,30,30)}
.sub3 .animate_btn:before, .sub3 .animate_btn:after  {border-color:rgb(30,30,30)}
.sub3 .animate_btn:hover:before, .sub3 .animate_btn:hover:after {width:calc(100% + 12px);
  height:calc(100% + 12px);border-color:rgb(30,30,30);transform:rotateY(180deg)}
.sub3 .animate_btn:hover {color:rgb(30,30,30);background-color:transparent;border-color:rgb(30,30,30)}
.sub3 .panel {max-width:960px;text-align:center;position:relative;margin:auto;}

.borderless .animate_btn {border-color:rgba(0,0,0,0);color:#999}
.borderless .animate_btn:hover {border-color:#353535;background-color:transparent;color:#353535}
.borderless .animate_btn:before, .borderless .animate_btn:after {border-color:transparent;}
.borderless .animate_btn:hover:before, .borderless .animate_btn:hover:after {width:calc(100% + 12px); height:calc(100% + 12px);border-color:#353535}

.bw .animate_btn {color:#fff;border-color:#fff;text-shadow:0 1px 1px rgba(0,0,0,0.1);
box-shadow:0 1px 3px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.1) inset
}
.bw .animate_btn:before, .bw .animate_btn:after  {border-color:#fff}
.bw .animate_btn:hover:before, .bw .animate_btn:hover:after {width:calc(100% + 12px);
  height:calc(100% + 12px);border-color:#353535;}
.bw .animate_btn:hover {color:#fff;background-color:#353535;border-color:#353535}
.blue .panel {max-width:960px;text-align:center;position:relative;margin:auto;}



.speech_balloon {
  position: relative;
  background: rgba(255, 255, 255, 1);
  border: 4px solid #777;
  box-sizing: border-box;
}  
.speech_balloon:after,
.speech_balloon:before {
  left: 50%;
  top: 100%;
  border: solid transparent;
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none; 
  transform: translateX(-50%);
}
.speech_balloon:after {
  border-color: rgba(255, 255, 255, 0);
  border-top-color: rgba(255, 255, 255, 1);
  border-width: 20px;
}
.speech_balloon:before {
  border-color: rgba(0, 0, 0, 0);
  border-top-color: #777;
  border-width: 26px;
}



.cubic-btn,
a.cubic-btn,
button.cubic-btn {
  /* font-size: 1.6rem; */
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}

a.cubic-btn-custom01 {
  margin-bottom: 0.5rem;
  padding: 0;
  border-radius: 0.75rem;
}

a.cubic-btn-custom01:before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 92.5%;
  content: "";
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  -webkit-transform: translate3d(0, 0.75rem, -1rem);
  transform: translate3d(0, 0.75rem, -1rem);
  border: 2px solid #000;
  border-radius: inherit;
  background: #ccc100;
  -webkit-box-shadow: 0 0.6rem 0 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 0.6rem 0 0 rgba(0, 0, 0, 0.2);
}

a.cubic-btn-custom01:after {
  font-family: "Font Awesome 5 Free";
  /* font-size: 2rem; */
  font-weight: normal;
  line-height: 1;
  position: absolute;
  top: calc(50% - 1rem);
  left: 1.5rem;
  margin: 0;
  padding: 0;
  /* content: "\f0e0"; */
}

.cubic-btn-custom01-front {
  position: relative;
  display: block;
  /* padding: 1.5rem 5rem 1.5rem 5rem; */

  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  border: 2px solid #000;
  border-radius: inherit;
  background: #fff100;
}

.fa-position-left {
  position: absolute;
  top: calc(50% - 0.5em);
  left: 1rem;
}

.fa-position-right {
  position: absolute;
  top: calc(50% - 0.5em);
  right: 1rem;
}

a.cubic-btn-custom01:hover {
  -webkit-transform: translate(0, 0.25rem);
  transform: translate(0, 0.25rem);
  background: #fff100;
}

a.cubic-btn-custom01:hover:before {
  -webkit-transform: translate3d(0, 0.5rem, -1rem);
  transform: translate3d(0, 0.5rem, -1rem);
  -webkit-box-shadow: 0 0.35rem 0 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 0.35rem 0 0 rgba(0, 0, 0, 0.2);
}

a.cubic-btn-custom01:hover:after {
  /* content: "\f2b6"; */
}

a.cubic-btn-custom01:active {
  -webkit-transform: translate(0rem, 0.75rem);
  transform: translate(0rem, 0.75rem);
}

a.cubic-btn-custom01:active:before {
  -webkit-transform: translate3d(0, 0, -1rem);
  transform: translate3d(0, 0, -1rem);
  -webkit-box-shadow: 0 0.35rem 0 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 0.35rem 0 0 rgba(0, 0, 0, 0.2);
}

a.cubic-btn-custom01:active:after {
  /* content: "\f2b6"; */
}
.clip-box {
  position: relative;
  padding: 15px 35px 15px 25px;
  background-color: #fff; /* ボックス背景色 */
  color: #555555; /* 文章色 */
  border: 1px solid #ccc; /* 枠線 */
  box-shadow: 1px 1px 1px #acacac; /* 影の色 */
}

.clip-box::before {
  position: absolute;
  content: '';
  top: -15px;
  right: 10px;
  height: 55px;
  width: 15px;
  border: 3px solid #555555; /*クリップ色 */
  background-color: none;
  border-radius: 12px;
  box-shadow: 1px 1px 2px #999;
  transform: rotate(10deg);
  z-index: 1;
}
.clip-box::after {
  position: absolute;
  content: '';
  top: 0px;
  width: 10px; 
  right: 20px;
  border: solid 5px #fff; /*背景色と同じ色にする*/
  z-index: 2;
}
.clip-box p {
  margin-bottom: 0;
}
