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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ========================================
   ピクマ カスタムCSS
   ======================================== */

/* --- CTAボタン（Amazonリンク） --- */
.entry-content > p > a[href*="amazon.co.jp"],
.entry-content > a[href*="amazon.co.jp"] {
  display: inline-block;
  background: linear-gradient(135deg, #ff9900 0%, #e88600 100%);
  color: #fff !important;
  font-weight: bold;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(255, 153, 0, 0.3);
  transition: all 0.3s ease;
  margin: 8px 0;
}
.entry-content > p > a[href*="amazon.co.jp"]:hover,
.entry-content > a[href*="amazon.co.jp"]:hover {
  background: linear-gradient(135deg, #e88600 0%, #cc7400 100%);
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4);
  transform: translateY(-2px);
}

/* --- 見出しデザイン --- */
.article h2 {
  position: relative;
  padding: 16px 20px;
  background: #f8f9fa;
  border-left: 5px solid #333;
  border-bottom: none;
  font-size: 1.4em;
  margin-top: 2.5em;
}
.article h3 {
  padding: 10px 0;
  border-bottom: 2px solid #ddd;
  font-size: 1.2em;
  margin-top: 2em;
}
.article h4 {
  padding-left: 12px;
  border-left: 3px solid #999;
  font-size: 1.05em;
}

/* --- テーブルデザイン --- */
.entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  font-size: 14px;
}
.entry-content table th {
  background: #333;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: bold;
}
.entry-content table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
}
.entry-content table tr:nth-child(even) td {
  background: #f9f9f9;
}
.entry-content table tr:hover td {
  background: #f0f0f0;
}

/* --- ボックス装飾（注意・ポイント） --- */
.entry-content blockquote {
  background: #fafafa;
  border-left: 4px solid #666;
  padding: 16px 20px;
  margin: 1.5em 0;
  font-style: normal;
  color: #555;
}

/* --- カード型記事一覧の改善 --- */
.entry-card-wrap {
  transition: all 0.2s ease;
}
.entry-card-wrap:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* --- サイドバープロフィール --- */
.author-box {
  text-align: center;
}
.author-box .author-name {
  font-size: 16px;
  font-weight: bold;
}

/* --- SNSシェアボタンをモノトーンに --- */
.ss-top .sns-share-buttons a,
.ss-bottom .sns-share-buttons a {
  background: #555 !important;
  color: #fff !important;
  border: none !important;
}
.ss-top .sns-share-buttons a:hover,
.ss-bottom .sns-share-buttons a:hover {
  background: #333 !important;
  opacity: 0.9;
}

/* --- 目次デザイン --- */
.toc {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
}
.toc-title {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

/* --- フッター --- */
.footer {
  background: #222;
}

/* --- NO IMAGE プレースホルダー改善 --- */
.no-image .no-image-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

/* --- grayish MVエリアの高さ調整 --- */
.skin-grayish.front-top-page .container .header-container .header {
  height: 40vh !important;
  min-height: 280px !important;
}
.skin-grayish.front-top-page .header .header-in {
  height: 40vh !important;
}
.skin-grayish.front-top-page .container .header-container .header .grayish_topmv_whovlay,
.skin-grayish.front-top-page .container .header-container .header .grayish_topmv_dot {
  height: 40vh !important;
}

/* --- Amazon商品カード --- */
.amazon-card {
  display: flex;
  align-items: stretch;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5em 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}
.amazon-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.amazon-card__image {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fafafa;
}
.amazon-card__image img {
  max-width: 140px;
  max-height: 160px;
  object-fit: contain;
}
.amazon-card__image a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.amazon-card__info {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.amazon-card__title a {
  color: #333 !important;
  font-weight: bold;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.amazon-card__title a:hover {
  color: #0066c0 !important;
}
.amazon-card__price {
  color: #b12704;
  font-weight: bold;
  font-size: 18px;
}
.amazon-card__rating {
  font-size: 13px;
  color: #666;
}
.amazon-card__rating .stars {
  color: #ffa41c;
}
.amazon-card__button a {
  display: inline-block;
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  color: #111 !important;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 20px;
  border: 1px solid #a88734;
  border-radius: 4px;
  text-decoration: none !important;
  text-align: center;
  box-shadow: none !important;
  transition: background 0.2s ease;
  margin: 0;
}
.amazon-card__button a:hover {
  background: linear-gradient(to bottom, #f5d78e, #eeb933);
  transform: none;
}
/* カード内リンクにCTAボタンスタイルを適用しない */
.amazon-card a[href*="amazon.co.jp"] {
  display: inline-block;
  background: none;
  color: inherit !important;
  font-weight: inherit;
  font-size: inherit;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.amazon-card .amazon-card__button a[href*="amazon.co.jp"] {
  display: inline-block;
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  color: #111 !important;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 20px;
  border: 1px solid #a88734;
  border-radius: 4px;
}

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

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

/* --- モバイル調整 --- */
@media screen and (max-width: 768px) {
  /* --- Amazon商品カード モバイル --- */
  .amazon-card {
    flex-direction: column;
  }
  .amazon-card__image {
    flex: 0 0 auto;
    padding: 16px;
  }
  .amazon-card__image img {
    max-width: 180px;
    max-height: 180px;
  }
  .amazon-card__info {
    text-align: center;
    padding: 12px 16px 16px;
  }
  .amazon-card__button a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
  }
  .entry-content > p > a[href*="amazon.co.jp"],
  .entry-content > a[href*="amazon.co.jp"] {
    display: block;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
  }
  .article h2 {
    font-size: 1.2em;
    padding: 12px 14px;
  }
}

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