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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/*TOPへ戻るボタン位置（reCAPTCHAと被るので）*/
.grecaptcha-badge {
    bottom: 70px !important;
}
/* 仮想通貨ランキング - Cocoonテーマ干渉防止 */
.cr-wrap, .crypto-ranking {
  max-width: 980px !important;
  margin: 0 auto !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  line-height: 1.8 !important;
}
.cr-wrap *, .crypto-ranking * {
  box-sizing: border-box !important;
}
.cr-wrap table, .crypto-ranking table {
  border-collapse: collapse !important;
  border: none !important;
  margin: 0 !important;
}
.cr-wrap table th,
.cr-wrap table td,
.crypto-ranking table th,
.crypto-ranking table td {
  border: none !important;
  border-bottom: 1px solid #eee !important;
  background: inherit !important;
  padding: 10px 8px !important;
}
.cr-wrap table thead tr,
.crypto-ranking table thead tr {
  background: #1a1a2e !important;
}
.cr-wrap table thead th,
.crypto-ranking table thead th {
  color: #fff !important;
  background: #1a1a2e !important;
}
.cr-wrap img, .crypto-ranking img {
  margin: 0 !important;
  box-shadow: none !important;
  display: inline !important;
}
.cr-wrap h1, .cr-wrap h2, .cr-wrap h3,
.crypto-ranking h1, .crypto-ranking h2, .crypto-ranking h3 {
  padding: 0 !important;
  margin-top: 0 !important;
  background: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}
.cr-wrap a, .crypto-ranking a {
  text-decoration: none !important;
}
/* Cocoonのアイキャッチ・SNSボタン非表示（固定ページ） */
.page .eye-catch, .page .sns-share, .page .sns-follow,
.page .author-info, .page .under-entry-content {
  display: none !important;
}
/* Cocoonのテーブル装飾リセット */
.scrollable-table { overflow-x: auto !important; }
.wp-block-table { overflow-x: visible !important; }
/* コイン画像の表示修正 */
.cr-coin-img, .crypto-ranking img[width="24"] {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  vertical-align: middle !important;
}
/* 統計カードのグリッド修正 */
.cr-wrap .cr-stats,
.crypto-ranking .cr-stats,
.cr-wrap [style*="grid-template-columns"],
.crypto-ranking [style*="grid-template-columns"] {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
}
/* ティッカーバー横並び修正 */
.cr-wrap .cr-ticker,
.crypto-ranking .cr-ticker,
.cr-wrap [style*="display: flex"],
.crypto-ranking [style*="display: flex"] {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}
/* 統計カード内テキスト中央寄せ */
.cr-wrap .cr-stat-card,
.crypto-ranking [style*="border-radius: 12px"][style*="text-align: center"] {
  text-align: center !important;
  padding: 16px !important;
}
/* スマホ時は2列 */
@media screen and (max-width: 640px) {
  .cr-wrap .cr-stats,
  .crypto-ranking .cr-stats,
  .cr-wrap [style*="grid-template-columns"],
  .crypto-ranking [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
/* ティッカーバー修正 - カード型 */
.cr-wrap .cr-ticker,
.crypto-ranking [style*="background: #1a1a2e"][style*="border-radius: 8px"] {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: #1a1a2e !important;
  margin-bottom: 16px !important;
}
.cr-wrap .cr-ticker-item,
.crypto-ranking [style*="background: #1a1a2e"] > div {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  padding: 16px !important;
  color: #1a1a2e !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
.cr-wrap .cr-ticker-up { color: #16c784 !important; }
.cr-wrap .cr-ticker-down { color: #ea3943 !important; }
/* スマホ時は縦3つ */
@media screen and (max-width: 640px) {
  .cr-wrap .cr-ticker,
  .crypto-ranking [style*="background: #1a1a2e"][style*="border-radius: 8px"] {
    grid-template-columns: 1fr !important;
  }
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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