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

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

/* トップページだけ、Cocoonの .wrap 幅そのものにキービジュアルを表示する。 */
body.home #header-container-in #header {
  min-height: 0;
}

body.home #header-container-in #header #header-in {
  aspect-ratio: 1200 / 630;
  min-height: 0;
  background: url('https://affiliate.1623.net/wp-content/uploads/2026/09/screenshot.png') center / 100% 100% no-repeat;
}

/* トップページと記事ページの固定ヘッダーでは、タイトル部分を消す。 */
body.home #header-container.fixed-header #header,
body.single-post #header-container.fixed-header #header {
  display: none;
}

/* 空いた横幅をメニューに使う。 */
body.home #header-container.fixed-header #navi,
body.single-post #header-container.fixed-header #navi {
  width: 100%;
}

body.home #header-container-in #header .tagline,
body.home #header-container-in #header .logo-header {
  visibility: hidden;
}

/* 記事先頭のPochippカードだけ、商品画像を大きく見せる。 */
.single-post .entry-content > .pochipp-box:first-child {
  display: block !important;
}

.single-post .entry-content > .pochipp-box:first-child .pochipp-box__image {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto 24px !important;
  text-align: center;
}

.single-post .entry-content > .pochipp-box:first-child .pochipp-box__image img {
  display: inline-block;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 420px) !important;
  max-height: none !important;
  object-fit: contain;
}

.single-post .entry-content > .pochipp-box:first-child .pochipp-box__body {
  width: 100% !important;
  max-width: none !important;
}

.single-post .entry-content > .pochipp-box:first-child .pochipp-box__btns {
  display: flex !important;
  justify-content: center !important;
}

.single-post .entry-content > .pochipp-box:first-child .pochipp-box__btnwrap {
  flex: 0 1 520px !important;
  width: min(100%, 520px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* トップ・カテゴリー・関連記事：記事情報を主役、Pochippを別導線として右側に配置。 */
.kurashi-product-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  background: #fff;
}

.kurashi-product-entry.no-product-card {
  grid-template-columns: minmax(0, 1fr);
}

.kurashi-entry-copy {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  color: inherit;
  text-decoration: none !important;
}

.kurashi-entry-copy:hover .entry-card-title,
.kurashi-entry-copy:hover .related-entry-card-title {
  text-decoration: underline;
}

.kurashi-entry-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: #777;
}

.kurashi-entry-categories .entry-category,
.kurashi-entry-categories .cat-label {
  position: static !important;
  display: inline-block;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.6;
}

.kurashi-product-entry .entry-card-title,
.kurashi-product-entry .related-entry-card-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.55;
}

.kurashi-product-entry .entry-card-snippet,
.kurashi-product-entry .related-entry-card-snippet {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

.kurashi-entry-more {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
}

.kurashi-entry-product {
  min-width: 0;
}

/* 一覧内のPochippは標準Gridを活かし、PCだけ「画像＋ボタン｜商品情報」に並べる。 */
.kurashi-entry-product .pochipp-box {
  margin: 0 !important;
}

.kurashi-entry-product .pochipp-box__info,
.kurashi-entry-product .pochipp-box__review {
  display: none !important;
}

.kurashi-entry-product .pochipp-box__title {
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.kurashi-entry-product .pochipp-box__price {
  font-size: 14px !important;
}

.kurashi-entry-product .pochipp-box__price span {
  font-size: 10px !important;
}

@media screen and (min-width: 1000px) {
  .kurashi-entry-product .pochipp-box[data-lyt-pc=dflt] {
    grid-template-areas:
      "areaImg areaBody"
      "areaBtns areaBody" !important;
    grid-template-columns: 140px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
  }

  .kurashi-entry-product .pochipp-box__btns {
    left: 0 !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  .kurashi-entry-product .pochipp-box__btnwrap {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
}

.related-entries .related-list {
  display: block !important;
}

.kurashi-related-entry {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  padding: 20px;
}

.kurashi-related-entry .related-entry-card-title {
  font-size: 17px;
}

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

/*834px以下*/
@media screen and (max-width: 834px){
  .kurashi-product-entry,
  .kurashi-related-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
  }
}

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