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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* 見出し */
.article h1 {
  color: #333333;
  font-size: 22px;
}

.article h2 {
  position: relative;
  background-color: transparent !important;
  /* 背景を白（透明）にする */
  padding: 10px 0 10px 15px !important;
  /* 左側に少し余白をあける */
  color: #333333;
  font-size: 22px;
  font-weight: bold;
  border-left: none !important;
  /* 以前の太い左線を消す */
  border-bottom: 2px solid #e0e0e0 !important;
  /* 全体の細い下線（グレー） */
  border-radius: 0;
  /* 角丸をリセット */
  margin: 40px 0 20px !important;
}

/* 下線の左端だけ色を変える（緑のアクセント） */
.article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  /* 親要素の下線に重ねる */
  width: 80px;
  /* 緑色の線の長さ */
  height: 2px;
  /* 緑色の線の太さ */
  background-color: #2ecc71 !important;
  /* アクセントカラー（緑） */
}

.article h3 {
  padding: .6em;
  border-left: 5px solid #2ecc71;
  border-top: none;
  border-right: none;
  border-bottom: none;
  color: #333333;
  font-size: 18px;
}

/* 全てのh4：左寄せ・文字幅・複数行対応の決定版 */
.article h4 {
  display: block !important;
  /* 安定のブロック形式で回り込みを防止 */
  text-align: left !important;
  /* 確実に左寄せ */
  width: 100% !important;
  margin: 40px 0 20px 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  clear: both !important;
}

/* 文字の部分だけに線を引くための指定（複数行対応） */
.article h4 {
  color: #333 !important;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.8 !important;
  /* 行間を広げて重なりを物理的に防ぐ */
}

/* spanを使わなくても文字だけに下線を引く指定 */
.article h4 {
  text-decoration: underline solid #333 2px !important;
  text-underline-offset: 0.3em;
  /* 文字からの距離をフォントサイズ基準で指定 */
  text-decoration-skip-ink: none;
  /* 線が文字の足で切れないようにする */
}

.article h6 {
  font-size: 18px;
  border-bottom: none;
}



.related-entry-card-title,
.entry-card-title {
  -webkit-line-clamp: 2;
}

.related-entry-card-snippet,
.entry-card-snippet {
  -webkit-line-clamp: 2 !important;
}


/* 検索窓を丸くする */
input.search-edit {
  border-radius: 40px;
  /*角丸の大きさの指定*/
}

/* お問い合わせ必須フィールドのラベルスタイル */
.wpcf7-form .required {
  background-color: #ff0000;
  /* レッド */
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 10px;
  font-size: 12px;
}

#wpcf7-area input[type=”checkbox”],
#wpcf7-area input[type=”radio”] {
  appearance: auto;
}

.wpcf7 input[type="submit"] {
  width: 50%;
  padding: 15px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border: none;
  background: #c8161d;
  color: #fff;
  transition: 0.3s;
  font-weight: bold;
  font-size: 16px;
}

.page .date-tags,
.page .author-info {
  display: none;
}

a {
  text-decoration: none;
}

.navi-footer-in a {
  font-size: 13px;
}

.copyright {
  font-size: 11px !important;
  /* コピーライトサイズ */
}

.pr-label {
  font-size: 10px !important;
  text-align: left;
  /* PRサイズ */
}

/* サイドバー見出し */
.sidebar h3 {
  background: transparent;
  /* 背景を透明にする */
}


/************************************
** 管理画面のカスタマイズから転記
************************************/

/*--------------------------------
カテゴリーID(ランキング)のアイコン
--------------------------------*/
.widget_categories li.cat-item-85>a::before {
  content: "\f091" !important;
}

/*--------------------------------
カテゴリーID(セール)のアイコン
--------------------------------*/
.widget_categories li.cat-item-12>a::before {
  content: "\f0a1" !important;
}

/*--------------------------------
カテゴリーID(家電)のアイコン
--------------------------------*/
.widget_categories li.cat-item-3>a::before {
  content: "\f26c" !important;
}

/*--------------------------------
カテゴリーID(パソコン)のアイコン
--------------------------------*/
.widget_categories li.cat-item-4>a::before {
  content: "\f109" !important;
}

/*--------------------------------
カテゴリーID(ビューティー)のアイコン
--------------------------------*/
.widget_categories li.cat-item-6>a::before {
  content: "\f007" !important;
}

/*--------------------------------
カテゴリーID(ヘルスケア)のアイコン
--------------------------------*/
.widget_categories li.cat-item-7>a::before {
  content: "\f21e" !important;
}

/*--------------------------------
カテゴリーID(ファッション)のアイコン
--------------------------------*/
.widget_categories li.cat-item-25>a::before {
  content: "\f553" !important;
}

/*--------------------------------
カテゴリーID(ベビー・キッズ)のアイコン
--------------------------------*/
.widget_categories li.cat-item-16>a::before {
  content: "\f77c" !important;
}

/*--------------------------------
カテゴリーID(アウトドア)のアイコン
--------------------------------*/
.widget_categories li.cat-item-18>a::before {
  content: "\f6bb" !important;
}

/*--------------------------------
カテゴリーID(旅行)のアイコン
--------------------------------*/
.widget_categories li.cat-item-28>a::before {
  content: "\f072" !important;
}

/*--------------------------------
カテゴリーID(インターネット)のアイコン
--------------------------------*/
.widget_categories li.cat-item-10>a::before {
  content: "\f1eb" !important;
}

/*--------------------------------
カテゴリーID(インテリア)のアイコン
--------------------------------*/
.widget_categories li.cat-item-20>a::before {
  content: "\f4b8" !important;
}

/*--------------------------------
カテゴリーID(インテリア)のアイコン
--------------------------------*/
.widget_categories li.cat-item-21>a::before {
  content: "\f6d3" !important;
}

/*--------------------------------
カテゴリーID(車)のアイコン
--------------------------------*/
.widget_categories li.cat-item-22>a::before {
  content: "\f1b9" !important;
}

/*--------------------------------
カテゴリーID(スポーツ)のアイコン
--------------------------------*/
.widget_categories li.cat-item-24>a::before {
  content: "\f1e3" !important;
}

/*--------------------------------
カテゴリーID(釣り)のアイコン
--------------------------------*/
.widget_categories li.cat-item-23>a::before {
  content: "\f578" !important;
}

/*--------------------------------
カテゴリーID(食品)のアイコン
--------------------------------*/
.widget_categories li.cat-item-41>a::before {
  content: "\f7ec" !important;
}

/*--------------------------------
カテゴリーID(ドリンク)のアイコン
--------------------------------*/
.widget_categories li.cat-item-17>a::before {
  content: "\f79f" !important;
}

/*--------------------------------
カテゴリーID(ギフト)のアイコン
--------------------------------*/
.widget_categories li.cat-item-29>a::before {
  content: "\f06b" !important;
}


/*--------------------------------
カテゴリーID(脱毛)のアイコン
--------------------------------*/
.widget_categories li.cat-item-13>a::before {
  content: "\f5bb" !important;
}

/* 記事本文内のバナー広告リンクを強制的に中央へ */
.entry-content a>img[width][height] {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

/*--------------------------------
親カテゴリーのカスタマイズ
--------------------------------*/
.widget_categories ul li a{
	  padding: 15px 1px 15px 10px; /*上下左右空間*/
  border-bottom: 1px dashed #CCCCCC; /*下線の種類*/
}
.widget_categories ul li a::before{
 font-family: "Font Awesome 5 Free"; 
  content: "\f138"; /*FontAwesomeのユニコード*/
  color: #444444; /*色*/
  font-size: 1.3em !important; 
  margin-right: 8px !important; 
  padding-right: 10px;
  font-weight: 900 !important;
  vertical-align: middle;
}

.widget_categories > ul > li > a:first-child{ 
  border-top: none; /*最初の親カテゴリは上部ボーダーを消す*/
}

.widget_categories .cat-item a::before {
  color: #4f4f4f !important;
}

/*--------------------------------
子カテゴリーのカスタマイズ
--------------------------------*/
.widget_categories ul li a{
  border-bottom: 1px dashed #CCCCCC; /*下線の種類*/
}
.widget_categories ul li ul li a::before{ /*子カテゴリーのアイコン*/
  font-family: "Font Awesome 5 Free"; /*バージョン指定*/
  content: "\f105"; /*FontAwesomeのユニコード*/
  color: #444444; /*色*/
  font-size: 1.3em !important; 
  margin-right: 8px !important; 
  padding-right: 10px;
  font-weight: 900 !important;
  vertical-align: middle;
}



/************************************
** SNS ボタンをまとめて丸くする
************************************/

/*シェア・フォローボタンの枠組み*/
.sns-share.ss-top .sns-share-buttons,
.sns-share.ss-bottom .sns-share-buttons,
.sns-follow.sf-bottom .sns-follow-buttons,
.sns-follow.sf-widget .sns-follow-buttons {
	justify-content: center; /*中央に寄せる*/
	flex-wrap: wrap; /*折り返す*/
}

/*シェア・フォローボタンのリンク*/
.sns-share.ss-top .sns-buttons a,
.sns-share.ss-bottom .sns-buttons a,
.sns-follow.sf-bottom .sns-buttons a,
.sns-follow.sf-widget .sns-buttons a {
	width: 40px; /*横幅*/
	height: 40px; /*高さ*/
	margin-right: 4px; /*右側の余白*/
	margin-left: 4px; /*左側の余白*/
	border-radius: 50%; /*丸み*/
}

/*プロフィールウィジェットのリンク*/
.sns-follow.sf-profile .sns-buttons a {
	border-radius: 50%; /*丸み*/
}

/*シェアボタンのアイコン*/
.sns-share.ss-top .sns-buttons a .social-icon,
.sns-share.ss-bottom .sns-buttons a .social-icon {
	font-size: 18px; /*アイコンの大きさ*/
}

/*フォローボタンのアイコン*/
.sns-follow.sf-bottom .sns-follow-buttons .follow-button,
.sns-follow.sf-widget .sns-follow-buttons .follow-button {
	font-size: 24px; /*アイコンの大きさ*/
}

/*シェアボタンのキャプション*/
.sns-share.ss-top .sns-buttons a .button-caption,
.sns-share.ss-bottom .sns-buttons a .button-caption {
	display: none; /*非表示*/
}

/*シェア・フォローボタンのシェア数*/
.sns-share.ss-top .sns-buttons a .share-count,
.sns-share.ss-bottom .sns-buttons a .share-count,
.sns-follow.sf-bottom .sns-buttons a .follow-count,
.sns-follow.sf-widget .sns-buttons a .follow-count {
	right: -2px; /*右側からの距離*/
	bottom: -2px; /*下側からの距離*/
	padding: 2px; /*内側の余白*/
	font-size: 10px; /*文字の大きさ*/
	border: solid 1px; /*線*/
	border-radius: 3px; /*丸み*/
	background-color: inherit; /*背景色*/
}

/*シェア数の表示が必要ないシェア・フォローボタン*/
.sns-share.ss-top .sns-buttons a .share-count:empty,
.sns-share.ss-bottom .sns-buttons a .share-count:empty,
.sns-follow.sf-bottom .sns-buttons a .follow-count:empty,
.sns-follow.sf-widget .sns-buttons a .follow-count:empty {
	padding: 0; /*内側の余白*/
	border: 0; /*線*/
}

/*  ヘッダー高さ変更 */
.header-container-in.hlt-top-menu .logo-header {
	display: flex;
  align-items: center;
	height: 88px;
	max-height: none;
}

/*  ロゴサイズ変更 */
.header-container-in.hlt-top-menu .logo-header img {
	width: 235px;
	max-height: none;
}


/************************************
** ランキング　h6
************************************/
/* 記事全体のリセットを削除、または無効化し、
   特定のクラス（rank-group）でリセットするように変更 */
.rank-group {
  counter-reset: rank-counter;
}

/* 記事全体で数字をリセット */
.entry-content {
  counter-reset: rank-counter;
}

/* 基本デザイン：クラス名に「rank」が含まれるh6共通 */
.article h6.rank {
  position: relative;
  display: block;
  margin: 15px 0 15px !important; 
  padding: 5px 0 5px 75px !important;
  background: transparent !important;
  color: #333 !important;
  font-size: 18px;
  font-weight: bold;
  border: none !important;
}

/* アイコンの共通設定（4位以下のグレーを基本にする） */
.article h6.rank::before {
  counter-increment: rank-counter;
  content: counter(rank-counter) "位";
  
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 35px;
  line-height: 35px;
  background: #999 !important; /* 基本はグレー */
  color: #fff !important;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
}

/* 1位〜3位の色を「クラス名」で上書きする（優先度を上げています） */
.article h6.rank.rank1::before { background: #eab308 !important; }
.article h6.rank.rank2::before { background: #94a3b8 !important; }
.article h6.rank.rank3::before { background: #b48a78 !important; }

/*************************************************
 * 5. テーブル
 *************************************************/

/* 固定テーブル */
table.has-fixed-layout {
  table-layout: auto !important;
  width: 100% !important;
  border: none !important;
  background-color: transparent !important;
  border-collapse: collapse !important;
  margin-bottom: 2em;
}

/* セル共通 */
table.has-fixed-layout tr,
table.has-fixed-layout th,
table.has-fixed-layout td {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid #ddd !important;
  padding: 18px 10px !important;
  text-align: left;
  vertical-align: middle;
}

/* 1列目 */
table.has-fixed-layout tr th:first-child,
table.has-fixed-layout tr td:first-child {
  width: auto !important;
  white-space: nowrap !important;
  font-weight: bold;
  color: #333 !important;
  padding-right: 30px !important;
}

/* 2列目以降 */
table.has-fixed-layout tr th:nth-child(n+2),
table.has-fixed-layout tr td:nth-child(n+2) {
  width: auto !important;
  white-space: normal !important;
  padding-left: 10px !important;
}

/* Gutenberg固定レイアウト解除 */
table.is-style-fixed-layout {
  table-layout: auto !important;
  width: 100% !important;
}

/* テーブル内画像：表示枠を統一 */
table img {
  display: block !important;

  width: 65px !important;
  height: 65px !important;
  max-width: 65px !important;
  max-height: 65px !important;

  object-fit: contain !important;

  margin: 0 auto !important;
}

/* 画像セル */
table td:nth-child(3) {
  width: 95px !important;
  min-width: 95px !important;
  text-align: center !important;
}

/* テーブルヘッダー */
.entry-content table thead th {
  background-color: #f1f6f3 !important;
  color: #333 !important;
  font-weight: bold !important;
}

/********************************************************
 * Pochipp 商品ボックス
 ********************************************************/

.pochipp-box {
  width: 100% !important;
  margin: 40px auto !important;
  padding: 0 0 30px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  display: block !important;
  text-align: center !important;
}


/* ========================================
 * 商品画像
 * ======================================== */

.pochipp-box__image {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 auto 30px !important;
  text-align: center !important;
}

.pochipp-box__image a {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.pochipp-box__image img {
  display: block !important;
  width: 330px !important;
  max-width: 70% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}


/* ========================================
 * 商品情報
 * ======================================== */

.pochipp-box__main {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.pochipp-box__info {
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.pochipp-box__title {
  width: 100% !important;
  margin: 0 auto 25px !important;
  text-align: center !important;
}

.pochipp-box__price,
.pochipp-box__detail {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: center !important;
}


/* ========================================
 * 購入ボタン：PC・共通
 * ======================================== */

.pochipp-box__btns {
  width: 100% !important;
  margin: 20px auto 0 !important;
}

/* 各購入ボタン */
.pochipp-box__btn {
  box-sizing: border-box !important;

  min-height: 54px !important;
  padding: 14px 12px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  line-height: 1.3 !important;

  /* 控えめな角丸 */
  border-radius: 4px !important;
}



/* ========================================
 * Pochippロゴ
 * ======================================== */

.pochipp-box__footer {
  position: static !important;
  display: block !important;
  width: 100% !important;
  margin-top: 10px !important;
  text-align: right !important;
}

/* ========================================
 * スマホ
 * ======================================== */

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

  /* Pochipp全体 */
  .pochipp-box {
    margin: 30px auto !important;
  }

  /* 商品画像 */
  .pochipp-box__image img {
    width: 280px !important;
    max-width: 85% !important;
  }

  /* ========================================
   * 購入ボタン
   * ======================================== */

  /* ボタンエリアを左右に少し広げる */
  .pochipp-box__btns {
    width: calc(100% + 40px) !important;
    max-width: none !important;

    margin-top: 22px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
  }

  /* Amazon・楽天・Yahooの各ボタン枠 */
  .pochipp-box__btnwrap {
    width: 100% !important;
    max-width: none !important;

    margin: 0 auto 3px !important;
  }

  /* 実際の購入ボタン */
  .pochipp-box__btn {
    box-sizing: border-box !important;

    width: 100% !important;
    max-width: none !important;
    min-height: 50px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 15px 12px !important;

    font-size: 17px !important;
    line-height: 1.3 !important;
	border-radius: 4px !important;
  }

}

/* =========================================
   ページネーション
========================================= */

/* 「次のページ」ボタンを非表示 */
.pagination-next-link {
  display: none !important;
}

/* ページネーション全体 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 45px auto;
}

/* ページ番号 */
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #333;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
}

/* 現在のページ */
.pagination .page-numbers.current {
  background: #f5f5f5;
}

/* 「…」 */
.pagination .dots {
  width: auto;
}

/* 左右の矢印 */
.pagination .prev,
.pagination .next {
  width: 30px;
}

.pagination .prev::before,
.pagination .next::before {
  font-size: 25px;
}

/* スマホ */
@media screen and (max-width: 768px) {
  .pagination {
    gap: 5px;
    margin: 35px auto;
  }

  .pagination .page-numbers {
    width: 35px;
    height: 35px;
    font-size: 15px;
  }

  .pagination .prev,
  .pagination .next {
    width: 22px;
  }

  .pagination .prev::before,
  .pagination .next::before {
    font-size: 22px;
  }
}