@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.my-btn {
  text-align: center;
}
.my-btn a {
  display: inline-block;
  width: 50%;
  margin: 20px auto;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  color: #fff!important;
  text-decoration: none;
  font-size: 15px;
  line-height: 27px;
  font-weight: bold;
  background: #17CA94;
  border-bottom: 4px solid #00bc7f;
  position: relative;
  overflow: hidden;
}
/* ボタンを凹ませる */
.my-btn a:active {
  transform: translateY(4px); /*下に動く*/
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2); /*影を小さく*/
  border-bottom: none;
}
/* ボタンをキラッとさせる */
.my-btn a:before {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background-image: linear-gradient(130deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 80%, rgba(255, 255, 255, 100) 81%, rgba(255, 255, 255, 0) 100%);
  animation: shine 3s infinite; /* inifiniteによりずっと続ける */
}
@keyframes shine {
  33% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
/* ボタンをドキドキさせる */
.dokidoki {
  animation: dokidoki 1.5s infinite;
}
@keyframes dokidoki {
  0% {
    transform: scale(1.05)
  }
  5% {
    transform: scale(1)
  }
  95% {
    transform: scale(1)
  }
  100% {
    -webkit-transform: scale(1.05)
  }
}
/* ボタンをプルプルさせる */
.purupuru {
  animation: yureru-s 2s infinite;
}
@keyframes yureru-s {
  0% {
    transform: translate(2px, 0px);
  }
  5% {
    transform: translate(-2px, 0px);
  }
  10% {
    transform: translate(2px, 0px);
  }
  15% {
    transform: translate(-2px, 0px);
  }
  20% {
    transform: translate(2px, 0px);
  }
  25% {
    transform: translate(-2px, 0px);
  }
  30% {
    transform: translate(0px, 0px);
  }
}
/* テキストの後ろに矢印 */
.my-btn a:after {
  content: '»';
  display: inline-block;
  color: #fff;
  padding-left: 10px;
  font-size: 20px;
}
/* 反転ボタンの矢印の色をテキストと同じに */
.purupuru a:after {
color: inherit;
}
/* 767px(iPad)以下でボタンの幅を90%に */
@media (max-width: 767px) {
  .my-btn a {
    width: 90%;
  }
}
/* 蛍光マーカー */
.color-marker {
  background: linear-gradient(transparent 50%, yellow 50%);
  font-weight: bold;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
.widget_toc{
	overflow-y:scroll;/*縦方向スクロールを設置*/
	max-height: calc(100vh - 150px); /* 目次の高さ上限*/
}
