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

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

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

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

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


/* ===== P1-1: アフィリエイトCTAボタン ===== */
.affiliate-btn {
  display: block;
  text-align: center;
  padding: 16px 28px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff !important;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.05em;
  text-decoration: none !important;
  margin: 16px auto;
  max-width: 380px;
  box-shadow: 0 4px 14px rgba(255,107,53,0.35);
  transition: transform .2s, box-shadow .2s;
}
.affiliate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.5);
  color: #fff !important;
}
.affiliate-btn-amazon {
  background: linear-gradient(135deg, #ff9900, #e47911);
  box-shadow: 0 4px 14px rgba(255,153,0,0.35);
}
.affiliate-btn-rakuten {
  background: linear-gradient(135deg, #bf0000, #e60012);
  box-shadow: 0 4px 14px rgba(191,0,0,0.35);
}

/* ===== P1-1: 記事末尾CTAボックス ===== */
.post-cta-box {
  border: 2px solid #ff6b35;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  background: linear-gradient(135deg, #fff9f6, #fff);
  text-align: center;
}
.post-cta-box .cta-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 8px;
}
.post-cta-box .cta-desc {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 16px;
}

/* ===== P1-1: 比較テーブル ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95em;
}
.comparison-table th {
  background: #2c3e50;
  color: #fff;
  padding: 12px;
  text-align: center;
}
.comparison-table td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  text-align: center;
}
.comparison-table tr:nth-child(even) td {
  background: #f8f9fa;
}
.comparison-table .rank-1 td {
  background: #fff9e6;
  font-weight: bold;
}
.comparison-table .rank-badge {
  display: inline-block;
  background: #ff6b35;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.85em;
  font-weight: bold;
}

/* ===== Month2: ヒーローセクション ===== */
.lia-hero {
  background: linear-gradient(135deg, #2c3e50 0%, #4a90a4 50%, #ff6b35 100%);
  color: #fff;
  padding: 56px 24px 48px;
  margin: 0 0 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lia-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.lia-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.lia-hero-title {
  font-size: 1.9em;
  line-height: 1.4;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}
.lia-hero-desc {
  font-size: 1.02em;
  line-height: 1.7;
  margin: 0 0 24px;
  opacity: 0.95;
}
.lia-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.lia-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  font-size: 0.88em;
  backdrop-filter: blur(4px);
}
.sp-only { display: none; }
@media (max-width: 768px) {
  .lia-hero { padding: 36px 16px 32px; }
  .lia-hero-title { font-size: 1.4em; }
  .lia-hero-desc { font-size: 0.95em; }
  .sp-only { display: inline; }
}

/* ===== Month2: 記事カードのホバー強化 ===== */
.entry-card,
.related-entry-card,
.widget-entry-cards .a-wrap {
  transition: transform .2s ease, box-shadow .2s ease;
}
.entry-card:hover,
.related-entry-card:hover,
.widget-entry-cards .a-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}


/* ===== Month2: カテゴリーカード ===== */
.lia-cat-cards {
  background: #fff;
  padding: 32px 16px 40px;
  margin: 0 0 24px;
  border-bottom: 1px solid #ececec;
}
.lia-cat-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.lia-cat-heading {
  text-align: center;
  font-size: 1.4em;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 24px;
  position: relative;
  padding-bottom: 12px;
}
.lia-cat-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35, #f7931e);
  margin: 8px auto 0;
  border-radius: 3px;
}
.lia-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lia-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 18px 20px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
  text-decoration: none !important;
  color: #2c3e50 !important;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lia-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(255,107,53,0.12);
  border-color: #ff6b35;
  background: #fff;
  color: #2c3e50 !important;
}
.lia-cat-icon {
  font-size: 2.2em;
  line-height: 1;
  margin-bottom: 8px;
}
.lia-cat-name {
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 6px;
}
.lia-cat-desc {
  font-size: 0.82em;
  color: #666;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .lia-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lia-cat-card { padding: 16px 10px 14px; }
  .lia-cat-icon { font-size: 1.8em; }
  .lia-cat-name { font-size: 0.95em; }
  .lia-cat-desc { font-size: 0.75em; }
}


/* ===== Month2: サイドバー著者プロフィールウィジェット ===== */
.lia-author-widget {
  margin: 0 0 24px;
}
.lia-author-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 22px 18px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.lia-author-avatar {
  margin-bottom: 12px;
}
.lia-avatar-img,
.lia-author-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #ff6b35;
  padding: 2px;
  background: #fff;
}
.lia-author-name {
  font-size: 1.05em;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 8px;
  padding: 0;
  border: none;
  background: none;
}
.lia-author-bio {
  font-size: 0.85em;
  line-height: 1.65;
  color: #555;
  margin: 0 0 14px;
  text-align: left;
}
.lia-author-cred {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
  border-top: 1px dashed #eee;
  padding-top: 12px;
}
.lia-author-cred li {
  font-size: 0.78em;
  color: #444;
  padding: 3px 0;
  line-height: 1.5;
}
.lia-author-link {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff !important;
  border-radius: 24px;
  text-decoration: none !important;
  font-size: 0.88em;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.lia-author-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.35);
  color: #fff !important;
}
