@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,700;1,400&family=Outfit:wght@800&display=swap');

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

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

/************************************
** Amazon商品リンク（商品リンクボックス）のカスタマイズ
************************************/

/* 全体コンテナ: 角丸・シャドウ・背景白のカードデザイン */
.product-item-box.amazon-item-box {
  background: #ffffff !important;
  border: none !important;
  border-radius: 30px !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05) !important;
  padding: 30px !important;
  margin: 2em 0;
  transition: transform 0.3s ease;
  overflow: hidden;
  position: relative;
  display: flex !important;
  flex-direction: column;
}

.product-item-box.amazon-item-box:hover {
  transform: translateY(-5px);
}

/* 内部要素の再配置設定 */
.product-item-content {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  padding: 0 !important;
}

/* タイトルとスニペットの順序調整 */
.amazon-item-title {
  order: 2 !important;
}

.amazon-item-snippet {
  display: contents !important;
  /* 子要素（メーカー・価格・説明）を親のフレックスアイテムにする */
}

/* スニペット内の各要素への順序指定 */
.product-item-maker {
  order: 1 !important;
}

.product-item-description {
  order: 3 !important;
}

.product-item-price {
  order: 4 !important;
  margin: 15px 0 5px !important;
  font-family: 'Inter', sans-serif;
}

.product-item-price .item-price {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #e53e3e !important;
  /* プレミアムな赤 */
}

.product-item-price .acquired-date {
  font-size: 11px !important;
  color: #a0aec0 !important;
  margin-left: 8px !important;
  font-weight: normal !important;
}

.product-item-review {
  order: 5 !important;
}

.amazon-item-buttons,
.product-item-buttons {
  order: 6 !important;
  margin-top: 25px !important;
  width: 100% !important;
  display: block !important;
}

/* メーカー名（ブランド名）: タイトルの上に配置 */
.product-item-maker {
  order: 1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #6a7c92 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 15px !important;
  line-height: 1 !important;
}

/* 低解像度の初期画像を非表示にし、高解像度版（Large）をメインで使用する（全デバイス共通） */
.product-item-box.amazon-item-box .amazon-item-thumb-image {
  display: none !important;
}

/* PC等の広幅画面時 (769px以上) */
@media screen and (min-width: 769px) {
  .product-item-box.amazon-item-box {
    flex-direction: row !important;
    align-items: stretch !important;
    padding: 0 !important;
    min-height: 380px;
  }

  /* 画像エリア全体 */
  .product-item-box.amazon-item-box .product-item-thumb {
    flex: 2 !important;
    background: #ffffff !important;
    /* 白に統一 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 30px 20px !important;
    margin: 0 !important;
    border: none !important;
    /* 境界線を削除 */
    position: relative !important;
  }

  /* メインの高解像度画像を表示 */
  .product-item-box.amazon-item-box .product-item-thumb-link>.image-content {
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    height: 480px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 480px !important;
    margin: 0 auto 20px !important;
    background: #ffffff !important;
    /* 白に統一 */
    padding: 30px 20px !important;
    z-index: 5 !important;
    border: none !important;
    /* 囲い線を完全に除去 */
    box-shadow: none !important;
    /* 影を完全に除去 */
  }

  .product-item-box.amazon-item-box .product-item-thumb-link>.image-content img {
    max-width: 100% !important;
    max-height: 480px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .product-item-box.amazon-item-box .product-item-thumb-link {
    display: block !important;
    width: 100% !important;
  }

  .product-item-content {
    flex: 1 !important;
    padding: 40px !important;
    justify-content: center !important;
    text-align: left !important;
  }
}

/* タイトル文字の装飾 */
.amazon-item-title a,
.product-item-title a {
  font-family: 'Outfit', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  margin-bottom: 15px !important;
  transition: text-decoration-color 0.3s ease !important;
}

.amazon-item-title a:hover,
.product-item-title a:hover {
  text-decoration: underline !important;
  text-decoration-color: rgba(51, 65, 85, 0.4) !important;
  text-underline-offset: 4px !important;
}

/* スニペット（説明文）の装飾 */
.product-item-description,
.product-item-snippet {
  color: #718096 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin-bottom: 15px !important;
}

/* Amazonボタンの装飾 */
.shoplinkamazon {
  width: 100% !important;
}

.shoplinkamazon a {
  background: #ff9900 !important;
  color: #ffffff !important;
  padding: 16px 20px !important;
  border-radius: 14px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(255, 153, 0, 0.2) !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
  border: none !important;
  transition: all 0.2s !important;
}

.shoplinkamazon a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 153, 0, 0.3) !important;
  opacity: 0.9 !important;
}

/* ボタン内のアイコンを非表示にする（文字のみにする） */
.shoplinkamazon a span,
.shoplinkamazon a .fa,
.shoplinkamazon a .fab,
.shoplinkamazon a .fas {
  display: none !important;
}

/* ギャラリー（サムネイル）の装飾 */
.swatchimages {
  margin-top: 25px !important;
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  border: none !important;
  /* 上部の線を削除 */
  padding-top: 0 !important;
  /* 線がなくなったので上部パディングを調整 */
}

.swatchimages .image-thumb {
  width: 48px !important;
  height: 48px !important;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  background: #fff;
}

.swatchimages .image-thumb:hover {
  border-color: #ff9900 !important;
}

.swatchimages .image-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* 隠しサムネイルを一旦解除してコントロール可能にする */
.swatchimages .image-thumb.display-none,
.swatchimages .image-thumb.sp-display-none {
  display: flex !important;
  visibility: visible !important;
  position: static !important;
  pointer-events: auto !important;
}

/* サムネイルの個数を最大5枚に制限 */
.swatchimages .image-thumb:nth-child(n+6) {
  display: none !important;
}

/* ホバー時に浮き出る拡大画像の配置 */
.swatch-image-thumb .image-content {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  height: 480px !important;
  background: #ffffff !important;
  z-index: 100 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  border: none !important;
  padding: 30px 20px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  /* 影を除去 */
}

@media screen and (max-width: 768px) {
  .swatch-image-thumb .image-content {
    height: 420px !important;
    max-width: 100% !important;
  }
}

.swatch-image-thumb:hover .image-content {
  visibility: visible !important;
  opacity: 1 !important;
}

.swatch-image-thumb .image-content img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* モバイル表示 (768px以下) */
@media screen and (max-width: 768px) {
  .product-item-box.amazon-item-box {
    padding: 24px !important;
    border-radius: 20px !important;
  }

  .product-item-thumb {
    width: 100% !important;
    padding: 0 !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    position: relative !important;
    background: #ffffff !important;
  }

  /* スマホでのメイン画像（高解像度版）の表示設定 */
  .product-item-box.amazon-item-box .product-item-thumb-link>.image-content {
    height: 420px !important;
    max-width: 100% !important;
    margin: 0 auto 10px !important;
    background: #ffffff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    z-index: 5 !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    border: none !important;
    /* スマホ版の囲い線を除去 */
    box-shadow: none !important;
    /* スマホ版の影を除去 */
  }

  .product-item-box.amazon-item-box .product-item-thumb-link>.image-content img {
    max-height: 420px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border: none !important;
    /* 画像自体の線を消す */
    box-shadow: none !important;
    /* 画像の影を消す */
  }

  .swatchimages {
    margin: 0 auto 20px !important;
    width: 100% !important;
  }

  .product-item-content {
    text-align: left !important;
  }

  .amazon-item-title a {
    font-size: 20px !important;
  }

  .product-item-thumb-link {
    pointer-events: auto !important;
  }

  .swatchimages,
  .swatchimages a {
    pointer-events: none !important;
  }

  .swatchimages .swatch-image-thumb,
  .swatchimages .image-content {
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
  }
}

/* デフォルトのテーマアイコンを非表示 */
.product-item-box::after {
  display: none !important;
}



/************************************
** グローバルタイポグラフィ (見本サイト風)
************************************/
body {
  font-family: 'Inter', "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif !important;
  color: #334155 !important;
  /* 真っ黒ではない、洗練されたチャコールグレー */
  background-color: #fcfcfc !important;
  line-height: 1.8;
}

/* 本文テキスト (pタグ) の調整 */
p {
  color: #334155 !important;
  margin-bottom: 1.5em !important;
  letter-spacing: 0.02em !important;
  /* わずかに広げて可読性を向上 */
}

/* 記事内の見出しデザインをリセット＆再定義 */
.article h1,
.article h2,
.article h3,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: #334155 !important;
  /* Slate 700 */
}

/* h1 (記事タイトル) */
.entry-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 48px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -1.5px !important;
  margin-top: 0 !important;
  margin-bottom: 32px !important;
}

/* h2 (大見出し) */
.article h2,
.entry-content h2 {
  font-family: 'Outfit', sans-serif !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  margin-top: 64px !important;
  margin-bottom: 24px !important;
  letter-spacing: -0.5px !important;
}

/* h3 (中見出し) */
.article h3,
.entry-content h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin-top: 40px !important;
  margin-bottom: 16px !important;
}

/* モバイル用調整 (768px以下) */
@media screen and (max-width: 768px) {
  .entry-title {
    font-size: 28px !important;
    margin-bottom: 24px !important;
  }

  .article h2,
  .entry-content h2 {
    font-size: 24px !important;
    margin-top: 48px !important;
    margin-bottom: 20px !important;
  }

  .article h3,
  .entry-content h3 {
    font-size: 20px !important;
    margin-top: 32px !important;
  }
}

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

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

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