@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-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.sample-gallery img {
  width: 160px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}

@media screen and (max-width: 600px) {
  .sample-gallery img {
    width: 48%;
  }
}
/*↑画像ギャラリー用*/

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 1em 0;
}

.work-details {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.6;
  word-break: break-word;
}

.work-details th,
.work-details td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

.work-details th {
  background-color: #f8f8f8;
  font-weight: bold;
  width: 30%;
  min-width: 100px;
}

@media screen and (max-width: 600px) {
  .work-details th,
  .work-details td {
    font-size: 14px;
    padding: 6px 8px;
  }
}

.video-center {
  display: flex;
  justify-content: center;
  margin: 1em 0;
}

/*↓アフィボタン用：COLORS（ブルー）スキン対応*/
.top-cta-box {
  background-color: #eaf4fc;         /* 明るめのブルー背景 */
  border: 1px solid #c1ddf0;         /* 薄めのブルーの境界線 */
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  border-radius: 10px;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* 軽い影で立体感 */
}

a.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #007acc, #005fa3); /* グラデーション */
  color: #fff;
  padding: 14px 28px;
  font-size: 17px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  line-height: 1.2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}
a.cta-button:hover {
  background: linear-gradient(to right, #005fa3, #004377);
  transform: translateY(-2px); /* ホバー時に少し浮く */
}
/*↑アフィボタン用*/


/*↓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選択用*/

.centered-image {
  display: block;
  margin: 0 auto;
  width: auto;      /* 元のサイズに任せる */
  max-width: 100%;  /* 横幅が画面はみ出さないように */
  height: auto;
  border-radius: 6px; /* 好みで追加OK */
}
/*↓ランキング内部リンクボタン*/
.text-center {
  text-align: center;
}

.btn-link {
  display: inline-block; /* 中央寄せするために inline-block のまま */
  background-color: #f0f4f8; /* 明るめのグレー */
  color: #005fa3; /* 優しいブルー系テキスト */
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid #c1ddf0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1em;
}

.btn-link:hover {
  background-color: #e3effa;
  color: #004377;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/*↑ランキング内部リンクボタン*/





  /*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; /* ホバー時に赤に */
}

/*↓MGS動画中央寄せ*/
#mgs-sample-video {
  display: flex;
  justify-content: center; /* 水平方向中央寄せ */
  margin: 20px 0;          /* 上下の余白（任意） */
}
/*↑MGS動画中央寄せ*/
