@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){
  /*必要ならばここにコードを書く*/
}


/*↓画像ギャラリー用*/
.sample-gallery {
  display: flex;
  flex-direction: column;   /* 縦に並べる */
  align-items: center;      /* 中央揃え */
  gap: 16px;                /* 画像同士の間隔 */
  margin: 20px auto;
  width: 100%;
  max-width: 1000px;        /* 最大幅（お好みで調整） */
  padding: 0 16px;          /* 画面端にくっつかないように余白 */
}

.sample-gallery img {
  width: 100%;              /* 親要素いっぱいに広げる */
  max-width: 100%;          /* はみ出さないように */
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}
/*↑画像ギャラリー用*/
/*↓表用*/
/* 表を包むラッパー */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 2em 0;
}

/* 表全体 */
.work-details {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  line-height: 1.6;
  word-break: break-word;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* ヘッダー */
.work-details th {
  max-width: 200px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* データセル */
.work-details td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

/* ストライプ行 */
.work-details tr:nth-child(even) td {
  background-color: #fcfcfc;
}

/* ホバー時 */
.work-details tr:hover td {
  background-color: #f5f5f5;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .work-details th,
  .work-details td {
    font-size: 14px;
    padding: 10px 12px;
  }
}
/*↑表用*/
/*↓ビデオ中央寄せ用*/
.video-center {
  display: flex;
  justify-content: center;
  margin: 1em 0;
}
/*↑ビデオ中央寄せ用*/
/*↓MGS動画中央寄せ*/
#mgs-sample-video {
  display: flex;
  justify-content: center; /* 水平方向中央寄せ */
  margin: 20px 0;          /* 上下の余白（任意） */
}
/*↑MGS動画中央寄せ*/
/* ↓videoタグ */
.video_area video {
width: 100%;
height: 550px;
display: block;
margin: 0 auto;
background-color: #333;
}
@media (max-width: 960px) {
.video_area video {
height: 220px;
}
}
/* ↑videoタグ */
/*↓表紙画像中央寄せ用*/
.centered-image {
  display: block;
  margin: 0 auto;
  width: auto;      /* 元のサイズに任せる */
  max-width: 100%;  /* 横幅が画面はみ出さないように */
  height: auto;
  border-radius: 6px; /* 好みで追加OK */
}
/*↑表紙画像中央寄せ用*/



/*↓アフィボタン用*/
.top-cta-box {
  margin: 24px 0;
  padding: 0;
  text-align: center;
  background: none;
  border: none;
  margin-left: auto;
  margin-right: auto;
}

a.cta-button {
  display: block;
  width: 100%;               
  color: white;
  padding: 18px 0;
  font-size: 22px;           
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 16px; /* ボタン間の隙間 */
}

/* オレンジボタン */
a.cta-button.up {
  background-color: #ff6600;
}

a.cta-button.up:hover {
  background-color: #e65c00;
  transform: scale(1.02);
}

/* 緑ボタン */
a.cta-button.down {
  background-color: #28a745;
}

a.cta-button.down:hover {
  background-color: #218838;
  transform: scale(1.02);
}
/*↑アフィボタン用*/
/*↓ランキングページボタン*/
  .btn-link {
    display: inline-block;
    background-color: #FF6F61;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1em; /* ボタンの下に余白をつける */
  }
  .text-center {
    text-align: center; /* 中央寄せ */
  }
  .btn-link:hover {
    background-color: #e55b50;
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
  }
/*↑ランキングページボタン*/

/*↓2選択用*/
.recommend-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 24px 0;
}
.recommend-item {
  width: 180px;
  max-width: 300px;
  text-align: center;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.recommend-item:hover {
  transform: translateY(-4px);
}
.recommend-item img {
  height: 180px; /* 高さを固定（必要に応じて調整） */
  object-fit: cover;
  border-bottom: 1px solid #eee;
  border-radius: 0; /* 上で囲まれてるので角丸は不要 */
}
.recommend-item p {
  font-size: 14px;
  margin: 10px 8px 6px;
  color: #333;
}
.recommend-item a {
  display: block;
  font-size: 13px;
  color: #0073aa;
  margin-bottom: 10px;
  text-decoration: none;
}
.recommend-item a:hover {
  text-decoration: underline;
}
/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
  .recommend-item {
    width: 48%;
  }
}
@media screen and (max-width: 400px) {
  .recommend-item {
    width: 100%;
  }
}
.recommend-title {
  display: block;
  font-size: 14px;
  margin-top: 8px;
  color: #333;
}
/*↑2選択用*/




/*function.php用*/
.custom-related-posts {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.custom-related-posts h3 {

}

.custom-related-item {
    width: 48%;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    margin: 0 1% 20px 1%;
}

.custom-related-item img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 200px; /* 必要に応じて高さ制限を調整 */
    margin: 0 auto;
    display: block;
    border-radius: 5px;
    object-fit: cover;
    transition: 0.3s;
}


.custom-related-item img:hover {
    opacity: 0.85;
}

.custom-related-item .related-title {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}

/* スマホ用レスポンシブ */
@media screen and (max-width: 768px) {
    .custom-related-item {
        width: 100%;
        margin-bottom: 30px;
    }
    .custom-related-posts {
        padding: 10px;
    }
    .custom-related-posts h3 {
        font-size: 16px;
    }
    .custom-related-item .related-title {
        font-size: 14px;
    }
}

/* 検索フォーム全体 */
.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border: 2px solid #333; /* 濃いグレーでコントラストUP */
  border-radius: 30px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 入力欄 */
.search-edit {
  flex: 1;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 30px 0 0 30px;
  outline: none;
  color: #000; /* 入力文字も黒に */
}

/* プレースホルダーの色（サイト内を検索）を濃くする */
.search-edit::placeholder {
  color: #555; /* 少し濃いグレー */
  opacity: 1;  /* Firefox対応 */
}

/* 検索ボタン */
.search-submit {
  background: #000; /* 黒に変更 */
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 0 30px 30px 0;
  transition: background 0.3s ease;
}

/* ホバー時の変化 */
.search-submit:hover {
  background: #222; /* ほんの少し明るい黒で反応 */
}
/* ↑検索フォーム全体 */

/* パンくずリスト */
.breadcrumb {
  background-color: #ffffff; /* 背景を白に */
  color: #333333; /* テキストを濃いグレーに */
}

.breadcrumb a {
  color: #1a0dab; /* リンクを標準的な青色に */
}

.breadcrumb a:hover {
  color: #c00; /* ホバー時に赤に */
}
/* ↑パンくずリスト */
/*↓表中タグ用ボタン*/
.tag-button {
  display: inline-block;
  background-color: #eef2f7;
  color: #333;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid #ccd5e0;
  margin: 2px 6px 2px 0;
  font-size: 14px;
  transition: all 0.2s ease;
}

.tag-button:hover {
  background-color: #dbe4f0;
  border-color: #a3b1c6;
  color: #000;
}
/*↑表中タグ用ボタン*/
/* ランキングページ用の表 */
.rank-info-box {
  border: 1px solid #DFDFDF;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-sizing: border-box;
}

/* ヘッダーラベル */
.rank-info-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rank-label {
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* タグ表示 */
.rank-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #eee;
}

.rank-info-tags span a {
  font-size: 0.9rem;
  color: #333;
  background: #F7F7F7;
  padding: 4px 10px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.rank-info-tags span a:hover {
  background: #eee;
}
/*カード*/
.rank-product-card {
display: flex;
flex-wrap: wrap;
background: #fff;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
overflow: hidden;
width: 100%;
margin: 20px 0;
}
.rank-product-image {
width: 300px;
object-fit: cover;
flex-shrink: 0;
}
.rank-product-details {
flex: 1;
padding: 20px;
min-width: 250px;
}
.rank-product-title {
font-size: 0.9rem;
color: #333;
}
/* ↑ランキングページ用の表 */