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

/************************************
** ヘッダー
************************************/
#header {
  background-color: #0f1117;
}

#header .site-name-text {
  color: #ffffff;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

/************************************
** ナビゲーション
************************************/
#navi,
.navi-in,
.global-nav,
.navi,
#navi .wrap,
.navi-in.wrap {
  background-color: #1a1d27 !important;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

#navi .menu-item a {
  color: rgba(255,255,255,0.8);
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  padding: 0 20px !important;
}

#navi .menu-item a:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,0.08);
}

#navi .sub-menu {
  background-color: #1a1d27;
  border: 0.5px solid rgba(255,255,255,0.1);
}

#navi .sub-menu a {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

#navi .sub-menu a:hover {
  background-color: rgba(127,119,221,0.15);
  color: #AFA9EC;
}

/************************************
** 全体背景
************************************/
body,
.content-area {
  background-color: #f2f2f2 !important;
}

/************************************
** メインカラム
************************************/
.main {
  background-color: #F8F9FA !important;
  border-radius: 8px;
  padding-top: 0 !important;
}

/************************************
** サイドバー
************************************/
.sidebar,
#sidebar {
  background-color: transparent !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sidebar aside,
#sidebar aside,
.sidebar .widget,
#sidebar .widget,
aside.widget-sidebar {
  background-color: #ffffff !important;
  margin-bottom: 20px !important;
  padding: 0 0 12px 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.sidebar aside form,
#sidebar aside form,
.sidebar aside ul,
#sidebar aside ul {
  background-color: #ffffff !important;
  padding: 12px !important;
}

/************************************
** ウィジェットタイトル
************************************/
.widget-title,
h3.widget-title,
.widget-sidebar-title,
.sidebar h3 {
  background-color: #0a2540 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  display: flex !important;
  align-items: center !important;
  min-height: 54px !important;
}

/************************************
** ランキングウィジェット
************************************/
.widget_popular_entries .widget-content,
.widget_popular_entries ul {
  padding: 12px 16px !important;
}

.widget_popular_entries li {
  padding: 12px 0 !important;
  border-bottom: 1px solid #e0e0e0;
}

.widget_popular_entries li:last-child {
  border-bottom: none;
}

.widget_popular_entries .widget-title {
  margin-bottom: 16px !important;
}

/************************************
** クラス別最新デッキエリア
************************************/
.svb-portal-section {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.svb-section-title {
  background: #0a2540 !important;
  border-left: none !important;
}

/************************************
** DECKとNEWSのタイトル帯
************************************/
h2.home-column-title {
  background-color: #0a2540 !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  margin: 0 0 12px 0 !important;
}

/************************************
** 記事リストエリア
************************************/
.new-list-box.block-box {
  background-color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/************************************
** トップページ投稿日付・記事ヘッダー非表示
************************************/
.home .article-header .post-date,
.home .article-header .post-update,
.home .entry-header .post-date,
.home .entry-header time {
  display: none !important;
}

/* トップページのみ記事ヘッダー非表示 */
.home .article-header {
  display: none !important;
}

.entry-content {
  padding-top: 25px !important;
  margin-top: 0 !important;
}

/************************************
** SNSフォローボタン（ヘッダー右上）
************************************/
body .sns-follow,
body .sns-follow.sf-bottom,
#wrapper .sns-follow {
  position: fixed !important;
  top: 18px !important;
  bottom: auto !important;
  left: auto !important;
  right: 16px !important;
  height: 55px !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 16px !important;
  background: transparent !important;
}

body.admin-bar .sns-follow,
body.admin-bar .sns-follow.sf-bottom {
  top: 55px !important;
  bottom: auto !important;
}

.sns-follow-message {
  display: none;
}

.sns-follow-buttons {
  display: flex;
  gap: 6px;
}

.youtube-button {
  font-size: 0 !important;
}

.youtube-button .fa {
  display: none !important;
}

.youtube-button::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

@media screen and (max-width: 834px) {
  body .sns-follow,
  body .sns-follow.sf-bottom {
    display: none !important;
  }
}

/************************************
** 文字色・透明度修正
************************************/

/* 記事本文 */
.entry-content p,
.entry-content li,
.entry-content td,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #1a1a1a !important;
  opacity: 1 !important;
}

/* 目次リンク */
.toc a,
.toc-content a {
  color: #1a6fc4 !important;
  opacity: 1 !important;
}

/* カード・関連記事・前後記事タイトル */
.entry-card-title,
.entry-card-title a,
.entry-card-excerpt,
.related-entry-card-title,
.related-entry-card-title a,
.related-entry-card-snippet,
.navi-entry-card-title,
.navi-entry-card-title a,
.prev-post-title,
.next-post-title,
.new-entry-card-title,
.new-entry-card-title a,
.popular-entry-title,
.popular-entry-title a {
  color: #1a1a1a !important;
  opacity: 1 !important;
}

/* サイドバーリンク */
.sidebar a,
#sidebar a,
.widget a,
.rankitem a,
.rankitem-title {
  color: #333333 !important;
  opacity: 1 !important;
}

/* パンくず */
.breadcrumb a,
.breadcrumb span {
  color: #1a1a1a !important;
  opacity: 1 !important;
}

/* 画像は必ず表示 */
img,
.card-thumb img,
.entry-card-thumb img,
.navi-entry-card-thumb img,
.related-entry-card-thumb img {
  opacity: 1 !important;
  filter: none !important;
}

/* 記事内見出し背景リセット */
.entry-content h1,
.entry-content h3,
.entry-content h4 {
  background-color: transparent !important;
  background: transparent !important;
}

.entry-content h2:not(.home-column-title) {
  background-color: transparent !important;
  background: transparent !important;
}

/* Tier表ページ（ID:1778）のみ見出し余白調整 */
.page-id-1778 .entry-content h2 {
  margin-top: 16px !important;
  margin-bottom: 8px !important;
  padding: 8px 16px !important;
}

/************************************
** Dexel スライダー
************************************/
.dexel-slider-wrap {
  width: 100%;
  margin-bottom: 32px;
  overflow: hidden;
  border-radius: 8px;
}

.dexel-swiper {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
}

.dexel-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
}

.dexel-slide-bg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.dexel-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.dexel-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
}

.dexel-slide-content {
  background: rgba(0,0,0,0.45);
  border-radius: 4px;
  backdrop-filter: blur(2px);
}

.dexel-slide-label {
  display: inline-block;
  background: #1a6fc4;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
  opacity: 1 !important;
}

.dexel-slide-title {
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 0 6px !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  opacity: 1 !important;
}

.dexel-slide-date {
  color: rgba(255,255,255,0.7) !important;
  font-size: 12px;
  opacity: 1 !important;
}

.dexel-swiper .swiper-button-next,
.dexel-swiper .swiper-button-prev {
  color: #fff;
  background: rgba(0,0,0,0.35);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.dexel-swiper .swiper-button-next::after,
.dexel-swiper .swiper-button-prev::after {
  font-size: 16px;
}

.dexel-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.5);
  opacity: 1;
}

.dexel-swiper .swiper-pagination-bullet-active {
  background: #4fc3f7;
}

@media (max-width: 768px) {
  .dexel-swiper {
    height: 180px;
  }
  .dexel-slide-title {
    font-size: 14px !important;
  }
  .dexel-slide-content {
    padding: 16px;
  }
}

/************************************
** 日付・メタ情報・各種文字色
************************************/

/* 日付・メタ情報 */
.post-date,
.post-update,
.entry-date,
.article-date,
.date,
time,
.meta-item,
.cat-label-head,
.archive-title,
.page-title {
  color: #888888 !important;
  opacity: 1 !important;
}

/* ページネーション */
.pagination a,
.pagination span,
.page-numbers,
.page-numbers a,
.nav-links a,
.nav-links span {
  color: #333333 !important;
  opacity: 1 !important;
  border-color: #cccccc !important;
}

/* 次のページボタン */
.pagination-next-link,
.key-btn,
.pagination-next-link *,
.key-btn * {
  color: #333333 !important;
  opacity: 1 !important;
  background-color: #ffffff !important;
  border-color: #cccccc !important;
}

/* preformatted ブロック */
.wp-block-preformatted,
pre.wp-block-preformatted {
  color: #1a1a1a !important;
  opacity: 1 !important;
  background-color: #f5f5f5 !important;
}

/* 関連記事見出し・タグ */
.related-entry-heading,
.related-entry-heading *,
.tag-cloud a,
.post-tags a,
.cat-label {
  color: #1a1a1a !important;
  opacity: 1 !important;
}

/* サムネイル上のカテゴリーラベル非表示 */
.card-thumb .cat-label {
  display: none !important;
}

/* タグ・カテゴリーリンク */
.tag-link,
.tag-link.border-element,
.entry-tags a,
.entry-categories a,
.cat-link,
.entry-categories a {
  color: #1a1a1a !important;
  opacity: 1 !important;
  border-color: #cccccc !important;
  background-color: transparent !important;
}

/* モバイルメニュー文字色 */
.navi-menu-content,
.navi-menu-content a,
.navi-menu-content li a,
.menu-drawer,
.menu-drawer a,
.menu-drawer li a {
  color: #333333 !important;
  opacity: 1 !important;
}

/* フッター著作権 */
.footer-copyright,
#footer .copyright,
.site-info {
  font-size: 12px !important;
  line-height: 1.6 !important;
  text-align: center !important;
}

/* トップページのみ記事ヘッダー非表示 */
.home .article-header {
  display: none !important;
}

/* 記事ページのアイキャッチ非表示 */
.single .eye-catch,
.page .eye-catch {
  display: none !important;
}

/* 記事タイトル文字色 */
.entry-title,
.article-title,
h1.entry-title {
  color: #1a1a1a !important;
  opacity: 1 !important;
}

/* 記事ページのアイキャッチ非表示 */
.single .eye-catch,
.page .eye-catch {
  display: none !important;
}

/* 記事タイトル文字色 */
.entry-title,
.article-title,
h1.entry-title {
  color: #1a1a1a !important;
  opacity: 1 !important;
}

/* カテゴリーページ記事タイトル・本文文字色 */
.archive .entry-card-title,
.archive .entry-card-title a,
.archive .entry-card-excerpt,
.category .entry-card-title,
.category .entry-card-title a,
.category .entry-card-excerpt {
  color: #1a1a1a !important;
  opacity: 1 !important;
}

/* カード抜粋文字色 */
.entry-card-snippet,
.e-card-snippet,
.card-snippet {
  color: #1a1a1a !important;
  opacity: 1 !important;
}

/* アクセスカウンター文字色 */
.admin-pv,
.admin-pv span {
  color: #888888 !important;
  opacity: 1 !important;
}

/* SNSフォローボタン位置強制上書き */
.sns-follow.sf-bottom {
  position: fixed !important;
  top: 0 !important;
  bottom: auto !important;
  right: 16px !important;
  height: 55px !important;
}

.admin-bar .sns-follow.sf-bottom {
  top: 32px !important;
  bottom: auto !important;
}

/************************************
** Tier表サイドバーバナー
************************************/
.tier-banner-link {
  display: block !important;
  text-decoration: none !important;
  margin: 0 !important;
}

.tier-banner-img {
  width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
  display: block !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  opacity: 1 !important;
}

.tier-banner-img:hover {
  opacity: 0.9 !important;
}

/* 記事下デッキリンクボックス */
.deck-link-box {
  background: transparent;
  border-radius: 8px;
  padding: 20px 0;
  text-align: center;
  margin: 32px 0 16px;
}

.deck-link-label {
  color: rgba(255,255,255,0.8) !important;
  font-size: 13px !important;
  margin-bottom: 12px !important;
  opacity: 1 !important;
}

.deck-link-btn {
  display: inline-block;
  background: #ffffff;
  color: #0a2540 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  transition: background 0.2s !important;
  opacity: 1 !important;
  border: 2px solid #0a2540 !important;
}

.deck-link-btn:hover {
  background: #e8f4ff !important;
}

.deck-link-label {
  display: none !important;
}

/* wp-block-heading文字色 */
.wp-block-heading,
h1.wp-block-heading,
h2.wp-block-heading,
h3.wp-block-heading,
h4.wp-block-heading,
h5.wp-block-heading,
h6.wp-block-heading {
  color: #1a1a1a !important;
  opacity: 1 !important;
}

/* 目次タイトル文字色 */
.toc-title,
.toc .toc-title,
label.toc-title {
  color: #1a1a1a !important;
  opacity: 1 !important;
}