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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* 記事内CTAボタン */
.btn-cta, .wp-block-button__link {
  background-color: #ff6f61;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  margin: 20px 0;
  transition: background-color 0.3s;
}
.btn-cta:hover {
  background-color: #e55a4f;
}

/* 表ブロックのスタイル */
.wp-block-table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}
.wp-block-table th, .wp-block-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}
.wp-block-table th {
  background-color: #f9f9f9;
}

/* 画像＋段落の間隔 */
.wp-block-image {
  margin-bottom: 20px;
}

/* 見出しH2スタイル */
h2 {
  border-left: 4px solid #ff6f61;
  padding-left: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
}

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
.rank-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.rank-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.rank-num {
  display: inline-block;
  background: #cfa972;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.rank-card h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.rank-card p {
  font-size: 14px;
  margin-bottom: 12px;
}

.rank-card .btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #cfa972;
  border-radius: 4px;
  text-decoration: none;
}

.rank-card .btn:hover {
  opacity: 0.8;
}