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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.appeal-button{
	border: 8px solid;
	border-image: linear-gradient(15deg, #B67B03 0%, #DAAF08 45%, #FEE9A0 70%, #DAAF08 85%, #B67B03 90% 100%) 1;
}

/*サブメニュー表示*/
.fixed-header .navi-in > ul li:hover > ul {
  display: block;
}
/*タイトルロゴの装飾*/
.logo-header img {
  filter: drop-shadow(5px 5px 5px rgba(255, 255, 255, 0.8));
}
.widget-entry-cards.large-thumb-on .card-content {
  background: linear-gradient(180deg, transparent, #004085);
}
/*カスタム投稿：kanteishi用CSS*/
.post-type-archive-kanteishi .main {
  background: #f0f8ff;
  padding: 20px 0 20px 20px;
}
.tax-kanteishi_cate .main {
  background: #f0f8ff;
}
.tax-kanteishi_rank .main {
  background: #f0f8ff;
}
.custom-entry-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
a.custom-entry-card-link:hover {
  color: #004085;
}
.custom-entry-card {
  width: calc(33.333% - 20px);
  border: 1px solid #f0f8ff;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  position: relative;
}
/*.custom-entry-card.rank-legend {
    border: 5px solid;
    border-image: conic-gradient(#f5f551,#5eff5e,#84a1ff,#ff45ff,#ff5a5a,#ffbc41,#f5f551) 1;
}*/
.custom-entry-card:hover {
  transform: translateY(-8px);
}
.custom-entry-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.custom-entry-card-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}
/*.custom-entry-card-content {
  padding-left: 5px; 
}*/

.custom-entry-card-title-with-icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.custom-entry-card-title {
  font-size: 20px;
  margin: 0 0 10px;
  padding-left: 15px;
}
.custom-entry-card-excerpt {
  font-size: 16px;
  color: #555;
  padding: 15px;
}
/*.custom-category-name {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  background: #eee;
  color: #333;
  font-size: 12px;
  border-radius: 4px;
}*/
/* カテゴリバッジのスタイル */
.custom-entry-badge-icon.list {
  width: 100px;
  padding-right: 10px;
  padding-top: 5px;
}
.custom-entry-header-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* 画像とテキストの間のスペース */
}
.custom-entry-header-text {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.custom-entry-badge-icon.single {
  width: 150px;
  padding-left: 12px;
  padding-top: 10px;
}
.custom-entry-title-single {
  font-size: 32px;
  font-weight: bold;
  text-align: left;
}
.custom-category-badge {
  background: rgba(247, 141, 167, 0.6);
}
.custom-category-badge.list {
  position: absolute;
  top: 0;
  right: 0;
  color: #fff;
  font-size: 12px;
  padding: 3px 5px;
  border-radius: 4px;
}
.custom-category-badge.list_rank {
  color: #fff;
  font-size: 16px;
  padding: 5px 8px;
  margin: 10px;
  border-radius: 4px;
}
.custom-category-badge.single {
  color: #fff;
  font-size: 14px;
  padding: 3px 5px;
  border-radius: 4px;
  align-self: flex-end;
}
.custom-category-badge.rank-legend {
  background: linear-gradient(to right,
  rgba(222, 65, 65, 0.8),
  rgba(232, 172, 81, 0.8),
  rgba(242, 229, 92, 0.8),
  rgba(57, 168, 105, 0.8),
  rgba(71, 132, 191, 0.8),
  rgba(93, 80, 153, 0.8),
  rgba(165, 91, 154, 0.8)
);
}
.custom-category-badge.rank-pro {
  background: linear-gradient(
    10deg,
    rgba(182, 123, 3, 0.8) 0%,
    rgba(218, 175, 8, 0.8) 45%,
    rgba(254, 233, 160, 0.8) 70%,
    rgba(218, 175, 8, 0.8) 85%,
    rgba(182, 123, 3, 0.8) 90% 100%
  );
}
.custom-category-badge.rank-assistant {
  background: linear-gradient(
    135deg,
    rgba(205, 127, 50, 0.8) 0%,
    rgba(230, 185, 140, 0.8) 30%,
    rgba(184, 115, 51, 0.8) 60%,
    rgba(242, 209, 160, 0.8) 85%,
    rgba(205, 127, 50, 0.8) 100%
  );
}
.custom-category-badge.rank-star {
  background: linear-gradient(
    45deg,
    rgba(117, 117, 117, 0.8) 0%,
    rgba(158, 158, 158, 0.8) 45%,
    rgba(232, 232, 232, 0.8) 70%,
    rgba(158, 158, 158, 0.8) 85%,
    rgba(117, 117, 117, 0.8) 90%, 
    rgba(117, 117, 117, 0.8) 100%
  );
}
.custom-category-badge.rank-candle {
  background: rgba(247, 141, 167, 1);
}
.custom-category-badge.rank-illustrator {
  background: rgba(0, 177, 107, 1);
}
.custom-category-badge.rank-writer {
  background: rgba(44, 169, 225, 1);
}
.reservation-button{
  transition: transform 0.3s;
}
.reservation-button:hover{
  transform: translateY(-4px);
}
.slider-overlay-sp {
  display: none;
}
/* =================================
   note風RSS一覧 スタイルシート
================================== */

/* 一覧コンテナ */
.note-rss-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

/* 個別の記事カード */
.note-rss-item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

/* カード全体のホバー効果（枠線を指定色に変更） */
.note-rss-item:hover {
    border-color: #004085;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* サムネイル画像エリア (1280 × 670 pxのアスペクト比に対応) */
.note-rss-thumb {
    flex-shrink: 0;
    width: 220px;
    aspect-ratio: 1280 / 670;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f7f7;
}

/* サムネイル内のリンク */
.note-rss-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.note-rss-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.note-rss-item:hover .note-rss-thumb img {
    transform: scale(1.03);
}

/* テキストコンテンツエリア */
.note-rss-content {
    flex-grow: 1;
    min-width: 0;
}

/* タイトルリンクのブロック */
.note-rss-title-link {
    display: block;
    text-decoration: none !important;
}

/* タイトルホバー時の文字色を指定色に変更 */
.note-rss-title-link:hover h3 {
    color: #004085 !important;
}

/* 記事タイトル */
.note-rss-content h3 {
    margin: 0 0 6px 0 !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.4;
    color: #333 !important;
    transition: color 0.2s ease;
}

/* 記事の概要（2行で省略） */
.note-rss-content p {
    margin: 0 0 8px 0 !important;
    font-size: 13px !important;
    color: #777 !important;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* クリエイター情報エリア（アイコンと名前） */
.note-rss-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* クリエイターアイコン */
.note-rss-author-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* クリエイター名 */
.note-rss-author-name {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.note-rss-list .note-rss-content h3,
.article .note-rss-list .note-rss-content h3 {
    margin: 0 0 6px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #333 !important;
    background: none !important; /* テーマの背景色などが当たっている場合の対策 */
    border: none !important;     /* テーマの下線などが当たっている場合の対策 */
    padding: 0 !important;
}

/* タイトルリンク側の色やデザインも保護 */
.note-rss-list .note-rss-title-link,
.article .note-rss-list .note-rss-title-link {
    display: block;
    text-decoration: none !important;
}

.note-rss-list .note-rss-title-link:hover h3,
.article .note-rss-list .note-rss-title-link:hover h3 {
    color: #004085 !important;
}

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

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

  .post-type-archive-kanteishi .main {
   padding: 20px 10px;
  }
/* スマホ時はカード同士の間隔を狭くする */
  .custom-entry-card-list {
    gap: 10px;
  }
/* カード幅を広めに設定 */
  .custom-entry-card {
    width: calc(50% - 5px);
  }
  .custom-entry-card-title {
    padding-left: 25px;
  }
  .custom-entry-badge-icon.list {
    padding-right: 15px;
  }
  .slider-overlay {
    width: 350px !important;
    height: 200px !important;
  }
  .slider-button {
    margin-top: 20px !important;
  }
  .entry-content table {
    border-top: 1px solid #aaa !important;
    border-left: none !important;
  }
}

/* スマホ表示対応 (画面幅600px以下) */
@media screen and (max-width: 600px) {
    .note-rss-item {
        flex-direction: column;
        align-items: stretch;
    }

    .note-rss-thumb {
        width: 100%;
    }
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
  /*アピールエリアの高さ設定　スマホ*/
  #appeal {
    height: 95vw;
  }
  .appeal .appeal-in {
    min-height: 350px;
  }
  .custom-entry-card-title {
    font-size: 16px;
    padding-left: 10px;
  }
  .custom-entry-badge-icon.list {
    width: 70px;
    padding-right: 10px;
  }
  .custom-entry-card-excerpt {
    line-height: 1.2;
    padding: 5px;
  }
  .custom-entry-badge-icon.single {
    width: 100px;
    padding-left: 5px;
    padding-top: 5px;
  }
  .custom-entry-title-single {
    font-size: 32px;
    font-weight: bold;
  }
  .alignnormal {
    margin-top: -50px;
  }
  .slider-overlay {
    display: none !important;
  }
  .slider-overlay-sp {
    display: block;
  }
  .slider-caption {
    font-size: 18px !important;
  }
  .slider-txt {
    font-size: 16px !important;
    margin: 10px -5px 15px !important;
  }
  .slider-button {
    display: flex !important;
    padding: 10px 30px !important;
    margin: 0 auto !important;
    width: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}