@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.2
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

.item-box {
  padding: 10px;
  border:  1px solid #ccc;
  border-radius: 5px;
  box-shadow: 1px 1px 5px #ccc;
}
.item-box:after {
    content: '';
    display: block;
    clear: both;
}

.item-box img {
  max-width: 100%;
}

.item-box > div {
  float: left;
  width: 50%;
}

.item-box-left {
  padding-left: 0;
}

.item-box-right {
  position: relative;
}

.item-box-right h4 {
    margin: 0;
    font-size: 18px;
    line-height: 20px;
    padding: 10px;
    background: #eee;
    border-radius: 5px;
}

.item-box-right h4 a {
  letter-spacing: 1px;
  font-size:  20px;
  font-weight: bold;
  color:  #666;
  margin-top: 0;
  padding-top: 0;
}

.item-box-right p {
  font-size: 14px;
  margin: 0.35em 0px;
}

.item-box-right .item-btn {
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    padding: 10px;
    color: #fff;
    background-color:#4CAF50;
    border-radius: 5px;
    box-shadow: 2px 2px 0 #2E7D32, 0px 3px rgba(0,0,0,0.5);
}

.item-box-right .item-btn a {
  text-decoration: none;
  color:  #fff;
  display: block;
}

.item-box-right .item-btn-pink {
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    padding: 10px;
    color: #737980;
    background-color:#ffe6e6;
    border-radius: 5px;
    box-shadow: 2px 2px 0 #ccb8b8, 0px 3px rgba(0,0,0,0.5);
}

.item-box-right .item-btn-pink a {
  text-decoration: none;
  color: #737980;
  display: block;
}
.item-box-right .item-btn-yellow {
    font-size: 18px;
    line-height: 20px;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    padding: 10px;
    color: #4C4212;
    background-color:#ffdf3c;
    border-radius: 5px;
    box-shadow: 2px 2px 0 #8b4513, 0px 3px rgba(0,0,0,0.5);
}

.item-box-right .item-btn-yellow a {
  text-decoration: none;
  color: #4C4212;
  display: block;
}

.item-box-right .item-btn-amazon {
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    padding: 3px;
    color: #ffffff;
    background-color:#f79256;
    border-radius: 5px;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 255, 0.2);
    margin: 2px;
}

.item-box-right .item-btn-amazon a {
  text-decoration: none;
  color:  #ffffff;
  display: block;
}

.item-box-right .item-btn-rakuten {
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    padding: 3px;
    color: #ffffff;
    background-color:#f76956;
    border-radius: 5px;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 255, 0.2);
    margin: 2px;
}

.item-box-right .item-btn-rakuten a {
  text-decoration: none;
  color:  #ffffff;
  display: block;
}

.item-box-right .item-btn-ali {
    margin: 0;
    line-height: 20px;
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    padding: 3px;
    color: #ffffff;
    background-color:#f76956;
    border-radius: 5px;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 255, 0.2);
    margin: 2px;
}

.item-box-right .item-btn-ali a {
  text-decoration: none;
  color:  #ffffff;
  display: block;
}

.item-box-right .item-btn-yahoo {
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    padding: 3px;
    color: #ffffff;
    background-color:#66a7ff;
    border-radius: 5px;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 255, 0.2);
    margin: 2px;
}

.item-box-right .item-btn-yahoo a {
  text-decoration: none;
  color:  #ffffff;
  display: block;
}

.item-box-right .item-btn-aliexshop {
    margin: 0;
    line-height: 20px;
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    text-align: left;
    padding: 3px;
    color: #666;
    background-color:#ccc;
    border-radius: 5px;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 255, 0.2);
    margin: 2px;
}

.item-box-right .item-btn-aliexshop a {
  text-decoration: none;
  color:  #333;
  display: block;
}

.item-box-right .item-btn-green {
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    padding: 3px;
    color: #ffffff;
    background-color:#4CAF50;
    border-radius: 5px;
}

.item-box-right .item-btn-green a {
  text-decoration: none;
  color: #ffffff;
  display: block;
}

.item-box-right .item-label {
  background-color:  #FBC02D;
  display: inline-block;
  border-radius: 50%;
  height: 80px;
  width: 80px;
  line-height: 80px;
  text-align: center;
  color: #fff;
  position: absolute;
  top: -50px;
  right: -50px;
  transform: rotate(10deg);
  box-shadow: 1px 1px 5px #ccc; 
}


@keyframes shiny {
    0% {
        transform: scale(0) rotate(25deg);
        opacity: 0;
    }

    50% {
        transform: scale(1) rotate(25deg);
        opacity: 1;
    }

    100% {
        transform: scale(50) rotate(25deg);
        opacity: 0;
    }
}

/* 光るボタン */
.shiny-btn {
    display: block;
    position: relative;
    width: 80%;
    padding: 10px 0;
    margin: 30px auto;
    line-height: 20px;
    background-color: #ff8000;
    box-shadow: 0 3px 0 0 rgba(230, 115, 0, 1);
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
}

.shiny-btn::after {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 50px;
    height: 50px;
    background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 1) 100%, rgba(255, 255, 255, 0) 0%);
    animation-name: shiny;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@media screen and (max-width: 720px) {
  .item-box > div {
    width: 100%;
  }
  .item-box-right {
    margin-top: 40px;
  }

  .item-box-right .item-label {
    right: -20px;
  }
}

/* テーブル（表）の設定 */
.wp-block-table tbody tr td {
    border: 0px;
}

/* 一番左の列の固定 */ 
.wp-block-table tbody tr:first-of-type {
    background-color: #FFF4E0; /* 見出しの背景色を指定 */ 
    position: -webkit-sticky; 
    position: sticky;
    z-index: 1;
}

.wp-block-table tbody tr a:first-of-type {
    color: #ff0051;
    text-decoration: underline;
}
.wp-block-table tbody tr a:first-of-type:hover {
    color: #665c5f;
    text-decoration: underline;
}	
.wp-block-table tbody tr a:first-of-type:active {
    color: #ccb8be;
    font-weight: bold;
    text-decoration: none;
}

/* 一番上の行の固定 */
.wp-block-table tbody tr td:first-of-type { 
    background-color: #FFF4E0; /* 見出しの背景色を指定 */ 
    position: -webkit-sticky; 
    position: sticky; 
    left: 0; 
    z-index: 2;
}
 
/* テーブルの要素を中央揃えに */
.wp-block-table td { 
    vertical-align: middle; 
    text-align: center; 
    padding: 10px;  /* テーブルの縦の要素の距離感をお好みで */ 
}


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

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

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


