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

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


/* =========================================
   1. 変数定義・基本設定 (Color Palette & Base)
   ========================================= */
:root {
  --primary-color: #333333; /* メイン文字色 */
  
  /* --- テーマカラー：リッチなティール --- */
  --theme-text: #00695c;    /* 文字リンク用の濃いティール */
  /* 高級感のあるティールグラデーション */
  --theme-gradient: linear-gradient(135deg, #289353 0%, #3dbf72 100%);
  --theme-shadow: 0 4px 15px rgba(0, 77, 64, 0.3); /* ボタンの影 */

  /* --- ポイントカラー：上品なゴールド --- */
  --gold-color: #c5a059;    /* テキストや枠線用のマットなゴールド */
  --gold-gradient: linear-gradient(to bottom, #e3c676 0%, #c5a059 100%); /* 立体感のあるゴールド */
  --gold-hover: #b08d46;    /* ホバー時のゴールド */
  
  --bg-color: #f7f9f9;      /* 背景：ごく薄いミントグレー */
  --card-bg: #ffffff;       /* カード背景 */
	/* 背景色：単なるグレーではなく、ほんの少し青みを含んだ「陶器のような白」 */
  --bg-color: #f0f5f6;
  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

body {
  font-family: var(--font-base);
  color: var(--primary-color);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;

  /* 背景設定 */
  background-color: var(--bg-color);
  
  /* 上から下に「淡い光」が差すようなグラデーション */
  /* スクロールしても背景が固定されるパララックス効果でリッチに */
  background-image: linear-gradient(to bottom, #e0f2f1 0%, var(--bg-color) 400px);
  background-attachment: fixed; 
  background-repeat: no-repeat;
}

/* =========================================
   UIアクセント (Selection & Scrollbar)
   ここが変わると「作り込まれている感」が出ます
   ========================================= */

/* テキストを選択（ドラッグ）した時の色 */
/* デフォルトの青ではなく、テーマカラーのティールに */
::selection {
  background: var(--theme-text); /* 濃いティール */
  color: #fff;
}
::-moz-selection {
  background: var(--theme-text);
  color: #fff;
}

/* ブラウザ全体のスクロールバーのデザイン */
/* WindowsのChrome/Edgeなどで有効 */
::-webkit-scrollbar {
  width: 12px; /* 少し太さを持たせる */
  background: #f0f0f0;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-left: 1px solid #e0e0e0;
}

::-webkit-scrollbar-thumb {
  /* つまみ部分をティールのグラデーションに */
  background: linear-gradient(to bottom, #4db6ac 0%, #00695c 100%);
  border-radius: 6px; /* 丸みをつける */
  border: 2px solid #f0f0f0; /* つまみの周りに余白を作る */
}

::-webkit-scrollbar-thumb:hover {
  background: #004d40; /* ホバー時は濃く */
}



/* =========================================
   レイアウトコンテナの影調整 (Container)
   白背景のエリア（メインカラムなど）を際立たせる
   ========================================= */

/* Cocoonのメインカラムやサイドバーを想定 */
.main, .sidebar, .content {
  /* 背景が淡い色になったので、コンテンツの白を際立たせる */

  border-radius: 8px !important; /* 角丸で優しく */
}

a {
  color: var(--theme-text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7; /* グラデーションボタン用に透明度変化へ変更 */
}


.widget h2 {
	position: relative;
	
	padding: 10px 0 10px 20px !important;
	margin: 0px 0 10px 0 !important;
	font-size: 20px !important;
	font-weight: bold;
	line-height: 1;
	color: #333;
	background: #fff !important;
	border: none !important;
}

.widget h2::before{
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 10px;
	background: var(--theme-gradient);
	border-radius: 6px 0 0 6px;
}

.widget h3 {
	position: relative;
	padding: 10px 0 10px 20px !important;
	margin: 0px 0 10px 0 !important;
	font-size: 20px !important;
	font-weight: bold;
	line-height: 1;
	color: #333;
	background: #fff !important;
	border: none !important;
}

.widget h3::before{
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 10px;
	background: var(--theme-gradient);
	border-radius: 6px 0 0 6px;
}

.widget ul {
	font-size: 1.1rem;
	
}

.widget_block ul li a{
  text-decoration: none;
	padding: 4px 0;
}

.widget_block ul li a:hover{
  transition: opacity 0.1s ease;
	color: var(--primary-color);
	background-color: var(--bg-color);
  border-radius: 8px !important; /* 角丸で優しく */
	opacity: 0.7;
}
	
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}


/* =========================================
   サムネイル上のカテゴリラベル
   Tone: Teal Gradient (Official/Trust)
   ========================================= */

.cat-label {
    /* 位置：端に張り付きすぎないよう少し内側へ */
    top: 10px !important;
    left: 10px !important;
    right: auto;
    bottom: auto;

    /* デザイン：信頼感のあるティールグラデーション */
    background: var(--theme-gradient) !important;
    
    /* 文字：白でハッキリと */
    color: #fff !important;
    font-size: 8px !important; /* 少し小さく引き締める */
    font-weight: bold;
    letter-spacing: 0.05em;
    
    /* 形状：ボタンのようにリッチに */
    padding: 3px 8px !important; /* 余白を広げて見やすく */
    border-radius: 4px !important; /* 角丸 */
    border: none !important; /* 安っぽいグレーの枠線を消す */
    
    /* 視認性：写真の上でも目立つように影と不透明度を調整 */
    opacity: 1 !important; /* 透けさせずに色をしっかり見せる */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* 黒い影で浮き上がらせる */
}

.eye-catch .cat-label {
	font-size: 12px !important; /* 少し小さく引き締める */    
	padding: 6px 16px !important; /* 余白を広げて見やすく */
}

/* =========================================
   8. 見出し (Headings) - Cocoon上書き対応版
   ========================================= */

/* =========================================
   記事タイトル (H1: .entry-title)
   Tone: Teal Bar & Gold Underline
   ========================================= */

.entry-title {
  position: relative;
  /* 既存のスタイルをリセットしつつ余白調整 */
  padding: 14px 20px 14px 28px !important; 
  margin: 10px 0 30px 0 !important;
  
  /* フォント調整 */
  font-size: 26px !important;
  font-weight: bold;
  line-height: 1.4;
  color: #333;
  
  /* デザイン：背景白 ＋ 下線ゴールド */
  background: #fff !important;
  border: none !important; /* 既存の枠線を消す */
  
}

/* 左側のアクセントバー（ティールグラデーション） */
.entry-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 10px; /* 存在感のある太さ */
  background: var(--theme-gradient); /* ティールグラデーション */
  border-radius: 6px 0 0 6px; /* 左上だけ少し丸く */
}

/* スマホでの調整 */
@media (max-width: 768px) {
  .entry-title {
    font-size: 20px !important; /* スマホでは少し文字を小さく */
    padding: 15px 15px 15px 22px !important;
    margin-bottom: 20px !important;
  }
}

/* --- H2：リッチなグラデーション背景 --- */
/* Cocoonのデフォルトを打ち消しつつ適用 */
.article h2 {
  border: none !important;      /* 既存の線を消す */
  background: var(--theme-gradient) !important; /* ティールグラデーション */
  color: #fff !important;       /* 文字は白 */
  padding: 15px 20px !important;
  border-radius: 4px;
  margin: 40px 0 20px;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0, 77, 64, 0.2); /* 影を追加 */
  position: relative;
}
/* Cocoonがh2に::before/::afterを使っている場合のリセット */
.article h2::before, .article h2::after {
  content: none !important;
  border: none !important;
}


/* --- H3：ゴールドの下線 ＋ ティールの左アクセント --- */
.article h3 {
  /* ▼ Cocoonのデフォルト（囲み枠）をリセット ▼ */
  border-top: none !important;
  border-right: none !important;
  border-left: none !important;
  background: transparent !important; /* 背景色があれば透明に */
  
  /* ▼ 新しいデザイン（ゴールドの下線） ▼ */
  border-bottom: 3px solid var(--gold-color) !important;
  padding: 10px 10px 10px 24px !important; /* 左に棒が入る分の余白(24px)を確保 */
  margin: 30px 0 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  position: relative; /* 左の棒を配置するために必須 */
}

/* H3の左側に「ティール色の棒」を擬似要素で作る */
.article h3::before {
  content: '';
  position: absolute;
  left: 0;             /* 左端に配置 */
  top: 50%;            /* 上下中央の基準点 */
  transform: translateY(-50%); /* 完全に中央に補正 */
  width: 6px;          /* 棒の太さ */
  height: 70%;         /* 棒の長さ（文字高の7割くらいが上品） */
  background-color: var(--theme-text); /* ここにティール色を使用 */
  border-radius: 3px;  /* 丸みをつけてリッチに */
  border: none !important; /* 念のため枠線なし */
}


/* --- H4：ゴールドのドットアイコン --- */
.article h4 {
  border: none !important; /* デフォルト線を消す */
  padding: 8px 0 8px 24px !important;
  margin: 25px 0 15px;
  font-size: 18px;
  font-weight: bold;
  color: #444;
  position: relative;
  border-bottom: 1px dashed #ddd !important; /* 控えめな点線 */
}

/* H4の左のドット */
.article h4::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--gold-color); /* ゴールド */
  border-radius: 50%; /* 丸 */
}

/* =========================================
   9. 強調・太字 (Strong / Bold)
   ========================================= */

/* 記事内の太字を「ゴールドのマーカー風」にする */
.article strong,
.article b {
  /* 背景：透明から始まり、下半分にゴールド（半透明）を敷く */
  background: linear-gradient(transparent 60%, rgba(197, 160, 89, 0.4) 60%);
  
  /* 文字色：読みやすさ重視で濃いグレー（または黒） */
  color: #222; 
  
  /* フォント：しっかり太く */
  font-weight: bold;
  
  /* 余白：マーカーが文字に張り付きすぎないように左右に少し隙間 */
  padding: 0 4px;
  
  /* 行間：マーカーが重ならないように少し広げる */
  line-height: 1.8;
  
  /* インラインブロックに近い挙動にして崩れを防ぐ */
  display: inline;
}

/* もし「赤字」で危険や注意を促したい場合用のクラス (任意) */
.article strong.alert {
  background: linear-gradient(transparent 60%, rgba(255, 59, 48, 0.2) 60%);
  color: #c0392b;
}


/* =========================================
   10. テーブル (Table)
   Tone: Teal Header & Gold Bottom
   ========================================= */

/* テーブル全体 */
.article table {
  width: 100%;
  border-collapse: separate; /* 角丸を効かせるためseparateに */
  border-spacing: 0;
  margin: 30px 0;
  border-radius: 8px; /* 角を丸く */
  overflow: hidden;   /* はみ出し防止 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* うっすら影 */
  border: 1px solid #ddd;
  border-bottom: 3px solid var(--gold-color); /* 下線をゴールドで締める */
  background: #fff;
}

/* ヘッダーセル (見出し) */
.article table th {
  background: var(--gold-color); /* ティールグラデーション */
  color: #fff;
  font-weight: bold;
  padding: 15px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 2px solid #fff; /* セル間の区切り線 */
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.article table th:last-child {
  border-right: none;
}

/* データセル (中身) */
.article table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  color: #333;
  vertical-align: middle;
}

.article table td:last-child {
  border-right: none;
}

/* 偶数行の色を変えて読みやすく (ゼブラストライプ) */
.article table tr:nth-child(even) td {
  background: #f9fdfc; /* ごく薄いティール色 */
}

/* スマホ対応：横スクロール用のラッパー (必要な場合に使用) */
.scrollable-table {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}


/* =========================================
   11. リスト (Unordered List / UL)
   Tone: Gold Bullets & Teal Checks
   ========================================= */

/* --- 通常の箇条書き (・) --- */
/* Cocoonなどのデフォルトを上書き */
.article ul {
  list-style: none !important; /* デフォルトの黒丸を消す */
  padding: 0 0 0 10px !important;
  margin: 20px 0 30px !important;
}

.article ul li {
  position: relative;
  padding-left: 24px !important; /* アイコン分の隙間 */
  margin-bottom: 10px;
  line-height: 1.8;
  color: #333;
}

/* ゴールドの丸ポチ */
.article ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.7em; /* 行の高さに合わせて調整 */
  width: 8px;
  height: 8px;
  background-color: var(--gold-color); /* ゴールド */
  border-radius: 50%;
  transform: translateY(-50%);
}


/* --- チェックリスト (メリット・特徴用) --- */
/* クラス名: で使用 */
ul.check-list {
  background: #f0fcfc; /* 薄いティール背景 */
  padding: 20px 20px 20px 30px !important;
  border-radius: 8px;
  border: 1px solid #b2dfdb;
}

ul.check-list li {
  margin-bottom: 12px;
  font-weight: bold;
  color: #004d40;
}

/* ティール色のチェックマーク */
ul.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 12px;
  height: 6px;
  background-color: transparent;
  border-left: 3px solid var(--theme-text); /* ティール */
  border-bottom: 3px solid var(--theme-text);
  transform: rotate(-45deg);
  border-radius: 0; /* 丸を解除 */
}

/* =========================================
   商品アフィリエイトブロック (Amazon/楽天/Yahoo)
   Tone & Manner: Teal & Gold + Price Red
   ========================================= */

.my-product-affi-block {
    margin: 2em 0;
    padding: 20px;
    /* AppCardと統一：白背景＋影＋上部にゴールドライン */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--gold-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-size: 14px;
}

.my-product-affi-title {
    font-weight: bold;
    margin-bottom: 1em;
    font-size: 1.1em;
    color: var(--theme-text); /* ティール色で信頼感を */
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.my-product-affi-row {
    display: block;
}

.my-product-affi-col {
    min-width: 100%;
    margin-bottom: 2em;
}

.my-product-affi-col:last-child {
    margin-bottom: 0;
}

.my-product-affi-col-title {
    font-weight: 600;
    margin-bottom: 0.8em;
    font-size: 0.9em;
    color: #666;
    display: flex;
    align-items: center;
}

/* モール名の横に小さなアクセント（ティールの四角）を追加 */
.my-product-affi-col-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--theme-gradient);
    border-radius: 2px;
    margin-right: 8px;
}

/* --- 商品リスト（横スクロールエリア） --- */
.my-product-affi-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 16px 4px; /* 下に影が出る分の余白 */
    scroll-behavior: smooth;
    
    /* スクロールバーのデザイン（Webkit系） */
    scrollbar-width: thin;
    scrollbar-color: var(--theme-text) #f0f0f0;
}

.my-product-affi-items::-webkit-scrollbar {
    height: 8px;
}
.my-product-affi-items::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}
.my-product-affi-items::-webkit-scrollbar-thumb {
    background-color: #ccc; /* 普段はグレー */
    border-radius: 4px;
}
.my-product-affi-items:hover::-webkit-scrollbar-thumb {
    background-color: var(--theme-text); /* ホバー時だけティールに */
}

/* --- 個別商品カード --- */
.my-product-affi-item {
    flex: 0 0 130px; /* 少し幅を広げてリッチに */
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* カードホバー時の動き（浮き上がる＋ゴールド枠） */
.my-product-affi-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-color: var(--gold-color);
}

.my-product-affi-thumb {
    width: 100%;
    height: 100px; /* 高さを統一 */
    display: block;
    margin-bottom: 8px;
    object-fit: contain; /* 画像の比率を崩さず収める */
}

.my-product-affi-item-title {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 6px;
    max-height: 3em; /* 2行まで表示 */
    overflow: hidden;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* --- 価格（ここを赤に変更） --- */
.my-product-affi-item-price {
    font-weight: bold;
    color: #cc0000; /* 視認性の高い赤に変更 */
    font-size: 14px;
    margin-top: auto; /* 下揃え */
    letter-spacing: 0.05em;
}

.my-product-affi-item-shop {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

/* デバッグ表示（そのまま維持） */
.my-product-affi-debug {
    font-size: 11px;
    color: #c00;
    background: #fff7f7;
    border: 1px dashed #f3aaaa;
    padding: .5em;
    margin: .5em 0 0;
    white-space: pre-wrap;
}


/* =========================================
   3. PRリンク・ボタン
   ========================================= */
.pr_link_section {
  gap: 12px;
  text-align: center;
  margin-bottom: 20px;
}

.pr_link {
  text-decoration: none;
  color: #fff;
  background: var(--theme-gradient); /* ここもリッチなグラデーション */
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  font-size: 1.2em;
  display: inline-block;
  box-shadow: var(--theme-shadow);
}

.pr_link_section a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================================
   4. チャット風リスト
   ========================================= */
ul.chat-list {
  list-style-type: none;
  padding: 0;
  width: 100%;
  margin: 0 auto 20px;
}

ul.chat-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

ul.chat-list li::before {
  content: url('/wp-content/uploads/2023/08/bubble_icon.png');
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #eee;
  margin-right: 20px;
}

ul.chat-list li .chat-bubble {
  background: #fff; /* 背景白 */
  border: 2px solid #009688; /* 枠線をティールに */
  color: #333;
  border-radius: 12px;
  padding: 12px 18px;
  position: relative;
  max-width: calc(90% - 60px);
  word-wrap: break-word;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

ul.chat-list li .chat-bubble::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-right: 10px solid #009688; /* 吹き出しの三角もティール */
  border-bottom: 8px solid transparent;
}

/* =========================================
   5. 記事内要素・アフィリエイト
   ========================================= */
/* PR Times参照元 */
p.prtimesurl {
  font-size: 0.7em;
  color: #888;
}
.prtimesurl > a {
  color: var(--theme-text);
}

/* 要約リスト */
ul.summary-list {
  border: 2px solid var(--gold-color); /* 枠線をゴールドに */
  background: #fffaf0; /* 背景を極薄いゴールド（クリーム色）に */
  margin: 10px 10px 30px 10px;
  padding: 20px 40px;
  font-size: 0.9em;
  list-style: none;
  border-radius: 8px;
}

ul.summary-list li::before {
  position: relative;
  content: '';
  display: block;
  top: 1.1em;
  left: -1.3em;
  width: 12px;
  height: 6px;
  border-left: 3px solid var(--theme-text); /* チェックマークはティール */
  border-bottom: 3px solid var(--theme-text);
  transform: rotate(-45deg);
}

/* アフィリエイトCVエリア */
.affi-cvbutton {
  text-align: center;
  margin-bottom: 0 !important;
  background: var(--gold-gradient); /* CVボタンはゴールドグラデーション！ */
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(197, 160, 89, 0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.n18text {
  text-align: center;
  font-size: 0.6em;
  color: #777;
}

.affi-icon {
  box-shadow: 3px 3px 12px #ddd;
  border-radius: 8px;
}
/* Amazon商品アフィリエイト (一番目立たせる場所) */
.my-product-affi-mainimage {
  margin: 1em 0;
  text-align: center;
}
.my-product-affi-mainimage img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 6px rgba(197, 160, 89, 0.4);
}
.my-product-affi-amazon-btn-wrapper {
  margin: 0.9em 0;
  text-align: center;
}

/* Amazonボタン = 最強のCVエリアなので「赤グラデーション」で視認性MAXに */
.my-product-affi-amazon-btn {
  display: inline-block;
  padding: 0.8em 2.5em;
  font-size: 18px;
  font-weight: bold;
  border-radius: 999px;
  text-decoration: none;
  
  /* 立体感のあるリッチな赤グラデーション */
  background: linear-gradient(to bottom, #ff5e3a 0%, #cc0000 100%);
  
  color: #fff !important; /* 文字色は白で固定 */
  
  /* 影も赤系にして発光しているような存在感を */
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.4);
  
  /* 枠線は濃い赤で引き締める */
  border: 1px solid #b30000;
  
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.my-product-affi-amazon-btn:hover {
  /* ホバー時は少し明るくして反応させる */
  background: linear-gradient(to bottom, #ff7855 0%, #e60000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.5);
  color: #fff !important;
}
/* =========================================
   6. フッター追従バナー
   ========================================= */
.footerad {
  position: fixed;
  bottom: -10vh;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 10vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1); /* 影をリッチに */
  opacity: 0;
  transition: bottom 0.5s ease, opacity 0.5s ease;
  border-radius: 14px 14px 0 0;
  border-top: 4px solid var(--theme-text); /* 上部にティールのライン */
}

.footerad.visible {
  bottom: 0;
  opacity: 1;
}

.footerad.hidden {
  opacity: 0;
  bottom: -10vh;
}

.footerad .close-footerad {
  position: absolute;
  top: 5px;
  right: 30px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}

.footerad_title {
  padding: 2px;
  margin-bottom: 0 !important;
}

/* =========================================
   7. メディアクエリ (Responsive)
   ========================================= */
@media (min-width: 769px) {
  .footerad {
    height: 10vh;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .header-container { display: none; }
  .search-box { margin: 0; }
  aside#search-3 { margin-bottom: 0 !important; padding: 10px; }
  .content-top { margin: 0; }
  .breadcrumb { margin-top: 0.5em !important; }

  .footerad {
    height: 18vh;
    font-size: 14px;
  }
  .footerad .close-footerad {
    position: absolute;
    top: 4px;
    right: 10px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
  }

  .my-product-affi-amazon-btn {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box; /* スマホではみ出し防止 */
  }
	.content {
		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){
  /*必要ならばここにコードを書く*/
}
