@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){
  /*必要ならばここにコードを書く*/
}
/* =========================================================
   これよさブログ オリジナルパーツ
   ========================================================= */


/* ---------------------------------------------------------
   PR表記
   --------------------------------------------------------- */

.koreyosa-pr {
  margin: 0 0 24px;
  padding: 10px 14px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
}


/* ---------------------------------------------------------
   これよさ編集部の判断
   --------------------------------------------------------- */

.koreyosa-decision {
  position: relative;
  margin: 32px 0;
  padding: 24px;
  background: #fffdf7;
  border: 1px solid #e7d9ad;
  border-left: 6px solid #d7a928;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.koreyosa-decision::before {
  content: "これよさ編集部の判断";
  display: block;
  margin-bottom: 14px;
  color: #555;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.koreyosa-decision-result {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 18px;
  background: #fff0b3;
  border: 1px solid #e1c45a;
  border-radius: 999px;
  color: #4d3b00;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.koreyosa-decision p {
  line-height: 1.9;
}

.koreyosa-decision p:last-child {
  margin-bottom: 0;
}


/* ---------------------------------------------------------
   楽天市場ボタン
   --------------------------------------------------------- */

a.koreyosa-product-button,
.koreyosa-product-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 12px 0;
  padding: 12px 26px;
  box-sizing: border-box;

  background: #bf0000;
  border: 2px solid #bf0000;
  border-radius: 9px;

  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;

  box-shadow: 0 4px 10px rgba(191, 0, 0, 0.18);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

a.koreyosa-product-button:hover,
.koreyosa-product-button a:hover {
  background: #a00000;
  border-color: #a00000;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(191, 0, 0, 0.25);
}


/* ---------------------------------------------------------
   スマートフォン表示
   --------------------------------------------------------- */

@media screen and (max-width: 600px) {

  .koreyosa-pr {
    margin-bottom: 20px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .koreyosa-decision {
    margin: 26px 0;
    padding: 18px 16px;
  }

  .koreyosa-decision-result {
    padding: 7px 14px;
    font-size: 18px;
  }

  a.koreyosa-product-button,
  .koreyosa-product-button a {
    display: flex;
    width: 100%;
    min-height: 56px;
    padding: 12px 14px;
  }

}

/* =========================================================
   これよさブログ：価格チェック
   ========================================================= */

.koreyosa-price-facts {
  margin: 30px 0;
  padding: 22px 24px;
  background: #f8fbff;
  border: 1px solid #dce8f3;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.koreyosa-price-facts h2 {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 20px;
  font-weight: 700;
}

.koreyosa-price-facts h2::before {
  content: "📊 ";
}

.koreyosa-price-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
}

.koreyosa-price-table th,
.koreyosa-price-table td {
  padding: 11px 14px;
  border: 1px solid #e3e8ed;
  line-height: 1.6;
}

.koreyosa-price-table th {
  width: 48%;
  background: #f3f6f8;
  font-weight: 600;
  text-align: left;
}

.koreyosa-price-table td {
  font-weight: 600;
  text-align: right;
}

.koreyosa-price-note {
  margin: 13px 0 0;
  color: #666;
  font-size: 12px;
  line-height: 1.7;
}


/* =========================================================
   スマートフォン
   ========================================================= */

@media screen and (max-width: 600px) {

  .koreyosa-price-facts {
    margin: 24px 0;
    padding: 16px 14px;
  }

  .koreyosa-price-facts h2 {
    margin-bottom: 14px;
    font-size: 18px;
  }

  .koreyosa-price-table th,
  .koreyosa-price-table td {
    padding: 9px 10px;
    font-size: 13px;
  }

  .koreyosa-price-table th {
    width: 54%;
  }

  .koreyosa-price-note {
    font-size: 11px;
  }

}

/* =========================================================
   これよさブログ：トップページ専用
   Cocoonの記事用パーツを非表示
   ========================================================= */

/* ページタイトル「ホーム」 */
.home.page .entry-title {
  display: none;
}

/* 上下SNSシェア */
.home.page .sns-share {
  display: none;
}

/* SNSフォロー */
.home.page .sns-follow {
  display: none;
}

/* 投稿日・更新日 */
.home.page .post-date,
.home.page .post-update,
.home.page .date-tags {
  display: none;
}

/* 投稿者情報 */
.home.page .author-info {
  display: none;
}

/* =========================================================
   これよさブログ：トップページデザイン
   ========================================================= */


/* ---------- HERO ---------- */

.koreyosa-home-hero {
  margin: 0 0 48px;
  padding: 42px 38px;
  background: #f8f9fa;
  border: 1px solid #eceff1;
  border-radius: 14px;
}

.koreyosa-home-label {
  margin: 0 0 10px;
  color: #777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.koreyosa-home-hero h1 {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 34px;
  line-height: 1.4;
  font-weight: 700;
}

.koreyosa-home-lead {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 2;
}

.koreyosa-home-hero > p:not(.koreyosa-home-label) {
  line-height: 2;
}


/* ---------- 4段階判断 ---------- */

.koreyosa-home-decisions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.koreyosa-home-decisions span {
  display: inline-block;
  padding: 7px 13px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}


/* ---------- SECTION ---------- */

.koreyosa-home-section {
  margin: 46px 0;
}

.koreyosa-home-heading {
  margin-bottom: 22px;
}

.koreyosa-home-heading > span {
  display: block;
  margin-bottom: 5px;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.koreyosa-home-heading h2 {
  margin: 0 0 8px;
  padding: 0 0 10px;
  background: none;
  border: 0;
  border-bottom: 2px solid #222;
  font-size: 24px;
  font-weight: 700;
}

.koreyosa-home-heading p {
  margin: 0;
  color: #666;
  font-size: 14px;
}


/* ---------- CATEGORY ---------- */

.koreyosa-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.koreyosa-category-grid a {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e4e6e8;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.koreyosa-category-grid a:hover {
  transform: translateY(-2px);
  border-color: #bbb;
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.koreyosa-category-grid strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.koreyosa-category-grid span {
  color: #777;
  font-size: 12px;
}


/* ---------- 最新の投稿 ---------- */

.home .wp-block-latest-posts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home .wp-block-latest-posts li {
  margin: 0 0 12px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e4e6e8;
  border-radius: 9px;
}

.home .wp-block-latest-posts a {
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
}

.home .wp-block-latest-posts a:hover {
  text-decoration: underline;
}


/* ---------- MOBILE ---------- */

@media screen and (max-width: 600px) {

  .koreyosa-home-hero {
    margin-bottom: 34px;
    padding: 26px 20px;
  }

  .koreyosa-home-hero h1 {
    font-size: 27px;
  }

  .koreyosa-home-lead {
    font-size: 15px;
  }

  .koreyosa-home-section {
    margin: 36px 0;
  }

  .koreyosa-home-heading h2 {
    font-size: 21px;
  }

  .koreyosa-category-grid {
    grid-template-columns: 1fr;
  }

  .koreyosa-category-grid a {
    padding: 17px 18px;
  }

}

/* トップページでは自動目次を表示しない */
.home.page .toc,
.home.page #toc {
  display: none !important;
}

/* =========================================================
   これよさ：4段階判断カード
   ========================================================= */

.koreyosa-home-judgment {
  margin-top: 26px;
}

.koreyosa-home-judgment-title {
  margin: 0 0 14px !important;
  font-size: 14px;
  font-weight: 600;
}

.koreyosa-home-decisions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 0;
}

.koreyosa-judge-card {
  padding: 15px 16px;
  background: #fff;
  border: 1px solid #e2e5e8;
  border-radius: 8px;
}

.koreyosa-judge-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.koreyosa-judge-card span {
  display: block;
  color: #777;
  font-size: 12px;
  line-height: 1.6;
}

@media screen and (max-width: 600px) {

  .koreyosa-home-decisions {
    grid-template-columns: 1fr;
  }

  .koreyosa-judge-card {
    padding: 13px 14px;
  }

}

/* 4段階判断カード：旧タグ装飾を打ち消す */
.koreyosa-home-decisions .koreyosa-judge-card span {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #777;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

/* =========================================================
   これよさブログ：楽天商品画像
   ========================================================= */

.koreyosa-product-images {
  margin: 26px 0 30px;
}

.koreyosa-product-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}

.koreyosa-product-image-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e3e6e8;
  border-radius: 10px;
}

.koreyosa-product-image-item a {
  display: block;
  line-height: 0;
}

.koreyosa-product-image-item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  margin: 0 auto;
  object-fit: contain;
}

.koreyosa-product-image-note {
  margin: 8px 0 0;
  color: #888;
  font-size: 11px;
  text-align: right;
}


/* スマートフォン */

@media screen and (max-width: 600px) {

  .koreyosa-product-image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .koreyosa-product-image-item {
    min-height: 130px;
    padding: 10px;
  }

  .koreyosa-product-image-item:nth-child(3) {
    display: none;
  }

}

/* =========================================================
   これよさ：記事下部 最終調整
   ========================================================= */

/* 判断ボックス内の重複H2を非表示 */
.koreyosa-decision > h2 {
  display: none !important;
}


/* 楽天ボタン */
.koreyosa-product-button {
  display: block !important;
  width: 100% !important;
  margin: 30px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.koreyosa-product-button::before,
.koreyosa-product-button::after,
.koreyosa-product-button a::before,
.koreyosa-product-button a::after {
  display: none !important;
  content: none !important;
}

.koreyosa-product-button a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 15px 20px !important;

  background: #bf0000 !important;
  border: 0 !important;
  border-radius: 8px !important;

  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  text-decoration: none !important;

  box-shadow: none !important;
}

.koreyosa-product-button a:hover {
  opacity: 0.88;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* =========================================================
   これよさ：楽天商品画像 v3.1
   主画像1枚表示
   ========================================================= */

.koreyosa-product-images-single {
  margin: 28px 0 32px;
}

.koreyosa-product-image-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e3e6e8;
  border-radius: 10px;
}

.koreyosa-product-image-main a {
  display: block;
  line-height: 0;
}

.koreyosa-product-image-main img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.koreyosa-product-images-single .koreyosa-product-image-note {
  margin: 8px 0 0;
  color: #888;
  font-size: 11px;
  text-align: center;
}

@media screen and (max-width: 600px) {

  .koreyosa-product-image-main {
    min-height: 150px;
    padding: 18px;
  }

}