@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon
Version:    1.1.2
*/

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

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

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

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

/* まとめ記事・個別記事：書籍紹介カード */
.book-promo-compact {
  margin: 20px 0 32px;
  padding: 18px;
  background: #fffaf0;
  border: 1px solid #7f9f59;
  border-radius: 14px;
  box-sizing: border-box;
}

.book-promo-compact-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.book-promo-compact-cover {
  flex: 0 0 145px;
  width: 145px;
  text-align: center;
}

.book-promo-compact-cover img {
  display: block;
  width: 145px;
  max-width: 145px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.book-promo-compact-content {
  flex: 1;
  min-width: 0;
}

.book-promo-compact-content > p:first-child {
  margin-top: 0;
}

.book-promo-compact-note {
  padding: 8px 10px;
  background: #fff;
  border-left: 3px solid #e89a3d;
  font-size: 0.88em;
}

.book-promo-compact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.book-promo-compact-links > a {
  display: inline-flex;
  flex: 1 1 190px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  box-sizing: border-box;
  border-radius: 7px;
  color: #fff;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.book-promo-compact-links > a:first-of-type {
  background: #6f914c;
}

.book-promo-compact-links > a:last-of-type {
  background: #df8734;
}

.book-promo-compact-links > a:hover {
  color: #fff;
  opacity: 0.9;
}

@media screen and (max-width: 768px) {
  .book-promo-compact {
    padding: 16px 14px;
  }

  .book-promo-compact-inner {
    flex-direction: column;
    gap: 16px;
  }

  .book-promo-compact-cover {
    width: 150px;
    flex-basis: auto;
  }

  .book-promo-compact-cover img {
    width: 150px;
    max-width: 150px;
  }

  .book-promo-compact-links {
    flex-direction: column;
  }

  .book-promo-compact-links > a {
    width: 100%;
    flex-basis: auto;
  }
}

/* 書籍紹介：Amazonリンクのボタン修正 */
.entry-content .book-promo-compact-links,
.entry-content .book-promo-compact-links > p {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 16px 0 0 !important;
}

.entry-content .book-promo-compact-links a {
  display: inline-flex !important;
  flex: 1 1 190px !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  border-radius: 7px !important;
  color: #fff !important;
  font-weight: bold !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.entry-content .book-promo-compact-links a:first-of-type {
  background-color: #6f914c !important;
}

.entry-content .book-promo-compact-links a:last-of-type {
  background-color: #df8734 !important;
}

.entry-content .book-promo-compact-links a:hover {
  color: #fff !important;
  opacity: 0.9 !important;
}

@media screen and (max-width: 768px) {
  .entry-content .book-promo-compact-links,
  .entry-content .book-promo-compact-links > p {
    flex-direction: column !important;
  }

  .entry-content .book-promo-compact-links a {
    width: 100% !important;
    flex-basis: auto !important;
  }
}